@inquirer/demo 0.6.0 → 0.6.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/demos/input.mjs +2 -3
- package/package.json +5 -5
package/demos/input.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as url from 'node:url';
|
|
2
|
-
import
|
|
2
|
+
import pc from 'picocolors';
|
|
3
3
|
import { input } from '@inquirer/prompts';
|
|
4
4
|
|
|
5
5
|
const hexRegEx = /(\d|[a-f])/gim;
|
|
@@ -19,8 +19,7 @@ const demo = async () => {
|
|
|
19
19
|
answer = await input({
|
|
20
20
|
message: 'Enter an hex color?',
|
|
21
21
|
transformer(value = '', { isFinal }) {
|
|
22
|
-
|
|
23
|
-
return isFinal ? color.underline(value) : color(value);
|
|
22
|
+
return isFinal ? pc.underline(value) : value;
|
|
24
23
|
},
|
|
25
24
|
validate: (value = '') => isHex(value) || 'Pass a valid hex value',
|
|
26
25
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/demo",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=18"
|
|
6
6
|
},
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"license": "MIT",
|
|
62
62
|
"homepage": "https://github.com/SBoudrias/Inquirer.js",
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@inquirer/core": "^8.2.
|
|
65
|
-
"@inquirer/prompts": "^5.0.
|
|
66
|
-
"
|
|
64
|
+
"@inquirer/core": "^8.2.4",
|
|
65
|
+
"@inquirer/prompts": "^5.0.7",
|
|
66
|
+
"picocolors": "^1.0.1"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
71
|
"sideEffects": false,
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "d5f62c6ee3e671f7d1b776b85d43781869d70918"
|
|
73
73
|
}
|