@almadar/runtime 5.4.0 → 5.4.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.
@@ -1,5 +1,5 @@
1
- import { createLogger, EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, StateMachineManager, createContextFromBindings, validateEventPayload, formatPayloadValidationError, EffectExecutor } from './chunk-62BIUDUH.js';
2
- export { InMemoryPersistence } from './chunk-62BIUDUH.js';
1
+ import { createLogger, EventBus, createUnifiedLoader, MockPersistenceAdapter, InMemoryPersistence, preprocessSchema, StateMachineManager, createContextFromBindings, validateEventPayload, formatPayloadValidationError, EffectExecutor } from './chunk-ADHL7L4X.js';
2
+ export { InMemoryPersistence } from './chunk-ADHL7L4X.js';
3
3
  import './chunk-PZ5AY32C.js';
4
4
  import { Router } from 'express';
5
5
  import * as fs from 'fs';
@@ -1696,8 +1696,10 @@ var MockPersistenceAdapter = class {
1696
1696
  this.config = {
1697
1697
  defaultSeedCount: 6,
1698
1698
  debug: false,
1699
- seed: DEFAULT_MOCK_SEED,
1700
- ...config
1699
+ ...config,
1700
+ // Apply default after spread so an undefined `seed` in the
1701
+ // input doesn't overwrite the default.
1702
+ seed: config.seed ?? DEFAULT_MOCK_SEED
1701
1703
  };
1702
1704
  faker.seed(this.config.seed);
1703
1705
  mockLog.debug("mock:adapter:init", { seed: this.config.seed });
@@ -3412,5 +3414,5 @@ var InMemoryPersistence = class {
3412
3414
  };
3413
3415
 
3414
3416
  export { EffectExecutor, EventBus, HANDLER_MANIFEST, InMemoryPersistence, MockPersistenceAdapter, StateMachineManager, buildEmitsFromTraits, containsBindings, createContextFromBindings, createInitialTraitState, createLogger, createMockPersistence, createTestExecutor, createUnifiedLoader, extractBindings, findInitialState, findTransition, formatPayloadValidationError, getIsolatedCollectionName, getNamespacedEvent, interpolateProps, interpolateValue, isBrowser, isElectron, isNamespacedEvent, isNode, normalizeEventKey, parseNamespacedEvent, preprocessSchema, processEvent, validateEventPayload, validatePayloadShapes };
3415
- //# sourceMappingURL=chunk-62BIUDUH.js.map
3416
- //# sourceMappingURL=chunk-62BIUDUH.js.map
3417
+ //# sourceMappingURL=chunk-ADHL7L4X.js.map
3418
+ //# sourceMappingURL=chunk-ADHL7L4X.js.map