Skip to content

Commit 56ce631

Browse files
committed
fix utf8 bug
1 parent d5eaa2d commit 56ce631

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for JSZip 4.1.0
1+
// Type definitions for JSZip 4.1.1
22
// Project: http://stuk.github.com/jszip/, https://github.com/stuk/jszip
33
// Definitions by: mzeiher <https://github.com/mzeiher>, forabi <https://github.com/forabi>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class JSZip extends object {
5151

5252
// TODO find a better way to handle this version,
5353
// a require('package.json').version doesn't work with webpack, see #327
54-
static version = "4.1.0";
54+
static version = "4.1.1";
5555

5656
loadAsync(content, options) {
5757
return load(this, content, options);

lib/utf8.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export class Utf8DecodeWorker extends GenericWorker {
232232
}
233233

234234
this.push({
235-
data: exports.utf8decode(usableData),
235+
data: utf8decode(usableData),
236236
meta: chunk.meta
237237
});
238238
};
@@ -243,7 +243,7 @@ export class Utf8DecodeWorker extends GenericWorker {
243243
flush() {
244244
if (this.leftOver && this.leftOver.length) {
245245
this.push({
246-
data: exports.utf8decode(this.leftOver),
246+
data: utf8decode(this.leftOver),
247247
meta: {}
248248
});
249249
this.leftOver = null;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@node-projects/jszip",
3-
"version": "4.1.0",
3+
"version": "4.1.1",
44
"author": "Stuart Knightley <stuart@stuartk.com>",
55
"description": "Create, read and edit .zip files with JavaScript http://stuartk.com/jszip",
66
"scripts": {

0 commit comments

Comments
 (0)