@cfworker/json-schema 2.0.1 → 3.0.1

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 (44) hide show
  1. package/dist/cjs/deep-compare-strict.js +42 -0
  2. package/dist/{dereference.d.ts → cjs/dereference.d.ts} +1 -1
  3. package/dist/cjs/dereference.js +147 -0
  4. package/dist/cjs/format.js +122 -0
  5. package/dist/cjs/index.js +24 -0
  6. package/dist/cjs/pointer.js +10 -0
  7. package/dist/cjs/types.js +9 -0
  8. package/dist/cjs/ucs2-length.js +20 -0
  9. package/dist/{validate.d.ts → cjs/validate.d.ts} +1 -1
  10. package/dist/cjs/validate.js +805 -0
  11. package/dist/{validator.d.ts → cjs/validator.d.ts} +2 -2
  12. package/dist/cjs/validator.js +27 -0
  13. package/dist/esm/deep-compare-strict.d.ts +1 -0
  14. package/dist/esm/dereference.d.ts +7 -0
  15. package/dist/esm/format.d.ts +2 -0
  16. package/dist/esm/index.js +8 -0
  17. package/dist/esm/pointer.d.ts +2 -0
  18. package/dist/esm/types.d.ts +72 -0
  19. package/dist/esm/types.js +6 -0
  20. package/dist/esm/ucs2-length.d.ts +1 -0
  21. package/dist/esm/validate.d.ts +3 -0
  22. package/dist/esm/validator.d.ts +10 -0
  23. package/dist/tsconfig-cjs.tsbuildinfo +1 -0
  24. package/dist/tsconfig.tsbuildinfo +1 -0
  25. package/package.json +16 -12
  26. package/src/dereference.ts +3 -3
  27. package/src/ucs2-length.ts +1 -1
  28. package/src/validate.ts +1 -1
  29. package/src/validator.ts +3 -3
  30. package/dist/types.js +0 -1
  31. /package/dist/{deep-compare-strict.d.ts → cjs/deep-compare-strict.d.ts} +0 -0
  32. /package/dist/{format.d.ts → cjs/format.d.ts} +0 -0
  33. /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
  34. /package/dist/{pointer.d.ts → cjs/pointer.d.ts} +0 -0
  35. /package/dist/{types.d.ts → cjs/types.d.ts} +0 -0
  36. /package/dist/{ucs2-length.d.ts → cjs/ucs2-length.d.ts} +0 -0
  37. /package/dist/{deep-compare-strict.js → esm/deep-compare-strict.js} +0 -0
  38. /package/dist/{dereference.js → esm/dereference.js} +0 -0
  39. /package/dist/{format.js → esm/format.js} +0 -0
  40. /package/dist/{index.js → esm/index.d.ts} +0 -0
  41. /package/dist/{pointer.js → esm/pointer.js} +0 -0
  42. /package/dist/{ucs2-length.js → esm/ucs2-length.js} +0 -0
  43. /package/dist/{validate.js → esm/validate.js} +0 -0
  44. /package/dist/{validator.js → esm/validator.js} +0 -0
@@ -1,10 +1,10 @@
1
- import { Schema, SchemaDraft } from './types.js';
1
+ import { Schema, SchemaDraft, ValidationResult } from './types.js';
2
2
  export declare class Validator {
3
3
  private readonly schema;
4
4
  private readonly draft;
5
5
  private readonly shortCircuit;
6
6
  private readonly lookup;
7
7
  constructor(schema: Schema | boolean, draft?: SchemaDraft, shortCircuit?: boolean);
8
- validate(instance: any): import("./types.js").ValidationResult;
8
+ validate(instance: any): ValidationResult;
9
9
  addSchema(schema: Schema, id?: string): void;
10
10
  }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Validator = void 0;
4
+ const dereference_js_1 = require("./dereference.js");
5
+ const validate_js_1 = require("./validate.js");
6
+ class Validator {
7
+ schema;
8
+ draft;
9
+ shortCircuit;
10
+ lookup;
11
+ constructor(schema, draft = '2019-09', shortCircuit = true) {
12
+ this.schema = schema;
13
+ this.draft = draft;
14
+ this.shortCircuit = shortCircuit;
15
+ this.lookup = (0, dereference_js_1.dereference)(schema);
16
+ }
17
+ validate(instance) {
18
+ return (0, validate_js_1.validate)(instance, this.schema, this.draft, this.lookup, this.shortCircuit);
19
+ }
20
+ addSchema(schema, id) {
21
+ if (id) {
22
+ schema = { ...schema, $id: id };
23
+ }
24
+ (0, dereference_js_1.dereference)(schema, this.lookup);
25
+ }
26
+ }
27
+ exports.Validator = Validator;
@@ -0,0 +1 @@
1
+ export declare function deepCompareStrict(a: any, b: any): boolean;
@@ -0,0 +1,7 @@
1
+ import { Schema } from './types.js';
2
+ export declare const schemaKeyword: Record<string, boolean>;
3
+ export declare const schemaArrayKeyword: Record<string, boolean>;
4
+ export declare const schemaMapKeyword: Record<string, boolean>;
5
+ export declare const ignoredKeyword: Record<string, boolean>;
6
+ export declare let initialBaseURI: URL;
7
+ export declare function dereference(schema: Schema | boolean, lookup?: Record<string, Schema | boolean>, baseURI?: URL, basePointer?: string): Record<string, Schema | boolean>;
@@ -0,0 +1,2 @@
1
+ export declare const fullFormat: Record<string, (s: string) => boolean>;
2
+ export declare const fastFormat: Record<string, (s: string) => boolean>;
@@ -0,0 +1,8 @@
1
+ export * from './deep-compare-strict.js';
2
+ export * from './dereference.js';
3
+ export * from './format.js';
4
+ export * from './pointer.js';
5
+ export * from './types.js';
6
+ export * from './ucs2-length.js';
7
+ export * from './validate.js';
8
+ export * from './validator.js';
@@ -0,0 +1,2 @@
1
+ export declare function encodePointer(p: string): string;
2
+ export declare function escapePointer(p: string): string;
@@ -0,0 +1,72 @@
1
+ export type SchemaDraft = '4' | '7' | '2019-09' | '2020-12';
2
+ export declare const enum OutputFormat {
3
+ Flag = 1,
4
+ Basic = 2,
5
+ Detailed = 4
6
+ }
7
+ export type InstanceType = 'array' | 'boolean' | 'integer' | 'null' | 'number' | 'object' | 'string';
8
+ export interface Schema {
9
+ $id?: string;
10
+ $anchor?: string;
11
+ $recursiveAnchor?: boolean;
12
+ $ref?: string;
13
+ $recursiveRef?: '#';
14
+ $schema?: string;
15
+ $comment?: string;
16
+ $defs?: any;
17
+ $vocabulary?: Record<string, boolean>;
18
+ type?: InstanceType | InstanceType[];
19
+ const?: any;
20
+ enum?: any[];
21
+ required?: string[];
22
+ not?: Schema;
23
+ anyOf?: Schema[];
24
+ allOf?: Schema[];
25
+ oneOf?: Schema[];
26
+ if?: Schema;
27
+ then?: Schema;
28
+ else?: Schema;
29
+ format?: string;
30
+ properties?: Record<string | number, Schema | boolean>;
31
+ patternProperties?: Record<string, Schema | boolean>;
32
+ additionalProperties?: Schema | boolean;
33
+ unevaluatedProperties?: Schema | boolean;
34
+ minProperties?: number;
35
+ maxProperties?: number;
36
+ propertyNames?: Schema;
37
+ dependentRequired?: Record<string, string[]>;
38
+ dependentSchemas?: Record<string, Schema>;
39
+ dependencies?: Record<string, Schema | string[]>;
40
+ prefixItems?: Array<Schema | boolean>;
41
+ items?: Schema | boolean | Array<Schema | boolean>;
42
+ additionalItems?: Schema | boolean;
43
+ unevaluatedItems?: Schema | boolean;
44
+ contains?: Schema | boolean;
45
+ minContains?: number;
46
+ maxContains?: number;
47
+ minItems?: number;
48
+ maxItems?: number;
49
+ uniqueItems?: boolean;
50
+ minimum?: number;
51
+ maximum?: number;
52
+ exclusiveMinimum?: number | boolean;
53
+ exclusiveMaximum?: number | boolean;
54
+ multipleOf?: number;
55
+ minLength?: number;
56
+ maxLength?: number;
57
+ pattern?: string;
58
+ __absolute_ref__?: string;
59
+ __absolute_recursive_ref__?: string;
60
+ __absolute_uri__?: string;
61
+ [key: string]: any;
62
+ }
63
+ export interface OutputUnit {
64
+ keyword: string;
65
+ keywordLocation: string;
66
+ instanceLocation: string;
67
+ error: string;
68
+ }
69
+ export interface ValidationResult {
70
+ valid: boolean;
71
+ errors: OutputUnit[];
72
+ }
@@ -0,0 +1,6 @@
1
+ export var OutputFormat;
2
+ (function (OutputFormat) {
3
+ OutputFormat[OutputFormat["Flag"] = 1] = "Flag";
4
+ OutputFormat[OutputFormat["Basic"] = 2] = "Basic";
5
+ OutputFormat[OutputFormat["Detailed"] = 4] = "Detailed";
6
+ })(OutputFormat || (OutputFormat = {}));
@@ -0,0 +1 @@
1
+ export declare function ucs2length(s: string): number;
@@ -0,0 +1,3 @@
1
+ import { Schema, SchemaDraft, ValidationResult } from './types.js';
2
+ export type Evaluated = Record<string | number, boolean>;
3
+ export declare function validate(instance: any, schema: Schema | boolean, draft?: SchemaDraft, lookup?: Record<string, Schema | boolean>, shortCircuit?: boolean, recursiveAnchor?: Schema | null, instanceLocation?: string, schemaLocation?: string, evaluated?: Evaluated): ValidationResult;
@@ -0,0 +1,10 @@
1
+ import { Schema, SchemaDraft, ValidationResult } from './types.js';
2
+ export declare class Validator {
3
+ private readonly schema;
4
+ private readonly draft;
5
+ private readonly shortCircuit;
6
+ private readonly lookup;
7
+ constructor(schema: Schema | boolean, draft?: SchemaDraft, shortCircuit?: boolean);
8
+ validate(instance: any): ValidationResult;
9
+ addSchema(schema: Schema, id?: string): void;
10
+ }
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.webworker.d.ts","../../../node_modules/typescript/lib/lib.webworker.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/typescript/lib/lib.esnext.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/deep-compare-strict.ts","../src/pointer.ts","../src/types.ts","../src/dereference.ts","../src/format.ts","../src/ucs2-length.ts","../src/validate.ts","../src/validator.ts","../src/index.ts"],"fileIdsList":[[76,77],[75,76,77,78,79,80,81,82],[75,76,77,78,79,80],[77,78,81]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"abee51ebffafd50c07d76be5848a34abfe4d791b5745ef1e5648718722fab924","impliedFormat":1},{"version":"30055c4694373918593a99ac50e8bc2d42922b8117f71c79719ee433320eb80c","affectsGlobalScope":true,"impliedFormat":1},{"version":"89dc16e908e1555c5fa1e2f680c793a336996f6095d743d987dc729e04cdad19","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d540251809289a05349b70ab5f4b7b99f922af66ab3c39ba56a475dcf95d5ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"642cfe360fb10268d818180090606c600c8748982dedba8c065ef995618ff6c3","signature":"61d6c43861d171f1129a3179983d8af80995d3e86f90bdeaad9415756022d4b3"},{"version":"d21378b4690a726836a449bca4002b8dd9bf4bf42e20246650fb349056808d31","signature":"4276e358bf27203613ebe2f917706385875fa02481ed2829a96611eecc8c4255"},{"version":"f76a3d1f40959d029b1a7c531852e8b6ae361ddb2af9db280d1c0a4bb2fe8088","signature":"33bb7966e2c859326207e0bda17423fbf1bd81dbc8e6ba54fa143f950566e9da"},{"version":"08ecb3bf8dc088525668106c79ca3cadcd5f9c361d566309a9720e7e2d6edd33","signature":"4ae63b19255579a897918c94e928c4351c6bb6de552d50f14f41c6f175f4d282"},{"version":"1158f68cead29fe37e01fdd52aa30dedd810b696efc3c1224610eb2f34dd18ab","signature":"4114c8edf09acaa907aa1293c6fbfc71d26b7ae9ecf0e3dbf4ec47302bc51444"},{"version":"42e11d79e237357e72601969605ad5c0e4227a638ffbe25f097810dbc591bb2e","signature":"c223c62757304681e71494f26e78e828c83f9612b76c1181b2e9a7cf6f853fec"},{"version":"0becfcdc1e1b3ba1c0cb5b5b5854fd4eaaa3af3357e8078dc9874785f43289e2","signature":"d0f4d6c857e665d4163074039b1fbd996d67b8ef233117412adf4748b33689f5"},{"version":"5560612b491372aee121b0f9eb19acc97663fa5aa5cc2efa9adc735d2579f757","signature":"e25f0e3f148d4fb60ad91dc4ac77886119d2ff74f408596477c62f7bda54cb9b"},"a204e4f8f148eacfce004a47fb7920ffce1e7744323c2018731d288bf805c590"],"root":[[75,83]],"options":{"composite":true,"esModuleInterop":true,"isolatedDeclarations":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./cjs","removeComments":true,"rootDir":"../src","strict":true,"target":99},"referencedMap":[[78,1],[83,2],[81,3],[82,4]],"latestChangedDtsFile":"./cjs/index.d.ts","version":"5.6.3"}
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.webworker.d.ts","../../../node_modules/typescript/lib/lib.webworker.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/typescript/lib/lib.esnext.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/deep-compare-strict.ts","../src/pointer.ts","../src/types.ts","../src/dereference.ts","../src/format.ts","../src/ucs2-length.ts","../src/validate.ts","../src/validator.ts","../src/index.ts"],"fileIdsList":[[76,77],[75,76,77,78,79,80,81,82],[75,76,77,78,79,80],[77,78,81]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"abee51ebffafd50c07d76be5848a34abfe4d791b5745ef1e5648718722fab924","impliedFormat":1},{"version":"30055c4694373918593a99ac50e8bc2d42922b8117f71c79719ee433320eb80c","affectsGlobalScope":true,"impliedFormat":1},{"version":"89dc16e908e1555c5fa1e2f680c793a336996f6095d743d987dc729e04cdad19","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d540251809289a05349b70ab5f4b7b99f922af66ab3c39ba56a475dcf95d5ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"642cfe360fb10268d818180090606c600c8748982dedba8c065ef995618ff6c3","signature":"61d6c43861d171f1129a3179983d8af80995d3e86f90bdeaad9415756022d4b3"},{"version":"d21378b4690a726836a449bca4002b8dd9bf4bf42e20246650fb349056808d31","signature":"4276e358bf27203613ebe2f917706385875fa02481ed2829a96611eecc8c4255"},{"version":"f76a3d1f40959d029b1a7c531852e8b6ae361ddb2af9db280d1c0a4bb2fe8088","signature":"33bb7966e2c859326207e0bda17423fbf1bd81dbc8e6ba54fa143f950566e9da"},{"version":"08ecb3bf8dc088525668106c79ca3cadcd5f9c361d566309a9720e7e2d6edd33","signature":"4ae63b19255579a897918c94e928c4351c6bb6de552d50f14f41c6f175f4d282"},{"version":"1158f68cead29fe37e01fdd52aa30dedd810b696efc3c1224610eb2f34dd18ab","signature":"4114c8edf09acaa907aa1293c6fbfc71d26b7ae9ecf0e3dbf4ec47302bc51444"},{"version":"42e11d79e237357e72601969605ad5c0e4227a638ffbe25f097810dbc591bb2e","signature":"c223c62757304681e71494f26e78e828c83f9612b76c1181b2e9a7cf6f853fec"},{"version":"0becfcdc1e1b3ba1c0cb5b5b5854fd4eaaa3af3357e8078dc9874785f43289e2","signature":"d0f4d6c857e665d4163074039b1fbd996d67b8ef233117412adf4748b33689f5"},{"version":"5560612b491372aee121b0f9eb19acc97663fa5aa5cc2efa9adc735d2579f757","signature":"e25f0e3f148d4fb60ad91dc4ac77886119d2ff74f408596477c62f7bda54cb9b"},"a204e4f8f148eacfce004a47fb7920ffce1e7744323c2018731d288bf805c590"],"root":[[75,83]],"options":{"composite":true,"esModuleInterop":true,"isolatedDeclarations":true,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./esm","removeComments":true,"rootDir":"../src","strict":true,"target":99},"referencedMap":[[78,1],[83,2],[81,3],[82,4]],"latestChangedDtsFile":"./esm/index.d.ts","version":"5.6.3"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfworker/json-schema",
3
3
  "type": "module",
4
- "version": "2.0.1",
4
+ "version": "3.0.1",
5
5
  "description": "A JSON schema validator that will run on Cloudflare workers. Supports drafts 4, 7, 2019-09, and 2020-12.",
6
6
  "keywords": [
7
7
  "json-schema",
@@ -14,15 +14,19 @@
14
14
  "service-worker"
15
15
  ],
16
16
  "sideEffects": false,
17
- "main": "dist/index.js",
18
- "module": "dist/index.js",
19
- "types": "dist/index.d.ts",
17
+ "main": "dist/cjs/index.js",
18
+ "module": "dist/esm/index.js",
19
+ "types": "dist/esm/index.d.ts",
20
20
  "files": [
21
21
  "dist/**/*",
22
22
  "src/**/*",
23
23
  "README.md",
24
24
  "package.json"
25
25
  ],
26
+ "exports": {
27
+ "import": "./dist/esm/index.js",
28
+ "require": "./dist/cjs/index.js"
29
+ },
26
30
  "repository": "https://github.com/cfworker/cfworker",
27
31
  "author": "Jeremy Danyow <jdanyow@gmail.com>",
28
32
  "homepage": "https://github.com/cfworker/cfworker/tree/master/packages/json-schema/README.md",
@@ -31,19 +35,19 @@
31
35
  "access": "public"
32
36
  },
33
37
  "scripts": {
34
- "build": "tsc --build",
38
+ "build": "tsc --build & tsc --build tsconfig-cjs.json",
35
39
  "clean": "tsc --build --clean",
36
40
  "pretest": "node --experimental-import-meta-resolve suite-gen.js && esbuild test/test.ts --target=esnext --bundle --format=esm --conditions=worker,browser --outdir=dist-test --ignore-annotations",
37
41
  "test": "node ../../test.mjs"
38
42
  },
39
43
  "devDependencies": {
40
- "@types/chai": "^4.3.17",
41
- "@types/mocha": "^10.0.7",
42
- "chai": "^5.1.1",
44
+ "@types/chai": "^5.0.1",
45
+ "@types/mocha": "^10.0.9",
46
+ "chai": "^5.1.2",
43
47
  "json-schema-test-suite": "git+https://github.com/json-schema-org/JSON-Schema-Test-Suite#76b529f",
44
- "esbuild": "^0.23.1",
45
- "mocha": "^10.7.3",
46
- "typescript": "^5.5.4",
47
- "wrangler": "^3.72.0"
48
+ "esbuild": "^0.24.0",
49
+ "mocha": "^10.8.2",
50
+ "typescript": "^5.6.3",
51
+ "wrangler": "^3.87.0"
48
52
  }
49
53
  }
@@ -65,7 +65,7 @@ export const ignoredKeyword: Record<string, boolean> = {
65
65
  * https://json-schema.org/draft/2019-09/json-schema-core.html#initial-base
66
66
  * https://tools.ietf.org/html/rfc3986#section-5.1
67
67
  */
68
- export let initialBaseURI =
68
+ export let initialBaseURI: URL =
69
69
  // @ts-ignore
70
70
  typeof self !== 'undefined' &&
71
71
  self.location &&
@@ -77,9 +77,9 @@ export let initialBaseURI =
77
77
  export function dereference(
78
78
  schema: Schema | boolean,
79
79
  lookup: Record<string, Schema | boolean> = Object.create(null),
80
- baseURI = initialBaseURI,
80
+ baseURI: URL = initialBaseURI,
81
81
  basePointer = ''
82
- ) {
82
+ ): Record<string, Schema | boolean> {
83
83
  if (schema && typeof schema === 'object' && !Array.isArray(schema)) {
84
84
  const id: string = schema.$id || schema.id;
85
85
  if (id) {
@@ -3,7 +3,7 @@
3
3
  * https://mathiasbynens.be/notes/javascript-encoding
4
4
  * https://github.com/bestiejs/punycode.js - punycode.ucs2.decode
5
5
  */
6
- export function ucs2length(s: string) {
6
+ export function ucs2length(s: string): number {
7
7
  let result = 0;
8
8
  let length = s.length;
9
9
  let index = 0;
package/src/validate.ts CHANGED
@@ -17,7 +17,7 @@ export function validate(
17
17
  instance: any,
18
18
  schema: Schema | boolean,
19
19
  draft: SchemaDraft = '2019-09',
20
- lookup = dereference(schema),
20
+ lookup: Record<string, Schema | boolean> = dereference(schema),
21
21
  shortCircuit = true,
22
22
  recursiveAnchor: Schema | null = null,
23
23
  instanceLocation = '#',
package/src/validator.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { dereference } from './dereference.js';
2
- import { Schema, SchemaDraft } from './types.js';
2
+ import { Schema, SchemaDraft, ValidationResult } from './types.js';
3
3
  import { validate } from './validate.js';
4
4
 
5
5
  export class Validator {
@@ -13,7 +13,7 @@ export class Validator {
13
13
  this.lookup = dereference(schema);
14
14
  }
15
15
 
16
- public validate(instance: any) {
16
+ public validate(instance: any): ValidationResult {
17
17
  return validate(
18
18
  instance,
19
19
  this.schema,
@@ -23,7 +23,7 @@ export class Validator {
23
23
  );
24
24
  }
25
25
 
26
- public addSchema(schema: Schema, id?: string) {
26
+ public addSchema(schema: Schema, id?: string): void {
27
27
  if (id) {
28
28
  schema = { ...schema, $id: id };
29
29
  }
package/dist/types.js DELETED
@@ -1 +0,0 @@
1
- export {};
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes