@remix_labs/machine-starter 2.2275.0-dev → 2.2279.0-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/groovebox_build.js +1 -1
- package/machine-wasm.worker.js +1 -1
- package/package.json +2 -2
- package/start.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix_labs/machine-starter",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2279.0-dev",
|
|
4
4
|
"description": "start the groove",
|
|
5
5
|
"main": "node.js",
|
|
6
6
|
"browser": "index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"author": "Remixlabs staff",
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@remix_labs/hub-client": "2.
|
|
14
|
+
"@remix_labs/hub-client": "2.2279.0-dev",
|
|
15
15
|
"nanoid": "^5.0.2",
|
|
16
16
|
"web-worker": "^1.2.0"
|
|
17
17
|
},
|
package/start.js
CHANGED
|
@@ -47,14 +47,15 @@ let wasm_base = Process.env["MIX_WASM_BASE"] || "file://" + protoquery + "/wasm-
|
|
|
47
47
|
let w = new Hub.Worker();
|
|
48
48
|
globalThis.GROOVEBOX_ALLOW_INSECURE_HTTP = true;
|
|
49
49
|
|
|
50
|
+
let DB_DIR = "db";
|
|
50
51
|
let wasi = new WASI([], [], [
|
|
51
52
|
new File([]),
|
|
52
53
|
ConsoleStdout.lineBuffered(msg => console.log(`[WASI stdout] ${msg}`)),
|
|
53
54
|
ConsoleStdout.lineBuffered(msg => console.warn(`[WASI stderr] ${msg}`)),
|
|
54
|
-
new PreopenDirectory(".", {
|
|
55
|
+
new PreopenDirectory(".", {[DB_DIR]: new Directory({})}),
|
|
55
56
|
]);
|
|
56
57
|
MixcoreWasmApi.create(mixcoreWasm, wasi).then(mixcoreWasmApi => {
|
|
57
|
-
let mixcore = MixcoreWasm.create(
|
|
58
|
+
let mixcore = MixcoreWasm.create(DB_DIR, "compiler-testing", "test@user", mixcoreWasmApi);
|
|
58
59
|
let mixcoreConfig = { kind: "mixcore", mixcore };
|
|
59
60
|
w.configure({wsURL: mqttURL, user:mqttUser, token:mqttToken}).then(resp => {
|
|
60
61
|
if (variant == "BYTE") variant = "QCODE";
|