@remix_labs/machine-starter 2.2815.0-dev → 2.2819.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 +6 -2
- package/groovebox_build.js +1 -1
- package/package.json +2 -2
package/common.js
CHANGED
|
@@ -66,8 +66,9 @@ async function StartWASM2(hub, config) {
|
|
|
66
66
|
let localFFIs = config.localFFIs || {};
|
|
67
67
|
let mixcore = await getMixcore(config.mixcore);
|
|
68
68
|
if (mixcore) {
|
|
69
|
+
let ffis = await mixcoreLocalFFIs(mixcore, config.mixcore.enableFFIs, config.mixcore.disableFFIs);
|
|
70
|
+
Object.assign(localFFIs, ffis);
|
|
69
71
|
delete config.mixcore;
|
|
70
|
-
await assignMixcoreLocalFFIs(localFFIs, mixcore);
|
|
71
72
|
}
|
|
72
73
|
let localFFIkind = {};
|
|
73
74
|
let localFFIfuns = {};
|
|
@@ -358,14 +359,17 @@ async function getMixcore(config) {
|
|
|
358
359
|
}
|
|
359
360
|
}
|
|
360
361
|
|
|
361
|
-
async function
|
|
362
|
+
async function mixcoreLocalFFIs(mixcore, enableFFIs, disableFFIs) {
|
|
362
363
|
let names = await mixcore.ffiNames();
|
|
364
|
+
names = filterFFINames(names, enableFFIs, disableFFIs);
|
|
365
|
+
let localFFIs = {};
|
|
363
366
|
for (let name of names) {
|
|
364
367
|
localFFIs[name] = {
|
|
365
368
|
isRaw: true,
|
|
366
369
|
run: (conn, argsBuf) => mixcore.ffiDispatch(conn.call_id, name, argsBuf),
|
|
367
370
|
};
|
|
368
371
|
}
|
|
372
|
+
return localFFIs;
|
|
369
373
|
}
|
|
370
374
|
|
|
371
375
|
// use worker.terminate() to shut a worker down!
|
package/groovebox_build.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var GROOVEBOX_BUILD = "
|
|
1
|
+
var GROOVEBOX_BUILD = "3095";
|
|
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.2819.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.2819.0-dev",
|
|
15
15
|
"nanoid": "^5.0.2",
|
|
16
16
|
"web-worker": "^1.2.0"
|
|
17
17
|
},
|