@dudousxd/nestjs-durable-core 0.85.4 → 0.85.5

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/index.cjs CHANGED
@@ -24,6 +24,7 @@ var index_exports = {};
24
24
  __export(index_exports, {
25
25
  CHILD_EDGE_PREFIXES: () => CHILD_EDGE_PREFIXES,
26
26
  CONTROL_FLOW_SIGNAL: () => CONTROL_FLOW_SIGNAL,
27
+ CORE_ORIGIN: () => CORE_ORIGIN,
27
28
  CURRENT_PROTOCOL_VERSION: () => CURRENT_PROTOCOL_VERSION,
28
29
  CodecStateStore: () => CodecStateStore,
29
30
  ConcurrencyLimitError: () => ConcurrencyLimitError,
@@ -1241,6 +1242,9 @@ async function assertConcurrency(store, workflow, quota) {
1241
1242
  }
1242
1243
  __name(assertConcurrency, "assertConcurrency");
1243
1244
 
1245
+ // src/origin.ts
1246
+ var CORE_ORIGIN = "@dudousxd/nestjs-durable-core";
1247
+
1244
1248
  // src/entities.ts
1245
1249
  var NUDGE = {
1246
1250
  nudge: true
@@ -1257,7 +1261,9 @@ var Entities = class {
1257
1261
  constructor(host, workflowHost) {
1258
1262
  this.host = host;
1259
1263
  this.workflowHost = workflowHost;
1260
- host.register(ENTITY_WORKFLOW, "1", (ctx, input) => this.run(ctx, input));
1264
+ host.register(ENTITY_WORKFLOW, "1", (ctx, input) => this.run(ctx, input), {
1265
+ origin: CORE_ORIGIN
1266
+ });
1261
1267
  }
1262
1268
  register(name, config) {
1263
1269
  this.configs.set(name, config);
@@ -1376,8 +1382,12 @@ var EventAccumulators = class {
1376
1382
  host;
1377
1383
  constructor(host) {
1378
1384
  this.host = host;
1379
- host.register("__evt_debounce", "1", (ctx, input) => this.debounce(ctx, input));
1380
- host.register("__evt_batch", "1", (ctx, input) => this.batch(ctx, input));
1385
+ host.register("__evt_debounce", "1", (ctx, input) => this.debounce(ctx, input), {
1386
+ origin: CORE_ORIGIN
1387
+ });
1388
+ host.register("__evt_batch", "1", (ctx, input) => this.batch(ctx, input), {
1389
+ origin: CORE_ORIGIN
1390
+ });
1381
1391
  }
1382
1392
  /** Route an `onEvent` payload into its target's debounce/batch accumulator. */
1383
1393
  route(target, config, payload) {
@@ -12048,6 +12058,7 @@ var InMemoryRunQueue = class {
12048
12058
  0 && (module.exports = {
12049
12059
  CHILD_EDGE_PREFIXES,
12050
12060
  CONTROL_FLOW_SIGNAL,
12061
+ CORE_ORIGIN,
12051
12062
  CURRENT_PROTOCOL_VERSION,
12052
12063
  CodecStateStore,
12053
12064
  ConcurrencyLimitError,