Skip to content

Commit

Permalink
Replace jszip with @turbowarp/jszip
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed May 20, 2024
1 parent 9763097 commit d69256a
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 51 deletions.
45 changes: 1 addition & 44 deletions 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 @@ -35,6 +35,7 @@
},
"dependencies": {
"@turbowarp/json": "^0.1.2",
"@turbowarp/jszip": "^3.11.0",
"@turbowarp/nanolog": "^0.2.0",
"@vernier/godirect": "1.5.0",
"arraybuffer-loader": "^1.0.6",
Expand All @@ -46,7 +47,6 @@
"format-message": "6.2.1",
"htmlparser2": "3.10.0",
"immutable": "3.8.2",
"jszip": "^3.1.5",
"scratch-parser": "github:TurboWarp/scratch-parser#master",
"scratch-sb1-converter": "0.2.7",
"scratch-translate-extension-languages": "0.0.20191118205314",
Expand Down
2 changes: 1 addition & 1 deletion src/serialization/deserialize-assets.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const JSZip = require('jszip');
const JSZip = require('@turbowarp/jszip');
const log = require('../util/log');

/**
Expand Down
2 changes: 1 addition & 1 deletion src/virtual-machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (typeof TextEncoder === 'undefined') {
_TextEncoder = TextEncoder;
}
const EventEmitter = require('events');
const JSZip = require('jszip');
const JSZip = require('@turbowarp/jszip');

const Buffer = require('buffer').Buffer;
const centralDispatch = require('./dispatch/central-dispatch');
Expand Down
2 changes: 1 addition & 1 deletion test/integration/tw_save_project_sb3.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs');
const pathUtil = require('path');
const VirtualMachine = require('../../src/virtual-machine');
const makeTestStorage = require('../fixtures/make-test-storage');
const JSZip = require('jszip');
const JSZip = require('@turbowarp/jszip');

const fixture = fs.readFileSync(pathUtil.join(__dirname, '..', 'fixtures', 'tw-save-project-sb3.sb3'));

Expand Down
2 changes: 1 addition & 1 deletion test/integration/tw_serialize_asset_order.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const path = require('path');
const {test} = require('tap');
const JSZip = require('jszip');
const JSZip = require('@turbowarp/jszip');
const VM = require('../../src/virtual-machine');
const makeTestStorage = require('../fixtures/make-test-storage');

Expand Down
2 changes: 1 addition & 1 deletion test/unit/tw_asset_util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const {test} = require('tap');
const JSZip = require('jszip');
const JSZip = require('@turbowarp/jszip');
const makeTestStorage = require('../fixtures/make-test-storage');
const AssetUtil = require('../../src/util/tw-asset-util');
const Runtime = require('../../src/engine/runtime');
Expand Down
1 change: 0 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ module.exports = [
'format-message': true,
'htmlparser2': true,
'immutable': true,
'jszip': true,
'scratch-parser': true,
'socket.io-client': true,
'text-encoding': true
Expand Down

0 comments on commit d69256a

Please sign in to comment.