vastlint 0.13.12 → 0.14.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.node.mjs +19 -0
- package/package.json +8 -3
- package/vastlint_wasm_bg.wasm +0 -0
package/index.node.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vastlint: Node.js ESM entry point
|
|
3
|
+
*
|
|
4
|
+
* `import { validate } from 'vastlint'` in plain Node lands here. index.js
|
|
5
|
+
* imports the .wasm file as an ES module, which only bundlers understand, so
|
|
6
|
+
* Node gets the CommonJS build re-exported as named ESM exports.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import cjs from './index.cjs';
|
|
10
|
+
|
|
11
|
+
export const {
|
|
12
|
+
validate,
|
|
13
|
+
validateWithOptions,
|
|
14
|
+
rules,
|
|
15
|
+
fix,
|
|
16
|
+
fixWithOptions,
|
|
17
|
+
inspectDocument,
|
|
18
|
+
validateFiltered,
|
|
19
|
+
} = cjs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vastlint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Validate VAST 2.0–4.4, VMAP 1.0, and DAAST 1.0 ad tags against IAB specs. 235 rules. Rust/WASM core.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Alex Sekowski <alex@vastlint.org>",
|
|
@@ -38,9 +38,13 @@
|
|
|
38
38
|
"types": "./index.d.ts",
|
|
39
39
|
"exports": {
|
|
40
40
|
".": {
|
|
41
|
+
"types": "./index.d.ts",
|
|
42
|
+
"node": {
|
|
43
|
+
"import": "./index.node.mjs",
|
|
44
|
+
"require": "./index.cjs"
|
|
45
|
+
},
|
|
41
46
|
"import": "./index.js",
|
|
42
|
-
"require": "./index.cjs"
|
|
43
|
-
"types": "./index.d.ts"
|
|
47
|
+
"require": "./index.cjs"
|
|
44
48
|
},
|
|
45
49
|
"./index.cjs": "./index.cjs",
|
|
46
50
|
"./vastlint_wasm_cjs.js": "./vastlint_wasm_cjs.js",
|
|
@@ -50,6 +54,7 @@
|
|
|
50
54
|
"files": [
|
|
51
55
|
"index.js",
|
|
52
56
|
"index.cjs",
|
|
57
|
+
"index.node.mjs",
|
|
53
58
|
"index.d.ts",
|
|
54
59
|
"vastlint_wasm.js",
|
|
55
60
|
"vastlint_wasm.d.ts",
|
package/vastlint_wasm_bg.wasm
CHANGED
|
Binary file
|