tamperward 2.10.2 → 2.10.3
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/cli/index.js +5 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -5137,6 +5137,9 @@ function pytestSelection(src) {
|
|
|
5137
5137
|
ignore.push({ pattern: `**/*${w}*`, key: "-k" });
|
|
5138
5138
|
} else if (o === "-m" || o.startsWith("-m=")) {
|
|
5139
5139
|
ignore.push({ pattern: "\0-m " + val(""), key: "-m" });
|
|
5140
|
+
} else if (o === "-p" || o.startsWith("-p=") || o.length > 2 && o.startsWith("-p")) {
|
|
5141
|
+
const v = o === "-p" ? opts[++j] ?? "" : o.startsWith("-p=") ? o.slice(3) : o.slice(2);
|
|
5142
|
+
if (v.startsWith("no:")) ignore.push({ pattern: "\0-p " + v, key: "-p" });
|
|
5140
5143
|
} else if (o === "--collect-only" || o === "--co") ignore.push({ pattern: "**", key: o });
|
|
5141
5144
|
}
|
|
5142
5145
|
sel.ignore = ignore;
|
|
@@ -5362,8 +5365,8 @@ function predicate(sel, runner) {
|
|
|
5362
5365
|
if (!inRoots(r)) return `roots no longer covers it (${JSON.stringify(sel.roots)})`;
|
|
5363
5366
|
const hit = ignoredBy(r);
|
|
5364
5367
|
if (hit) {
|
|
5365
|
-
|
|
5366
|
-
return `${hit.key === "exclude" ? "test.exclude" : hit.key} now matches it (${JSON.stringify(
|
|
5368
|
+
if (hit.pattern.startsWith("\0")) return `${hit.key} narrows the whole run (${JSON.stringify(hit.pattern.slice(1))})`;
|
|
5369
|
+
return `${hit.key === "exclude" ? "test.exclude" : hit.key} now matches it (${JSON.stringify(hit.pattern)})`;
|
|
5367
5370
|
}
|
|
5368
5371
|
const key2 = runner === "jest" ? sel.include ? "testMatch" : sel.regex ? "testRegex" : "testMatch (default)" : sel.include ? "test.include" : "test.include (default)";
|
|
5369
5372
|
return `${key2} no longer matches it (${JSON.stringify(sel.include ?? sel.regex ?? includeList ?? [])})`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamperward",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.3",
|
|
4
4
|
"description": "The deterministic agent-integrity gate. One ruleset, evaluated on the actual diff/commands as a verdict, enforced everywhere a change can be made.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "hexrift",
|