@node-projects/jszip 4.0.2 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for JSZip 4.0.2
1
+ // Type definitions for JSZip 4.1.1
2
2
  // Project: http://stuk.github.com/jszip/, https://github.com/stuk/jszip
3
3
  // Definitions by: mzeiher <https://github.com/mzeiher>, forabi <https://github.com/forabi>
4
4
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -323,8 +323,7 @@ interface JSZip {
323
323
  version: string;
324
324
  }
325
325
 
326
- declare var JSZip: JSZip;
327
-
328
326
  declare module "@node-projects/jszip" {
329
- export default JSZip;
327
+ export var JSZip: JSZip;
328
+ export default JSZip;
330
329
  }
package/lib/index.js CHANGED
@@ -51,7 +51,7 @@ export class JSZip extends object {
51
51
 
52
52
  // TODO find a better way to handle this version,
53
53
  // a require('package.json').version doesn't work with webpack, see #327
54
- static version = "4.0.2";
54
+ static version = "4.1.1";
55
55
 
56
56
  loadAsync(content, options) {
57
57
  return load(this, content, options);
package/lib/utf8.js CHANGED
@@ -232,7 +232,7 @@ export class Utf8DecodeWorker extends GenericWorker {
232
232
  }
233
233
 
234
234
  this.push({
235
- data: exports.utf8decode(usableData),
235
+ data: utf8decode(usableData),
236
236
  meta: chunk.meta
237
237
  });
238
238
  };
@@ -243,7 +243,7 @@ export class Utf8DecodeWorker extends GenericWorker {
243
243
  flush() {
244
244
  if (this.leftOver && this.leftOver.length) {
245
245
  this.push({
246
- data: exports.utf8decode(this.leftOver),
246
+ data: utf8decode(this.leftOver),
247
247
  meta: {}
248
248
  });
249
249
  this.leftOver = null;
package/lib/utils.js CHANGED
@@ -485,5 +485,5 @@ export function prepareContent(name, inputData, isBinary, isOptimizedBinaryStrin
485
485
  };
486
486
 
487
487
  export default {
488
- newBlob, applyFromCharCode, transformTo, resolve, getTypeOf, checkSupport, pretty, delay, extend, prepareContent
488
+ newBlob, applyFromCharCode, transformTo, resolve, getTypeOf, checkSupport, pretty, delay, extend, prepareContent, MAX_VALUE_16BITS, MAX_VALUE_32BITS
489
489
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-projects/jszip",
3
- "version": "4.0.2",
3
+ "version": "4.1.1",
4
4
  "author": "Stuart Knightley <stuart@stuartk.com>",
5
5
  "description": "Create, read and edit .zip files with JavaScript http://stuartk.com/jszip",
6
6
  "scripts": {