@optique/testing 1.3.0-dev.2581 → 1.3.0-dev.2583
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/run.cjs +8 -8
- package/dist/run.js +8 -8
- package/package.json +4 -4
package/dist/run.cjs
CHANGED
|
@@ -3,6 +3,14 @@ const __optique_run = require_chunk.__toESM(require("@optique/run"));
|
|
|
3
3
|
|
|
4
4
|
//#region src/run.ts
|
|
5
5
|
async function captureRun(parserOrProgram, options = {}) {
|
|
6
|
+
class CapturedExit extends Error {
|
|
7
|
+
exitCode;
|
|
8
|
+
constructor(exitCode) {
|
|
9
|
+
super(`Runner exited with code ${exitCode}.`);
|
|
10
|
+
this.name = "CapturedExit";
|
|
11
|
+
this.exitCode = exitCode;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
6
14
|
let stdout = "";
|
|
7
15
|
let stderr = "";
|
|
8
16
|
const runOptions = {
|
|
@@ -36,14 +44,6 @@ async function captureRun(parserOrProgram, options = {}) {
|
|
|
36
44
|
};
|
|
37
45
|
}
|
|
38
46
|
}
|
|
39
|
-
var CapturedExit = class extends Error {
|
|
40
|
-
exitCode;
|
|
41
|
-
constructor(exitCode) {
|
|
42
|
-
super(`Runner exited with code ${exitCode}.`);
|
|
43
|
-
this.name = "CapturedExit";
|
|
44
|
-
this.exitCode = exitCode;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
47
|
|
|
48
48
|
//#endregion
|
|
49
49
|
exports.captureRun = captureRun;
|
package/dist/run.js
CHANGED
|
@@ -2,6 +2,14 @@ import { runAsync } from "@optique/run";
|
|
|
2
2
|
|
|
3
3
|
//#region src/run.ts
|
|
4
4
|
async function captureRun(parserOrProgram, options = {}) {
|
|
5
|
+
class CapturedExit extends Error {
|
|
6
|
+
exitCode;
|
|
7
|
+
constructor(exitCode) {
|
|
8
|
+
super(`Runner exited with code ${exitCode}.`);
|
|
9
|
+
this.name = "CapturedExit";
|
|
10
|
+
this.exitCode = exitCode;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
5
13
|
let stdout = "";
|
|
6
14
|
let stderr = "";
|
|
7
15
|
const runOptions = {
|
|
@@ -35,14 +43,6 @@ async function captureRun(parserOrProgram, options = {}) {
|
|
|
35
43
|
};
|
|
36
44
|
}
|
|
37
45
|
}
|
|
38
|
-
var CapturedExit = class extends Error {
|
|
39
|
-
exitCode;
|
|
40
|
-
constructor(exitCode) {
|
|
41
|
-
super(`Runner exited with code ${exitCode}.`);
|
|
42
|
-
this.name = "CapturedExit";
|
|
43
|
-
this.exitCode = exitCode;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
46
|
|
|
47
47
|
//#endregion
|
|
48
48
|
export { captureRun };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/testing",
|
|
3
|
-
"version": "1.3.0-dev.
|
|
3
|
+
"version": "1.3.0-dev.2583",
|
|
4
4
|
"description": "Testing support for Optique command-line interfaces",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
},
|
|
87
87
|
"sideEffects": false,
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@optique/core": "1.3.0-dev.
|
|
90
|
-
"@optique/discover": "1.3.0-dev.
|
|
91
|
-
"@optique/run": "1.3.0-dev.
|
|
89
|
+
"@optique/core": "1.3.0-dev.2583+d30dbb53",
|
|
90
|
+
"@optique/discover": "1.3.0-dev.2583+d30dbb53",
|
|
91
|
+
"@optique/run": "1.3.0-dev.2583+d30dbb53"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@types/node": "^24.0.0",
|