caique 0.3.0 → 0.3.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/binding.js +2 -2
- package/package.json +2 -2
package/dist/binding.js
CHANGED
|
@@ -23,14 +23,14 @@ export async function resolvePrompts({ options, values, runtime, flags, io }) {
|
|
|
23
23
|
if (verdict.action === 'skip')
|
|
24
24
|
continue;
|
|
25
25
|
if (verdict.action === 'answer') {
|
|
26
|
-
out
|
|
26
|
+
Object.defineProperty(out, option, { value: verdict.value, writable: true, enumerable: true, configurable: true });
|
|
27
27
|
continue;
|
|
28
28
|
}
|
|
29
29
|
const answer = await ask(prompt, io);
|
|
30
30
|
if (!answer.ok) {
|
|
31
31
|
return { values: out, failure: { option, code: 'CANCELLED', message: `cancelled at --${option}`, fix: `pass --${option} to skip the question` } };
|
|
32
32
|
}
|
|
33
|
-
out
|
|
33
|
+
Object.defineProperty(out, option, { value: answer.value, writable: true, enumerable: true, configurable: true });
|
|
34
34
|
}
|
|
35
35
|
return { values: out };
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "caique",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "The parrot that always answers back, and the boat that goes between ship and shore. Prompts that are flags first, so agents answer before they are asked and non-TTY callers get an error naming the flag, never a hang. Drop-in path for inquirer and clack.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -97,6 +97,6 @@
|
|
|
97
97
|
"linegauge": "^0.3.1"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"vitest": "^5.0.
|
|
100
|
+
"vitest": "^5.0.1"
|
|
101
101
|
}
|
|
102
102
|
}
|