@inquirer/testing 2.1.3 → 2.1.5
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 +1 -1
- package/dist/cjs/index.js +3 -6
- package/dist/esm/index.mjs +1 -1
- package/package.json +7 -8
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ The core utility of `@inquirer/testing` is the `render()` function. This `render
|
|
|
54
54
|
3. `events` (`{ keypress: (name) => void, type: (string) => void }`) Is the utilities allowing you to interact with the prompt. Use it to trigger keypress events, or typing any input.
|
|
55
55
|
4. `getFullOutput` (`() => string`) Return a raw dump of everything that got sent on the output stream.
|
|
56
56
|
|
|
57
|
-
You can refer to [the `@inquirer/input` prompt test suite](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/input/test.mts) as a practical example.
|
|
57
|
+
You can refer to [the `@inquirer/input` prompt test suite](https://github.com/SBoudrias/Inquirer.js/blob/master/packages/input/input.test.mts) as a practical example.
|
|
58
58
|
|
|
59
59
|
# License
|
|
60
60
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -19,16 +19,13 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
19
19
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
20
20
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
21
21
|
};
|
|
22
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
-
};
|
|
25
22
|
var _BufferedStream__fullOutput, _BufferedStream__chunks, _BufferedStream__rawChunks;
|
|
26
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
24
|
exports.render = void 0;
|
|
28
|
-
const mute_stream_1 = __importDefault(require("mute-stream"));
|
|
29
|
-
const strip_ansi_1 = __importDefault(require("strip-ansi"));
|
|
30
|
-
const ansi_escapes_1 = __importDefault(require("ansi-escapes"));
|
|
31
25
|
const node_stream_1 = require("node:stream");
|
|
26
|
+
const mute_stream_1 = require("mute-stream");
|
|
27
|
+
const strip_ansi_1 = require("strip-ansi");
|
|
28
|
+
const ansi_escapes_1 = require("ansi-escapes");
|
|
32
29
|
const ignoredAnsi = new Set([ansi_escapes_1.default.cursorHide, ansi_escapes_1.default.cursorShow]);
|
|
33
30
|
class BufferedStream extends node_stream_1.Stream.Writable {
|
|
34
31
|
constructor() {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Stream } from 'node:stream';
|
|
1
2
|
import MuteStream from 'mute-stream';
|
|
2
3
|
import stripAnsi from 'strip-ansi';
|
|
3
4
|
import ansiEscapes from 'ansi-escapes';
|
|
4
|
-
import { Stream } from 'node:stream';
|
|
5
5
|
const ignoredAnsi = new Set([ansiEscapes.cursorHide, ansiEscapes.cursorShow]);
|
|
6
6
|
class BufferedStream extends Stream.Writable {
|
|
7
7
|
#_fullOutput = '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/testing",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.18.0"
|
|
6
6
|
},
|
|
@@ -60,18 +60,17 @@
|
|
|
60
60
|
"license": "MIT",
|
|
61
61
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/testing/README.md",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@inquirer/type": "^1.1.
|
|
63
|
+
"@inquirer/type": "^1.1.3",
|
|
64
64
|
"@types/mute-stream": "^0.0.1",
|
|
65
|
-
"@types/node": "^20.
|
|
65
|
+
"@types/node": "^20.6.0",
|
|
66
66
|
"ansi-escapes": "^4.3.2",
|
|
67
67
|
"mute-stream": "^1.0.0",
|
|
68
68
|
"strip-ansi": "^6.0.1"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
|
-
"tsc": "yarn run
|
|
72
|
-
"
|
|
73
|
-
"tsc:
|
|
74
|
-
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs"
|
|
71
|
+
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
|
|
72
|
+
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
|
|
73
|
+
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs"
|
|
75
74
|
},
|
|
76
75
|
"exports": {
|
|
77
76
|
".": {
|
|
@@ -85,5 +84,5 @@
|
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
86
|
},
|
|
88
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "f5c544a8ded1c7dfb6ac8364759955e8f2ecfb0c"
|
|
89
88
|
}
|