Comparing version 2.2.0 to 2.2.1
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1392181
12837
40
79
+ Addedpako@~0.1.1
+ Addedpako@0.1.1(transitive)
- Removedzlibjs@~0.2.0
- Removedzlibjs@0.2.0(transitive)