@almadar/runtime 4.6.0 → 4.8.0
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/{OrbitalServerRuntime-DS7Zs5x1.d.ts → OrbitalServerRuntime-B5lfym6T.d.ts} +8 -0
- package/dist/OrbitalServerRuntime.d.ts +1 -1
- package/dist/OrbitalServerRuntime.js +28 -1
- package/dist/OrbitalServerRuntime.js.map +1 -1
- package/dist/{chunk-32BOI7LH.js → chunk-K36736GF.js} +16 -4
- package/dist/chunk-K36736GF.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-32BOI7LH.js.map +0 -1
|
@@ -1070,8 +1070,20 @@ var EffectExecutor = class {
|
|
|
1070
1070
|
emitCfg = this.extractEmitConfig(args[2]);
|
|
1071
1071
|
entityId = typeof entity?.["id"] === "string" ? entity["id"] : void 0;
|
|
1072
1072
|
if (!entityId) {
|
|
1073
|
-
|
|
1074
|
-
|
|
1073
|
+
const payload = this.bindings.payload;
|
|
1074
|
+
const payloadId = payload && typeof payload === "object" && "id" in payload ? payload.id : void 0;
|
|
1075
|
+
if (typeof payloadId === "string") {
|
|
1076
|
+
entityId = payloadId;
|
|
1077
|
+
if (!entity) {
|
|
1078
|
+
this.bindings.entity = { id: payloadId };
|
|
1079
|
+
} else {
|
|
1080
|
+
entity["id"] = payloadId;
|
|
1081
|
+
}
|
|
1082
|
+
effectLog.debug("set:auto-seed-entity-id", { path, id: payloadId });
|
|
1083
|
+
} else {
|
|
1084
|
+
effectLog.warn("set:missing-entity-id", { path });
|
|
1085
|
+
break;
|
|
1086
|
+
}
|
|
1075
1087
|
}
|
|
1076
1088
|
} else {
|
|
1077
1089
|
entityId = args[0];
|
|
@@ -2832,5 +2844,5 @@ function parseNamespacedEvent(eventName) {
|
|
|
2832
2844
|
}
|
|
2833
2845
|
|
|
2834
2846
|
export { EffectExecutor, EventBus, HANDLER_MANIFEST, StateMachineManager, containsBindings, createContextFromBindings, createInitialTraitState, createTestExecutor, createUnifiedLoader, extractBindings, findInitialState, findTransition, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isBrowser, isElectron, isNamespacedEvent, isNode, normalizeEventKey, parseNamespacedEvent, preprocessSchema, processEvent };
|
|
2835
|
-
//# sourceMappingURL=chunk-
|
|
2836
|
-
//# sourceMappingURL=chunk-
|
|
2847
|
+
//# sourceMappingURL=chunk-K36736GF.js.map
|
|
2848
|
+
//# sourceMappingURL=chunk-K36736GF.js.map
|