@inquirer/testing 2.1.32 → 2.1.34

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.
@@ -1,7 +1,9 @@
1
1
  import MuteStream from 'mute-stream';
2
2
  import type { Prompt, Context } from '@inquirer/type';
3
3
  export declare function render<const Props, const Value, const TestedPrompt extends Prompt<Value, Props>>(prompt: TestedPrompt, props: Props, options?: Context): Promise<{
4
- answer: import("@inquirer/type").CancelablePromise<Value>;
4
+ answer: Promise<Value> & {
5
+ cancel: () => void;
6
+ };
5
7
  input: MuteStream;
6
8
  events: {
7
9
  keypress(key: string | {
@@ -1,7 +1,9 @@
1
1
  import MuteStream from 'mute-stream';
2
2
  import type { Prompt, Context } from '@inquirer/type';
3
3
  export declare function render<const Props, const Value, const TestedPrompt extends Prompt<Value, Props>>(prompt: TestedPrompt, props: Props, options?: Context): Promise<{
4
- answer: import("@inquirer/type").CancelablePromise<Value>;
4
+ answer: Promise<Value> & {
5
+ cancel: () => void;
6
+ };
5
7
  input: MuteStream;
6
8
  events: {
7
9
  keypress(key: string | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/testing",
3
- "version": "2.1.32",
3
+ "version": "2.1.34",
4
4
  "engines": {
5
5
  "node": ">=18"
6
6
  },
@@ -60,9 +60,9 @@
60
60
  "license": "MIT",
61
61
  "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/testing/README.md",
62
62
  "dependencies": {
63
- "@inquirer/type": "^1.5.3",
63
+ "@inquirer/type": "^2.0.0",
64
64
  "@types/mute-stream": "^0.0.4",
65
- "@types/node": "^22.5.2",
65
+ "@types/node": "^22.5.5",
66
66
  "ansi-escapes": "^4.3.2",
67
67
  "mute-stream": "^1.0.0",
68
68
  "strip-ansi": "^6.0.1"
@@ -86,5 +86,5 @@
86
86
  }
87
87
  },
88
88
  "sideEffects": false,
89
- "gitHead": "0c039599ef88fe9eb804fe083ee386ec906a856f"
89
+ "gitHead": "9e29035c2efc78f44aed3c7732aee46ab1d64ca2"
90
90
  }