fastify-citgm
Advanced tools
Comparing version 4.24.0-dev-16 to 4.24.0-dev-17
'use strict' | ||
const VERSION = '4.24.0-dev-16' | ||
const VERSION = '4.24.0-dev-17' | ||
@@ -5,0 +5,0 @@ const Avvio = require('avvio') |
{ | ||
"name": "fastify-citgm", | ||
"version": "4.24.0-dev-16", | ||
"version": "4.24.0-dev-17", | ||
"description": "Fast and low overhead web framework, for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "fastify.js", |
@@ -656,3 +656,3 @@ 'use strict' | ||
return new Promise((resolve, reject) => { | ||
const stream = fs.createReadStream(process.cwd() + '/test/stream.test.js', 'utf8') | ||
const stream = fs.createReadStream(__filename, 'utf8') | ||
// stream.pipe(res) | ||
@@ -708,3 +708,3 @@ // res.once('finish', resolve) | ||
fastify.addHook('preHandler', async (req, reply) => { | ||
const stream = fs.createReadStream(process.cwd() + '/test/stream.test.js', 'utf8') | ||
const stream = fs.createReadStream(__filename, 'utf8') | ||
reply.raw.once('finish', () => { | ||
@@ -711,0 +711,0 @@ t.equal(order.shift(), 2) |
@@ -25,3 +25,3 @@ 'use strict' | ||
pipeline( | ||
fs.createReadStream(resolve(process.cwd() + '/test/stream.test.js'), 'utf8'), | ||
fs.createReadStream(resolve(__filename), 'utf8'), | ||
gzStream, | ||
@@ -39,3 +39,3 @@ t.error | ||
t.equal(res.headers['content-encoding'], 'gzip') | ||
const file = fs.readFileSync(resolve(process.cwd() + '/test/stream.test.js'), 'utf8') | ||
const file = fs.readFileSync(resolve(__filename), 'utf8') | ||
const payload = zlib.gunzipSync(res.rawPayload) | ||
@@ -42,0 +42,0 @@ t.equal(payload.toString('utf-8'), file) |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2400769
328
59343