@inquirer/demo 0.2.3 → 0.2.4
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/demos/confirm.mjs +4 -4
- package/demos/editor.mjs +2 -2
- package/demos/input.mjs +1 -1
- package/demos/password.mjs +2 -2
- package/package.json +3 -3
package/demos/confirm.mjs
CHANGED
|
@@ -6,7 +6,7 @@ const demo = async () => {
|
|
|
6
6
|
'Answer:',
|
|
7
7
|
await confirm({
|
|
8
8
|
message: 'Confirm?',
|
|
9
|
-
})
|
|
9
|
+
}),
|
|
10
10
|
);
|
|
11
11
|
|
|
12
12
|
console.log(
|
|
@@ -14,7 +14,7 @@ const demo = async () => {
|
|
|
14
14
|
await confirm({
|
|
15
15
|
message: 'Confirm with default to no?',
|
|
16
16
|
default: false,
|
|
17
|
-
})
|
|
17
|
+
}),
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
console.log(
|
|
@@ -22,13 +22,13 @@ const demo = async () => {
|
|
|
22
22
|
await confirm({
|
|
23
23
|
message: 'Confirm with your custom transformer function?',
|
|
24
24
|
transformer: (answer) => (answer ? '👍' : '👎'),
|
|
25
|
-
})
|
|
25
|
+
}),
|
|
26
26
|
);
|
|
27
27
|
|
|
28
28
|
console.log('This next prompt will be cleared on exit');
|
|
29
29
|
console.log(
|
|
30
30
|
'Cleared prompt answer:',
|
|
31
|
-
await confirm({ message: 'Confirm?' }, { clearPromptOnDone: true })
|
|
31
|
+
await confirm({ message: 'Confirm?' }, { clearPromptOnDone: true }),
|
|
32
32
|
);
|
|
33
33
|
};
|
|
34
34
|
|
package/demos/editor.mjs
CHANGED
|
@@ -13,7 +13,7 @@ const demo = async () => {
|
|
|
13
13
|
|
|
14
14
|
return true;
|
|
15
15
|
},
|
|
16
|
-
})
|
|
16
|
+
}),
|
|
17
17
|
);
|
|
18
18
|
|
|
19
19
|
console.log(
|
|
@@ -22,7 +22,7 @@ const demo = async () => {
|
|
|
22
22
|
message: 'Automatically opened editor',
|
|
23
23
|
default: '# This prompt was automatically opened. You can write anything:\n\n',
|
|
24
24
|
waitForUseInput: false,
|
|
25
|
-
})
|
|
25
|
+
}),
|
|
26
26
|
);
|
|
27
27
|
};
|
|
28
28
|
|
package/demos/input.mjs
CHANGED
package/demos/password.mjs
CHANGED
|
@@ -6,7 +6,7 @@ const demo = async () => {
|
|
|
6
6
|
'Answer:',
|
|
7
7
|
await password({
|
|
8
8
|
message: 'Enter a silent password?',
|
|
9
|
-
})
|
|
9
|
+
}),
|
|
10
10
|
);
|
|
11
11
|
|
|
12
12
|
console.log(
|
|
@@ -14,7 +14,7 @@ const demo = async () => {
|
|
|
14
14
|
await password({
|
|
15
15
|
message: 'Enter a masked password?',
|
|
16
16
|
mask: '*',
|
|
17
|
-
})
|
|
17
|
+
}),
|
|
18
18
|
);
|
|
19
19
|
};
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/demo",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.18.0"
|
|
6
6
|
},
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"license": "MIT",
|
|
62
62
|
"homepage": "https://github.com/SBoudrias/Inquirer.js",
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@inquirer/prompts": "^2.3.
|
|
64
|
+
"@inquirer/prompts": "^2.3.1",
|
|
65
65
|
"chalk": "^4.1.2"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "b1b29c0b6da9420d739cd46704c205515de2db04"
|
|
71
71
|
}
|