@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiscrError = void 0;\nvar DiscrError;\n(function (DiscrError) {\n DiscrError[\"Tag\"] = \"tag\";\n DiscrError[\"Mapping\"] = \"mapping\";\n})(DiscrError || (exports.DiscrError = DiscrError = {}));\n//# sourceMappingURL=types.js.map"],"names":["DiscrError"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DiscrError = void 0;\nvar DiscrError;\n(function (DiscrError) {\n DiscrError[\"Tag\"] = \"tag\";\n DiscrError[\"Mapping\"] = \"mapping\";\n})(DiscrError || (exports.DiscrError = DiscrError = {}));\n//# sourceMappingURL=types.js.map"],"names":["DiscrError"],"mappings":";;;;;;;;;;;;;AACA,SAAO,eAAe,OAAS,cAAc,EAAE,OAAO,MAAM;AAC5D,QAAA,aAAqB;AACrB,MAAI;AACJ,GAAC,SAAUA,aAAY;AACnB,IAAAA,YAAW,KAAK,IAAI;AACpB,IAAAA,YAAW,SAAS,IAAI;AAAA,EAC5B,GAAG,eAAe,MAAA,aAAqB,aAAa,CAAA,EAAG;;;","x_google_ignoreList":[0]}
|
|
@@ -2,34 +2,38 @@
|
|
|
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] = "b6ba1c59-b7c4-4561-b5e8-12a9fcb60016", e._sentryDebugIdIdentifier = "sentry-dbid-b6ba1c59-b7c4-4561-b5e8-12a9fcb60016");
|
|
6
6
|
} catch (e2) {
|
|
7
7
|
}
|
|
8
8
|
})();
|
|
9
9
|
import { __exports as draft7 } from "../../../../../../../_virtual/draft7.js";
|
|
10
|
-
import "./core/index.js";
|
|
11
|
-
import "./validation/index.js";
|
|
12
|
-
import "./applicator/index.js";
|
|
13
|
-
import "./format/index.js";
|
|
14
|
-
import "./metadata.js";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
draft7
|
|
10
|
+
import { __require as requireCore } from "./core/index.js";
|
|
11
|
+
import { __require as requireValidation } from "./validation/index.js";
|
|
12
|
+
import { __require as requireApplicator } from "./applicator/index.js";
|
|
13
|
+
import { __require as requireFormat } from "./format/index.js";
|
|
14
|
+
import { __require as requireMetadata } from "./metadata.js";
|
|
15
|
+
var hasRequiredDraft7;
|
|
16
|
+
function requireDraft7() {
|
|
17
|
+
if (hasRequiredDraft7) return draft7;
|
|
18
|
+
hasRequiredDraft7 = 1;
|
|
19
|
+
Object.defineProperty(draft7, "__esModule", { value: true });
|
|
20
|
+
const core_1 = /* @__PURE__ */ requireCore();
|
|
21
|
+
const validation_1 = /* @__PURE__ */ requireValidation();
|
|
22
|
+
const applicator_1 = /* @__PURE__ */ requireApplicator();
|
|
23
|
+
const format_1 = /* @__PURE__ */ requireFormat();
|
|
24
|
+
const metadata_1 = /* @__PURE__ */ requireMetadata();
|
|
25
|
+
const draft7Vocabularies = [
|
|
26
|
+
core_1.default,
|
|
27
|
+
validation_1.default,
|
|
28
|
+
(0, applicator_1.default)(),
|
|
29
|
+
format_1.default,
|
|
30
|
+
metadata_1.metadataVocabulary,
|
|
31
|
+
metadata_1.contentVocabulary
|
|
32
|
+
];
|
|
33
|
+
draft7.default = draft7Vocabularies;
|
|
34
|
+
return draft7;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
requireDraft7 as __require
|
|
38
|
+
};
|
|
35
39
|
//# sourceMappingURL=draft7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft7.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst core_1 = require(\"./core\");\nconst validation_1 = require(\"./validation\");\nconst applicator_1 = require(\"./applicator\");\nconst format_1 = require(\"./format\");\nconst metadata_1 = require(\"./metadata\");\nconst draft7Vocabularies = [\n core_1.default,\n validation_1.default,\n (0, applicator_1.default)(),\n format_1.default,\n metadata_1.metadataVocabulary,\n metadata_1.contentVocabulary,\n];\nexports.default = draft7Vocabularies;\n//# sourceMappingURL=draft7.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":"
|
|
1
|
+
{"version":3,"file":"draft7.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst core_1 = require(\"./core\");\nconst validation_1 = require(\"./validation\");\nconst applicator_1 = require(\"./applicator\");\nconst format_1 = require(\"./format\");\nconst metadata_1 = require(\"./metadata\");\nconst draft7Vocabularies = [\n core_1.default,\n validation_1.default,\n (0, applicator_1.default)(),\n format_1.default,\n metadata_1.metadataVocabulary,\n metadata_1.contentVocabulary,\n];\nexports.default = draft7Vocabularies;\n//# sourceMappingURL=draft7.js.map"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;;;;;;;;;AACA,SAAO,eAAe,QAAS,cAAc,EAAE,OAAO,MAAM;AAC5D,QAAM,SAASA,4BAAA;AACf,QAAM,eAAeC,kCAAA;AACrB,QAAM,eAAeC,kCAAA;AACrB,QAAM,WAAWC,8BAAA;AACjB,QAAM,aAAaC,gCAAA;AACnB,QAAM,qBAAqB;AAAA,IACvB,OAAO;AAAA,IACP,aAAa;AAAA,KACb,GAAI,aAAa,SAAO;AAAA,IACxB,SAAS;AAAA,IACT,WAAW;AAAA,IACX,WAAW;AAAA;AAEf,SAAA,UAAkB;;;","x_google_ignoreList":[0]}
|
package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js
CHANGED
|
@@ -2,94 +2,102 @@
|
|
|
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] = "ea950725-f6a8-4dd1-bb24-3d29594e698f", e._sentryDebugIdIdentifier = "sentry-dbid-ea950725-f6a8-4dd1-bb24-3d29594e698f");
|
|
6
6
|
} catch (e2) {
|
|
7
7
|
}
|
|
8
8
|
})();
|
|
9
9
|
import { __exports as format } from "../../../../../../../../_virtual/format.js";
|
|
10
|
-
import "../../compile/codegen/index.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
else
|
|
32
|
-
validateFormat();
|
|
33
|
-
function validate$DataFormat() {
|
|
34
|
-
const fmts = gen.scopeValue("formats", {
|
|
35
|
-
ref: self2.formats,
|
|
36
|
-
code: opts.code.formats
|
|
37
|
-
});
|
|
38
|
-
const fDef = gen.const("fDef", (0, codegen_1._)`${fmts}[${schemaCode}]`);
|
|
39
|
-
const fType = gen.let("fType");
|
|
40
|
-
const format2 = gen.let("format");
|
|
41
|
-
gen.if((0, codegen_1._)`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._)`${fDef}.type || "string"`).assign(format2, (0, codegen_1._)`${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._)`"string"`).assign(format2, fDef));
|
|
42
|
-
cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt()));
|
|
43
|
-
function unknownFmt() {
|
|
44
|
-
if (opts.strictSchema === false)
|
|
45
|
-
return codegen_1.nil;
|
|
46
|
-
return (0, codegen_1._)`${schemaCode} && !${format2}`;
|
|
47
|
-
}
|
|
48
|
-
function invalidFmt() {
|
|
49
|
-
const callFormat = schemaEnv.$async ? (0, codegen_1._)`(${fDef}.async ? await ${format2}(${data}) : ${format2}(${data}))` : (0, codegen_1._)`${format2}(${data})`;
|
|
50
|
-
const validData = (0, codegen_1._)`(typeof ${format2} == "function" ? ${callFormat} : ${format2}.test(${data}))`;
|
|
51
|
-
return (0, codegen_1._)`${format2} && ${format2} !== true && ${fType} === ${ruleType} && !${validData}`;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function validateFormat() {
|
|
55
|
-
const formatDef = self2.formats[schema];
|
|
56
|
-
if (!formatDef) {
|
|
57
|
-
unknownFormat();
|
|
10
|
+
import { __require as requireCodegen } from "../../compile/codegen/index.js";
|
|
11
|
+
var hasRequiredFormat;
|
|
12
|
+
function requireFormat() {
|
|
13
|
+
if (hasRequiredFormat) return format;
|
|
14
|
+
hasRequiredFormat = 1;
|
|
15
|
+
Object.defineProperty(format, "__esModule", { value: true });
|
|
16
|
+
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
17
|
+
const error = {
|
|
18
|
+
message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`,
|
|
19
|
+
params: ({ schemaCode }) => (0, codegen_1._)`{format: ${schemaCode}}`
|
|
20
|
+
};
|
|
21
|
+
const def = {
|
|
22
|
+
keyword: "format",
|
|
23
|
+
type: ["number", "string"],
|
|
24
|
+
schemaType: "string",
|
|
25
|
+
$data: true,
|
|
26
|
+
error,
|
|
27
|
+
code(cxt, ruleType) {
|
|
28
|
+
const { gen, data, $data, schema, schemaCode, it } = cxt;
|
|
29
|
+
const { opts, errSchemaPath, schemaEnv, self: self2 } = it;
|
|
30
|
+
if (!opts.validateFormats)
|
|
58
31
|
return;
|
|
32
|
+
if ($data)
|
|
33
|
+
validate$DataFormat();
|
|
34
|
+
else
|
|
35
|
+
validateFormat();
|
|
36
|
+
function validate$DataFormat() {
|
|
37
|
+
const fmts = gen.scopeValue("formats", {
|
|
38
|
+
ref: self2.formats,
|
|
39
|
+
code: opts.code.formats
|
|
40
|
+
});
|
|
41
|
+
const fDef = gen.const("fDef", (0, codegen_1._)`${fmts}[${schemaCode}]`);
|
|
42
|
+
const fType = gen.let("fType");
|
|
43
|
+
const format2 = gen.let("format");
|
|
44
|
+
gen.if((0, codegen_1._)`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._)`${fDef}.type || "string"`).assign(format2, (0, codegen_1._)`${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._)`"string"`).assign(format2, fDef));
|
|
45
|
+
cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt()));
|
|
46
|
+
function unknownFmt() {
|
|
47
|
+
if (opts.strictSchema === false)
|
|
48
|
+
return codegen_1.nil;
|
|
49
|
+
return (0, codegen_1._)`${schemaCode} && !${format2}`;
|
|
50
|
+
}
|
|
51
|
+
function invalidFmt() {
|
|
52
|
+
const callFormat = schemaEnv.$async ? (0, codegen_1._)`(${fDef}.async ? await ${format2}(${data}) : ${format2}(${data}))` : (0, codegen_1._)`${format2}(${data})`;
|
|
53
|
+
const validData = (0, codegen_1._)`(typeof ${format2} == "function" ? ${callFormat} : ${format2}.test(${data}))`;
|
|
54
|
+
return (0, codegen_1._)`${format2} && ${format2} !== true && ${fType} === ${ruleType} && !${validData}`;
|
|
55
|
+
}
|
|
59
56
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
cxt.pass(validCondition());
|
|
65
|
-
function unknownFormat() {
|
|
66
|
-
if (opts.strictSchema === false) {
|
|
67
|
-
self2.logger.warn(unknownMsg());
|
|
57
|
+
function validateFormat() {
|
|
58
|
+
const formatDef = self2.formats[schema];
|
|
59
|
+
if (!formatDef) {
|
|
60
|
+
unknownFormat();
|
|
68
61
|
return;
|
|
69
62
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
63
|
+
if (formatDef === true)
|
|
64
|
+
return;
|
|
65
|
+
const [fmtType, format2, fmtRef] = getFormat(formatDef);
|
|
66
|
+
if (fmtType === ruleType)
|
|
67
|
+
cxt.pass(validCondition());
|
|
68
|
+
function unknownFormat() {
|
|
69
|
+
if (opts.strictSchema === false) {
|
|
70
|
+
self2.logger.warn(unknownMsg());
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
throw new Error(unknownMsg());
|
|
74
|
+
function unknownMsg() {
|
|
75
|
+
return `unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`;
|
|
76
|
+
}
|
|
73
77
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
function getFormat(fmtDef) {
|
|
79
|
+
const code = fmtDef instanceof RegExp ? (0, codegen_1.regexpCode)(fmtDef) : opts.code.formats ? (0, codegen_1._)`${opts.code.formats}${(0, codegen_1.getProperty)(schema)}` : void 0;
|
|
80
|
+
const fmt = gen.scopeValue("formats", { key: schema, ref: fmtDef, code });
|
|
81
|
+
if (typeof fmtDef == "object" && !(fmtDef instanceof RegExp)) {
|
|
82
|
+
return [fmtDef.type || "string", fmtDef.validate, (0, codegen_1._)`${fmt}.validate`];
|
|
83
|
+
}
|
|
84
|
+
return ["string", fmtDef, fmt];
|
|
80
85
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return (0, codegen_1._)`
|
|
86
|
+
function validCondition() {
|
|
87
|
+
if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) {
|
|
88
|
+
if (!schemaEnv.$async)
|
|
89
|
+
throw new Error("async format in sync schema");
|
|
90
|
+
return (0, codegen_1._)`await ${fmtRef}(${data})`;
|
|
91
|
+
}
|
|
92
|
+
return typeof format2 == "function" ? (0, codegen_1._)`${fmtRef}(${data})` : (0, codegen_1._)`${fmtRef}.test(${data})`;
|
|
88
93
|
}
|
|
89
|
-
return typeof format2 == "function" ? (0, codegen_1._)`${fmtRef}(${data})` : (0, codegen_1._)`${fmtRef}.test(${data})`;
|
|
90
94
|
}
|
|
91
95
|
}
|
|
92
|
-
}
|
|
96
|
+
};
|
|
97
|
+
format.default = def;
|
|
98
|
+
return format;
|
|
99
|
+
}
|
|
100
|
+
export {
|
|
101
|
+
requireFormat as __require
|
|
93
102
|
};
|
|
94
|
-
format.default = def;
|
|
95
103
|
//# sourceMappingURL=format.js.map
|
package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst error = {\n message: ({ schemaCode }) => (0, codegen_1.str) `must match format \"${schemaCode}\"`,\n params: ({ schemaCode }) => (0, codegen_1._) `{format: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"format\",\n type: [\"number\", \"string\"],\n schemaType: \"string\",\n $data: true,\n error,\n code(cxt, ruleType) {\n const { gen, data, $data, schema, schemaCode, it } = cxt;\n const { opts, errSchemaPath, schemaEnv, self } = it;\n if (!opts.validateFormats)\n return;\n if ($data)\n validate$DataFormat();\n else\n validateFormat();\n function validate$DataFormat() {\n const fmts = gen.scopeValue(\"formats\", {\n ref: self.formats,\n code: opts.code.formats,\n });\n const fDef = gen.const(\"fDef\", (0, codegen_1._) `${fmts}[${schemaCode}]`);\n const fType = gen.let(\"fType\");\n const format = gen.let(\"format\");\n // TODO simplify\n gen.if((0, codegen_1._) `typeof ${fDef} == \"object\" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._) `${fDef}.type || \"string\"`).assign(format, (0, codegen_1._) `${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._) `\"string\"`).assign(format, fDef));\n cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt()));\n function unknownFmt() {\n if (opts.strictSchema === false)\n return codegen_1.nil;\n return (0, codegen_1._) `${schemaCode} && !${format}`;\n }\n function invalidFmt() {\n const callFormat = schemaEnv.$async\n ? (0, codegen_1._) `(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))`\n : (0, codegen_1._) `${format}(${data})`;\n const validData = (0, codegen_1._) `(typeof ${format} == \"function\" ? ${callFormat} : ${format}.test(${data}))`;\n return (0, codegen_1._) `${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`;\n }\n }\n function validateFormat() {\n const formatDef = self.formats[schema];\n if (!formatDef) {\n unknownFormat();\n return;\n }\n if (formatDef === true)\n return;\n const [fmtType, format, fmtRef] = getFormat(formatDef);\n if (fmtType === ruleType)\n cxt.pass(validCondition());\n function unknownFormat() {\n if (opts.strictSchema === false) {\n self.logger.warn(unknownMsg());\n return;\n }\n throw new Error(unknownMsg());\n function unknownMsg() {\n return `unknown format \"${schema}\" ignored in schema at path \"${errSchemaPath}\"`;\n }\n }\n function getFormat(fmtDef) {\n const code = fmtDef instanceof RegExp\n ? (0, codegen_1.regexpCode)(fmtDef)\n : opts.code.formats\n ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(schema)}`\n : undefined;\n const fmt = gen.scopeValue(\"formats\", { key: schema, ref: fmtDef, code });\n if (typeof fmtDef == \"object\" && !(fmtDef instanceof RegExp)) {\n return [fmtDef.type || \"string\", fmtDef.validate, (0, codegen_1._) `${fmt}.validate`];\n }\n return [\"string\", fmtDef, fmt];\n }\n function validCondition() {\n if (typeof formatDef == \"object\" && !(formatDef instanceof RegExp) && formatDef.async) {\n if (!schemaEnv.$async)\n throw new Error(\"async format in sync schema\");\n return (0, codegen_1._) `await ${fmtRef}(${data})`;\n }\n return typeof format == \"function\" ? (0, codegen_1._) `${fmtRef}(${data})` : (0, codegen_1._) `${fmtRef}.test(${data})`;\n }\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=format.js.map"],"names":["require$$0","self","format"],"mappings":"
|
|
1
|
+
{"version":3,"file":"format.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst error = {\n message: ({ schemaCode }) => (0, codegen_1.str) `must match format \"${schemaCode}\"`,\n params: ({ schemaCode }) => (0, codegen_1._) `{format: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"format\",\n type: [\"number\", \"string\"],\n schemaType: \"string\",\n $data: true,\n error,\n code(cxt, ruleType) {\n const { gen, data, $data, schema, schemaCode, it } = cxt;\n const { opts, errSchemaPath, schemaEnv, self } = it;\n if (!opts.validateFormats)\n return;\n if ($data)\n validate$DataFormat();\n else\n validateFormat();\n function validate$DataFormat() {\n const fmts = gen.scopeValue(\"formats\", {\n ref: self.formats,\n code: opts.code.formats,\n });\n const fDef = gen.const(\"fDef\", (0, codegen_1._) `${fmts}[${schemaCode}]`);\n const fType = gen.let(\"fType\");\n const format = gen.let(\"format\");\n // TODO simplify\n gen.if((0, codegen_1._) `typeof ${fDef} == \"object\" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._) `${fDef}.type || \"string\"`).assign(format, (0, codegen_1._) `${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._) `\"string\"`).assign(format, fDef));\n cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt()));\n function unknownFmt() {\n if (opts.strictSchema === false)\n return codegen_1.nil;\n return (0, codegen_1._) `${schemaCode} && !${format}`;\n }\n function invalidFmt() {\n const callFormat = schemaEnv.$async\n ? (0, codegen_1._) `(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))`\n : (0, codegen_1._) `${format}(${data})`;\n const validData = (0, codegen_1._) `(typeof ${format} == \"function\" ? ${callFormat} : ${format}.test(${data}))`;\n return (0, codegen_1._) `${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`;\n }\n }\n function validateFormat() {\n const formatDef = self.formats[schema];\n if (!formatDef) {\n unknownFormat();\n return;\n }\n if (formatDef === true)\n return;\n const [fmtType, format, fmtRef] = getFormat(formatDef);\n if (fmtType === ruleType)\n cxt.pass(validCondition());\n function unknownFormat() {\n if (opts.strictSchema === false) {\n self.logger.warn(unknownMsg());\n return;\n }\n throw new Error(unknownMsg());\n function unknownMsg() {\n return `unknown format \"${schema}\" ignored in schema at path \"${errSchemaPath}\"`;\n }\n }\n function getFormat(fmtDef) {\n const code = fmtDef instanceof RegExp\n ? (0, codegen_1.regexpCode)(fmtDef)\n : opts.code.formats\n ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(schema)}`\n : undefined;\n const fmt = gen.scopeValue(\"formats\", { key: schema, ref: fmtDef, code });\n if (typeof fmtDef == \"object\" && !(fmtDef instanceof RegExp)) {\n return [fmtDef.type || \"string\", fmtDef.validate, (0, codegen_1._) `${fmt}.validate`];\n }\n return [\"string\", fmtDef, fmt];\n }\n function validCondition() {\n if (typeof formatDef == \"object\" && !(formatDef instanceof RegExp) && formatDef.async) {\n if (!schemaEnv.$async)\n throw new Error(\"async format in sync schema\");\n return (0, codegen_1._) `await ${fmtRef}(${data})`;\n }\n return typeof format == \"function\" ? (0, codegen_1._) `${fmtRef}(${data})` : (0, codegen_1._) `${fmtRef}.test(${data})`;\n }\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=format.js.map"],"names":["require$$0","self","format"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js
CHANGED
|
@@ -2,15 +2,23 @@
|
|
|
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] = "e0e92fe2-baeb-4140-bc49-da7280cf40a3", e._sentryDebugIdIdentifier = "sentry-dbid-e0e92fe2-baeb-4140-bc49-da7280cf40a3");
|
|
6
6
|
} catch (e2) {
|
|
7
7
|
}
|
|
8
8
|
})();
|
|
9
|
-
import { __exports as format
|
|
10
|
-
import "./format.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
format
|
|
9
|
+
import { __exports as format } from "../../../../../../../../_virtual/index10.js";
|
|
10
|
+
import { __require as requireFormat$1 } from "./format.js";
|
|
11
|
+
var hasRequiredFormat;
|
|
12
|
+
function requireFormat() {
|
|
13
|
+
if (hasRequiredFormat) return format;
|
|
14
|
+
hasRequiredFormat = 1;
|
|
15
|
+
Object.defineProperty(format, "__esModule", { value: true });
|
|
16
|
+
const format_1 = /* @__PURE__ */ requireFormat$1();
|
|
17
|
+
const format$1 = [format_1.default];
|
|
18
|
+
format.default = format$1;
|
|
19
|
+
return format;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
requireFormat as __require
|
|
23
|
+
};
|
|
16
24
|
//# sourceMappingURL=index.js.map
|
package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst format_1 = require(\"./format\");\nconst format = [format_1.default];\nexports.default = format;\n//# sourceMappingURL=index.js.map"],"names":["format_2","require$$0"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst format_1 = require(\"./format\");\nconst format = [format_1.default];\nexports.default = format;\n//# sourceMappingURL=index.js.map"],"names":["format_2","require$$0","format"],"mappings":";;;;;;;;;;;;;;AACA,SAAO,eAAeA,QAAS,cAAc,EAAE,OAAO,MAAM;AAC5D,QAAM,WAAWC,gCAAA;AACjB,QAAMC,WAAS,CAAC,SAAS,OAAO;AAChCF,SAAA,UAAkBE;;;","x_google_ignoreList":[0]}
|
|
@@ -2,28 +2,34 @@
|
|
|
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] = "7aa57d97-eab1-4bcc-a077-d32e2d94881a", e._sentryDebugIdIdentifier = "sentry-dbid-7aa57d97-eab1-4bcc-a077-d32e2d94881a");
|
|
6
6
|
} catch (e2) {
|
|
7
7
|
}
|
|
8
8
|
})();
|
|
9
9
|
import { __exports as metadata } from "../../../../../../../_virtual/metadata.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
var hasRequiredMetadata;
|
|
11
|
+
function requireMetadata() {
|
|
12
|
+
if (hasRequiredMetadata) return metadata;
|
|
13
|
+
hasRequiredMetadata = 1;
|
|
14
|
+
Object.defineProperty(metadata, "__esModule", { value: true });
|
|
15
|
+
metadata.contentVocabulary = metadata.metadataVocabulary = void 0;
|
|
16
|
+
metadata.metadataVocabulary = [
|
|
17
|
+
"title",
|
|
18
|
+
"description",
|
|
19
|
+
"default",
|
|
20
|
+
"deprecated",
|
|
21
|
+
"readOnly",
|
|
22
|
+
"writeOnly",
|
|
23
|
+
"examples"
|
|
24
|
+
];
|
|
25
|
+
metadata.contentVocabulary = [
|
|
26
|
+
"contentMediaType",
|
|
27
|
+
"contentEncoding",
|
|
28
|
+
"contentSchema"
|
|
29
|
+
];
|
|
30
|
+
return metadata;
|
|
31
|
+
}
|
|
26
32
|
export {
|
|
27
|
-
|
|
33
|
+
requireMetadata as __require
|
|
28
34
|
};
|
|
29
35
|
//# sourceMappingURL=metadata.js.map
|
package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.contentVocabulary = exports.metadataVocabulary = void 0;\nexports.metadataVocabulary = [\n \"title\",\n \"description\",\n \"default\",\n \"deprecated\",\n \"readOnly\",\n \"writeOnly\",\n \"examples\",\n];\nexports.contentVocabulary = [\n \"contentMediaType\",\n \"contentEncoding\",\n \"contentSchema\",\n];\n//# sourceMappingURL=metadata.js.map"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metadata.js","sources":["../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.contentVocabulary = exports.metadataVocabulary = void 0;\nexports.metadataVocabulary = [\n \"title\",\n \"description\",\n \"default\",\n \"deprecated\",\n \"readOnly\",\n \"writeOnly\",\n \"examples\",\n];\nexports.contentVocabulary = [\n \"contentMediaType\",\n \"contentEncoding\",\n \"contentSchema\",\n];\n//# sourceMappingURL=metadata.js.map"],"names":[],"mappings":";;;;;;;;;;;;;AACA,SAAO,eAAe,UAAS,cAAc,EAAE,OAAO,MAAM;AAC5D,WAAA,oBAA4B,SAAA,qBAA6B;AACzD,WAAA,qBAA6B;AAAA,IACzB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAEJ,WAAA,oBAA4B;AAAA,IACxB;AAAA,IACA;AAAA,IACA;AAAA;;;","x_google_ignoreList":[0]}
|
package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js
CHANGED
|
@@ -2,37 +2,43 @@
|
|
|
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] = "9812c4da-e172-4671-97e5-c917aea2c5e6", e._sentryDebugIdIdentifier = "sentry-dbid-9812c4da-e172-4671-97e5-c917aea2c5e6");
|
|
6
6
|
} catch (e2) {
|
|
7
7
|
}
|
|
8
8
|
})();
|
|
9
9
|
import { __exports as _const } from "../../../../../../../../_virtual/const.js";
|
|
10
|
-
import "../../compile/codegen/index.js";
|
|
11
|
-
import "../../compile/util.js";
|
|
12
|
-
import "../../runtime/equal.js";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
10
|
+
import { __require as requireCodegen } from "../../compile/codegen/index.js";
|
|
11
|
+
import { __require as requireUtil } from "../../compile/util.js";
|
|
12
|
+
import { __require as requireEqual } from "../../runtime/equal.js";
|
|
13
|
+
var hasRequired_const;
|
|
14
|
+
function require_const() {
|
|
15
|
+
if (hasRequired_const) return _const;
|
|
16
|
+
hasRequired_const = 1;
|
|
17
|
+
Object.defineProperty(_const, "__esModule", { value: true });
|
|
18
|
+
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
19
|
+
const util_1 = /* @__PURE__ */ requireUtil();
|
|
20
|
+
const equal_1 = /* @__PURE__ */ requireEqual();
|
|
21
|
+
const error = {
|
|
22
|
+
message: "must be equal to constant",
|
|
23
|
+
params: ({ schemaCode }) => (0, codegen_1._)`{allowedValue: ${schemaCode}}`
|
|
24
|
+
};
|
|
25
|
+
const def = {
|
|
26
|
+
keyword: "const",
|
|
27
|
+
$data: true,
|
|
28
|
+
error,
|
|
29
|
+
code(cxt) {
|
|
30
|
+
const { gen, data, $data, schemaCode, schema } = cxt;
|
|
31
|
+
if ($data || schema && typeof schema == "object") {
|
|
32
|
+
cxt.fail$data((0, codegen_1._)`!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`);
|
|
33
|
+
} else {
|
|
34
|
+
cxt.fail((0, codegen_1._)`${schema} !== ${data}`);
|
|
35
|
+
}
|
|
34
36
|
}
|
|
35
|
-
}
|
|
37
|
+
};
|
|
38
|
+
_const.default = def;
|
|
39
|
+
return _const;
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
require_const as __require
|
|
36
43
|
};
|
|
37
|
-
_const.default = def;
|
|
38
44
|
//# sourceMappingURL=const.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst equal_1 = require(\"../../runtime/equal\");\nconst error = {\n message: \"must be equal to constant\",\n params: ({ schemaCode }) => (0, codegen_1._) `{allowedValue: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"const\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, $data, schemaCode, schema } = cxt;\n if ($data || (schema && typeof schema == \"object\")) {\n cxt.fail$data((0, codegen_1._) `!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`);\n }\n else {\n cxt.fail((0, codegen_1._) `${schema} !== ${data}`);\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=const.js.map"],"names":["require$$0","require$$1","require$$2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"const.js","sources":["../../../../../../../../../../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst codegen_1 = require(\"../../compile/codegen\");\nconst util_1 = require(\"../../compile/util\");\nconst equal_1 = require(\"../../runtime/equal\");\nconst error = {\n message: \"must be equal to constant\",\n params: ({ schemaCode }) => (0, codegen_1._) `{allowedValue: ${schemaCode}}`,\n};\nconst def = {\n keyword: \"const\",\n $data: true,\n error,\n code(cxt) {\n const { gen, data, $data, schemaCode, schema } = cxt;\n if ($data || (schema && typeof schema == \"object\")) {\n cxt.fail$data((0, codegen_1._) `!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`);\n }\n else {\n cxt.fail((0, codegen_1._) `${schema} !== ${data}`);\n }\n },\n};\nexports.default = def;\n//# sourceMappingURL=const.js.map"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;;;;AACA,SAAO,eAAe,QAAS,cAAc,EAAE,OAAO,MAAM;AAC5D,QAAM,YAAYA,+BAAA;AAClB,QAAM,SAASC,4BAAA;AACf,QAAM,UAAUC,6BAAA;AAChB,QAAM,QAAQ;AAAA,IACV,SAAS;AAAA,IACT,QAAQ,CAAC,EAAE,WAAU,OAAO,GAAI,UAAU,oBAAqB,UAAU;AAAA;AAE7E,QAAM,MAAM;AAAA,IACR,SAAS;AAAA,IACT,OAAO;AAAA,IACP;AAAA,IACA,KAAK,KAAK;AACN,YAAM,EAAE,KAAK,MAAM,OAAO,YAAY,OAAM,IAAK;AACjD,UAAI,SAAU,UAAU,OAAO,UAAU,UAAW;AAChD,YAAI,cAAc,UAAU,OAAO,GAAI,OAAO,SAAS,KAAK,QAAQ,OAAO,CAAC,IAAI,IAAI,KAAK,UAAU,GAAG;AAAA,MAClH,OACa;AACD,YAAI,MAAK,GAAI,UAAU,KAAM,MAAM,QAAQ,IAAI,EAAE;AAAA,MAC7D;AAAA,IACA;AAAA;AAEA,SAAA,UAAkB;;;","x_google_ignoreList":[0]}
|
package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js
CHANGED
|
@@ -2,57 +2,63 @@
|
|
|
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] = "620c63ff-484c-416c-a495-78b8fe50c9c7", e._sentryDebugIdIdentifier = "sentry-dbid-620c63ff-484c-416c-a495-78b8fe50c9c7");
|
|
6
6
|
} catch (e2) {
|
|
7
7
|
}
|
|
8
8
|
})();
|
|
9
9
|
import { __exports as _enum } from "../../../../../../../../_virtual/enum.js";
|
|
10
|
-
import "../../compile/codegen/index.js";
|
|
11
|
-
import "../../compile/util.js";
|
|
12
|
-
import "../../runtime/equal.js";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
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
|
-
|
|
10
|
+
import { __require as requireCodegen } from "../../compile/codegen/index.js";
|
|
11
|
+
import { __require as requireUtil } from "../../compile/util.js";
|
|
12
|
+
import { __require as requireEqual } from "../../runtime/equal.js";
|
|
13
|
+
var hasRequired_enum;
|
|
14
|
+
function require_enum() {
|
|
15
|
+
if (hasRequired_enum) return _enum;
|
|
16
|
+
hasRequired_enum = 1;
|
|
17
|
+
Object.defineProperty(_enum, "__esModule", { value: true });
|
|
18
|
+
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
19
|
+
const util_1 = /* @__PURE__ */ requireUtil();
|
|
20
|
+
const equal_1 = /* @__PURE__ */ requireEqual();
|
|
21
|
+
const error = {
|
|
22
|
+
message: "must be equal to one of the allowed values",
|
|
23
|
+
params: ({ schemaCode }) => (0, codegen_1._)`{allowedValues: ${schemaCode}}`
|
|
24
|
+
};
|
|
25
|
+
const def = {
|
|
26
|
+
keyword: "enum",
|
|
27
|
+
schemaType: "array",
|
|
28
|
+
$data: true,
|
|
29
|
+
error,
|
|
30
|
+
code(cxt) {
|
|
31
|
+
const { gen, data, $data, schema, schemaCode, it } = cxt;
|
|
32
|
+
if (!$data && schema.length === 0)
|
|
33
|
+
throw new Error("enum must have non-empty array");
|
|
34
|
+
const useLoop = schema.length >= it.opts.loopEnum;
|
|
35
|
+
let eql;
|
|
36
|
+
const getEql = () => eql !== null && eql !== void 0 ? eql : eql = (0, util_1.useFunc)(gen, equal_1.default);
|
|
37
|
+
let valid;
|
|
38
|
+
if (useLoop || $data) {
|
|
39
|
+
valid = gen.let("valid");
|
|
40
|
+
cxt.block$data(valid, loopEnum);
|
|
41
|
+
} else {
|
|
42
|
+
if (!Array.isArray(schema))
|
|
43
|
+
throw new Error("ajv implementation error");
|
|
44
|
+
const vSchema = gen.const("vSchema", schemaCode);
|
|
45
|
+
valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i)));
|
|
46
|
+
}
|
|
47
|
+
cxt.pass(valid);
|
|
48
|
+
function loopEnum() {
|
|
49
|
+
gen.assign(valid, false);
|
|
50
|
+
gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._)`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()));
|
|
51
|
+
}
|
|
52
|
+
function equalCode(vSchema, i) {
|
|
53
|
+
const sch = schema[i];
|
|
54
|
+
return typeof sch === "object" && sch !== null ? (0, codegen_1._)`${getEql()}(${data}, ${vSchema}[${i}])` : (0, codegen_1._)`${data} === ${sch}`;
|
|
55
|
+
}
|
|
50
56
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
};
|
|
58
|
+
_enum.default = def;
|
|
59
|
+
return _enum;
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
require_enum as __require
|
|
56
63
|
};
|
|
57
|
-
_enum.default = def;
|
|
58
64
|
//# sourceMappingURL=enum.js.map
|