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

tiny-inflate

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-inflate - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

index.js

@@ -350,3 +350,10 @@ var TINF_OK = 0;

return d.dest.slice(0, d.destLen);
if (d.destLen < d.dest.length) {
if (typeof d.dest.slice === 'function')
return d.dest.slice(0, d.destLen);
else
return d.dest.subarray(0, d.destLen);
}
return d.dest;
}

@@ -353,0 +360,0 @@

2

package.json
{
"name": "tiny-inflate",
"version": "1.0.0",
"version": "1.0.1",
"description": "A tiny inflate implementation",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -63,3 +63,3 @@ var inflate = require('../');

it('should handle uncompressed blocks', function() {
it('should handle fixed huffman blocks', function() {
var out = new Buffer(uncompressed.length);

@@ -69,2 +69,9 @@ inflate(fixed, out);

});
it('should handle typed arrays', function() {
var input = new Uint8Array(compressed);
var out = new Uint8Array(uncompressed.length);
inflate(input, out);
assert.deepEqual(out, new Uint8Array(uncompressed));
});
});
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