@nwire/runtime 0.12.0 → 0.12.1
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/dist/runtime.js +9 -1
- package/package.json +7 -7
package/dist/runtime.js
CHANGED
|
@@ -448,7 +448,15 @@ export class Runtime {
|
|
|
448
448
|
if (this.dispatchCorePinned)
|
|
449
449
|
return;
|
|
450
450
|
this.dispatchHook.use(async (hc, next) => {
|
|
451
|
-
|
|
451
|
+
// A forge app pins its own -Infinity "handler" step on this same
|
|
452
|
+
// chain. The sentinel makes the core invocation idempotent so two
|
|
453
|
+
// -Infinity steps can coexist without running the handler twice;
|
|
454
|
+
// whichever runs first owns the call.
|
|
455
|
+
const g = hc;
|
|
456
|
+
if (!g.__nwireCoreInvoked) {
|
|
457
|
+
g.__nwireCoreInvoked = true;
|
|
458
|
+
hc.result = await hc.coreFn();
|
|
459
|
+
}
|
|
452
460
|
await next();
|
|
453
461
|
}, { name: "__nwire_runtime_core__", priority: Number.NEGATIVE_INFINITY });
|
|
454
462
|
this.dispatchCorePinned = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nwire/runtime",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Nwire — envelope-execution substrate. Dispatch + emit + when + sink + capability registry. Extracted from @nwire/app for 0.11. Standalone usable without the App layer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"capability",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@nwire/
|
|
31
|
-
"@nwire/
|
|
32
|
-
"@nwire/
|
|
33
|
-
"@nwire/
|
|
34
|
-
"@nwire/
|
|
35
|
-
"@nwire/
|
|
30
|
+
"@nwire/container": "0.12.1",
|
|
31
|
+
"@nwire/envelope": "0.12.1",
|
|
32
|
+
"@nwire/handler": "0.12.1",
|
|
33
|
+
"@nwire/hooks": "0.12.1",
|
|
34
|
+
"@nwire/logger": "0.12.1",
|
|
35
|
+
"@nwire/messages": "0.12.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^22.19.9",
|