@inquirer/select 1.2.10 → 1.2.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
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.Separator = void 0;
|
|
4
7
|
const core_1 = require("@inquirer/core");
|
|
5
8
|
Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return core_1.Separator; } });
|
|
6
|
-
const chalk_1 = require("chalk");
|
|
7
|
-
const figures_1 = require("figures");
|
|
8
|
-
const ansi_escapes_1 = require("ansi-escapes");
|
|
9
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
10
|
+
const figures_1 = __importDefault(require("figures"));
|
|
11
|
+
const ansi_escapes_1 = __importDefault(require("ansi-escapes"));
|
|
9
12
|
function isSelectableChoice(choice) {
|
|
10
13
|
return choice != null && !core_1.Separator.isSeparator(choice) && !choice.disabled;
|
|
11
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Separator
|
|
1
|
+
import { Separator } from '@inquirer/core';
|
|
2
2
|
type Choice<Value> = {
|
|
3
3
|
value: Value;
|
|
4
4
|
name?: string;
|
|
@@ -6,7 +6,8 @@ type Choice<Value> = {
|
|
|
6
6
|
disabled?: boolean | string;
|
|
7
7
|
type?: never;
|
|
8
8
|
};
|
|
9
|
-
declare const _default: <Value extends unknown>(config:
|
|
9
|
+
declare const _default: <Value extends unknown>(config: {
|
|
10
|
+
message: string | Promise<string> | (() => Promise<string>);
|
|
10
11
|
choices: readonly (Separator | Choice<Value>)[];
|
|
11
12
|
pageSize?: number | undefined;
|
|
12
13
|
}, context?: import("@inquirer/type").Context | undefined) => import("@inquirer/type").CancelablePromise<Value>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Separator
|
|
1
|
+
import { Separator } from '@inquirer/core';
|
|
2
2
|
type Choice<Value> = {
|
|
3
3
|
value: Value;
|
|
4
4
|
name?: string;
|
|
@@ -6,7 +6,8 @@ type Choice<Value> = {
|
|
|
6
6
|
disabled?: boolean | string;
|
|
7
7
|
type?: never;
|
|
8
8
|
};
|
|
9
|
-
declare const _default: <Value extends unknown>(config:
|
|
9
|
+
declare const _default: <Value extends unknown>(config: {
|
|
10
|
+
message: string | Promise<string> | (() => Promise<string>);
|
|
10
11
|
choices: readonly (Separator | Choice<Value>)[];
|
|
11
12
|
pageSize?: number | undefined;
|
|
12
13
|
}, context?: import("@inquirer/type").Context | undefined) => import("@inquirer/type").CancelablePromise<Value>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/select",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
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": "^
|
|
58
|
-
"@inquirer/type": "^1.1.
|
|
57
|
+
"@inquirer/core": "^5.0.0",
|
|
58
|
+
"@inquirer/type": "^1.1.4",
|
|
59
59
|
"ansi-escapes": "^4.3.2",
|
|
60
60
|
"chalk": "^4.1.2",
|
|
61
61
|
"figures": "^3.2.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@inquirer/testing": "^2.1.
|
|
64
|
+
"@inquirer/testing": "^2.1.6"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "c2d1c5fdfd1029f78351fb04e06f1cfb29d55bb6"
|
|
90
90
|
}
|