@remix_labs/machine-starter 2.3262.0-dev → 2.3267.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 +4 -4
- package/groovebox_build.js +1 -1
- package/node.js +4 -0
- package/package.json +2 -2
- package/webpack.config.js +4 -0
package/common.js
CHANGED
|
@@ -359,7 +359,7 @@ async function localFFIsMessageLoop(hub, config, localFFIs, terminate) {
|
|
|
359
359
|
return;
|
|
360
360
|
}
|
|
361
361
|
let name = msg.payload.name;
|
|
362
|
-
let call_id = msg.payload.
|
|
362
|
+
let call_id = msg.payload.callID;
|
|
363
363
|
let args = decode(msg.payload.args);
|
|
364
364
|
let fun = localFFIs[name];
|
|
365
365
|
if (initialMask & DEBUG_STATE)
|
|
@@ -435,14 +435,14 @@ class FFIComm {
|
|
|
435
435
|
}
|
|
436
436
|
later(call_id) {
|
|
437
437
|
let r_payload =
|
|
438
|
-
{
|
|
438
|
+
{ callID: call_id,
|
|
439
439
|
};
|
|
440
440
|
let response = this.hub.newLocalMessage("msg_ffi_later", "starter", r_payload);
|
|
441
441
|
return this.channel.publish("/local/" + this.vmID + "/ffi/return", response, false);
|
|
442
442
|
}
|
|
443
443
|
return_(fun, call_id, result) {
|
|
444
444
|
let r_payload =
|
|
445
|
-
{
|
|
445
|
+
{ callID: call_id,
|
|
446
446
|
value: fun.useJsonDecoder ? result : encode(result)
|
|
447
447
|
};
|
|
448
448
|
let response = this.hub.newLocalMessage("msg_ffi_return", "starter", r_payload);
|
|
@@ -450,7 +450,7 @@ class FFIComm {
|
|
|
450
450
|
}
|
|
451
451
|
error(call_id, message, stack) {
|
|
452
452
|
let r_payload =
|
|
453
|
-
{
|
|
453
|
+
{ callID: call_id,
|
|
454
454
|
message: message,
|
|
455
455
|
stack: stack === undefined ? [] : stack,
|
|
456
456
|
};
|
package/groovebox_build.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var GROOVEBOX_BUILD = "
|
|
1
|
+
var GROOVEBOX_BUILD = "3267";
|
|
2
2
|
export { GROOVEBOX_BUILD }
|
package/node.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import Process from "process";
|
|
2
|
+
import Console from "console"
|
|
2
3
|
globalThis.Process = Process;
|
|
4
|
+
globalThis.console = new Console.Console({stdout: process.stderr, stderr: process.stderr });
|
|
5
|
+
// redirect stdout to stderr to avoid that log messages appear in the wrong
|
|
6
|
+
// order
|
|
3
7
|
|
|
4
8
|
// NB: The only way I've made this work in node+webpack is if:
|
|
5
9
|
//
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix_labs/machine-starter",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3267.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.3267.0-dev",
|
|
15
15
|
"nanoid": "^5.0.2",
|
|
16
16
|
"web-worker": "^1.2.0"
|
|
17
17
|
},
|
package/webpack.config.js
CHANGED