@vitest-agent/sdk 5.0.0 → 5.1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Platform-free core for the vitest-agent package family: Effect Schema definitions, reporter and dispatcher contracts, errors, formatters, and pure utilities.",
|
|
6
6
|
"keywords": [
|
|
@@ -9,7 +9,26 @@
|
|
|
9
9
|
* safe direction.
|
|
10
10
|
*/
|
|
11
11
|
function stripComments(source) {
|
|
12
|
-
|
|
12
|
+
let out = "";
|
|
13
|
+
let i = 0;
|
|
14
|
+
const n = source.length;
|
|
15
|
+
while (i < n) {
|
|
16
|
+
const c = source[i];
|
|
17
|
+
const next = source[i + 1];
|
|
18
|
+
if (c === "/" && next === "*") {
|
|
19
|
+
const close = source.indexOf("*/", i + 2);
|
|
20
|
+
i = close === -1 ? n : close + 2;
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
if (c === "/" && next === "/") {
|
|
24
|
+
const eol = source.indexOf("\n", i + 2);
|
|
25
|
+
i = eol === -1 ? n : eol;
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
out += c;
|
|
29
|
+
i++;
|
|
30
|
+
}
|
|
31
|
+
return out;
|
|
13
32
|
}
|
|
14
33
|
const DISCOVER_STRATEGY_OPTION_RE = /\bdiscoverStrategy\s*:/;
|
|
15
34
|
const ADD_PROJECT_MARKER = ".addProject(";
|