@aikirun/workflow 0.11.0 → 0.11.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -178,11 +178,12 @@ function set(obj, path, value) {
178
178
  let currentValue = obj;
179
179
  for (let i = 0; i < keys.length - 1; i++) {
180
180
  const key = keys[i];
181
- currentValue = currentValue[key];
182
- if (currentValue === void 0 || currentValue === null) {
183
- currentValue = {};
184
- currentValue[key] = currentValue;
181
+ let nextValue = currentValue[key];
182
+ if (nextValue === void 0 || nextValue === null) {
183
+ nextValue = {};
184
+ currentValue[key] = nextValue;
185
185
  }
186
+ currentValue = nextValue;
186
187
  }
187
188
  const lastKey = keys[keys.length - 1];
188
189
  currentValue[lastKey] = value;
@@ -670,7 +671,7 @@ function createSleeper(handle, logger) {
670
671
  if (!sleepState) {
671
672
  try {
672
673
  await handle[INTERNAL3].transitionState({ status: "sleeping", sleepName, durationMs });
673
- logger.info("Going to sleeping", {
674
+ logger.info("Going to sleep", {
674
675
  "aiki.sleepName": sleepName,
675
676
  "aiki.durationMs": durationMs
676
677
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikirun/workflow",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Workflow SDK for Aiki - define durable workflows with tasks, sleeps, waits, and event handling",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "build": "tsup"
19
19
  },
20
20
  "dependencies": {
21
- "@aikirun/types": "0.11.0",
21
+ "@aikirun/types": "0.11.2",
22
22
  "@standard-schema/spec": "^1.1.0"
23
23
  },
24
24
  "publishConfig": {