@inquirer/rawlist 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
@@ -6,12 +6,29 @@ Simple interactive command line prompt to display a raw list of choices (single
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/rawlist
19
+ ```
20
+
21
+ </td>
22
+ <td>
11
23
 
24
+ ```sh
12
25
  yarn add @inquirer/rawlist
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,7 +5,7 @@ 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 numberRegex = /\d+/;
10
10
  function isSelectableChoice(choice) {
11
11
  return choice != null && !core_1.Separator.isSeparator(choice);
@@ -37,7 +37,7 @@ exports.default = (0, core_1.createPrompt)((config, done) => {
37
37
  setError('Please input a value');
38
38
  }
39
39
  else {
40
- setError(`"${picocolors_1.default.red(value)}" isn't an available option`);
40
+ setError(`"${yoctocolors_cjs_1.default.red(value)}" isn't an available option`);
41
41
  }
42
42
  }
43
43
  else {
@@ -1,5 +1,5 @@
1
1
  import { createPrompt, useState, useKeypress, usePrefix, isEnterKey, Separator, makeTheme, } from '@inquirer/core';
2
- import pc from 'picocolors';
2
+ import colors from 'yoctocolors-cjs';
3
3
  const numberRegex = /\d+/;
4
4
  function isSelectableChoice(choice) {
5
5
  return choice != null && !Separator.isSeparator(choice);
@@ -31,7 +31,7 @@ export default createPrompt((config, done) => {
31
31
  setError('Please input a value');
32
32
  }
33
33
  else {
34
- setError(`"${pc.red(value)}" isn't an available option`);
34
+ setError(`"${colors.red(value)}" isn't an available option`);
35
35
  }
36
36
  }
37
37
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/rawlist",
3
- "version": "2.1.11",
3
+ "version": "2.1.13",
4
4
  "description": "Inquirer rawlist 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/rawlist/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
  }