koa-compress 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -18,10 +18,10 @@ app.use(compress({
18
18
  },
19
19
  threshold: 2048,
20
20
  gzip: {
21
- flush: require('zlib').Z_SYNC_FLUSH
21
+ flush: require('zlib').constants.Z_SYNC_FLUSH
22
22
  },
23
23
  deflate: {
24
- flush: require('zlib').Z_SYNC_FLUSH,
24
+ flush: require('zlib').constants.Z_SYNC_FLUSH,
25
25
  },
26
26
  br: false // disable brotli
27
27
  }))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koa-compress",
3
3
  "description": "Compress middleware for koa",
4
- "version": "5.0.0",
4
+ "version": "5.0.1",
5
5
  "author": {
6
6
  "name": "Jonathan Ong",
7
7
  "email": "me@jongleberry.com",