Skip to content

Commit

Permalink
fix: adapt to new scratch-storage@>=3 API
Browse files Browse the repository at this point in the history
  • Loading branch information
cwillisf committed Jan 2, 2025
1 parent ec47dee commit 4cf4e24
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/playground/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const importLoadSound = require('../import/load-sound');
const soundMiddleware = new LoadingMiddleware();
importLoadSound.loadSound = soundMiddleware.install(importLoadSound, importLoadSound.loadSound);

const ScratchStorage = require('scratch-storage');
const {ScratchStorage} = require('scratch-storage');
const VirtualMachine = require('..');
const Runtime = require('../engine/runtime');

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/make-test-storage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const ScratchStorage = require('scratch-storage');
const {ScratchStorage} = require('scratch-storage');

const ASSET_SERVER = 'https://cdn.assets.scratch.mit.edu/';
const PROJECT_SERVER = 'https://cdn.projects.scratch.mit.edu/';
Expand Down
2 changes: 1 addition & 1 deletion test/integration/offline-custom-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const path = require('path');
const fs = require('fs');
const test = require('tap').test;
const AdmZip = require('adm-zip');
const ScratchStorage = require('scratch-storage');
const {ScratchStorage} = require('scratch-storage');
const VirtualMachine = require('../../src/index');

const projectUri = path.resolve(__dirname, '../fixtures/offline-custom-assets.sb2');
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const playgroundBuilder = webBuilder.clone()
}
})
.addModuleRule({
test: require.resolve('scratch-storage/src/index.js'),
test: require.resolve('scratch-storage/src/index.ts'),
loader: 'expose-loader',
options: {
exposes: 'ScratchStorage'
Expand Down

0 comments on commit 4cf4e24

Please sign in to comment.