@zapier/kitcore 0.5.0 → 0.5.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/CHANGELOG.md +6 -0
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @zapier/kitcore
|
|
2
2
|
|
|
3
|
+
## 0.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c398f14: A caller-provided parameter is now used exactly as given: `controller.resolve()` and `controller.start()` settle seeded input up front, so the resolution walk no longer descends into provided objects or arrays and only asks for parameters the caller left out.
|
|
8
|
+
|
|
3
9
|
## 0.5.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -3357,12 +3357,16 @@ async function advance(ctx, state) {
|
|
|
3357
3357
|
}
|
|
3358
3358
|
}
|
|
3359
3359
|
async function start(ctx, input = {}, interactive = true) {
|
|
3360
|
-
|
|
3360
|
+
const state = {
|
|
3361
3361
|
method: ctx.method,
|
|
3362
3362
|
resolved: { ...input },
|
|
3363
3363
|
settled: [],
|
|
3364
3364
|
interactive
|
|
3365
|
-
}
|
|
3365
|
+
};
|
|
3366
|
+
for (const [name, value] of Object.entries(input)) {
|
|
3367
|
+
if (value !== void 0) settle(state, [name]);
|
|
3368
|
+
}
|
|
3369
|
+
return advance(ctx, state);
|
|
3366
3370
|
}
|
|
3367
3371
|
async function step(ctx, prior, action) {
|
|
3368
3372
|
const state = clone(prior);
|