jszip
Advanced tools
Comparing version 3.2.2 to 3.3.0
@@ -60,3 +60,3 @@ 'use strict'; | ||
* Chain the given worker with other workers to compress the content with the | ||
* given compresion. | ||
* given compression. | ||
* @param {GenericWorker} uncompressedWorker the worker to pipe. | ||
@@ -63,0 +63,0 @@ * @param {Object} compression the compression object. |
@@ -73,3 +73,3 @@ 'use strict'; | ||
* Generate the various parts used in the construction of the final zip file. | ||
* @param {Object} streamInfo the hash with informations about the compressed file. | ||
* @param {Object} streamInfo the hash with information about the compressed file. | ||
* @param {Boolean} streamedContent is the content streamed ? | ||
@@ -297,3 +297,3 @@ * @param {Boolean} streamingEnded is the stream finished ? | ||
* Generate data descriptors for a file entry. | ||
* @param {Object} streamInfo the hash generated by a worker, containing informations | ||
* @param {Object} streamInfo the hash generated by a worker, containing information | ||
* on the file entry. | ||
@@ -350,3 +350,3 @@ * @return {String} the data descriptors. | ||
// the name of the file currently being added, null when handling the end of the zip file. | ||
// Used for the emited metadata. | ||
// Used for the emitted metadata. | ||
this.currentFile = null; | ||
@@ -353,0 +353,0 @@ |
@@ -338,3 +338,3 @@ 'use strict'; | ||
// "binarystring" is prefered but the internals use "string". | ||
// "binarystring" is preferred but the internals use "string". | ||
if(opts.type === "binarystring") { | ||
@@ -341,0 +341,0 @@ opts.type = "string"; |
@@ -86,5 +86,5 @@ 'use strict'; | ||
/** | ||
* Find the last occurence of a zip signature (4 bytes). | ||
* Find the last occurrence of a zip signature (4 bytes). | ||
* @param {string} sig the signature to find. | ||
* @return {number} the index of the last occurence, -1 if not found. | ||
* @return {number} the index of the last occurrence, -1 if not found. | ||
*/ | ||
@@ -91,0 +91,0 @@ lastIndexOfSignature: function(sig) { |
@@ -91,3 +91,3 @@ 'use strict'; | ||
* An helper for the function arrayLikeToString. | ||
* This contains static informations and functions that | ||
* This contains static information and functions that | ||
* can be optimized by the browser JIT compiler. | ||
@@ -94,0 +94,0 @@ */ |
@@ -89,3 +89,3 @@ 'use strict'; | ||
if (this.compressedSize === -1 || this.uncompressedSize === -1) { | ||
throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory " + "(compressedSize === -1 || uncompressedSize === -1)"); | ||
throw new Error("Bug or corrupted zip : didn't get enough information from the central directory " + "(compressedSize === -1 || uncompressedSize === -1)"); | ||
} | ||
@@ -92,0 +92,0 @@ |
{ | ||
"name": "jszip", | ||
"version": "3.2.2", | ||
"version": "3.3.0", | ||
"author": "Stuart Knightley <stuart@stuartk.com>", | ||
@@ -28,3 +28,4 @@ "description": "Create, read and edit .zip files with JavaScript http://stuartk.com/jszip", | ||
"browser": { | ||
"readable-stream": "./lib/readable-stream-browser.js" | ||
"readable-stream": "./lib/readable-stream-browser.js", | ||
".": "./dist/jszip.min.js" | ||
}, | ||
@@ -52,3 +53,2 @@ "repository": { | ||
"package-json-versionify": "1.0.2", | ||
"phantomjs-prebuilt": "2.1.15", | ||
"qunit": "~2.9.2", | ||
@@ -55,0 +55,0 @@ "tmp": "0.0.28" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
13
651020