pixellint 0.38.0 → 0.40.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
@@ -70,8 +70,10 @@ URLs first.
70
70
 
71
71
  Use `{ kind: "request" }` with a serialized complete capture containing string
72
72
  `url`, string `method`, `headers` as an object or name/value list, and optional
73
- raw string `body`. It binds payload checks to the destination and adds method
74
- and header contracts. See [the HTTP capture schema](https://github.com/aleksUIX/pixellint/blob/main/docs/HTTP_REQUEST_SCHEMA.md)
73
+ raw string `body` or `body_base64` containing captured binary bytes. Identity
74
+ and gzip decoding share the native engine's bounded inspection profile.
75
+ The capture binds payload checks to the destination and adds method and header
76
+ contracts. See [the HTTP capture schema](https://github.com/aleksUIX/pixellint/blob/main/docs/HTTP_REQUEST_SCHEMA.md)
75
77
  for representation limits and repeated fields.
76
78
 
77
79
  `vast` takes a tracking URL extracted from VAST and enables the IAB VAST
package/index.d.ts CHANGED
@@ -17,10 +17,19 @@ export interface HttpRequest {
17
17
  method: string;
18
18
  headers: Record<string, string> | Array<{ name: string; value: string }>;
19
19
  body?: string;
20
+ body_base64?: never;
20
21
  /** Omitted capture fields remain unvalidated. Absent metadata retains complete-capture semantics. */
21
22
  capture?: HttpCaptureContext;
22
23
  }
23
24
 
25
+ /** Original binary wire bytes in canonical padded standard Base64. */
26
+ export interface BinaryHttpRequest extends Omit<HttpRequest, "body" | "body_base64"> {
27
+ body_base64: string;
28
+ body?: never;
29
+ }
30
+
31
+ export type HttpCapture = HttpRequest | BinaryHttpRequest;
32
+
24
33
  export type Severity = "error" | "warning" | "info";
25
34
 
26
35
  export type EvidenceLevel =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixellint",
3
- "version": "0.38.0",
3
+ "version": "0.40.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
@@ -190,7 +190,7 @@ function __wbg_get_imports() {
190
190
  const ret = new Object();
191
191
  return ret;
192
192
  },
193
- __wbg_now_85048f01426fc9b4: function() {
193
+ __wbg_now_5e729ff042c6a974: function() {
194
194
  const ret = Date.now();
195
195
  return ret;
196
196
  },
Binary file