ata-validator 0.7.2 → 0.7.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ata-validator",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "Ultra-fast JSON Schema validator. 4.7x faster validation, 1,800x faster compilation. Works without native addon. Cross-schema $ref, Draft 2020-12 + Draft 7, V8-optimized JS codegen, simdjson, RE2, multi-core. Standard Schema V1 compatible.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"pkg-prebuilds": false
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"install": "
|
|
29
|
+
"install": "node scripts/install.js",
|
|
30
30
|
"build": "cmake-js build --target ata",
|
|
31
31
|
"rebuild": "cmake-js rebuild --target ata",
|
|
32
32
|
"prebuild": "pkg-prebuilds-copy --baseDir build/Release --source ata.node --name=ata --strip --napi_version=10",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"src/",
|
|
84
84
|
"deps/",
|
|
85
85
|
"prebuilds/",
|
|
86
|
+
"scripts/",
|
|
86
87
|
"CMakeLists.txt",
|
|
87
88
|
"README.md",
|
|
88
89
|
"LICENSE"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { execSync } = require('child_process');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
const root = path.resolve(__dirname, '..');
|
|
7
|
+
|
|
8
|
+
try {
|
|
9
|
+
execSync('pkg-prebuilds-verify ./binding-options.js', { cwd: root, stdio: 'ignore' });
|
|
10
|
+
process.exit(0);
|
|
11
|
+
} catch {}
|
|
12
|
+
|
|
13
|
+
// No prebuild for this platform — try cmake-js if available
|
|
14
|
+
try {
|
|
15
|
+
execSync('cmake-js compile --target ata', { cwd: root, stdio: 'inherit' });
|
|
16
|
+
process.exit(0);
|
|
17
|
+
} catch {}
|
|
18
|
+
|
|
19
|
+
console.log(
|
|
20
|
+
'\n[ata-validator] No native prebuild found for ' + process.platform + '-' + process.arch + '.\n' +
|
|
21
|
+
'Falling back to JS engine (still works, ~2-3x slower for buffer APIs).\n' +
|
|
22
|
+
'To build from source: install cmake, RE2, abseil, then run `npx cmake-js compile --target ata`\n'
|
|
23
|
+
);
|
|
Binary file
|