@aikirun/task 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 +5 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -77,11 +77,12 @@ function set(obj, path, value) {
77
77
  let currentValue = obj;
78
78
  for (let i = 0; i < keys.length - 1; i++) {
79
79
  const key = keys[i];
80
- currentValue = currentValue[key];
81
- if (currentValue === void 0 || currentValue === null) {
82
- currentValue = {};
83
- currentValue[key] = currentValue;
80
+ let nextValue = currentValue[key];
81
+ if (nextValue === void 0 || nextValue === null) {
82
+ nextValue = {};
83
+ currentValue[key] = nextValue;
84
84
  }
85
+ currentValue = nextValue;
85
86
  }
86
87
  const lastKey = keys[keys.length - 1];
87
88
  currentValue[lastKey] = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikirun/task",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Task SDK for Aiki - define reliable tasks with automatic retries, idempotency, and error handling",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,8 +18,8 @@
18
18
  "build": "tsup"
19
19
  },
20
20
  "dependencies": {
21
- "@aikirun/types": "0.11.0",
22
- "@aikirun/workflow": "0.11.0",
21
+ "@aikirun/types": "0.11.2",
22
+ "@aikirun/workflow": "0.11.2",
23
23
  "@standard-schema/spec": "^1.1.0"
24
24
  },
25
25
  "publishConfig": {