@jsenv/test 3.7.11 → 3.7.12
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/jsenv_test.js
CHANGED
|
@@ -11230,7 +11230,6 @@ const execute = async ({
|
|
|
11230
11230
|
measureMemoryUsage = false,
|
|
11231
11231
|
onMeasureMemoryAvailable,
|
|
11232
11232
|
collectPerformance = false,
|
|
11233
|
-
collectCoverage = false,
|
|
11234
11233
|
coverageTempDirectoryUrl,
|
|
11235
11234
|
runtime,
|
|
11236
11235
|
runtimeParams,
|
|
@@ -147,6 +147,14 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
|
|
|
147
147
|
return 3;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
if (env.TERM === 'xterm-ghostty') {
|
|
151
|
+
return 3;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (env.TERM === 'wezterm') {
|
|
155
|
+
return 3;
|
|
156
|
+
}
|
|
157
|
+
|
|
150
158
|
if ('TERM_PROGRAM' in env) {
|
|
151
159
|
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
152
160
|
|
|
@@ -214,10 +222,14 @@ function isUnicodeSupported() {
|
|
|
214
222
|
function ansiRegex({onlyFirst = false} = {}) {
|
|
215
223
|
// Valid string terminator sequences are BEL, ESC\, and 0x9c
|
|
216
224
|
const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)';
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
225
|
+
|
|
226
|
+
// OSC sequences only: ESC ] ... ST (non-greedy until the first ST)
|
|
227
|
+
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
228
|
+
|
|
229
|
+
// CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte
|
|
230
|
+
const csi = '[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]';
|
|
231
|
+
|
|
232
|
+
const pattern = `${osc}|${csi}`;
|
|
221
233
|
|
|
222
234
|
return new RegExp(pattern, onlyFirst ? undefined : 'g');
|
|
223
235
|
}
|
|
@@ -535,11 +547,10 @@ function isWide(x) {
|
|
|
535
547
|
|| x >= 0xFE54 && x <= 0xFE66
|
|
536
548
|
|| x >= 0xFE68 && x <= 0xFE6B
|
|
537
549
|
|| x >= 0x16FE0 && x <= 0x16FE4
|
|
538
|
-
|| x
|
|
539
|
-
|| x
|
|
540
|
-
|| x >=
|
|
541
|
-
|| x >=
|
|
542
|
-
|| x >= 0x18CFF && x <= 0x18D08
|
|
550
|
+
|| x >= 0x16FF0 && x <= 0x16FF6
|
|
551
|
+
|| x >= 0x17000 && x <= 0x18CD5
|
|
552
|
+
|| x >= 0x18CFF && x <= 0x18D1E
|
|
553
|
+
|| x >= 0x18D80 && x <= 0x18DF2
|
|
543
554
|
|| x >= 0x1AFF0 && x <= 0x1AFF3
|
|
544
555
|
|| x >= 0x1AFF5 && x <= 0x1AFFB
|
|
545
556
|
|| x === 0x1AFFD
|
|
@@ -584,7 +595,7 @@ function isWide(x) {
|
|
|
584
595
|
|| x >= 0x1F680 && x <= 0x1F6C5
|
|
585
596
|
|| x === 0x1F6CC
|
|
586
597
|
|| x >= 0x1F6D0 && x <= 0x1F6D2
|
|
587
|
-
|| x >= 0x1F6D5 && x <=
|
|
598
|
+
|| x >= 0x1F6D5 && x <= 0x1F6D8
|
|
588
599
|
|| x >= 0x1F6DC && x <= 0x1F6DF
|
|
589
600
|
|| x === 0x1F6EB
|
|
590
601
|
|| x === 0x1F6EC
|
|
@@ -595,11 +606,12 @@ function isWide(x) {
|
|
|
595
606
|
|| x >= 0x1F93C && x <= 0x1F945
|
|
596
607
|
|| x >= 0x1F947 && x <= 0x1F9FF
|
|
597
608
|
|| x >= 0x1FA70 && x <= 0x1FA7C
|
|
598
|
-
|| x >= 0x1FA80 && x <=
|
|
599
|
-
|| x >=
|
|
600
|
-
|| x
|
|
601
|
-
|| x >=
|
|
602
|
-
|| x >=
|
|
609
|
+
|| x >= 0x1FA80 && x <= 0x1FA8A
|
|
610
|
+
|| x >= 0x1FA8E && x <= 0x1FAC6
|
|
611
|
+
|| x === 0x1FAC8
|
|
612
|
+
|| x >= 0x1FACD && x <= 0x1FADC
|
|
613
|
+
|| x >= 0x1FADF && x <= 0x1FAEA
|
|
614
|
+
|| x >= 0x1FAEF && x <= 0x1FAF8
|
|
603
615
|
|| x >= 0x20000 && x <= 0x2FFFD
|
|
604
616
|
|| x >= 0x30000 && x <= 0x3FFFD;
|
|
605
617
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/test",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.12",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/jsenv/core",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@c88/v8-coverage": "0.1.1",
|
|
38
|
-
"@jsenv/ast": "6.7.
|
|
39
|
-
"@jsenv/plugin-supervisor": "1.7.
|
|
38
|
+
"@jsenv/ast": "6.7.14",
|
|
39
|
+
"@jsenv/plugin-supervisor": "1.7.8",
|
|
40
40
|
"@jsenv/sourcemap": "1.3.10",
|
|
41
41
|
"he": "1.2.0",
|
|
42
42
|
"istanbul-lib-coverage": "3.2.2",
|
|
43
43
|
"istanbul-lib-instrument": "6.0.3",
|
|
44
44
|
"istanbul-lib-report": "3.0.1",
|
|
45
|
-
"istanbul-reports": "3.
|
|
45
|
+
"istanbul-reports": "3.2.0",
|
|
46
46
|
"pidtree": "0.6.0",
|
|
47
47
|
"v8-to-istanbul": "9.3.0"
|
|
48
48
|
},
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"@jsenv/urls": "../../tooling/urls",
|
|
67
67
|
"@jsenv/utils": "../../tooling/utils",
|
|
68
68
|
"prettier": "3.6.2",
|
|
69
|
-
"strip-ansi": "7.1.
|
|
70
|
-
"supports-color": "10.
|
|
69
|
+
"strip-ansi": "7.1.2",
|
|
70
|
+
"supports-color": "10.2.2"
|
|
71
71
|
},
|
|
72
72
|
"optionalDependencies": {
|
|
73
73
|
"playwright": "1.x",
|
package/src/execution/execute.js
CHANGED
|
@@ -36,7 +36,6 @@ export const execute = async ({
|
|
|
36
36
|
measureMemoryUsage = false,
|
|
37
37
|
onMeasureMemoryAvailable,
|
|
38
38
|
collectPerformance = false,
|
|
39
|
-
collectCoverage = false,
|
|
40
39
|
coverageTempDirectoryUrl,
|
|
41
40
|
runtime,
|
|
42
41
|
runtimeParams,
|
|
@@ -92,7 +91,6 @@ export const execute = async ({
|
|
|
92
91
|
measureMemoryUsage,
|
|
93
92
|
onMeasureMemoryAvailable,
|
|
94
93
|
collectPerformance,
|
|
95
|
-
collectCoverage,
|
|
96
94
|
coverageTempDirectoryUrl,
|
|
97
95
|
runtime,
|
|
98
96
|
runtimeParams,
|
|
@@ -74,8 +74,6 @@ export const initJsSupervisorMiddleware = async (
|
|
|
74
74
|
const url = request.url();
|
|
75
75
|
if (url === fileServerUrl && urlToExtension(url) === ".html") {
|
|
76
76
|
interceptHtmlToExecute({
|
|
77
|
-
url,
|
|
78
|
-
request,
|
|
79
77
|
route,
|
|
80
78
|
});
|
|
81
79
|
return;
|
|
@@ -83,14 +81,13 @@ export const initJsSupervisorMiddleware = async (
|
|
|
83
81
|
if (inlineScriptContents.has(url)) {
|
|
84
82
|
interceptInlineScript({
|
|
85
83
|
url,
|
|
86
|
-
request,
|
|
87
84
|
route,
|
|
88
85
|
});
|
|
89
86
|
return;
|
|
90
87
|
}
|
|
91
88
|
const fsServerUrl = new URL("/@fs/", webServer.origin);
|
|
92
89
|
if (url.startsWith(fsServerUrl)) {
|
|
93
|
-
interceptFileSystemUrl({ url,
|
|
90
|
+
interceptFileSystemUrl({ url, route });
|
|
94
91
|
return;
|
|
95
92
|
}
|
|
96
93
|
route.fallback();
|