Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Mar 29, 2024
1 parent 58e1260 commit 2e5810a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const { Minipass } = require('minipass')
const pumpify = require('pumpify')
const { Readable } = require('readable-stream')


const { isStream, isGzip, isDeflate, intoAsyncIterator } = require('./lib/utils')

const InvalidRequestEncodingError = createError('FST_CP_ERR_INVALID_CONTENT_ENCODING', 'Unsupported Content-Encoding: %s', 415)
Expand Down
3 changes: 1 addition & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ function isStream (stream) {

// It is a helper used to provide a async iteratable for
// Readable.from
async function *intoAsyncIterator (payload) {
async function * intoAsyncIterator (payload) {
// string | Buffer
yield payload
}


module.exports = { isGzip, isDeflate, isStream, intoAsyncIterator }
2 changes: 1 addition & 1 deletion test/issue-288.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ test('should not corrupt the file content', async (t) => {
const body = await response.text()
const body2 = await response2.text()
t.equal(body, body2)
})
})

0 comments on commit 2e5810a

Please sign in to comment.