pixellint 0.25.0 → 0.27.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 CHANGED
@@ -41,9 +41,9 @@ finding.targets[0]; // { component: "whole_url", start: 0, end: 46, ... }
41
41
  - URL conformance, transport, credentials, fragments, and ad-tech macro handling
42
42
  - IAB consent signals: TCF `gdpr` and `gdpr_consent`, the deprecated US Privacy
43
43
  string, and GPP `gpp` and `gpp_sid`
44
- - Vendor parameter contracts for seventy-three endpoint families, including Meta
44
+ - Vendor parameter contracts for 128 endpoint families, including Meta
45
45
  Conversions API, TikTok Events API, Reddit CAPI, and the browser pixels
46
- - Endpoint attribution for 118 vendor rows, so an unrecognized pixel still gets a name.
46
+ - Endpoint attribution for 119 vendor rows, so an unrecognized pixel still gets a name.
47
47
 
48
48
  ## API
49
49
 
@@ -57,8 +57,9 @@ finding.targets[0]; // { component: "whole_url", start: 0, end: 46, ... }
57
57
  | `version()` | The `pixellint-core` version this build wraps |
58
58
 
59
59
  `options` takes `kind` (`url` by default, plus `json`, `vast`, `postback`, `request`,
60
- `html`, `js`, `gtm`, `unknown`), `state` (`unknown`, `template`, `fired`), and
61
- `vendor` for a caller's claimed vendor.
60
+ `unknown`), `state` (`unknown`, `template`, `fired`), and
61
+ `vendor` for a caller's claimed vendor. `html`, `js`, and `gtm` throw: extract
62
+ URLs first.
62
63
 
63
64
  Templates keep their macros: pass `{ state: "template" }` and unexpanded macros
64
65
  stop being findings.
package/index.mjs CHANGED
@@ -12,7 +12,7 @@ const wasm = require("./wasm/pixellint.js");
12
12
  * Validate a measurement artifact.
13
13
  * @param {string} artifact - The artifact, usually a URL.
14
14
  * @param {object} [options]
15
- * @param {"url"|"html"|"js"|"gtm"|"request"|"vast"|"postback"|"json"|"unknown"} [options.kind] - Artifact kind, default "url".
15
+ * @param {"url"|"request"|"vast"|"postback"|"json"|"unknown"} [options.kind] - Artifact kind, default "url".
16
16
  * @param {"unknown"|"template"|"fired"} [options.state] - Whether macros are still unexpanded.
17
17
  * @param {string} [options.vendor] - Vendor the caller believes the artifact belongs to.
18
18
  * @returns {{reports: Array<{plugin_id: string, detected_vendor: string|null, violations: Array<object>}>}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixellint",
3
- "version": "0.25.0",
3
+ "version": "0.27.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>",
Binary file