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.0 to 1.0.1

10

CHANGELOG.md

@@ -5,3 +5,13 @@ # Change Log

<a name="1.0.1"></a>
## [1.0.1](https://github.com/Kikobeats/compress-brotli/compare/v1.0.0...v1.0.1) (2019-04-06)
### Bug Fixes
* handle buffer case ([64b4043](https://github.com/Kikobeats/compress-brotli/commit/64b4043))
<a name="1.0.0"></a>
# 1.0.0 (2019-04-06)

6

index.js

@@ -22,3 +22,3 @@ 'use strict'

? promisify(zlib.brotliCompress)
: require('iltorb').decompress
: require('iltorb').compress

@@ -32,3 +32,5 @@ const decompress = hasNativeAPI

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

@@ -35,0 +37,0 @@ decompress: async data => {

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

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

@@ -37,2 +37,3 @@ "author": {

"ava": "latest",
"ci-publish": "latest",
"conventional-github-releaser": "latest",

@@ -44,2 +45,3 @@ "coveralls": "latest",

"husky": "latest",
"iltorb": "latest",
"lint-staged": "latest",

@@ -51,4 +53,3 @@ "npm-check-updates": "latest",

"standard-markdown": "latest",
"standard-version": "latest",
"ci-publish": "latest"
"standard-version": "latest"
},

@@ -55,0 +56,0 @@ "engines": {

@@ -28,3 +28,3 @@ # compress-brotli

```bash
$ npm install brotli --save
$ npm install iltorb --save
```

@@ -31,0 +31,0 @@

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