vastlint 0.1.3 → 0.2.6
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 +4 -0
- package/package.json +16 -5
- package/vastlint_wasm_bg.js +12 -0
- package/vastlint_wasm_bg.wasm +0 -0
- package/vastlint_wasm_cjs.js +13 -1
package/index.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export interface Issue {
|
|
|
10
10
|
path: string | null;
|
|
11
11
|
/** Short spec reference, e.g. "IAB VAST 4.1 §3.4.1". */
|
|
12
12
|
spec_ref: string;
|
|
13
|
+
/** 1-based line number of the opening tag that triggered this issue. Null for document-level issues. */
|
|
14
|
+
line: number | null;
|
|
15
|
+
/** 1-based column number (byte offset within the line) of the opening tag. Null for document-level issues. */
|
|
16
|
+
col: number | null;
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
export interface Summary {
|
package/package.json
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vastlint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "VAST XML validator — checks ad tags against IAB VAST 2.0 through 4.3",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Alex Sekowski <alex@vastlint.org>",
|
|
7
7
|
"homepage": "https://github.com/aleksUIX/vastlint",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/aleksUIX/vastlint"
|
|
10
|
+
"url": "git+https://github.com/aleksUIX/vastlint.git"
|
|
11
11
|
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
|
|
12
|
+
"keywords": [
|
|
13
|
+
"vast",
|
|
14
|
+
"xml",
|
|
15
|
+
"validator",
|
|
16
|
+
"adtech",
|
|
17
|
+
"iab",
|
|
18
|
+
"ctv",
|
|
19
|
+
"wasm"
|
|
20
|
+
],
|
|
14
21
|
"main": "./index.cjs",
|
|
15
22
|
"module": "./index.js",
|
|
16
23
|
"types": "./index.d.ts",
|
|
@@ -19,7 +26,11 @@
|
|
|
19
26
|
"import": "./index.js",
|
|
20
27
|
"require": "./index.cjs",
|
|
21
28
|
"types": "./index.d.ts"
|
|
22
|
-
}
|
|
29
|
+
},
|
|
30
|
+
"./index.cjs": "./index.cjs",
|
|
31
|
+
"./vastlint_wasm_cjs.js": "./vastlint_wasm_cjs.js",
|
|
32
|
+
"./vastlint_wasm_bg.js": "./vastlint_wasm_bg.js",
|
|
33
|
+
"./vastlint_wasm_bg.wasm": "./vastlint_wasm_bg.wasm"
|
|
23
34
|
},
|
|
24
35
|
"files": [
|
|
25
36
|
"index.js",
|
package/vastlint_wasm_bg.js
CHANGED
|
@@ -149,6 +149,10 @@ export function __wbg_entries_616b1a459b85be0b(arg0) {
|
|
|
149
149
|
const ret = Object.entries(arg0);
|
|
150
150
|
return ret;
|
|
151
151
|
}
|
|
152
|
+
export function __wbg_from_741da0f916ab74aa(arg0) {
|
|
153
|
+
const ret = Array.from(arg0);
|
|
154
|
+
return ret;
|
|
155
|
+
}
|
|
152
156
|
export function __wbg_get_4848e350b40afc16(arg0, arg1) {
|
|
153
157
|
const ret = arg0[arg1 >>> 0];
|
|
154
158
|
return ret;
|
|
@@ -157,6 +161,10 @@ export function __wbg_get_ed0642c4b9d31ddf() { return handleError(function (arg0
|
|
|
157
161
|
const ret = Reflect.get(arg0, arg1);
|
|
158
162
|
return ret;
|
|
159
163
|
}, arguments); }
|
|
164
|
+
export function __wbg_get_f96702c6245e4ef9() { return handleError(function (arg0, arg1) {
|
|
165
|
+
const ret = Reflect.get(arg0, arg1);
|
|
166
|
+
return ret;
|
|
167
|
+
}, arguments); }
|
|
160
168
|
export function __wbg_get_unchecked_7d7babe32e9e6a54(arg0, arg1) {
|
|
161
169
|
const ret = arg0[arg1 >>> 0];
|
|
162
170
|
return ret;
|
|
@@ -230,6 +238,10 @@ export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
|
230
238
|
export function __wbg_set_6c60b2e8ad0e9383(arg0, arg1, arg2) {
|
|
231
239
|
arg0[arg1 >>> 0] = arg2;
|
|
232
240
|
}
|
|
241
|
+
export function __wbg_set_8ee2d34facb8466e() { return handleError(function (arg0, arg1, arg2) {
|
|
242
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
243
|
+
return ret;
|
|
244
|
+
}, arguments); }
|
|
233
245
|
export function __wbg_value_7f6052747ccf940f(arg0) {
|
|
234
246
|
const ret = arg0.value;
|
|
235
247
|
return ret;
|
package/vastlint_wasm_bg.wasm
CHANGED
|
Binary file
|
package/vastlint_wasm_cjs.js
CHANGED
|
@@ -158,6 +158,10 @@ function __wbg_get_imports() {
|
|
|
158
158
|
const ret = Object.entries(arg0);
|
|
159
159
|
return ret;
|
|
160
160
|
},
|
|
161
|
+
__wbg_from_741da0f916ab74aa: function(arg0) {
|
|
162
|
+
const ret = Array.from(arg0);
|
|
163
|
+
return ret;
|
|
164
|
+
},
|
|
161
165
|
__wbg_get_4848e350b40afc16: function(arg0, arg1) {
|
|
162
166
|
const ret = arg0[arg1 >>> 0];
|
|
163
167
|
return ret;
|
|
@@ -166,6 +170,10 @@ function __wbg_get_imports() {
|
|
|
166
170
|
const ret = Reflect.get(arg0, arg1);
|
|
167
171
|
return ret;
|
|
168
172
|
}, arguments); },
|
|
173
|
+
__wbg_get_f96702c6245e4ef9: function() { return handleError(function (arg0, arg1) {
|
|
174
|
+
const ret = Reflect.get(arg0, arg1);
|
|
175
|
+
return ret;
|
|
176
|
+
}, arguments); },
|
|
169
177
|
__wbg_get_unchecked_7d7babe32e9e6a54: function(arg0, arg1) {
|
|
170
178
|
const ret = arg0[arg1 >>> 0];
|
|
171
179
|
return ret;
|
|
@@ -239,6 +247,10 @@ function __wbg_get_imports() {
|
|
|
239
247
|
__wbg_set_6c60b2e8ad0e9383: function(arg0, arg1, arg2) {
|
|
240
248
|
arg0[arg1 >>> 0] = arg2;
|
|
241
249
|
},
|
|
250
|
+
__wbg_set_8ee2d34facb8466e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
251
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
252
|
+
return ret;
|
|
253
|
+
}, arguments); },
|
|
242
254
|
__wbg_value_7f6052747ccf940f: function(arg0) {
|
|
243
255
|
const ret = arg0.value;
|
|
244
256
|
return ret;
|
|
@@ -452,4 +464,4 @@ const wasmPath = `${__dirname}/vastlint_wasm_bg.wasm`;
|
|
|
452
464
|
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
453
465
|
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
454
466
|
let wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
|
|
455
|
-
wasm.__wbindgen_start();
|
|
467
|
+
if (typeof wasm.__wbindgen_start === "function") wasm.__wbindgen_start();
|