Skip to content

Commit 4cf4e24

Browse files
committed
fix: adapt to new scratch-storage@>=3 API
1 parent ec47dee commit 4cf4e24

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/playground/benchmark.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const importLoadSound = require('../import/load-sound');
4343
const soundMiddleware = new LoadingMiddleware();
4444
importLoadSound.loadSound = soundMiddleware.install(importLoadSound, importLoadSound.loadSound);
4545

46-
const ScratchStorage = require('scratch-storage');
46+
const {ScratchStorage} = require('scratch-storage');
4747
const VirtualMachine = require('..');
4848
const Runtime = require('../engine/runtime');
4949

test/fixtures/make-test-storage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ScratchStorage = require('scratch-storage');
1+
const {ScratchStorage} = require('scratch-storage');
22

33
const ASSET_SERVER = 'https://cdn.assets.scratch.mit.edu/';
44
const PROJECT_SERVER = 'https://cdn.projects.scratch.mit.edu/';

test/integration/offline-custom-assets.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const path = require('path');
88
const fs = require('fs');
99
const test = require('tap').test;
1010
const AdmZip = require('adm-zip');
11-
const ScratchStorage = require('scratch-storage');
11+
const {ScratchStorage} = require('scratch-storage');
1212
const VirtualMachine = require('../../src/index');
1313

1414
const projectUri = path.resolve(__dirname, '../fixtures/offline-custom-assets.sb2');

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const playgroundBuilder = webBuilder.clone()
9595
}
9696
})
9797
.addModuleRule({
98-
test: require.resolve('scratch-storage/src/index.js'),
98+
test: require.resolve('scratch-storage/src/index.ts'),
9999
loader: 'expose-loader',
100100
options: {
101101
exposes: 'ScratchStorage'

0 commit comments

Comments
 (0)