@inquirer/expand 2.1.4 → 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 CHANGED
@@ -25,7 +25,7 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
25
25
  const [status, setStatus] = (0, core_1.useState)('pending');
26
26
  const [value, setValue] = (0, core_1.useState)('');
27
27
  const [expanded, setExpanded] = (0, core_1.useState)(defaultExpandState);
28
- const [errorMsg, setError] = (0, core_1.useState)(undefined);
28
+ const [errorMsg, setError] = (0, core_1.useState)();
29
29
  const theme = (0, core_1.makeTheme)(config.theme);
30
30
  const prefix = (0, core_1.usePrefix)({ theme });
31
31
  (0, core_1.useKeypress)((event, rl) => {
@@ -20,7 +20,7 @@ export default createPrompt((config, done) => {
20
20
  const [status, setStatus] = useState('pending');
21
21
  const [value, setValue] = useState('');
22
22
  const [expanded, setExpanded] = useState(defaultExpandState);
23
- const [errorMsg, setError] = useState(undefined);
23
+ const [errorMsg, setError] = useState();
24
24
  const theme = makeTheme(config.theme);
25
25
  const prefix = usePrefix({ theme });
26
26
  useKeypress((event, rl) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/expand",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Inquirer checkbox prompt",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "typings": "./dist/cjs/types/index.d.ts",
@@ -54,12 +54,12 @@
54
54
  "license": "MIT",
55
55
  "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/expand/README.md",
56
56
  "dependencies": {
57
- "@inquirer/core": "^8.0.0",
58
- "@inquirer/type": "^1.3.0",
57
+ "@inquirer/core": "^8.1.0",
58
+ "@inquirer/type": "^1.3.1",
59
59
  "chalk": "^4.1.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@inquirer/testing": "^2.1.17"
62
+ "@inquirer/testing": "^2.1.18"
63
63
  },
64
64
  "scripts": {
65
65
  "tsc": "yarn run tsc:esm && yarn run tsc:cjs",
@@ -85,5 +85,5 @@
85
85
  }
86
86
  }
87
87
  },
88
- "gitHead": "bb5b6b857d227b0fe8fd55951784f03800cdf73c"
88
+ "gitHead": "d0e92901ebb7eb77d027786a2e1ac41fc15326b6"
89
89
  }