vastlint 0.8.4 → 0.9.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/index.d.ts CHANGED
@@ -25,6 +25,8 @@ export interface Summary {
25
25
  }
26
26
 
27
27
  export interface ValidationResult {
28
+ /** Detected document type: plain VAST, a VMAP playlist, or a DAAST audio ad. */
29
+ document_type: 'VAST' | 'VMAP' | 'DAAST';
28
30
  /** Detected VAST version string (e.g. "4.2"), or null if unknown. */
29
31
  version: string | null;
30
32
  issues: Issue[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vastlint",
3
- "version": "0.8.4",
4
- "description": "Validate VAST 2.0–4.3, VMAP 1.0, and DAAST 1.0 ad tags against IAB specs. 191 rules. Rust/WASM core.",
3
+ "version": "0.9.0",
4
+ "description": "Validate VAST 2.0–4.3, VMAP 1.0, and DAAST 1.0 ad tags against IAB specs. 195 rules. Rust/WASM core.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Alex Sekowski <alex@vastlint.org>",
7
7
  "homepage": "https://vastlint.org",
@@ -52,6 +52,7 @@ export function rules(): any;
52
52
  * Returns a plain JavaScript object shaped like:
53
53
  * ```ts
54
54
  * {
55
+ * document_type: "VAST" | "VMAP" | "DAAST",
55
56
  * version: string | null,
56
57
  * issues: Array<{
57
58
  * id: string,
@@ -87,6 +87,7 @@ export function rules() {
87
87
  * Returns a plain JavaScript object shaped like:
88
88
  * ```ts
89
89
  * {
90
+ * document_type: "VAST" | "VMAP" | "DAAST",
90
91
  * version: string | null,
91
92
  * issues: Array<{
92
93
  * id: string,
Binary file
@@ -93,6 +93,7 @@ exports.rules = rules;
93
93
  * Returns a plain JavaScript object shaped like:
94
94
  * ```ts
95
95
  * {
96
+ * document_type: "VAST" | "VMAP" | "DAAST",
96
97
  * version: string | null,
97
98
  * issues: Array<{
98
99
  * id: string,