compress-brotli
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.0.8](https://github.com/Kikobeats/compress-brotli/compare/v1.0.7...v1.0.8) (2019-09-21) | ||
### Bug Fixes | ||
* linter ([34e9c49](https://github.com/Kikobeats/compress-brotli/commit/34e9c49)) | ||
### [1.0.7](https://github.com/Kikobeats/compress-brotli/compare/v1.0.6...v1.0.7) (2019-06-19) | ||
@@ -7,0 +14,0 @@ |
@@ -21,3 +21,4 @@ 'use strict' | ||
serialize = defaultSerialize, | ||
deserialize = defaultDeserialize | ||
deserialize = defaultDeserialize, | ||
iltorb = () => require('iltorb') | ||
} = {}) => { | ||
@@ -28,7 +29,7 @@ if (!enable) return noop | ||
? promisify(zlib.brotliCompress) | ||
: require('iltorb').compress | ||
: iltorb().compress | ||
const decompress = hasNativeAPI | ||
? promisify(zlib.brotliDecompress) | ||
: require('iltorb').decompress | ||
: iltorb().decompress | ||
@@ -40,3 +41,3 @@ return { | ||
if (data === undefined) return data | ||
let serializedData = serialize(data) | ||
const serializedData = serialize(data) | ||
return compress(serializedData) | ||
@@ -43,0 +44,0 @@ }, |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/Kikobeats/compress-brotli", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"main": "index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
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
11775
68