Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snappy

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snappy - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

4

package.json

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

"description": "Nodejs bindings to Google's Snappy compression library",
"version": "5.0.1",
"version": "5.0.2",
"homepage": "https://github.com/kesla/node-snappy",

@@ -23,3 +23,3 @@ "repository": {

"devDependencies": {
"ava": "^0.13.0",
"ava": "^0.14.0",
"bluebird": "^3.3.4",

@@ -26,0 +26,0 @@ "nyc": "^6.1.1",

@@ -16,3 +16,3 @@ 'use strict';

const buffer = yield compress(inputString);
t.ok(Buffer.isBuffer(buffer), 'should return a Buffer');
t.truthy(Buffer.isBuffer(buffer), 'should return a Buffer');
});

@@ -22,3 +22,3 @@

const buffer = yield compress(inputBuffer);
t.ok(Buffer.isBuffer(buffer), 'should return a Buffer');
t.truthy(Buffer.isBuffer(buffer), 'should return a Buffer');
});

@@ -32,3 +32,3 @@

const buffer = compressSync(inputString);
t.ok(Buffer.isBuffer(buffer), 'should return a Buffer');
t.truthy(Buffer.isBuffer(buffer), 'should return a Buffer');
});

@@ -38,3 +38,3 @@

const buffer = compressSync(inputBuffer);
t.ok(Buffer.isBuffer(buffer), 'should return a Buffer');
t.truthy(Buffer.isBuffer(buffer), 'should return a Buffer');
});

@@ -45,3 +45,3 @@

const isCompressed = yield isValidCompressed(compressed);
t.ok(isCompressed);
t.truthy(isCompressed);
});

@@ -51,3 +51,3 @@

const isCompressed = yield isValidCompressed(new Buffer('beep boop'));
t.notOk(isCompressed);
t.falsy(isCompressed);
});

@@ -58,3 +58,3 @@

const isCompressed = isValidCompressedSync(compressed);
t.ok(isCompressed);
t.truthy(isCompressed);
});

@@ -64,3 +64,3 @@

const isCompressed = isValidCompressedSync(new Buffer('beep boop'));
t.notOk(isCompressed);
t.falsy(isCompressed);
});

@@ -71,3 +71,3 @@

const buffer = yield uncompress(compressed);
t.same(buffer, inputBuffer);
t.deepEqual(buffer, inputBuffer);
});

@@ -78,3 +78,3 @@

const buffer = yield uncompress(compressed, { asBuffer: true });
t.same(buffer, inputBuffer);
t.deepEqual(buffer, inputBuffer);
});

@@ -85,3 +85,3 @@

const string = yield uncompress(compressed, { asBuffer: false });
t.same(string, inputString);
t.deepEqual(string, inputString);
});

@@ -93,3 +93,3 @@

yield uncompress(compressed, opts);
t.same(opts, {});
t.deepEqual(opts, {});
});

@@ -108,3 +108,3 @@

const buffer = uncompressSync(compressed);
t.same(buffer, inputBuffer);
t.deepEqual(buffer, inputBuffer);
});

@@ -115,3 +115,3 @@

const buffer = uncompressSync(compressed, { asBuffer: true });
t.same(buffer, inputBuffer);
t.deepEqual(buffer, inputBuffer);
});

@@ -122,3 +122,3 @@

const string = uncompressSync(compressed, { asBuffer: false });
t.same(string, inputString);
t.deepEqual(string, inputString);
});

@@ -130,3 +130,3 @@

uncompressSync(compressed, opts);
t.same(opts, {});
t.deepEqual(opts, {});
});

@@ -133,0 +133,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc