pixellint 0.44.1 → 0.45.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/README.md +7 -0
- package/index.d.ts +10 -0
- package/package.json +1 -1
- package/wasm/pixellint.js +1 -1
- package/wasm/pixellint_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -30,6 +30,13 @@ const document = validateMany([
|
|
|
30
30
|
document.summary.unique_artifacts; // 1
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
`result.coverage` separates endpoint coverage from error findings. Its `status`
|
|
34
|
+
is `vendor_checked`, `recognized_uncontracted` or `unrecognized`.
|
|
35
|
+
`core_checks_ran` records core selection and `vendor_rulepacks` lists evaluated
|
|
36
|
+
endpoint packs, including custom packs without vendor metadata. Each document,
|
|
37
|
+
session or HAR artifact has the same field. `isOk(result)` still means no error
|
|
38
|
+
findings, so show coverage alongside it when reporting validation results.
|
|
39
|
+
|
|
33
40
|
Every finding carries a stable `code`, a `severity`, a `fix_hint`, the byte
|
|
34
41
|
range it applies to, and the document it came from:
|
|
35
42
|
|
package/index.d.ts
CHANGED
|
@@ -71,6 +71,14 @@ export interface ValidationReport {
|
|
|
71
71
|
|
|
72
72
|
export interface ValidationSummary {
|
|
73
73
|
reports: ValidationReport[];
|
|
74
|
+
coverage: EndpointCoverage;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** Local endpoint checks that actually ran, independent of validity. */
|
|
78
|
+
export interface EndpointCoverage {
|
|
79
|
+
status: "vendor_checked" | "recognized_uncontracted" | "unrecognized";
|
|
80
|
+
core_checks_ran: boolean;
|
|
81
|
+
vendor_rulepacks: string[];
|
|
74
82
|
}
|
|
75
83
|
|
|
76
84
|
export interface RulePackMetadata {
|
|
@@ -87,6 +95,7 @@ export interface VendorEntry {
|
|
|
87
95
|
display_name: string;
|
|
88
96
|
category: string;
|
|
89
97
|
hosts: string[];
|
|
98
|
+
path_prefixes?: string[];
|
|
90
99
|
rulepack?: string | null;
|
|
91
100
|
}
|
|
92
101
|
|
|
@@ -126,6 +135,7 @@ export interface AggregatedArtifact {
|
|
|
126
135
|
raw_artifact: string;
|
|
127
136
|
normalized_artifact: string;
|
|
128
137
|
ok: boolean;
|
|
138
|
+
coverage: EndpointCoverage;
|
|
129
139
|
summary: FindingCounts;
|
|
130
140
|
reports: ValidationReport[];
|
|
131
141
|
occurrences: ArtifactOccurrence[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixellint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Validator for pixels, postbacks, conversion API payloads, and tracking URLs: Meta CAPI, Facebook pixel, GTM, and vendor rulepacks",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Aleks <aleks@vastlint.org>",
|
package/wasm/pixellint.js
CHANGED
package/wasm/pixellint_bg.wasm
CHANGED
|
Binary file
|