ata-validator 0.9.0 → 0.9.2

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.
Files changed (2) hide show
  1. package/index.js +1 -0
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -754,6 +754,7 @@ class Validator {
754
754
  _ensureCodegen() {
755
755
  if (this._jsFn) return;
756
756
  if (typeof process !== 'undefined' && process.env && process.env.ATA_FORCE_NAPI) return;
757
+ if (!this._schemaStr) this._schemaStr = JSON.stringify(this._schemaObj);
757
758
  const sm = this._schemaMap.size > 0 ? this._schemaMap : null;
758
759
  const mapKey = this._schemaMap.size > 0
759
760
  ? this._schemaStr + '\0' + [...this._schemaMap.keys()].sort().join('\0')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ata-validator",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
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",
@@ -19,7 +19,8 @@
19
19
  "types": "./compat.d.ts",
20
20
  "import": "./compat.mjs",
21
21
  "require": "./compat.js"
22
- }
22
+ },
23
+ "./package.json": "./package.json"
23
24
  },
24
25
  "sideEffects": false,
25
26
  "browser": {