@inquirer/input 2.1.5 → 2.1.6
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/cjs/index.js +1 -1
- package/dist/esm/index.mjs +1 -1
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -15,7 +15,7 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
|
|
|
15
15
|
const theme = (0, core_1.makeTheme)(config.theme);
|
|
16
16
|
const [status, setStatus] = (0, core_1.useState)('pending');
|
|
17
17
|
const [defaultValue = '', setDefaultValue] = (0, core_1.useState)(config.default);
|
|
18
|
-
const [errorMsg, setError] = (0, core_1.useState)(
|
|
18
|
+
const [errorMsg, setError] = (0, core_1.useState)();
|
|
19
19
|
const [value, setValue] = (0, core_1.useState)('');
|
|
20
20
|
const isLoading = status === 'loading';
|
|
21
21
|
const prefix = (0, core_1.usePrefix)({ isLoading, theme });
|
package/dist/esm/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ export default createPrompt((config, done) => {
|
|
|
4
4
|
const theme = makeTheme(config.theme);
|
|
5
5
|
const [status, setStatus] = useState('pending');
|
|
6
6
|
const [defaultValue = '', setDefaultValue] = useState(config.default);
|
|
7
|
-
const [errorMsg, setError] = useState(
|
|
7
|
+
const [errorMsg, setError] = useState();
|
|
8
8
|
const [value, setValue] = useState('');
|
|
9
9
|
const isLoading = status === 'loading';
|
|
10
10
|
const prefix = usePrefix({ isLoading, theme });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/input",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Inquirer input text prompt",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"typings": "./dist/cjs/types/index.d.ts",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"license": "MIT",
|
|
55
55
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/input/README.md",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@inquirer/core": "^8.0
|
|
58
|
-
"@inquirer/type": "^1.3.
|
|
57
|
+
"@inquirer/core": "^8.1.0",
|
|
58
|
+
"@inquirer/type": "^1.3.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@inquirer/testing": "^2.1.
|
|
61
|
+
"@inquirer/testing": "^2.1.18"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "d0e92901ebb7eb77d027786a2e1ac41fc15326b6"
|
|
88
88
|
}
|