@spotlightjs/spotlight 4.11.4 → 4.11.5
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/dist/_virtual/ajv.js +6 -3
- package/dist/_virtual/ajv2.js +13 -0
- package/dist/_virtual/index.js +6 -3
- package/dist/_virtual/index10.js +3 -3
- package/dist/_virtual/index11.js +3 -3
- package/dist/_virtual/index12.js +13 -0
- package/dist/_virtual/index2.js +3 -3
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +3 -3
- package/dist/_virtual/index5.js +3 -3
- package/dist/_virtual/index6.js +3 -3
- package/dist/_virtual/index7.js +3 -3
- package/dist/_virtual/index8.js +3 -3
- package/dist/_virtual/index9.js +3 -3
- package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +1 -1
- package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map +1 -1
- package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +3 -3
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js +203 -194
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js +47 -47
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js +77 -69
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js +78 -81
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js +145 -136
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js +692 -685
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js +143 -135
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js +122 -116
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js +216 -214
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js +43 -35
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js +19 -11
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js +149 -144
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js +31 -25
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js +164 -160
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js +23 -17
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js +7 -10
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js +174 -173
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js +5 -7
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js +21 -28
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js +11 -15
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js +5 -7
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js +571 -570
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json.js +3 -17
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +4 -236
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js +16 -7
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js +27 -18
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js +16 -7
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +55 -48
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +104 -99
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +30 -22
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +20 -12
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -88
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +94 -88
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js +71 -64
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js +67 -74
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js +60 -54
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +41 -36
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js +34 -26
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -53
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +73 -67
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +20 -12
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +61 -55
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +46 -39
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +21 -13
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js +132 -129
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js +17 -8
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js +27 -20
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js +121 -118
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -100
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +15 -9
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js +30 -26
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js +84 -76
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js +16 -8
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js +24 -18
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js +33 -27
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js +53 -47
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js +52 -53
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +32 -24
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +37 -31
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +35 -27
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +32 -24
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +31 -23
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +41 -35
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js +80 -74
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +71 -66
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -1
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +34 -27
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js.map +1 -1
- package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js +250 -245
- package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js.map +1 -1
- package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js +201 -175
- package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js.map +1 -1
- package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js +267 -259
- package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js.map +1 -1
- package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +83 -78
- package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js.map +1 -1
- package/dist/node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.1.13/node_modules/zod-to-json-schema/dist/esm/Options.js +1 -1
- package/dist/node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.1.13/node_modules/zod-to-json-schema/dist/esm/Options.js.map +1 -1
- package/dist/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js +1 -1
- package/dist/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js.map +1 -1
- package/dist/sentry-config.js +2 -2
- package/dist/server/cli/run.js +2 -2
- package/dist/server/cli.js +2 -2
- package/dist/server/mcp/mcp.js +2 -2
- package/dist/ui/assets/index.js +61 -70
- package/dist/ui/assets/index2.js +1 -1
- package/dist/ui/assets/instrumentation.js +18 -18
- package/dist/ui/assets/main.css +1 -1
- package/dist/ui/assets/main.js +1 -1
- package/dist/ui/assets/serverTimingMeta.js +23 -30
- package/package.json +4 -4
package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
CHANGED
|
@@ -2,100 +2,107 @@
|
|
|
2
2
|
!(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "455f95f0-ecc5-4393-9564-7ee0798b23eb", e._sentryDebugIdIdentifier = "sentry-dbid-455f95f0-ecc5-4393-9564-7ee0798b23eb");
|
|
6
6
|
} catch (e2) {
|
|
7
7
|
}
|
|
8
8
|
})();
|
|
9
9
|
import { __exports as contains } from "../../../../../../../../_virtual/contains.js";
|
|
10
|
-
import "../../compile/codegen/index.js";
|
|
11
|
-
import "../../compile/util.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
const len = gen.const("len", (0, codegen_1._)`${data}.length`);
|
|
40
|
-
cxt.setParams({ min, max });
|
|
41
|
-
if (max === void 0 && min === 0) {
|
|
42
|
-
(0, util_1.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`);
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
if (max !== void 0 && min > max) {
|
|
46
|
-
(0, util_1.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`);
|
|
47
|
-
cxt.fail();
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
if ((0, util_1.alwaysValidSchema)(it, schema)) {
|
|
51
|
-
let cond = (0, codegen_1._)`${len} >= ${min}`;
|
|
52
|
-
if (max !== void 0)
|
|
53
|
-
cond = (0, codegen_1._)`${cond} && ${len} <= ${max}`;
|
|
54
|
-
cxt.pass(cond);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
it.items = true;
|
|
58
|
-
const valid = gen.name("valid");
|
|
59
|
-
if (max === void 0 && min === 1) {
|
|
60
|
-
validateItems(valid, () => gen.if(valid, () => gen.break()));
|
|
61
|
-
} else if (min === 0) {
|
|
62
|
-
gen.let(valid, true);
|
|
63
|
-
if (max !== void 0)
|
|
64
|
-
gen.if((0, codegen_1._)`${data}.length > 0`, validateItemsWithCount);
|
|
65
|
-
} else {
|
|
66
|
-
gen.let(valid, false);
|
|
67
|
-
validateItemsWithCount();
|
|
68
|
-
}
|
|
69
|
-
cxt.result(valid, () => cxt.reset());
|
|
70
|
-
function validateItemsWithCount() {
|
|
71
|
-
const schValid = gen.name("_valid");
|
|
72
|
-
const count = gen.let("count", 0);
|
|
73
|
-
validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));
|
|
74
|
-
}
|
|
75
|
-
function validateItems(_valid, block) {
|
|
76
|
-
gen.forRange("i", 0, len, (i) => {
|
|
77
|
-
cxt.subschema({
|
|
78
|
-
keyword: "contains",
|
|
79
|
-
dataProp: i,
|
|
80
|
-
dataPropType: util_1.Type.Num,
|
|
81
|
-
compositeRule: true
|
|
82
|
-
}, _valid);
|
|
83
|
-
block();
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
function checkLimits(count) {
|
|
87
|
-
gen.code((0, codegen_1._)`${count}++`);
|
|
88
|
-
if (max === void 0) {
|
|
89
|
-
gen.if((0, codegen_1._)`${count} >= ${min}`, () => gen.assign(valid, true).break());
|
|
10
|
+
import { __require as requireCodegen } from "../../compile/codegen/index.js";
|
|
11
|
+
import { __require as requireUtil } from "../../compile/util.js";
|
|
12
|
+
var hasRequiredContains;
|
|
13
|
+
function requireContains() {
|
|
14
|
+
if (hasRequiredContains) return contains;
|
|
15
|
+
hasRequiredContains = 1;
|
|
16
|
+
Object.defineProperty(contains, "__esModule", { value: true });
|
|
17
|
+
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
18
|
+
const util_1 = /* @__PURE__ */ requireUtil();
|
|
19
|
+
const error = {
|
|
20
|
+
message: ({ params: { min, max } }) => max === void 0 ? (0, codegen_1.str)`must contain at least ${min} valid item(s)` : (0, codegen_1.str)`must contain at least ${min} and no more than ${max} valid item(s)`,
|
|
21
|
+
params: ({ params: { min, max } }) => max === void 0 ? (0, codegen_1._)`{minContains: ${min}}` : (0, codegen_1._)`{minContains: ${min}, maxContains: ${max}}`
|
|
22
|
+
};
|
|
23
|
+
const def = {
|
|
24
|
+
keyword: "contains",
|
|
25
|
+
type: "array",
|
|
26
|
+
schemaType: ["object", "boolean"],
|
|
27
|
+
before: "uniqueItems",
|
|
28
|
+
trackErrors: true,
|
|
29
|
+
error,
|
|
30
|
+
code(cxt) {
|
|
31
|
+
const { gen, schema, parentSchema, data, it } = cxt;
|
|
32
|
+
let min;
|
|
33
|
+
let max;
|
|
34
|
+
const { minContains, maxContains } = parentSchema;
|
|
35
|
+
if (it.opts.next) {
|
|
36
|
+
min = minContains === void 0 ? 1 : minContains;
|
|
37
|
+
max = maxContains;
|
|
90
38
|
} else {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
39
|
+
min = 1;
|
|
40
|
+
}
|
|
41
|
+
const len = gen.const("len", (0, codegen_1._)`${data}.length`);
|
|
42
|
+
cxt.setParams({ min, max });
|
|
43
|
+
if (max === void 0 && min === 0) {
|
|
44
|
+
(0, util_1.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (max !== void 0 && min > max) {
|
|
48
|
+
(0, util_1.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`);
|
|
49
|
+
cxt.fail();
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if ((0, util_1.alwaysValidSchema)(it, schema)) {
|
|
53
|
+
let cond = (0, codegen_1._)`${len} >= ${min}`;
|
|
54
|
+
if (max !== void 0)
|
|
55
|
+
cond = (0, codegen_1._)`${cond} && ${len} <= ${max}`;
|
|
56
|
+
cxt.pass(cond);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
it.items = true;
|
|
60
|
+
const valid = gen.name("valid");
|
|
61
|
+
if (max === void 0 && min === 1) {
|
|
62
|
+
validateItems(valid, () => gen.if(valid, () => gen.break()));
|
|
63
|
+
} else if (min === 0) {
|
|
64
|
+
gen.let(valid, true);
|
|
65
|
+
if (max !== void 0)
|
|
66
|
+
gen.if((0, codegen_1._)`${data}.length > 0`, validateItemsWithCount);
|
|
67
|
+
} else {
|
|
68
|
+
gen.let(valid, false);
|
|
69
|
+
validateItemsWithCount();
|
|
70
|
+
}
|
|
71
|
+
cxt.result(valid, () => cxt.reset());
|
|
72
|
+
function validateItemsWithCount() {
|
|
73
|
+
const schValid = gen.name("_valid");
|
|
74
|
+
const count = gen.let("count", 0);
|
|
75
|
+
validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));
|
|
76
|
+
}
|
|
77
|
+
function validateItems(_valid, block) {
|
|
78
|
+
gen.forRange("i", 0, len, (i) => {
|
|
79
|
+
cxt.subschema({
|
|
80
|
+
keyword: "contains",
|
|
81
|
+
dataProp: i,
|
|
82
|
+
dataPropType: util_1.Type.Num,
|
|
83
|
+
compositeRule: true
|
|
84
|
+
}, _valid);
|
|
85
|
+
block();
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function checkLimits(count) {
|
|
89
|
+
gen.code((0, codegen_1._)`${count}++`);
|
|
90
|
+
if (max === void 0) {
|
|
91
|
+
gen.if((0, codegen_1._)`${count} >= ${min}`, () => gen.assign(valid, true).break());
|
|
92
|
+
} else {
|
|
93
|
+
gen.if((0, codegen_1._)`${count} > ${max}`, () => gen.assign(valid, false).break());
|
|
94
|
+
if (min === 1)
|
|
95
|
+
gen.assign(valid, true);
|
|
96
|
+
else
|
|
97
|
+
gen.if((0, codegen_1._)`${count} >= ${min}`, () => gen.assign(valid, true));
|
|
98
|
+
}
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
|
-
}
|
|
101
|
+
};
|
|
102
|
+
contains.default = def;
|
|
103
|
+
return contains;
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
requireContains as __require
|
|
99
107
|
};
|
|
100
|
-
contains.default = def;
|
|
101
108
|
//# sourceMappingURL=contains.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contains.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: ({ params: { min, max } }) => max === undefined\n ? (0, codegen_1.str) `must contain at least ${min} valid item(s)`\n : (0, codegen_1.str) `must contain at least ${min} and no more than ${max} valid item(s)`,\n params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._) `{minContains: ${min}}` : (0, codegen_1._) `{minContains: ${min}, maxContains: ${max}}`,\n};\nconst def = {\n keyword: \"contains\",\n type: \"array\",\n schemaType: [\"object\", \"boolean\"],\n before: \"uniqueItems\",\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, schema, parentSchema, data, it } = cxt;\n let min;\n let max;\n const { minContains, maxContains } = parentSchema;\n if (it.opts.next) {\n min = minContains === undefined ? 1 : minContains;\n max = maxContains;\n }\n else {\n min = 1;\n }\n const len = gen.const(\"len\", (0, codegen_1._) `${data}.length`);\n cxt.setParams({ min, max });\n if (max === undefined && min === 0) {\n (0, util_1.checkStrictMode)(it, `\"minContains\" == 0 without \"maxContains\": \"contains\" keyword ignored`);\n return;\n }\n if (max !== undefined && min > max) {\n (0, util_1.checkStrictMode)(it, `\"minContains\" > \"maxContains\" is always invalid`);\n cxt.fail();\n return;\n }\n if ((0, util_1.alwaysValidSchema)(it, schema)) {\n let cond = (0, codegen_1._) `${len} >= ${min}`;\n if (max !== undefined)\n cond = (0, codegen_1._) `${cond} && ${len} <= ${max}`;\n cxt.pass(cond);\n return;\n }\n it.items = true;\n const valid = gen.name(\"valid\");\n if (max === undefined && min === 1) {\n validateItems(valid, () => gen.if(valid, () => gen.break()));\n }\n else if (min === 0) {\n gen.let(valid, true);\n if (max !== undefined)\n gen.if((0, codegen_1._) `${data}.length > 0`, validateItemsWithCount);\n }\n else {\n gen.let(valid, false);\n validateItemsWithCount();\n }\n cxt.result(valid, () => cxt.reset());\n function validateItemsWithCount() {\n const schValid = gen.name(\"_valid\");\n const count = gen.let(\"count\", 0);\n validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));\n }\n function validateItems(_valid, block) {\n gen.forRange(\"i\", 0, len, (i) => {\n cxt.subschema({\n keyword: \"contains\",\n dataProp: i,\n dataPropType: util_1.Type.Num,\n compositeRule: true,\n }, _valid);\n block();\n });\n }\n function checkLimits(count) {\n gen.code((0, codegen_1._) `${count}++`);\n if (max === undefined) {\n gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true).break());\n }\n else {\n gen.if((0, codegen_1._) `${count} > ${max}`, () => gen.assign(valid, false).break());\n if (min === 1)\n gen.assign(valid, true);\n else\n gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true));\n }\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=contains.js.map"],"names":["require$$0","require$$1"],"mappings":"
|
|
1
|
+
{"version":3,"file":"contains.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst error = {\n message: ({ params: { min, max } }) => max === undefined\n ? (0, codegen_1.str) `must contain at least ${min} valid item(s)`\n : (0, codegen_1.str) `must contain at least ${min} and no more than ${max} valid item(s)`,\n params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._) `{minContains: ${min}}` : (0, codegen_1._) `{minContains: ${min}, maxContains: ${max}}`,\n};\nconst def = {\n keyword: \"contains\",\n type: \"array\",\n schemaType: [\"object\", \"boolean\"],\n before: \"uniqueItems\",\n trackErrors: true,\n error,\n code(cxt) {\n const { gen, schema, parentSchema, data, it } = cxt;\n let min;\n let max;\n const { minContains, maxContains } = parentSchema;\n if (it.opts.next) {\n min = minContains === undefined ? 1 : minContains;\n max = maxContains;\n }\n else {\n min = 1;\n }\n const len = gen.const(\"len\", (0, codegen_1._) `${data}.length`);\n cxt.setParams({ min, max });\n if (max === undefined && min === 0) {\n (0, util_1.checkStrictMode)(it, `\"minContains\" == 0 without \"maxContains\": \"contains\" keyword ignored`);\n return;\n }\n if (max !== undefined && min > max) {\n (0, util_1.checkStrictMode)(it, `\"minContains\" > \"maxContains\" is always invalid`);\n cxt.fail();\n return;\n }\n if ((0, util_1.alwaysValidSchema)(it, schema)) {\n let cond = (0, codegen_1._) `${len} >= ${min}`;\n if (max !== undefined)\n cond = (0, codegen_1._) `${cond} && ${len} <= ${max}`;\n cxt.pass(cond);\n return;\n }\n it.items = true;\n const valid = gen.name(\"valid\");\n if (max === undefined && min === 1) {\n validateItems(valid, () => gen.if(valid, () => gen.break()));\n }\n else if (min === 0) {\n gen.let(valid, true);\n if (max !== undefined)\n gen.if((0, codegen_1._) `${data}.length > 0`, validateItemsWithCount);\n }\n else {\n gen.let(valid, false);\n validateItemsWithCount();\n }\n cxt.result(valid, () => cxt.reset());\n function validateItemsWithCount() {\n const schValid = gen.name(\"_valid\");\n const count = gen.let(\"count\", 0);\n validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));\n }\n function validateItems(_valid, block) {\n gen.forRange(\"i\", 0, len, (i) => {\n cxt.subschema({\n keyword: \"contains\",\n dataProp: i,\n dataPropType: util_1.Type.Num,\n compositeRule: true,\n }, _valid);\n block();\n });\n }\n function checkLimits(count) {\n gen.code((0, codegen_1._) `${count}++`);\n if (max === undefined) {\n gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true).break());\n }\n else {\n gen.if((0, codegen_1._) `${count} > ${max}`, () => gen.assign(valid, false).break());\n if (min === 1)\n gen.assign(valid, true);\n else\n gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true));\n }\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=contains.js.map"],"names":["require$$0","require$$1"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -2,104 +2,110 @@
|
|
|
2
2
|
!(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cc825c5d-171e-48fe-8dd6-8f28343f8f3d", e._sentryDebugIdIdentifier = "sentry-dbid-cc825c5d-171e-48fe-8dd6-8f28343f8f3d");
|
|
6
6
|
} catch (e2) {
|
|
7
7
|
}
|
|
8
8
|
})();
|
|
9
9
|
import { __exports as dependencies } from "../../../../../../../../_virtual/dependencies.js";
|
|
10
|
-
import "../../compile/codegen/index.js";
|
|
11
|
-
import "../../compile/util.js";
|
|
12
|
-
import "../code.js";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
10
|
+
import { __require as requireCodegen } from "../../compile/codegen/index.js";
|
|
11
|
+
import { __require as requireUtil } from "../../compile/util.js";
|
|
12
|
+
import { __require as requireCode } from "../code.js";
|
|
13
|
+
var hasRequiredDependencies;
|
|
14
|
+
function requireDependencies() {
|
|
15
|
+
if (hasRequiredDependencies) return dependencies;
|
|
16
|
+
hasRequiredDependencies = 1;
|
|
17
|
+
(function(exports$1) {
|
|
18
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
19
|
+
exports$1.validateSchemaDeps = exports$1.validatePropertyDeps = exports$1.error = void 0;
|
|
20
|
+
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
21
|
+
const util_1 = /* @__PURE__ */ requireUtil();
|
|
22
|
+
const code_1 = /* @__PURE__ */ requireCode();
|
|
23
|
+
exports$1.error = {
|
|
24
|
+
message: ({ params: { property, depsCount, deps } }) => {
|
|
25
|
+
const property_ies = depsCount === 1 ? "property" : "properties";
|
|
26
|
+
return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
|
|
27
|
+
},
|
|
28
|
+
params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._)`{property: ${property},
|
|
28
29
|
missingProperty: ${missingProperty},
|
|
29
30
|
depsCount: ${depsCount},
|
|
30
31
|
deps: ${deps}}`
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
32
|
+
// TODO change to reference
|
|
33
|
+
};
|
|
34
|
+
const def = {
|
|
35
|
+
keyword: "dependencies",
|
|
36
|
+
type: "object",
|
|
37
|
+
schemaType: "object",
|
|
38
|
+
error: exports$1.error,
|
|
39
|
+
code(cxt) {
|
|
40
|
+
const [propDeps, schDeps] = splitDependencies(cxt);
|
|
41
|
+
validatePropertyDeps(cxt, propDeps);
|
|
42
|
+
validateSchemaDeps(cxt, schDeps);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
function splitDependencies({ schema }) {
|
|
46
|
+
const propertyDeps = {};
|
|
47
|
+
const schemaDeps = {};
|
|
48
|
+
for (const key in schema) {
|
|
49
|
+
if (key === "__proto__")
|
|
50
|
+
continue;
|
|
51
|
+
const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps;
|
|
52
|
+
deps[key] = schema[key];
|
|
53
|
+
}
|
|
54
|
+
return [propertyDeps, schemaDeps];
|
|
52
55
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
depsCount: deps.length,
|
|
68
|
-
deps: deps.join(", ")
|
|
69
|
-
});
|
|
70
|
-
if (it.allErrors) {
|
|
71
|
-
gen.if(hasProperty, () => {
|
|
72
|
-
for (const depProp of deps) {
|
|
73
|
-
(0, code_1.checkReportMissingProp)(cxt, depProp);
|
|
74
|
-
}
|
|
56
|
+
function validatePropertyDeps(cxt, propertyDeps = cxt.schema) {
|
|
57
|
+
const { gen, data, it } = cxt;
|
|
58
|
+
if (Object.keys(propertyDeps).length === 0)
|
|
59
|
+
return;
|
|
60
|
+
const missing = gen.let("missing");
|
|
61
|
+
for (const prop in propertyDeps) {
|
|
62
|
+
const deps = propertyDeps[prop];
|
|
63
|
+
if (deps.length === 0)
|
|
64
|
+
continue;
|
|
65
|
+
const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties);
|
|
66
|
+
cxt.setParams({
|
|
67
|
+
property: prop,
|
|
68
|
+
depsCount: deps.length,
|
|
69
|
+
deps: deps.join(", ")
|
|
75
70
|
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
71
|
+
if (it.allErrors) {
|
|
72
|
+
gen.if(hasProperty, () => {
|
|
73
|
+
for (const depProp of deps) {
|
|
74
|
+
(0, code_1.checkReportMissingProp)(cxt, depProp);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
} else {
|
|
78
|
+
gen.if((0, codegen_1._)`${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`);
|
|
79
|
+
(0, code_1.reportMissingProp)(cxt, missing);
|
|
80
|
+
gen.else();
|
|
81
|
+
}
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
84
|
+
exports$1.validatePropertyDeps = validatePropertyDeps;
|
|
85
|
+
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
86
|
+
const { gen, data, keyword, it } = cxt;
|
|
87
|
+
const valid = gen.name("valid");
|
|
88
|
+
for (const prop in schemaDeps) {
|
|
89
|
+
if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop]))
|
|
90
|
+
continue;
|
|
91
|
+
gen.if(
|
|
92
|
+
(0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties),
|
|
93
|
+
() => {
|
|
94
|
+
const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid);
|
|
95
|
+
cxt.mergeValidEvaluated(schCxt, valid);
|
|
96
|
+
},
|
|
97
|
+
() => gen.var(valid, true)
|
|
98
|
+
// TODO var
|
|
99
|
+
);
|
|
100
|
+
cxt.ok(valid);
|
|
101
|
+
}
|
|
100
102
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
exports$1.validateSchemaDeps = validateSchemaDeps;
|
|
104
|
+
exports$1.default = def;
|
|
105
|
+
})(dependencies);
|
|
106
|
+
return dependencies;
|
|
107
|
+
}
|
|
108
|
+
export {
|
|
109
|
+
requireDependencies as __require
|
|
110
|
+
};
|
|
105
111
|
//# sourceMappingURL=dependencies.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependencies.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst code_1 = require(\"../code\");\nexports.error = {\n message: ({ params: { property, depsCount, deps } }) => {\n const property_ies = depsCount === 1 ? \"property\" : \"properties\";\n return (0, codegen_1.str) `must have ${property_ies} ${deps} when property ${property} is present`;\n },\n params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._) `{property: ${property},\n missingProperty: ${missingProperty},\n depsCount: ${depsCount},\n deps: ${deps}}`, // TODO change to reference\n};\nconst def = {\n keyword: \"dependencies\",\n type: \"object\",\n schemaType: \"object\",\n error: exports.error,\n code(cxt) {\n const [propDeps, schDeps] = splitDependencies(cxt);\n validatePropertyDeps(cxt, propDeps);\n validateSchemaDeps(cxt, schDeps);\n },\n};\nfunction splitDependencies({ schema }) {\n const propertyDeps = {};\n const schemaDeps = {};\n for (const key in schema) {\n if (key === \"__proto__\")\n continue;\n const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps;\n deps[key] = schema[key];\n }\n return [propertyDeps, schemaDeps];\n}\nfunction validatePropertyDeps(cxt, propertyDeps = cxt.schema) {\n const { gen, data, it } = cxt;\n if (Object.keys(propertyDeps).length === 0)\n return;\n const missing = gen.let(\"missing\");\n for (const prop in propertyDeps) {\n const deps = propertyDeps[prop];\n if (deps.length === 0)\n continue;\n const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties);\n cxt.setParams({\n property: prop,\n depsCount: deps.length,\n deps: deps.join(\", \"),\n });\n if (it.allErrors) {\n gen.if(hasProperty, () => {\n for (const depProp of deps) {\n (0, code_1.checkReportMissingProp)(cxt, depProp);\n }\n });\n }\n else {\n gen.if((0, codegen_1._) `${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`);\n (0, code_1.reportMissingProp)(cxt, missing);\n gen.else();\n }\n }\n}\nexports.validatePropertyDeps = validatePropertyDeps;\nfunction validateSchemaDeps(cxt, schemaDeps = cxt.schema) {\n const { gen, data, keyword, it } = cxt;\n const valid = gen.name(\"valid\");\n for (const prop in schemaDeps) {\n if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop]))\n continue;\n gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => {\n const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid);\n cxt.mergeValidEvaluated(schCxt, valid);\n }, () => gen.var(valid, true) // TODO var\n );\n cxt.ok(valid);\n }\n}\nexports.validateSchemaDeps = validateSchemaDeps;\nexports.default = def;\n//# sourceMappingURL=dependencies.js.map"],"names":["exports","require$$0","require$$1","require$$2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"dependencies.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst code_1 = require(\"../code\");\nexports.error = {\n message: ({ params: { property, depsCount, deps } }) => {\n const property_ies = depsCount === 1 ? \"property\" : \"properties\";\n return (0, codegen_1.str) `must have ${property_ies} ${deps} when property ${property} is present`;\n },\n params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._) `{property: ${property},\n missingProperty: ${missingProperty},\n depsCount: ${depsCount},\n deps: ${deps}}`, // TODO change to reference\n};\nconst def = {\n keyword: \"dependencies\",\n type: \"object\",\n schemaType: \"object\",\n error: exports.error,\n code(cxt) {\n const [propDeps, schDeps] = splitDependencies(cxt);\n validatePropertyDeps(cxt, propDeps);\n validateSchemaDeps(cxt, schDeps);\n },\n};\nfunction splitDependencies({ schema }) {\n const propertyDeps = {};\n const schemaDeps = {};\n for (const key in schema) {\n if (key === \"__proto__\")\n continue;\n const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps;\n deps[key] = schema[key];\n }\n return [propertyDeps, schemaDeps];\n}\nfunction validatePropertyDeps(cxt, propertyDeps = cxt.schema) {\n const { gen, data, it } = cxt;\n if (Object.keys(propertyDeps).length === 0)\n return;\n const missing = gen.let(\"missing\");\n for (const prop in propertyDeps) {\n const deps = propertyDeps[prop];\n if (deps.length === 0)\n continue;\n const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties);\n cxt.setParams({\n property: prop,\n depsCount: deps.length,\n deps: deps.join(\", \"),\n });\n if (it.allErrors) {\n gen.if(hasProperty, () => {\n for (const depProp of deps) {\n (0, code_1.checkReportMissingProp)(cxt, depProp);\n }\n });\n }\n else {\n gen.if((0, codegen_1._) `${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`);\n (0, code_1.reportMissingProp)(cxt, missing);\n gen.else();\n }\n }\n}\nexports.validatePropertyDeps = validatePropertyDeps;\nfunction validateSchemaDeps(cxt, schemaDeps = cxt.schema) {\n const { gen, data, keyword, it } = cxt;\n const valid = gen.name(\"valid\");\n for (const prop in schemaDeps) {\n if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop]))\n continue;\n gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => {\n const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid);\n cxt.mergeValidEvaluated(schCxt, valid);\n }, () => gen.var(valid, true) // TODO var\n );\n cxt.ok(valid);\n }\n}\nexports.validateSchemaDeps = validateSchemaDeps;\nexports.default = def;\n//# sourceMappingURL=dependencies.js.map"],"names":["exports","require$$0","require$$1","require$$2"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js
CHANGED
|
@@ -2,75 +2,82 @@
|
|
|
2
2
|
!(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "30800e03-110a-4905-ad4e-36e0ccbc931b", e._sentryDebugIdIdentifier = "sentry-dbid-30800e03-110a-4905-ad4e-36e0ccbc931b");
|
|
6
6
|
} catch (e2) {
|
|
7
7
|
}
|
|
8
8
|
})();
|
|
9
9
|
import { __exports as _if } from "../../../../../../../../_virtual/if.js";
|
|
10
|
-
import "../../compile/codegen/index.js";
|
|
11
|
-
import "../../compile/util.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
10
|
+
import { __require as requireCodegen } from "../../compile/codegen/index.js";
|
|
11
|
+
import { __require as requireUtil } from "../../compile/util.js";
|
|
12
|
+
var hasRequired_if;
|
|
13
|
+
function require_if() {
|
|
14
|
+
if (hasRequired_if) return _if;
|
|
15
|
+
hasRequired_if = 1;
|
|
16
|
+
Object.defineProperty(_if, "__esModule", { value: true });
|
|
17
|
+
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
18
|
+
const util_1 = /* @__PURE__ */ requireUtil();
|
|
19
|
+
const error = {
|
|
20
|
+
message: ({ params }) => (0, codegen_1.str)`must match "${params.ifClause}" schema`,
|
|
21
|
+
params: ({ params }) => (0, codegen_1._)`{failingKeyword: ${params.ifClause}}`
|
|
22
|
+
};
|
|
23
|
+
const def = {
|
|
24
|
+
keyword: "if",
|
|
25
|
+
schemaType: ["object", "boolean"],
|
|
26
|
+
trackErrors: true,
|
|
27
|
+
error,
|
|
28
|
+
code(cxt) {
|
|
29
|
+
const { gen, parentSchema, it } = cxt;
|
|
30
|
+
if (parentSchema.then === void 0 && parentSchema.else === void 0) {
|
|
31
|
+
(0, util_1.checkStrictMode)(it, '"if" without "then" and "else" is ignored');
|
|
32
|
+
}
|
|
33
|
+
const hasThen = hasSchema(it, "then");
|
|
34
|
+
const hasElse = hasSchema(it, "else");
|
|
35
|
+
if (!hasThen && !hasElse)
|
|
36
|
+
return;
|
|
37
|
+
const valid = gen.let("valid", true);
|
|
38
|
+
const schValid = gen.name("_valid");
|
|
39
|
+
validateIf();
|
|
40
|
+
cxt.reset();
|
|
41
|
+
if (hasThen && hasElse) {
|
|
42
|
+
const ifClause = gen.let("ifClause");
|
|
43
|
+
cxt.setParams({ ifClause });
|
|
44
|
+
gen.if(schValid, validateClause("then", ifClause), validateClause("else", ifClause));
|
|
45
|
+
} else if (hasThen) {
|
|
46
|
+
gen.if(schValid, validateClause("then"));
|
|
47
|
+
} else {
|
|
48
|
+
gen.if((0, codegen_1.not)(schValid), validateClause("else"));
|
|
49
|
+
}
|
|
50
|
+
cxt.pass(valid, () => cxt.error(true));
|
|
51
|
+
function validateIf() {
|
|
52
|
+
const schCxt = cxt.subschema({
|
|
53
|
+
keyword: "if",
|
|
54
|
+
compositeRule: true,
|
|
55
|
+
createErrors: false,
|
|
56
|
+
allErrors: false
|
|
57
|
+
}, schValid);
|
|
58
|
+
cxt.mergeEvaluated(schCxt);
|
|
59
|
+
}
|
|
60
|
+
function validateClause(keyword, ifClause) {
|
|
61
|
+
return () => {
|
|
62
|
+
const schCxt = cxt.subschema({ keyword }, schValid);
|
|
63
|
+
gen.assign(valid, schValid);
|
|
64
|
+
cxt.mergeValidEvaluated(schCxt, valid);
|
|
65
|
+
if (ifClause)
|
|
66
|
+
gen.assign(ifClause, (0, codegen_1._)`${keyword}`);
|
|
67
|
+
else
|
|
68
|
+
cxt.setParams({ ifClause: keyword });
|
|
69
|
+
};
|
|
70
|
+
}
|
|
68
71
|
}
|
|
72
|
+
};
|
|
73
|
+
function hasSchema(it, keyword) {
|
|
74
|
+
const schema = it.schema[keyword];
|
|
75
|
+
return schema !== void 0 && !(0, util_1.alwaysValidSchema)(it, schema);
|
|
69
76
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const schema = it.schema[keyword];
|
|
73
|
-
return schema !== void 0 && !(0, util_1.alwaysValidSchema)(it, schema);
|
|
77
|
+
_if.default = def;
|
|
78
|
+
return _if;
|
|
74
79
|
}
|
|
75
|
-
|
|
80
|
+
export {
|
|
81
|
+
require_if as __require
|
|
82
|
+
};
|
|
76
83
|
//# sourceMappingURL=if.js.map
|