@almadar/runtime 4.13.0 → 4.13.2
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.
|
@@ -1082,7 +1082,12 @@ var EffectExecutor = class {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
effectLog.debug("set:auto-seed-entity-id", { path, id: payloadId });
|
|
1084
1084
|
} else {
|
|
1085
|
-
effectLog.
|
|
1085
|
+
effectLog.debug("set:in-memory-mirror-only", { path });
|
|
1086
|
+
if (!entity) {
|
|
1087
|
+
this.bindings.entity = {};
|
|
1088
|
+
}
|
|
1089
|
+
this.bindings.entity[field] = value;
|
|
1090
|
+
this.emitSuccess(emitCfg, "success", value);
|
|
1086
1091
|
break;
|
|
1087
1092
|
}
|
|
1088
1093
|
}
|
|
@@ -1093,7 +1098,7 @@ var EffectExecutor = class {
|
|
|
1093
1098
|
emitCfg = this.extractEmitConfig(args[3]);
|
|
1094
1099
|
}
|
|
1095
1100
|
this.handlers.set(entityId, field, value);
|
|
1096
|
-
if (entity && entity["id"] === entityId) {
|
|
1101
|
+
if (entity && (entity["id"] === entityId || !entity["id"])) {
|
|
1097
1102
|
entity[field] = value;
|
|
1098
1103
|
}
|
|
1099
1104
|
this.emitSuccess(emitCfg, "success", value);
|
|
@@ -3189,5 +3194,5 @@ var InMemoryPersistence = class {
|
|
|
3189
3194
|
};
|
|
3190
3195
|
|
|
3191
3196
|
export { EffectExecutor, EventBus, HANDLER_MANIFEST, InMemoryPersistence, MockPersistenceAdapter, StateMachineManager, containsBindings, createContextFromBindings, createInitialTraitState, createMockPersistence, createTestExecutor, createUnifiedLoader, extractBindings, findInitialState, findTransition, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isBrowser, isElectron, isNamespacedEvent, isNode, normalizeEventKey, parseNamespacedEvent, preprocessSchema, processEvent };
|
|
3192
|
-
//# sourceMappingURL=chunk-
|
|
3193
|
-
//# sourceMappingURL=chunk-
|
|
3197
|
+
//# sourceMappingURL=chunk-S5OLFFHT.js.map
|
|
3198
|
+
//# sourceMappingURL=chunk-S5OLFFHT.js.map
|