Skip to content

Commit

Permalink
Replace jszip with @turbowarp/jszip
Browse files Browse the repository at this point in the history
It has some optimizations that slightly improve unzipping time
  • Loading branch information
GarboMuffin committed May 20, 2024
1 parent 663ea98 commit 061a5b9
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/unzip.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var JSZip = require('jszip');
var JSZip = require('@turbowarp/jszip');

/**
* Unpacks a zip file.
Expand Down
25 changes: 24 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
},
"dependencies": {
"@turbowarp/json": "^0.1.1",
"@turbowarp/jszip": "^3.11.0",
"@turbowarp/sb3fix": "^0.2.0",
"ajv": "6.3.0",
"jszip": "^3.10.1",
"pify": "4.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/comments_sb3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var test = require('tap').test;
var JSZip = require('jszip');
var JSZip = require('@turbowarp/jszip');
var data = require('../fixtures/data');
var parser = require('../../index');

Expand Down
2 changes: 1 addition & 1 deletion test/integration/empty.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var test = require('tap').test;
var JSZip = require('jszip');
var JSZip = require('@turbowarp/jszip');
var data = require('../fixtures/data');
var parser = require('../../index');

Expand Down
2 changes: 1 addition & 1 deletion test/integration/example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var test = require('tap').test;
var JSZip = require('jszip');
var JSZip = require('@turbowarp/jszip');
var data = require('../fixtures/data');
var parser = require('../../index');

Expand Down
2 changes: 1 addition & 1 deletion test/integration/sprites.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var test = require('tap').test;
var JSZip = require('jszip');
var JSZip = require('@turbowarp/jszip');
var data = require('../fixtures/data');
var parser = require('../../index');

Expand Down
2 changes: 1 addition & 1 deletion test/integration/stress.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var test = require('tap').test;
var JSZip = require('jszip');
var JSZip = require('@turbowarp/jszip');
var data = require('../fixtures/data');
var parser = require('../../index');

Expand Down
2 changes: 1 addition & 1 deletion test/unit/unpack.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var fs = require('fs');
var path = require('path');
var test = require('tap').test;
var JSZip = require('jszip');
var JSZip = require('@turbowarp/jszip');
var unpack = require('../../lib/unpack');

var fixtures = {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/unzip.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var fs = require('fs');
var path = require('path');
var test = require('tap').test;
var JSZip = require('jszip');
var JSZip = require('@turbowarp/jszip');
var unzip = require('../../lib/unzip');

var fixtures = {
Expand Down

0 comments on commit 061a5b9

Please sign in to comment.