@remix_labs/machine-starter 2.3330.0-dev → 2.3334.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/common.js +2 -3
- package/groovebox_build.js +1 -1
- package/package.json +2 -2
- package/start.js +8 -9
package/common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GROOVEBOX_BUILD } from "./groovebox_build.js";
|
|
2
2
|
import { nanoid } from "nanoid";
|
|
3
|
-
import {
|
|
3
|
+
import { createMixcoreStarterFFIs } from "./mixcore-groovebox-starter.lib.mjs";
|
|
4
4
|
|
|
5
5
|
const DEBUG_STATE = 4;
|
|
6
6
|
|
|
@@ -126,9 +126,8 @@ async function StartWASM2(hub, config) {
|
|
|
126
126
|
let starterFFIs = config.localFFIs || {};
|
|
127
127
|
// from now on, the "local" FFIs are called "starter" FFIs, because this
|
|
128
128
|
// distinguishes these from other locally defined FFIs
|
|
129
|
-
let mixcoreFFIs = await
|
|
129
|
+
let mixcoreFFIs = await createMixcoreStarterFFIs(config.mixcore);
|
|
130
130
|
if (mixcoreFFIs) {
|
|
131
|
-
console.log("[machine-starter] mixcore FFIs", Object.keys(mixcoreFFIs));
|
|
132
131
|
// merge the ffis and store them back into the config so sub vms also get them
|
|
133
132
|
config.localFFIs = Object.assign(starterFFIs, mixcoreFFIs);
|
|
134
133
|
// delete the mixcore config to avoid being handled further by the worker
|
package/groovebox_build.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var GROOVEBOX_BUILD = "
|
|
1
|
+
var GROOVEBOX_BUILD = "3334";
|
|
2
2
|
export { GROOVEBOX_BUILD }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix_labs/machine-starter",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3334.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.3334.0-dev",
|
|
15
15
|
"nanoid": "^5.0.2",
|
|
16
16
|
"web-worker": "^1.2.0"
|
|
17
17
|
},
|
package/start.js
CHANGED
|
@@ -32,16 +32,15 @@ let noOutputViaMQTT = Process.env["MIX_MQTT_NO_OUTPUT"] !== undefined;
|
|
|
32
32
|
console.log("Machine params: variant=" + variant + " baseURL=" + baseURL, " mqttURL=" + mqttURL, " mqttUser=" + mqttUser, " mqttToken=" + mqttToken, " id=" + id, " noOutputViaMQTT=" + noOutputViaMQTT);
|
|
33
33
|
let w = new Hub.Worker();
|
|
34
34
|
globalThis.GROOVEBOX_ALLOW_INSECURE_HTTP = true;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
let
|
|
40
|
-
let mixcoreWasmUrl =
|
|
41
|
-
|
|
42
|
-
);
|
|
35
|
+
|
|
36
|
+
// Node does not support blob (for dynamic import?), results in error:
|
|
37
|
+
// [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and
|
|
38
|
+
// node are supported by the default ESM loader. Received protocol 'blob:'
|
|
39
|
+
let mixcoreJsUrl = "data:text/javascript;base64," + mixcoreJsBase64;
|
|
40
|
+
let mixcoreWasmUrl = "data:application/wasm;base64," + mixcoreWasmBase64;
|
|
41
|
+
|
|
43
42
|
let mixcore = {
|
|
44
|
-
kind: "wasm
|
|
43
|
+
kind: "wasm",
|
|
45
44
|
mixcoreJsUrl,
|
|
46
45
|
mixcoreWasmUrl,
|
|
47
46
|
dbDir: "/databases",
|