@node-projects/jszip 4.1.0 → 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 +1 -1
- package/lib/index.js +1 -1
- package/lib/utf8.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for JSZip 4.1.
|
|
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
|
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.1.
|
|
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:
|
|
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:
|
|
246
|
+
data: utf8decode(this.leftOver),
|
|
247
247
|
meta: {}
|
|
248
248
|
});
|
|
249
249
|
this.leftOver = null;
|
package/package.json
CHANGED