diff --git a/index.js b/index.js index b52285d..cd17201 100644 --- a/index.js +++ b/index.js @@ -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) diff --git a/lib/utils.js b/lib/utils.js index 2c8a3a6..bede437 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -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 } diff --git a/test/issue-288.test.js b/test/issue-288.test.js index a53cc4c..b4b6898 100644 --- a/test/issue-288.test.js +++ b/test/issue-288.test.js @@ -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) -}) \ No newline at end of file +})