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

jszip

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jszip - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

2

bower.json
{
"name": "jszip",
"version": "2.2.0",
"version": "2.2.1",
"homepage": "http://stuartk.com/jszip",

@@ -5,0 +5,0 @@ "authors": [

@@ -0,1 +1,5 @@

### v2.2.1, 2014-04-23
- fix unreadable generated file on Windows 8 (see [#112](https://github.com/Stuk/jszip/issues/112)).
- replace zlibjs with pako.
### v2.2.0, 2014-02-25

@@ -2,0 +6,0 @@ - make the `new` operator optional before the `JSZip` constructor (see [#93](https://github.com/Stuk/jszip/pull/93)).

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

"description": "Create, read and edit .zip files with Javascript http://stuartk.com/jszip",
"version": "2.2.0",
"version": "2.2.1",
"keywords": [

@@ -8,0 +8,0 @@ "zip",

'use strict';
var USE_TYPEDARRAY = (typeof Uint8Array !== 'undefined') && (typeof Uint16Array !== 'undefined') && (typeof Uint32Array !== 'undefined');
var ZlibDeflate = require('zlibjs/bin/rawdeflate.min').Zlib;
var ZlibInflate = require('zlibjs/bin/rawinflate.min').Zlib;
var pako = require("pako");
exports.uncompressInputType = USE_TYPEDARRAY ? "uint8array" : "array";

@@ -11,8 +10,6 @@ exports.compressInputType = USE_TYPEDARRAY ? "uint8array" : "array";

exports.compress = function(input) {
var deflate = new ZlibDeflate.RawDeflate(input);
return deflate.compress();
return pako.deflateRaw(input);
};
exports.uncompress = function(input) {
var inflate = new ZlibInflate.RawInflate(input);
return inflate.decompress();
return pako.inflateRaw(input);
};

@@ -9,4 +9,4 @@ /*!

JSZip uses the library zlib.js released under the following license :
zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/master/LICENSE
*/
{
"name": "jszip",
"version": "2.2.0",
"version": "2.2.1",
"author": "Stuart Knightley <stuart@stuartk.com>",

@@ -53,5 +53,5 @@ "description": "Create, read and edit .zip files with Javascript http://stuartk.com/jszip",

"dependencies":{
"zlibjs": "~0.2.0"
"pako": "~0.1.1"
},
"license": "MIT or GPLv3"
}

@@ -849,5 +849,2 @@ 'use strict';

/*
// commented because the new implementation of DEFLATE produces different results from the old one.
// zip -6 -X deflate.zip Hello.txt

@@ -863,3 +860,3 @@ testZipFile("DEFLATE compress", "ref/deflate.zip", function(expected) {

});
*/
test("Lazy decompression works", function () {

@@ -866,0 +863,0 @@ var zip = new JSZip();

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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