@depup/inquirer 14.0.2-depup.23 → 14.2.0-depup.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/README.md +2 -2
- package/changes.json +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -1
- package/dist/types.d.ts +3 -3
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/inquirer
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [inquirer](https://www.npmjs.com/package/inquirer) @ 14.0
|
|
17
|
-
| Processed | 2026-
|
|
16
|
+
| Original | [inquirer](https://www.npmjs.com/package/inquirer) @ 14.2.0 |
|
|
17
|
+
| Processed | 2026-08-27 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 1 |
|
|
20
20
|
|
package/changes.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* A collection of common interactive command line user interfaces.
|
|
4
4
|
*/
|
|
5
5
|
import { Separator } from '@inquirer/prompts';
|
|
6
|
-
import type { Prettify } from '@inquirer/type';
|
|
7
6
|
import PromptsRunner from './ui/prompt.ts';
|
|
8
7
|
import type { PromptCollection, LegacyPromptConstructor, PromptFn } from './ui/prompt.ts';
|
|
9
8
|
import type { Answers, StreamOptions, QuestionMap, PromptSession, PromptModulePublicQuestion, PromptModuleSpecificQuestion, PromptModuleNamedQuestion, QuestionSequence, MergedAnswers, DictionaryAnswers } from './types.ts';
|
|
@@ -22,8 +21,8 @@ type PromptModuleApi<Prompts extends Record<string, Record<string, unknown>> = n
|
|
|
22
21
|
restoreDefaultPrompts(): void;
|
|
23
22
|
};
|
|
24
23
|
export type { QuestionMap, Question, DistinctQuestion, Answers, PromptSession, } from './types.ts';
|
|
25
|
-
type PromptReturnType<T> = Promise<
|
|
26
|
-
ui: PromptsRunner<
|
|
24
|
+
type PromptReturnType<T extends Answers> = Promise<T> & {
|
|
25
|
+
ui: PromptsRunner<T>;
|
|
27
26
|
};
|
|
28
27
|
/**
|
|
29
28
|
* Create a new self-contained prompt module.
|
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ export function createPromptModule(opt) {
|
|
|
39
39
|
promptModule.restoreDefaultPrompts = function () {
|
|
40
40
|
promptModule.prompts = { ...builtInPrompts };
|
|
41
41
|
};
|
|
42
|
-
// oxlint-disable-next-line typescript/no-unsafe-type-assertion
|
|
42
|
+
// oxlint-disable-next-line typescript/no-unsafe-type-assertion, typescript/no-unnecessary-type-assertion
|
|
43
43
|
return promptModule;
|
|
44
44
|
}
|
|
45
45
|
/**
|
package/dist/types.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ type WidenAnswerLiterals<T> = T extends string ? string : T extends number ? num
|
|
|
24
24
|
type MergeAnswerObjects<Base, Override> = Prettify<Omit<Base, keyof Override> & Override>;
|
|
25
25
|
export type AsyncGetterFunction<T, A extends Answers> = (this: {
|
|
26
26
|
async: () => (...args: [error: null | undefined, value: T] | [error: Error, value: undefined]) => void;
|
|
27
|
-
}, answers: NoInfer<
|
|
27
|
+
}, answers: NoInfer<Partial<A>>) => void | T | Promise<T>;
|
|
28
28
|
type MaybeAsyncValue<T, A extends Answers> = T | AsyncGetterFunction<T, A>;
|
|
29
29
|
/**
|
|
30
30
|
* Allows to inject a custom question type into inquirer module.
|
|
@@ -73,9 +73,9 @@ export type CustomQuestion<A extends Answers, Q extends Record<string, Record<st
|
|
|
73
73
|
[key in Extract<keyof Q, string>]: Readonly<QuestionWithGetters<key, Q[key], A>>;
|
|
74
74
|
}[Extract<keyof Q, string>];
|
|
75
75
|
export type PromptModuleSpecificQuestion<A extends Answers, Prompts extends Record<string, Record<string, any>> = never> = UnnamedDistinctQuestion<A> | CustomQuestion<A, Prompts>;
|
|
76
|
-
export type PromptModuleNamedQuestion<A extends Answers, Prompts extends Record<string, Record<string, any>> = never, Flat extends Answers = A> =
|
|
76
|
+
export type PromptModuleNamedQuestion<A extends Answers, Prompts extends Record<string, Record<string, any>> = never, Flat extends Answers = A> = PromptModuleSpecificQuestion<A, Prompts> & {
|
|
77
77
|
name: Extract<keyof Flat, string>;
|
|
78
|
-
}
|
|
78
|
+
};
|
|
79
79
|
export type DistinctQuestion<A extends Answers = Answers> = PromptModuleNamedQuestion<A>;
|
|
80
80
|
export type PromptSession<A extends Answers = Answers, Q extends Question<A> = Question<A>> = readonly Q[] | Record<string, Omit<Q, 'name'>> | Observable<Q> | Q;
|
|
81
81
|
export type QuestionSequence<Q> = Q | readonly Q[] | Observable<Q>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/inquirer",
|
|
3
|
-
"version": "14.0
|
|
3
|
+
"version": "14.2.0-depup.0",
|
|
4
4
|
"description": "A collection of common interactive command line user interfaces. (with updated dependencies)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"inquirer",
|
|
@@ -72,13 +72,14 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@inquirer/ansi": "^2.0.7",
|
|
75
|
-
"@inquirer/core": "^
|
|
76
|
-
"@inquirer/prompts": "^8.
|
|
77
|
-
"@inquirer/type": "^4.0
|
|
75
|
+
"@inquirer/core": "^12.0.1",
|
|
76
|
+
"@inquirer/prompts": "^8.7.0",
|
|
77
|
+
"@inquirer/type": "^4.1.0",
|
|
78
78
|
"mute-stream": "^4.0.0",
|
|
79
79
|
"run-async": "^4.0.6"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
+
"@repo/tsconfig": "0.0.0",
|
|
82
83
|
"@types/mute-stream": "^0.0.4",
|
|
83
84
|
"rxjs": "^7.8.2",
|
|
84
85
|
"typescript": "^6.0.2"
|
|
@@ -96,7 +97,7 @@
|
|
|
96
97
|
},
|
|
97
98
|
"main": "./dist/index.js",
|
|
98
99
|
"types": "./dist/index.d.ts",
|
|
99
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "51ac389603405e8f9f315ce49416153d95c5fefe",
|
|
100
101
|
"depup": {
|
|
101
102
|
"changes": {
|
|
102
103
|
"mute-stream": {
|
|
@@ -106,8 +107,8 @@
|
|
|
106
107
|
},
|
|
107
108
|
"depsUpdated": 1,
|
|
108
109
|
"originalPackage": "inquirer",
|
|
109
|
-
"originalVersion": "14.0
|
|
110
|
-
"processedAt": "2026-
|
|
110
|
+
"originalVersion": "14.2.0",
|
|
111
|
+
"processedAt": "2026-08-27T01:38:32.943Z",
|
|
111
112
|
"smokeTest": "passed"
|
|
112
113
|
}
|
|
113
114
|
}
|