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.1 to 1.0.2

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="1.0.2"></a>
## [1.0.2](https://github.com/Kikobeats/compress-brotli/compare/v1.0.1...v1.0.2) (2019-04-06)
### Bug Fixes
* use serialize method ([099e43f](https://github.com/Kikobeats/compress-brotli/commit/099e43f))
<a name="1.0.1"></a>

@@ -7,0 +17,0 @@ ## [1.0.1](https://github.com/Kikobeats/compress-brotli/compare/v1.0.0...v1.0.1) (2019-04-06)

10

index.js

@@ -20,9 +20,5 @@ 'use strict'

const compress = hasNativeAPI
? promisify(zlib.brotliCompress)
: require('iltorb').compress
const compress = hasNativeAPI ? promisify(zlib.brotliCompress) : require('iltorb').compress
const decompress = hasNativeAPI
? promisify(zlib.brotliDecompress)
: require('iltorb').decompress
const decompress = hasNativeAPI ? promisify(zlib.brotliDecompress) : require('iltorb').decompress

@@ -32,3 +28,3 @@ return {

if (data === undefined) return data
let serializedData = JSON.stringify(data)
let serializedData = serialize(data)
if (!hasNativeAPI) serializedData = Buffer.from(serializedData)

@@ -35,0 +31,0 @@ return compress(serializedData)

@@ -5,3 +5,3 @@ {

"homepage": "https://nicedoc.io/Kikobeats/compress-brotli",
"version": "1.0.1",
"version": "1.0.2",
"main": "index.js",

@@ -8,0 +8,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc