Update demos

This commit is contained in:
Thomas Weber committed 2021-12-12 11:25:44 -06:00
1 parent 79a4b2ce44
commit 4e858bc691
2 files changed
+5 -1

No files matched your search

+2
View File
@@ -2,6 +2,8 @@ const fs = require('fs');
const path = require('path');
const fetch = require('cross-fetch').default;
// You should use require('@turbowarp/packager') instead
// We use a strange require() in this demo because we use this to test the API internally
const Packager = require('../dist/packager');
const run = async () => {
+3 -1
View File
@@ -2,7 +2,9 @@ const fs = require('fs');
const path = require('path');
const fetch = require('cross-fetch').default;
const Packager = require('../dist/packager');
// You should use require('@turbowarp/packager') instead
// We use a strange require() in this demo because we use this to test the API internally
const Packager = require('@turbowarp/packger');
const run = async () => {
const projectData = await (await fetch('https://projects.scratch.mit.edu/1')).arrayBuffer();