@almadar/runtime 5.8.7 → 5.9.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { InMemoryPersistence, OrbitalServerRuntime, collectDeclaredConfigDefaults, createOrbitalServerRuntime } from './chunk-
|
|
1
|
+
export { InMemoryPersistence, OrbitalServerRuntime, collectDeclaredConfigDefaults, createOrbitalServerRuntime } from './chunk-Y26AXU7I.js';
|
|
2
2
|
import './chunk-PZ5AY32C.js';
|
|
3
3
|
//# sourceMappingURL=OrbitalServerRuntime.js.map
|
|
4
4
|
//# sourceMappingURL=OrbitalServerRuntime.js.map
|
|
@@ -4004,6 +4004,29 @@ var OrbitalServerRuntime = class {
|
|
|
4004
4004
|
}
|
|
4005
4005
|
}
|
|
4006
4006
|
}
|
|
4007
|
+
const auxiliaryEntities = orbital.auxiliaryEntities;
|
|
4008
|
+
if (auxiliaryEntities !== void 0 && auxiliaryEntities.length > 0 && this.config.mode === "mock" && this.persistence instanceof MockPersistenceAdapter) {
|
|
4009
|
+
for (const auxRef of auxiliaryEntities) {
|
|
4010
|
+
if (typeof auxRef === "string" || isEntityCall(auxRef)) continue;
|
|
4011
|
+
const auxEntity = auxRef;
|
|
4012
|
+
if (!auxEntity.name || !auxEntity.fields) continue;
|
|
4013
|
+
const auxFields = auxEntity.fields.filter(
|
|
4014
|
+
(f) => typeof f.name === "string" && f.name.length > 0
|
|
4015
|
+
).map((f) => ({
|
|
4016
|
+
name: f.name,
|
|
4017
|
+
type: f.type,
|
|
4018
|
+
required: f.required,
|
|
4019
|
+
values: f.values,
|
|
4020
|
+
default: f.default
|
|
4021
|
+
}));
|
|
4022
|
+
this.persistence.registerEntity({ name: auxEntity.name, fields: auxFields });
|
|
4023
|
+
if (this.config.debug) {
|
|
4024
|
+
console.log(
|
|
4025
|
+
`[OrbitalRuntime] Seeded mock data for auxiliary entity: ${auxEntity.name}, count: ${this.persistence.count(auxEntity.name)}`
|
|
4026
|
+
);
|
|
4027
|
+
}
|
|
4028
|
+
}
|
|
4029
|
+
}
|
|
4007
4030
|
if (this.config.debug) {
|
|
4008
4031
|
console.log(
|
|
4009
4032
|
`[OrbitalRuntime] Registered orbital: ${orbital.name} with ${(orbital.traits || []).length} trait(s)`
|
|
@@ -5301,5 +5324,5 @@ function buildMatcher(src, listenerOrbital) {
|
|
|
5301
5324
|
}
|
|
5302
5325
|
|
|
5303
5326
|
export { EffectExecutor, EventBus, HANDLER_MANIFEST, InMemoryPersistence, MockPersistenceAdapter, OrbitalServerRuntime, StateMachineManager, buildEmitsFromTraits, collectDeclaredConfigDefaults, containsBindings, createContextFromBindings, createInitialTraitState, createLogger, createMockPersistence, createOrbitalServerRuntime, createTestExecutor, createUnifiedLoader, extractBindings, findInitialState, findTransition, formatPayloadValidationError, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isBrowser, isElectron, isNamespacedEvent, isNode, normalizeEventKey, parseNamespacedEvent, preprocessSchema, processEvent, validateEventPayload, validatePayloadShapes };
|
|
5304
|
-
//# sourceMappingURL=chunk-
|
|
5305
|
-
//# sourceMappingURL=chunk-
|
|
5327
|
+
//# sourceMappingURL=chunk-Y26AXU7I.js.map
|
|
5328
|
+
//# sourceMappingURL=chunk-Y26AXU7I.js.map
|