@aikirun/workflow 0.11.0 → 0.11.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.
- package/dist/index.js +5 -4
- 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
|
-
|
|
182
|
-
if (
|
|
183
|
-
|
|
184
|
-
currentValue[key] =
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aikirun/workflow",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
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.
|
|
21
|
+
"@aikirun/types": "0.11.1",
|
|
22
22
|
"@standard-schema/spec": "^1.1.0"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|