@listr2/prompt-adapter-inquirer 3.0.4 → 4.0.0
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/index.cjs +0 -24
- package/dist/index.d.cts +6 -6
- package/dist/{index.d.ts → index.d.mts} +6 -6
- package/package.json +13 -13
- /package/dist/{index.js → index.mjs} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
-
key = keys[i];
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
-
get: ((k) => from[k]).bind(null, key),
|
|
13
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
-
value: mod,
|
|
20
|
-
enumerable: true
|
|
21
|
-
}) : target, mod));
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
1
|
let listr2 = require("listr2");
|
|
25
|
-
listr2 = __toESM(listr2);
|
|
26
2
|
|
|
27
3
|
//#region src/prompt.ts
|
|
28
4
|
var ListrInquirerPromptAdapter = class extends listr2.ListrPromptAdapter {
|
package/dist/index.d.cts
CHANGED
|
@@ -6,16 +6,16 @@ declare class ListrInquirerPromptAdapter extends ListrPromptAdapter {
|
|
|
6
6
|
private prompt;
|
|
7
7
|
private signal;
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
* Get the current running instance of `inquirer`.
|
|
10
|
+
*/
|
|
11
11
|
get instance(): Promise<any>;
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
* Create a new prompt with `inquirer`.
|
|
14
|
+
*/
|
|
15
15
|
run<T extends Prompt<any, any> = Prompt<any, any>>(prompt: T, ...[config, context]: Parameters<T>): Promise<ReturnType<T>>;
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* Cancel the ongoing prompt.
|
|
18
|
+
*/
|
|
19
19
|
cancel(): void;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
@@ -6,16 +6,16 @@ declare class ListrInquirerPromptAdapter extends ListrPromptAdapter {
|
|
|
6
6
|
private prompt;
|
|
7
7
|
private signal;
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
* Get the current running instance of `inquirer`.
|
|
10
|
+
*/
|
|
11
11
|
get instance(): Promise<any>;
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
* Create a new prompt with `inquirer`.
|
|
14
|
+
*/
|
|
15
15
|
run<T extends Prompt<any, any> = Prompt<any, any>>(prompt: T, ...[config, context]: Parameters<T>): Promise<ReturnType<T>>;
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* Cancel the ongoing prompt.
|
|
18
|
+
*/
|
|
19
19
|
cancel(): void;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@listr2/prompt-adapter-inquirer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Listr2 prompt adapter for inquirer.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/listr2/listr2",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/index.cjs",
|
|
9
|
-
"module": "./dist/index.
|
|
10
|
-
"types": "./dist/index.d.
|
|
9
|
+
"module": "./dist/index.mjs",
|
|
10
|
+
"types": "./dist/index.d.cts",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"require": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"default": "./dist/index.cjs"
|
|
16
16
|
},
|
|
17
17
|
"import": {
|
|
18
|
-
"types": "./dist/index.d.
|
|
19
|
-
"default": "./dist/index.
|
|
18
|
+
"types": "./dist/index.d.mts",
|
|
19
|
+
"default": "./dist/index.mjs"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"./package.json": "./package.json"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
33
|
+
"node": ">=22.0.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsdown",
|
|
@@ -70,16 +70,16 @@
|
|
|
70
70
|
"idle"
|
|
71
71
|
],
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@inquirer/type": "^
|
|
73
|
+
"@inquirer/type": "^4.0.3"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@inquirer/core": "^
|
|
77
|
-
"@inquirer/input": "^
|
|
78
|
-
"@inquirer/prompts": "^
|
|
79
|
-
"listr2": "
|
|
76
|
+
"@inquirer/core": "^11.1.1",
|
|
77
|
+
"@inquirer/input": "^5.0.4",
|
|
78
|
+
"@inquirer/prompts": "^8.2.0",
|
|
79
|
+
"listr2": "10.0.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@inquirer/prompts": ">= 3 <
|
|
83
|
-
"listr2": "
|
|
82
|
+
"@inquirer/prompts": ">= 3 < 9",
|
|
83
|
+
"listr2": "10.0.0"
|
|
84
84
|
}
|
|
85
85
|
}
|
|
File without changes
|