@inquirer/expand 2.1.11 → 2.1.13

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/README.md CHANGED
@@ -7,12 +7,29 @@ Compact single select prompt. Every option is assigned a shortcut key, and selec
7
7
 
8
8
  # Installation
9
9
 
10
+ <table>
11
+ <tr>
12
+ <th>npm</th>
13
+ <th>yarn</th>
14
+ </tr>
15
+ <tr>
16
+ <td>
17
+
10
18
  ```sh
11
19
  npm install @inquirer/expand
20
+ ```
21
+
22
+ </td>
23
+ <td>
12
24
 
25
+ ```sh
13
26
  yarn add @inquirer/expand
14
27
  ```
15
28
 
29
+ </td>
30
+ </tr>
31
+ </table>
32
+
16
33
  # Usage
17
34
 
18
35
  ```js
package/dist/cjs/index.js CHANGED
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const core_1 = require("@inquirer/core");
7
- const picocolors_1 = __importDefault(require("picocolors"));
7
+ const yoctocolors_cjs_1 = __importDefault(require("yoctocolors-cjs"));
8
8
  const helpChoice = {
9
9
  key: 'h',
10
10
  name: 'Help, list all options',
@@ -46,7 +46,7 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
46
46
  setError('Please input a value');
47
47
  }
48
48
  else {
49
- setError(`"${picocolors_1.default.red(value)}" isn't an available option`);
49
+ setError(`"${yoctocolors_cjs_1.default.red(value)}" isn't an available option`);
50
50
  }
51
51
  }
52
52
  }
@@ -88,7 +88,7 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
88
88
  let helpTip = '';
89
89
  const currentOption = allChoices.find(({ key }) => key === value.toLowerCase());
90
90
  if (currentOption) {
91
- helpTip = `${picocolors_1.default.cyan('>>')} ${getChoiceKey(currentOption, 'name')}`;
91
+ helpTip = `${yoctocolors_cjs_1.default.cyan('>>')} ${getChoiceKey(currentOption, 'name')}`;
92
92
  }
93
93
  let error = '';
94
94
  if (errorMsg) {
@@ -1,5 +1,5 @@
1
1
  import { createPrompt, useState, useKeypress, usePrefix, isEnterKey, makeTheme, } from '@inquirer/core';
2
- import pc from 'picocolors';
2
+ import colors from 'yoctocolors-cjs';
3
3
  const helpChoice = {
4
4
  key: 'h',
5
5
  name: 'Help, list all options',
@@ -41,7 +41,7 @@ export default createPrompt((config, done) => {
41
41
  setError('Please input a value');
42
42
  }
43
43
  else {
44
- setError(`"${pc.red(value)}" isn't an available option`);
44
+ setError(`"${colors.red(value)}" isn't an available option`);
45
45
  }
46
46
  }
47
47
  }
@@ -83,7 +83,7 @@ export default createPrompt((config, done) => {
83
83
  let helpTip = '';
84
84
  const currentOption = allChoices.find(({ key }) => key === value.toLowerCase());
85
85
  if (currentOption) {
86
- helpTip = `${pc.cyan('>>')} ${getChoiceKey(currentOption, 'name')}`;
86
+ helpTip = `${colors.cyan('>>')} ${getChoiceKey(currentOption, 'name')}`;
87
87
  }
88
88
  let error = '';
89
89
  if (errorMsg) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/expand",
3
- "version": "2.1.11",
3
+ "version": "2.1.13",
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.2.4",
58
- "@inquirer/type": "^1.3.3",
59
- "picocolors": "^1.0.1"
57
+ "@inquirer/core": "^9.0.1",
58
+ "@inquirer/type": "^1.4.0",
59
+ "yoctocolors-cjs": "^2.1.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@inquirer/testing": "^2.1.23"
62
+ "@inquirer/testing": "^2.1.25"
63
63
  },
64
64
  "scripts": {
65
65
  "tsc": "yarn run tsc:esm && yarn run tsc:cjs",
@@ -87,5 +87,5 @@
87
87
  }
88
88
  },
89
89
  "sideEffects": false,
90
- "gitHead": "d5f62c6ee3e671f7d1b776b85d43781869d70918"
90
+ "gitHead": "2285f2c043448ff4317635cf6481df7ffda2d3bd"
91
91
  }