@aikirun/worker 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 +4 -4
package/dist/index.js CHANGED
@@ -35,11 +35,12 @@ function set(obj, path, value) {
35
35
  let currentValue = obj;
36
36
  for (let i = 0; i < keys.length - 1; i++) {
37
37
  const key = keys[i];
38
- currentValue = currentValue[key];
39
- if (currentValue === void 0 || currentValue === null) {
40
- currentValue = {};
41
- currentValue[key] = currentValue;
38
+ let nextValue = currentValue[key];
39
+ if (nextValue === void 0 || nextValue === null) {
40
+ nextValue = {};
41
+ currentValue[key] = nextValue;
42
42
  }
43
+ currentValue = nextValue;
43
44
  }
44
45
  const lastKey = keys[keys.length - 1];
45
46
  currentValue[lastKey] = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikirun/worker",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Worker SDK for Aiki - execute workflows and tasks with durable state management and automatic recovery",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,9 +18,9 @@
18
18
  "build": "tsup"
19
19
  },
20
20
  "dependencies": {
21
- "@aikirun/types": "0.11.0",
22
- "@aikirun/client": "0.11.0",
23
- "@aikirun/workflow": "0.11.0"
21
+ "@aikirun/types": "0.11.2",
22
+ "@aikirun/client": "0.11.2",
23
+ "@aikirun/workflow": "0.11.2"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"