@inquirer/select 2.3.7 → 2.3.9

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
@@ -6,12 +6,29 @@ Simple interactive command line prompt to display a list of choices (single sele
6
6
 
7
7
  # Installation
8
8
 
9
+ <table>
10
+ <tr>
11
+ <th>npm</th>
12
+ <th>yarn</th>
13
+ </tr>
14
+ <tr>
15
+ <td>
16
+
9
17
  ```sh
10
18
  npm install @inquirer/select
19
+ ```
20
+
21
+ </td>
22
+ <td>
11
23
 
24
+ ```sh
12
25
  yarn add @inquirer/select
13
26
  ```
14
27
 
28
+ </td>
29
+ </tr>
30
+ </table>
31
+
15
32
  # Usage
16
33
 
17
34
  ```js
package/dist/cjs/index.js CHANGED
@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Separator = void 0;
7
7
  const core_1 = require("@inquirer/core");
8
- const picocolors_1 = __importDefault(require("picocolors"));
8
+ const yoctocolors_cjs_1 = __importDefault(require("yoctocolors-cjs"));
9
9
  const figures_1 = __importDefault(require("@inquirer/figures"));
10
10
  const ansi_escapes_1 = __importDefault(require("ansi-escapes"));
11
11
  const selectTheme = {
12
12
  icon: { cursor: figures_1.default.pointer },
13
- style: { disabled: (text) => picocolors_1.default.dim(`- ${text}`) },
13
+ style: { disabled: (text) => yoctocolors_cjs_1.default.dim(`- ${text}`) },
14
14
  helpMode: 'auto',
15
15
  };
16
16
  function isSelectable(item) {
@@ -1,10 +1,10 @@
1
1
  import { createPrompt, useState, useKeypress, usePrefix, usePagination, useRef, useMemo, isBackspaceKey, isEnterKey, isUpKey, isDownKey, isNumberKey, Separator, ValidationError, makeTheme, } from '@inquirer/core';
2
- import pc from 'picocolors';
2
+ import colors from 'yoctocolors-cjs';
3
3
  import figures from '@inquirer/figures';
4
4
  import ansiEscapes from 'ansi-escapes';
5
5
  const selectTheme = {
6
6
  icon: { cursor: figures.pointer },
7
- style: { disabled: (text) => pc.dim(`- ${text}`) },
7
+ style: { disabled: (text) => colors.dim(`- ${text}`) },
8
8
  helpMode: 'auto',
9
9
  };
10
10
  function isSelectable(item) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/select",
3
- "version": "2.3.7",
3
+ "version": "2.3.9",
4
4
  "description": "Inquirer select/list prompt",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "typings": "./dist/cjs/types/index.d.ts",
@@ -54,14 +54,14 @@
54
54
  "license": "MIT",
55
55
  "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/select/README.md",
56
56
  "dependencies": {
57
- "@inquirer/core": "^8.2.4",
57
+ "@inquirer/core": "^9.0.1",
58
58
  "@inquirer/figures": "^1.0.3",
59
- "@inquirer/type": "^1.3.3",
59
+ "@inquirer/type": "^1.4.0",
60
60
  "ansi-escapes": "^4.3.2",
61
- "picocolors": "^1.0.1"
61
+ "yoctocolors-cjs": "^2.1.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@inquirer/testing": "^2.1.23"
64
+ "@inquirer/testing": "^2.1.25"
65
65
  },
66
66
  "scripts": {
67
67
  "tsc": "yarn run tsc:esm && yarn run tsc:cjs",
@@ -89,5 +89,5 @@
89
89
  }
90
90
  },
91
91
  "sideEffects": false,
92
- "gitHead": "d5f62c6ee3e671f7d1b776b85d43781869d70918"
92
+ "gitHead": "2285f2c043448ff4317635cf6481df7ffda2d3bd"
93
93
  }