@inquirer/expand 2.1.9 → 2.1.11

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
@@ -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 chalk_1 = __importDefault(require("chalk"));
7
+ const picocolors_1 = __importDefault(require("picocolors"));
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(`"${chalk_1.default.red(value)}" isn't an available option`);
49
+ setError(`"${picocolors_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 = `${chalk_1.default.cyan('>>')} ${getChoiceKey(currentOption, 'name')}`;
91
+ helpTip = `${picocolors_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 chalk from 'chalk';
2
+ import pc from 'picocolors';
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(`"${chalk.red(value)}" isn't an available option`);
44
+ setError(`"${pc.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 = `${chalk.cyan('>>')} ${getChoiceKey(currentOption, 'name')}`;
86
+ helpTip = `${pc.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.9",
3
+ "version": "2.1.11",
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.2",
57
+ "@inquirer/core": "^8.2.4",
58
58
  "@inquirer/type": "^1.3.3",
59
- "chalk": "^4.1.2"
59
+ "picocolors": "^1.0.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@inquirer/testing": "^2.1.21"
62
+ "@inquirer/testing": "^2.1.23"
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": "209b4ce30fe71f8e2f0e066a1a98e385eecb15f4"
90
+ "gitHead": "d5f62c6ee3e671f7d1b776b85d43781869d70918"
91
91
  }