Socket
Socket
Sign inDemoInstall

compress-brotli

Package Overview
Dependencies
0
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.7 to 1.0.8

7

CHANGELOG.md

@@ -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 @@

9

index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc