businesslens 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +15 -0
- package/.output/public/_nuxt/ANTr5GBv.js +1 -0
- package/.output/public/_nuxt/B3Z-Zt7l.js +37 -0
- package/.output/public/_nuxt/Bd76-HGM.js +1 -0
- package/.output/public/_nuxt/Bf4VrETn.js +1 -0
- package/.output/public/_nuxt/CR3jGlpM.js +1 -0
- package/.output/public/_nuxt/CntoM1kL.js +1 -0
- package/.output/public/_nuxt/DogqooqX.js +1 -0
- package/.output/public/_nuxt/Zsu92SSr.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/e74555da-0c18-4e95-b959-2bdcc538677b.json +1 -0
- package/.output/public/_nuxt/default.CRZmPCG_.css +1 -0
- package/.output/public/_nuxt/e3lOfLH3.js +1 -0
- package/.output/public/_nuxt/entry.SgkJh-3P.css +1 -0
- package/.output/public/_nuxt/error-404.CTIGkQtd.css +1 -0
- package/.output/public/_nuxt/error-500.CKBWIF4V.css +1 -0
- package/.output/public/_nuxt/fCd72uLR.js +1 -0
- package/.output/public/_nuxt/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
- package/.output/public/_nuxt/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
- package/.output/public/_nuxt/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
- package/.output/public/_nuxt/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
- package/.output/public/_nuxt/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
- package/.output/public/_nuxt/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
- package/.output/public/_nuxt/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
- package/.output/public/_nuxt/vk0fkBN0.js +1 -0
- package/.output/public/_nuxt/zg6VsE4d.js +39 -0
- package/.output/public/brand/logo/businesslens-mark.svg +20 -0
- package/.output/public/favicon.svg +13 -0
- package/.output/server/chunks/_/error-500.mjs +19 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/icons.mjs +6150 -0
- package/.output/server/chunks/_/icons.mjs.map +1 -0
- package/.output/server/chunks/build/Card-DJ5Lo0Cn.mjs +161 -0
- package/.output/server/chunks/build/Card-DJ5Lo0Cn.mjs.map +1 -0
- package/.output/server/chunks/build/EntityInspector-fTjbuYoq.mjs +4412 -0
- package/.output/server/chunks/build/EntityInspector-fTjbuYoq.mjs.map +1 -0
- package/.output/server/chunks/build/Slideover-KOfskX1l.mjs +4226 -0
- package/.output/server/chunks/build/Slideover-KOfskX1l.mjs.map +1 -0
- package/.output/server/chunks/build/Tooltip-DkxwLaX6.mjs +1338 -0
- package/.output/server/chunks/build/Tooltip-DkxwLaX6.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/build/default-BJSthw3t.mjs +8999 -0
- package/.output/server/chunks/build/default-BJSthw3t.mjs.map +1 -0
- package/.output/server/chunks/build/default-styles.BYgqaNao.mjs +8 -0
- package/.output/server/chunks/build/default-styles.BYgqaNao.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-BOiGLcfP.mjs +96 -0
- package/.output/server/chunks/build/error-404-BOiGLcfP.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DA-UkGXW.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.DA-UkGXW.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-Bwyw373t.mjs +79 -0
- package/.output/server/chunks/build/error-500-Bwyw373t.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.De7qbKJ2.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.De7qbKJ2.mjs.map +1 -0
- package/.output/server/chunks/build/index-BuhKSZfH.mjs +313 -0
- package/.output/server/chunks/build/index-BuhKSZfH.mjs.map +1 -0
- package/.output/server/chunks/build/journeys-DHHOyxCM.mjs +244 -0
- package/.output/server/chunks/build/journeys-DHHOyxCM.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +14099 -0
- package/.output/server/chunks/build/server.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +9 -0
- package/.output/server/chunks/build/styles.mjs.map +1 -0
- package/.output/server/chunks/build/topology-BJfDB_jA.mjs +295 -0
- package/.output/server/chunks/build/topology-BJfDB_jA.mjs.map +1 -0
- package/.output/server/chunks/build/useReport-pDAk-ETG.mjs +406 -0
- package/.output/server/chunks/build/useReport-pDAk-ETG.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +5770 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/api/report.get.mjs +617 -0
- package/.output/server/chunks/routes/api/report.get.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +451 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +12 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +290 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
- package/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +257 -0
- package/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +53 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
- package/.output/server/node_modules/@iconify/utils/package.json +119 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6759 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-api/dist/index.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-kit/dist/index.js +5670 -0
- package/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
- package/.output/server/node_modules/@vue/devtools-shared/dist/index.js +239 -0
- package/.output/server/node_modules/@vue/devtools-shared/package.json +33 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1899 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6940 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +896 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/@vue-flow/core/dist/vue-flow-core.mjs +10186 -0
- package/.output/server/node_modules/@vue-flow/core/package.json +95 -0
- package/.output/server/node_modules/ajv/dist/2020.js +55 -0
- package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/.output/server/node_modules/ajv/dist/compile/errors.js +123 -0
- package/.output/server/node_modules/ajv/dist/compile/index.js +242 -0
- package/.output/server/node_modules/ajv/dist/compile/names.js +28 -0
- package/.output/server/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/.output/server/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/.output/server/node_modules/ajv/dist/compile/rules.js +26 -0
- package/.output/server/node_modules/ajv/dist/compile/util.js +178 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/.output/server/node_modules/ajv/dist/core.js +618 -0
- package/.output/server/node_modules/ajv/dist/refs/data.json +13 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/.output/server/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/.output/server/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/.output/server/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/.output/server/node_modules/ajv/package.json +126 -0
- package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
- package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
- package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
- package/.output/server/node_modules/ajv-formats/package.json +74 -0
- package/.output/server/node_modules/birpc/dist/index.mjs +291 -0
- package/.output/server/node_modules/birpc/package.json +57 -0
- package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/.output/server/node_modules/consola/package.json +136 -0
- package/.output/server/node_modules/devalue/index.js +4 -0
- package/.output/server/node_modules/devalue/package.json +40 -0
- package/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/.output/server/node_modules/devalue/src/parse.js +283 -0
- package/.output/server/node_modules/devalue/src/stringify.js +401 -0
- package/.output/server/node_modules/devalue/src/uneval.js +552 -0
- package/.output/server/node_modules/devalue/src/utils.js +160 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/fast-deep-equal/index.js +46 -0
- package/.output/server/node_modules/fast-deep-equal/package.json +61 -0
- package/.output/server/node_modules/fast-uri/index.js +406 -0
- package/.output/server/node_modules/fast-uri/lib/schemes.js +267 -0
- package/.output/server/node_modules/fast-uri/lib/utils.js +443 -0
- package/.output/server/node_modules/fast-uri/package.json +68 -0
- package/.output/server/node_modules/json-schema-traverse/index.js +93 -0
- package/.output/server/node_modules/json-schema-traverse/package.json +43 -0
- package/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
- package/.output/server/node_modules/perfect-debounce/package.json +41 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/package.json +89 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +44 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +249 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +57 -0
- package/.output/server/node_modules/vue-router/dist/devtools-DCoWQoU_.js +1034 -0
- package/.output/server/node_modules/vue-router/dist/useApi-s_02lHjl.js +181 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.js +1499 -0
- package/.output/server/node_modules/vue-router/package.json +226 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/package.json +41 -0
- package/README.md +114 -0
- package/THIRD_PARTY_NOTICES.md +28 -0
- package/bin/businesslens.mjs +181 -0
- package/package.json +68 -0
- package/packages/report-schema/schemas/report.schema.json +235 -0
- package/packages/report-schema/types/index.ts +1 -0
- package/packages/report-schema/types/report.ts +101 -0
- package/packages/report-schema/validate.mjs +111 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const code_1 = require("../code");
|
|
4
|
+
const codegen_1 = require("../../compile/codegen");
|
|
5
|
+
const util_1 = require("../../compile/util");
|
|
6
|
+
const util_2 = require("../../compile/util");
|
|
7
|
+
const def = {
|
|
8
|
+
keyword: "patternProperties",
|
|
9
|
+
type: "object",
|
|
10
|
+
schemaType: "object",
|
|
11
|
+
code(cxt) {
|
|
12
|
+
const { gen, schema, data, parentSchema, it } = cxt;
|
|
13
|
+
const { opts } = it;
|
|
14
|
+
const patterns = (0, code_1.allSchemaProperties)(schema);
|
|
15
|
+
const alwaysValidPatterns = patterns.filter((p) => (0, util_1.alwaysValidSchema)(it, schema[p]));
|
|
16
|
+
if (patterns.length === 0 ||
|
|
17
|
+
(alwaysValidPatterns.length === patterns.length &&
|
|
18
|
+
(!it.opts.unevaluated || it.props === true))) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;
|
|
22
|
+
const valid = gen.name("valid");
|
|
23
|
+
if (it.props !== true && !(it.props instanceof codegen_1.Name)) {
|
|
24
|
+
it.props = (0, util_2.evaluatedPropsToName)(gen, it.props);
|
|
25
|
+
}
|
|
26
|
+
const { props } = it;
|
|
27
|
+
validatePatternProperties();
|
|
28
|
+
function validatePatternProperties() {
|
|
29
|
+
for (const pat of patterns) {
|
|
30
|
+
if (checkProperties)
|
|
31
|
+
checkMatchingProperties(pat);
|
|
32
|
+
if (it.allErrors) {
|
|
33
|
+
validateProperties(pat);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
gen.var(valid, true); // TODO var
|
|
37
|
+
validateProperties(pat);
|
|
38
|
+
gen.if(valid);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function checkMatchingProperties(pat) {
|
|
43
|
+
for (const prop in checkProperties) {
|
|
44
|
+
if (new RegExp(pat).test(prop)) {
|
|
45
|
+
(0, util_1.checkStrictMode)(it, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function validateProperties(pat) {
|
|
50
|
+
gen.forIn("key", data, (key) => {
|
|
51
|
+
gen.if((0, codegen_1._) `${(0, code_1.usePattern)(cxt, pat)}.test(${key})`, () => {
|
|
52
|
+
const alwaysValid = alwaysValidPatterns.includes(pat);
|
|
53
|
+
if (!alwaysValid) {
|
|
54
|
+
cxt.subschema({
|
|
55
|
+
keyword: "patternProperties",
|
|
56
|
+
schemaProp: pat,
|
|
57
|
+
dataProp: key,
|
|
58
|
+
dataPropType: util_2.Type.Str,
|
|
59
|
+
}, valid);
|
|
60
|
+
}
|
|
61
|
+
if (it.opts.unevaluated && props !== true) {
|
|
62
|
+
gen.assign((0, codegen_1._) `${props}[${key}]`, true);
|
|
63
|
+
}
|
|
64
|
+
else if (!alwaysValid && !it.allErrors) {
|
|
65
|
+
// can short-circuit if `unevaluatedProperties` is not supported (opts.next === false)
|
|
66
|
+
// or if all properties were evaluated (props === true)
|
|
67
|
+
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
exports.default = def;
|
|
75
|
+
//# sourceMappingURL=patternProperties.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const items_1 = require("./items");
|
|
4
|
+
const def = {
|
|
5
|
+
keyword: "prefixItems",
|
|
6
|
+
type: "array",
|
|
7
|
+
schemaType: ["array"],
|
|
8
|
+
before: "uniqueItems",
|
|
9
|
+
code: (cxt) => (0, items_1.validateTuple)(cxt, "items"),
|
|
10
|
+
};
|
|
11
|
+
exports.default = def;
|
|
12
|
+
//# sourceMappingURL=prefixItems.js.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const validate_1 = require("../../compile/validate");
|
|
4
|
+
const code_1 = require("../code");
|
|
5
|
+
const util_1 = require("../../compile/util");
|
|
6
|
+
const additionalProperties_1 = require("./additionalProperties");
|
|
7
|
+
const def = {
|
|
8
|
+
keyword: "properties",
|
|
9
|
+
type: "object",
|
|
10
|
+
schemaType: "object",
|
|
11
|
+
code(cxt) {
|
|
12
|
+
const { gen, schema, parentSchema, data, it } = cxt;
|
|
13
|
+
if (it.opts.removeAdditional === "all" && parentSchema.additionalProperties === undefined) {
|
|
14
|
+
additionalProperties_1.default.code(new validate_1.KeywordCxt(it, additionalProperties_1.default, "additionalProperties"));
|
|
15
|
+
}
|
|
16
|
+
const allProps = (0, code_1.allSchemaProperties)(schema);
|
|
17
|
+
for (const prop of allProps) {
|
|
18
|
+
it.definedProperties.add(prop);
|
|
19
|
+
}
|
|
20
|
+
if (it.opts.unevaluated && allProps.length && it.props !== true) {
|
|
21
|
+
it.props = util_1.mergeEvaluated.props(gen, (0, util_1.toHash)(allProps), it.props);
|
|
22
|
+
}
|
|
23
|
+
const properties = allProps.filter((p) => !(0, util_1.alwaysValidSchema)(it, schema[p]));
|
|
24
|
+
if (properties.length === 0)
|
|
25
|
+
return;
|
|
26
|
+
const valid = gen.name("valid");
|
|
27
|
+
for (const prop of properties) {
|
|
28
|
+
if (hasDefault(prop)) {
|
|
29
|
+
applyPropertySchema(prop);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties));
|
|
33
|
+
applyPropertySchema(prop);
|
|
34
|
+
if (!it.allErrors)
|
|
35
|
+
gen.else().var(valid, true);
|
|
36
|
+
gen.endIf();
|
|
37
|
+
}
|
|
38
|
+
cxt.it.definedProperties.add(prop);
|
|
39
|
+
cxt.ok(valid);
|
|
40
|
+
}
|
|
41
|
+
function hasDefault(prop) {
|
|
42
|
+
return it.opts.useDefaults && !it.compositeRule && schema[prop].default !== undefined;
|
|
43
|
+
}
|
|
44
|
+
function applyPropertySchema(prop) {
|
|
45
|
+
cxt.subschema({
|
|
46
|
+
keyword: "properties",
|
|
47
|
+
schemaProp: prop,
|
|
48
|
+
dataProp: prop,
|
|
49
|
+
}, valid);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
exports.default = def;
|
|
54
|
+
//# sourceMappingURL=properties.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const codegen_1 = require("../../compile/codegen");
|
|
4
|
+
const util_1 = require("../../compile/util");
|
|
5
|
+
const error = {
|
|
6
|
+
message: "property name must be valid",
|
|
7
|
+
params: ({ params }) => (0, codegen_1._) `{propertyName: ${params.propertyName}}`,
|
|
8
|
+
};
|
|
9
|
+
const def = {
|
|
10
|
+
keyword: "propertyNames",
|
|
11
|
+
type: "object",
|
|
12
|
+
schemaType: ["object", "boolean"],
|
|
13
|
+
error,
|
|
14
|
+
code(cxt) {
|
|
15
|
+
const { gen, schema, data, it } = cxt;
|
|
16
|
+
if ((0, util_1.alwaysValidSchema)(it, schema))
|
|
17
|
+
return;
|
|
18
|
+
const valid = gen.name("valid");
|
|
19
|
+
gen.forIn("key", data, (key) => {
|
|
20
|
+
cxt.setParams({ propertyName: key });
|
|
21
|
+
cxt.subschema({
|
|
22
|
+
keyword: "propertyNames",
|
|
23
|
+
data: key,
|
|
24
|
+
dataTypes: ["string"],
|
|
25
|
+
propertyName: key,
|
|
26
|
+
compositeRule: true,
|
|
27
|
+
}, valid);
|
|
28
|
+
gen.if((0, codegen_1.not)(valid), () => {
|
|
29
|
+
cxt.error(true);
|
|
30
|
+
if (!it.allErrors)
|
|
31
|
+
gen.break();
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
cxt.ok(valid);
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
exports.default = def;
|
|
38
|
+
//# sourceMappingURL=propertyNames.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const util_1 = require("../../compile/util");
|
|
4
|
+
const def = {
|
|
5
|
+
keyword: ["then", "else"],
|
|
6
|
+
schemaType: ["object", "boolean"],
|
|
7
|
+
code({ keyword, parentSchema, it }) {
|
|
8
|
+
if (parentSchema.if === undefined)
|
|
9
|
+
(0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`);
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
exports.default = def;
|
|
13
|
+
//# sourceMappingURL=thenElse.js.map
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
4
|
+
const codegen_1 = require("../compile/codegen");
|
|
5
|
+
const util_1 = require("../compile/util");
|
|
6
|
+
const names_1 = require("../compile/names");
|
|
7
|
+
const util_2 = require("../compile/util");
|
|
8
|
+
function checkReportMissingProp(cxt, prop) {
|
|
9
|
+
const { gen, data, it } = cxt;
|
|
10
|
+
gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => {
|
|
11
|
+
cxt.setParams({ missingProperty: (0, codegen_1._) `${prop}` }, true);
|
|
12
|
+
cxt.error();
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
exports.checkReportMissingProp = checkReportMissingProp;
|
|
16
|
+
function checkMissingProp({ gen, data, it: { opts } }, properties, missing) {
|
|
17
|
+
return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._) `${missing} = ${prop}`)));
|
|
18
|
+
}
|
|
19
|
+
exports.checkMissingProp = checkMissingProp;
|
|
20
|
+
function reportMissingProp(cxt, missing) {
|
|
21
|
+
cxt.setParams({ missingProperty: missing }, true);
|
|
22
|
+
cxt.error();
|
|
23
|
+
}
|
|
24
|
+
exports.reportMissingProp = reportMissingProp;
|
|
25
|
+
function hasPropFunc(gen) {
|
|
26
|
+
return gen.scopeValue("func", {
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
28
|
+
ref: Object.prototype.hasOwnProperty,
|
|
29
|
+
code: (0, codegen_1._) `Object.prototype.hasOwnProperty`,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
exports.hasPropFunc = hasPropFunc;
|
|
33
|
+
function isOwnProperty(gen, data, property) {
|
|
34
|
+
return (0, codegen_1._) `${hasPropFunc(gen)}.call(${data}, ${property})`;
|
|
35
|
+
}
|
|
36
|
+
exports.isOwnProperty = isOwnProperty;
|
|
37
|
+
function propertyInData(gen, data, property, ownProperties) {
|
|
38
|
+
const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} !== undefined`;
|
|
39
|
+
return ownProperties ? (0, codegen_1._) `${cond} && ${isOwnProperty(gen, data, property)}` : cond;
|
|
40
|
+
}
|
|
41
|
+
exports.propertyInData = propertyInData;
|
|
42
|
+
function noPropertyInData(gen, data, property, ownProperties) {
|
|
43
|
+
const cond = (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(property)} === undefined`;
|
|
44
|
+
return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;
|
|
45
|
+
}
|
|
46
|
+
exports.noPropertyInData = noPropertyInData;
|
|
47
|
+
function allSchemaProperties(schemaMap) {
|
|
48
|
+
return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [];
|
|
49
|
+
}
|
|
50
|
+
exports.allSchemaProperties = allSchemaProperties;
|
|
51
|
+
function schemaProperties(it, schemaMap) {
|
|
52
|
+
return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));
|
|
53
|
+
}
|
|
54
|
+
exports.schemaProperties = schemaProperties;
|
|
55
|
+
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
|
|
56
|
+
const dataAndSchema = passSchema ? (0, codegen_1._) `${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
|
|
57
|
+
const valCxt = [
|
|
58
|
+
[names_1.default.instancePath, (0, codegen_1.strConcat)(names_1.default.instancePath, errorPath)],
|
|
59
|
+
[names_1.default.parentData, it.parentData],
|
|
60
|
+
[names_1.default.parentDataProperty, it.parentDataProperty],
|
|
61
|
+
[names_1.default.rootData, names_1.default.rootData],
|
|
62
|
+
];
|
|
63
|
+
if (it.opts.dynamicRef)
|
|
64
|
+
valCxt.push([names_1.default.dynamicAnchors, names_1.default.dynamicAnchors]);
|
|
65
|
+
const args = (0, codegen_1._) `${dataAndSchema}, ${gen.object(...valCxt)}`;
|
|
66
|
+
return context !== codegen_1.nil ? (0, codegen_1._) `${func}.call(${context}, ${args})` : (0, codegen_1._) `${func}(${args})`;
|
|
67
|
+
}
|
|
68
|
+
exports.callValidateCode = callValidateCode;
|
|
69
|
+
const newRegExp = (0, codegen_1._) `new RegExp`;
|
|
70
|
+
function usePattern({ gen, it: { opts } }, pattern) {
|
|
71
|
+
const u = opts.unicodeRegExp ? "u" : "";
|
|
72
|
+
const { regExp } = opts.code;
|
|
73
|
+
const rx = regExp(pattern, u);
|
|
74
|
+
return gen.scopeValue("pattern", {
|
|
75
|
+
key: rx.toString(),
|
|
76
|
+
ref: rx,
|
|
77
|
+
code: (0, codegen_1._) `${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
exports.usePattern = usePattern;
|
|
81
|
+
function validateArray(cxt) {
|
|
82
|
+
const { gen, data, keyword, it } = cxt;
|
|
83
|
+
const valid = gen.name("valid");
|
|
84
|
+
if (it.allErrors) {
|
|
85
|
+
const validArr = gen.let("valid", true);
|
|
86
|
+
validateItems(() => gen.assign(validArr, false));
|
|
87
|
+
return validArr;
|
|
88
|
+
}
|
|
89
|
+
gen.var(valid, true);
|
|
90
|
+
validateItems(() => gen.break());
|
|
91
|
+
return valid;
|
|
92
|
+
function validateItems(notValid) {
|
|
93
|
+
const len = gen.const("len", (0, codegen_1._) `${data}.length`);
|
|
94
|
+
gen.forRange("i", 0, len, (i) => {
|
|
95
|
+
cxt.subschema({
|
|
96
|
+
keyword,
|
|
97
|
+
dataProp: i,
|
|
98
|
+
dataPropType: util_1.Type.Num,
|
|
99
|
+
}, valid);
|
|
100
|
+
gen.if((0, codegen_1.not)(valid), notValid);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.validateArray = validateArray;
|
|
105
|
+
function validateUnion(cxt) {
|
|
106
|
+
const { gen, schema, keyword, it } = cxt;
|
|
107
|
+
/* istanbul ignore if */
|
|
108
|
+
if (!Array.isArray(schema))
|
|
109
|
+
throw new Error("ajv implementation error");
|
|
110
|
+
const alwaysValid = schema.some((sch) => (0, util_1.alwaysValidSchema)(it, sch));
|
|
111
|
+
if (alwaysValid && !it.opts.unevaluated)
|
|
112
|
+
return;
|
|
113
|
+
const valid = gen.let("valid", false);
|
|
114
|
+
const schValid = gen.name("_valid");
|
|
115
|
+
gen.block(() => schema.forEach((_sch, i) => {
|
|
116
|
+
const schCxt = cxt.subschema({
|
|
117
|
+
keyword,
|
|
118
|
+
schemaProp: i,
|
|
119
|
+
compositeRule: true,
|
|
120
|
+
}, schValid);
|
|
121
|
+
gen.assign(valid, (0, codegen_1._) `${valid} || ${schValid}`);
|
|
122
|
+
const merged = cxt.mergeValidEvaluated(schCxt, schValid);
|
|
123
|
+
// can short-circuit if `unevaluatedProperties/Items` not supported (opts.unevaluated !== true)
|
|
124
|
+
// or if all properties and items were evaluated (it.props === true && it.items === true)
|
|
125
|
+
if (!merged)
|
|
126
|
+
gen.if((0, codegen_1.not)(valid));
|
|
127
|
+
}));
|
|
128
|
+
cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
|
|
129
|
+
}
|
|
130
|
+
exports.validateUnion = validateUnion;
|
|
131
|
+
//# sourceMappingURL=code.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const def = {
|
|
4
|
+
keyword: "id",
|
|
5
|
+
code() {
|
|
6
|
+
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
exports.default = def;
|
|
10
|
+
//# sourceMappingURL=id.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const id_1 = require("./id");
|
|
4
|
+
const ref_1 = require("./ref");
|
|
5
|
+
const core = [
|
|
6
|
+
"$schema",
|
|
7
|
+
"$id",
|
|
8
|
+
"$defs",
|
|
9
|
+
"$vocabulary",
|
|
10
|
+
{ keyword: "$comment" },
|
|
11
|
+
"definitions",
|
|
12
|
+
id_1.default,
|
|
13
|
+
ref_1.default,
|
|
14
|
+
];
|
|
15
|
+
exports.default = core;
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.callRef = exports.getValidate = void 0;
|
|
4
|
+
const ref_error_1 = require("../../compile/ref_error");
|
|
5
|
+
const code_1 = require("../code");
|
|
6
|
+
const codegen_1 = require("../../compile/codegen");
|
|
7
|
+
const names_1 = require("../../compile/names");
|
|
8
|
+
const compile_1 = require("../../compile");
|
|
9
|
+
const util_1 = require("../../compile/util");
|
|
10
|
+
const def = {
|
|
11
|
+
keyword: "$ref",
|
|
12
|
+
schemaType: "string",
|
|
13
|
+
code(cxt) {
|
|
14
|
+
const { gen, schema: $ref, it } = cxt;
|
|
15
|
+
const { baseId, schemaEnv: env, validateName, opts, self } = it;
|
|
16
|
+
const { root } = env;
|
|
17
|
+
if (($ref === "#" || $ref === "#/") && baseId === root.baseId)
|
|
18
|
+
return callRootRef();
|
|
19
|
+
const schOrEnv = compile_1.resolveRef.call(self, root, baseId, $ref);
|
|
20
|
+
if (schOrEnv === undefined)
|
|
21
|
+
throw new ref_error_1.default(it.opts.uriResolver, baseId, $ref);
|
|
22
|
+
if (schOrEnv instanceof compile_1.SchemaEnv)
|
|
23
|
+
return callValidate(schOrEnv);
|
|
24
|
+
return inlineRefSchema(schOrEnv);
|
|
25
|
+
function callRootRef() {
|
|
26
|
+
if (env === root)
|
|
27
|
+
return callRef(cxt, validateName, env, env.$async);
|
|
28
|
+
const rootName = gen.scopeValue("root", { ref: root });
|
|
29
|
+
return callRef(cxt, (0, codegen_1._) `${rootName}.validate`, root, root.$async);
|
|
30
|
+
}
|
|
31
|
+
function callValidate(sch) {
|
|
32
|
+
const v = getValidate(cxt, sch);
|
|
33
|
+
callRef(cxt, v, sch, sch.$async);
|
|
34
|
+
}
|
|
35
|
+
function inlineRefSchema(sch) {
|
|
36
|
+
const schName = gen.scopeValue("schema", opts.code.source === true ? { ref: sch, code: (0, codegen_1.stringify)(sch) } : { ref: sch });
|
|
37
|
+
const valid = gen.name("valid");
|
|
38
|
+
const schCxt = cxt.subschema({
|
|
39
|
+
schema: sch,
|
|
40
|
+
dataTypes: [],
|
|
41
|
+
schemaPath: codegen_1.nil,
|
|
42
|
+
topSchemaRef: schName,
|
|
43
|
+
errSchemaPath: $ref,
|
|
44
|
+
}, valid);
|
|
45
|
+
cxt.mergeEvaluated(schCxt);
|
|
46
|
+
cxt.ok(valid);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
function getValidate(cxt, sch) {
|
|
51
|
+
const { gen } = cxt;
|
|
52
|
+
return sch.validate
|
|
53
|
+
? gen.scopeValue("validate", { ref: sch.validate })
|
|
54
|
+
: (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.validate`;
|
|
55
|
+
}
|
|
56
|
+
exports.getValidate = getValidate;
|
|
57
|
+
function callRef(cxt, v, sch, $async) {
|
|
58
|
+
const { gen, it } = cxt;
|
|
59
|
+
const { allErrors, schemaEnv: env, opts } = it;
|
|
60
|
+
const passCxt = opts.passContext ? names_1.default.this : codegen_1.nil;
|
|
61
|
+
if ($async)
|
|
62
|
+
callAsyncRef();
|
|
63
|
+
else
|
|
64
|
+
callSyncRef();
|
|
65
|
+
function callAsyncRef() {
|
|
66
|
+
if (!env.$async)
|
|
67
|
+
throw new Error("async schema referenced by sync schema");
|
|
68
|
+
const valid = gen.let("valid");
|
|
69
|
+
gen.try(() => {
|
|
70
|
+
gen.code((0, codegen_1._) `await ${(0, code_1.callValidateCode)(cxt, v, passCxt)}`);
|
|
71
|
+
addEvaluatedFrom(v); // TODO will not work with async, it has to be returned with the result
|
|
72
|
+
if (!allErrors)
|
|
73
|
+
gen.assign(valid, true);
|
|
74
|
+
}, (e) => {
|
|
75
|
+
gen.if((0, codegen_1._) `!(${e} instanceof ${it.ValidationError})`, () => gen.throw(e));
|
|
76
|
+
addErrorsFrom(e);
|
|
77
|
+
if (!allErrors)
|
|
78
|
+
gen.assign(valid, false);
|
|
79
|
+
});
|
|
80
|
+
cxt.ok(valid);
|
|
81
|
+
}
|
|
82
|
+
function callSyncRef() {
|
|
83
|
+
cxt.result((0, code_1.callValidateCode)(cxt, v, passCxt), () => addEvaluatedFrom(v), () => addErrorsFrom(v));
|
|
84
|
+
}
|
|
85
|
+
function addErrorsFrom(source) {
|
|
86
|
+
const errs = (0, codegen_1._) `${source}.errors`;
|
|
87
|
+
gen.assign(names_1.default.vErrors, (0, codegen_1._) `${names_1.default.vErrors} === null ? ${errs} : ${names_1.default.vErrors}.concat(${errs})`); // TODO tagged
|
|
88
|
+
gen.assign(names_1.default.errors, (0, codegen_1._) `${names_1.default.vErrors}.length`);
|
|
89
|
+
}
|
|
90
|
+
function addEvaluatedFrom(source) {
|
|
91
|
+
var _a;
|
|
92
|
+
if (!it.opts.unevaluated)
|
|
93
|
+
return;
|
|
94
|
+
const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated;
|
|
95
|
+
// TODO refactor
|
|
96
|
+
if (it.props !== true) {
|
|
97
|
+
if (schEvaluated && !schEvaluated.dynamicProps) {
|
|
98
|
+
if (schEvaluated.props !== undefined) {
|
|
99
|
+
it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
const props = gen.var("props", (0, codegen_1._) `${source}.evaluated.props`);
|
|
104
|
+
it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (it.items !== true) {
|
|
108
|
+
if (schEvaluated && !schEvaluated.dynamicItems) {
|
|
109
|
+
if (schEvaluated.items !== undefined) {
|
|
110
|
+
it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
const items = gen.var("items", (0, codegen_1._) `${source}.evaluated.items`);
|
|
115
|
+
it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.callRef = callRef;
|
|
121
|
+
exports.default = def;
|
|
122
|
+
//# sourceMappingURL=ref.js.map
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const codegen_1 = require("../../compile/codegen");
|
|
4
|
+
const types_1 = require("../discriminator/types");
|
|
5
|
+
const compile_1 = require("../../compile");
|
|
6
|
+
const ref_error_1 = require("../../compile/ref_error");
|
|
7
|
+
const util_1 = require("../../compile/util");
|
|
8
|
+
const error = {
|
|
9
|
+
message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag
|
|
10
|
+
? `tag "${tagName}" must be string`
|
|
11
|
+
: `value of tag "${tagName}" must be in oneOf`,
|
|
12
|
+
params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._) `{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`,
|
|
13
|
+
};
|
|
14
|
+
const def = {
|
|
15
|
+
keyword: "discriminator",
|
|
16
|
+
type: "object",
|
|
17
|
+
schemaType: "object",
|
|
18
|
+
error,
|
|
19
|
+
code(cxt) {
|
|
20
|
+
const { gen, data, schema, parentSchema, it } = cxt;
|
|
21
|
+
const { oneOf } = parentSchema;
|
|
22
|
+
if (!it.opts.discriminator) {
|
|
23
|
+
throw new Error("discriminator: requires discriminator option");
|
|
24
|
+
}
|
|
25
|
+
const tagName = schema.propertyName;
|
|
26
|
+
if (typeof tagName != "string")
|
|
27
|
+
throw new Error("discriminator: requires propertyName");
|
|
28
|
+
if (schema.mapping)
|
|
29
|
+
throw new Error("discriminator: mapping is not supported");
|
|
30
|
+
if (!oneOf)
|
|
31
|
+
throw new Error("discriminator: requires oneOf keyword");
|
|
32
|
+
const valid = gen.let("valid", false);
|
|
33
|
+
const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(tagName)}`);
|
|
34
|
+
gen.if((0, codegen_1._) `typeof ${tag} == "string"`, () => validateMapping(), () => cxt.error(false, { discrError: types_1.DiscrError.Tag, tag, tagName }));
|
|
35
|
+
cxt.ok(valid);
|
|
36
|
+
function validateMapping() {
|
|
37
|
+
const mapping = getMapping();
|
|
38
|
+
gen.if(false);
|
|
39
|
+
for (const tagValue in mapping) {
|
|
40
|
+
gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`);
|
|
41
|
+
gen.assign(valid, applyTagSchema(mapping[tagValue]));
|
|
42
|
+
}
|
|
43
|
+
gen.else();
|
|
44
|
+
cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag, tagName });
|
|
45
|
+
gen.endIf();
|
|
46
|
+
}
|
|
47
|
+
function applyTagSchema(schemaProp) {
|
|
48
|
+
const _valid = gen.name("valid");
|
|
49
|
+
const schCxt = cxt.subschema({ keyword: "oneOf", schemaProp }, _valid);
|
|
50
|
+
cxt.mergeEvaluated(schCxt, codegen_1.Name);
|
|
51
|
+
return _valid;
|
|
52
|
+
}
|
|
53
|
+
function getMapping() {
|
|
54
|
+
var _a;
|
|
55
|
+
const oneOfMapping = {};
|
|
56
|
+
const topRequired = hasRequired(parentSchema);
|
|
57
|
+
let tagRequired = true;
|
|
58
|
+
for (let i = 0; i < oneOf.length; i++) {
|
|
59
|
+
let sch = oneOf[i];
|
|
60
|
+
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
|
|
61
|
+
const ref = sch.$ref;
|
|
62
|
+
sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref);
|
|
63
|
+
if (sch instanceof compile_1.SchemaEnv)
|
|
64
|
+
sch = sch.schema;
|
|
65
|
+
if (sch === undefined)
|
|
66
|
+
throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);
|
|
67
|
+
}
|
|
68
|
+
const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];
|
|
69
|
+
if (typeof propSch != "object") {
|
|
70
|
+
throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`);
|
|
71
|
+
}
|
|
72
|
+
tagRequired = tagRequired && (topRequired || hasRequired(sch));
|
|
73
|
+
addMappings(propSch, i);
|
|
74
|
+
}
|
|
75
|
+
if (!tagRequired)
|
|
76
|
+
throw new Error(`discriminator: "${tagName}" must be required`);
|
|
77
|
+
return oneOfMapping;
|
|
78
|
+
function hasRequired({ required }) {
|
|
79
|
+
return Array.isArray(required) && required.includes(tagName);
|
|
80
|
+
}
|
|
81
|
+
function addMappings(sch, i) {
|
|
82
|
+
if (sch.const) {
|
|
83
|
+
addMapping(sch.const, i);
|
|
84
|
+
}
|
|
85
|
+
else if (sch.enum) {
|
|
86
|
+
for (const tagValue of sch.enum) {
|
|
87
|
+
addMapping(tagValue, i);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function addMapping(tagValue, i) {
|
|
95
|
+
if (typeof tagValue != "string" || tagValue in oneOfMapping) {
|
|
96
|
+
throw new Error(`discriminator: "${tagName}" values must be unique strings`);
|
|
97
|
+
}
|
|
98
|
+
oneOfMapping[tagValue] = i;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
exports.default = def;
|
|
104
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiscrError = void 0;
|
|
4
|
+
var DiscrError;
|
|
5
|
+
(function (DiscrError) {
|
|
6
|
+
DiscrError["Tag"] = "tag";
|
|
7
|
+
DiscrError["Mapping"] = "mapping";
|
|
8
|
+
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("./core");
|
|
4
|
+
const validation_1 = require("./validation");
|
|
5
|
+
const applicator_1 = require("./applicator");
|
|
6
|
+
const dynamic_1 = require("./dynamic");
|
|
7
|
+
const next_1 = require("./next");
|
|
8
|
+
const unevaluated_1 = require("./unevaluated");
|
|
9
|
+
const format_1 = require("./format");
|
|
10
|
+
const metadata_1 = require("./metadata");
|
|
11
|
+
const draft2020Vocabularies = [
|
|
12
|
+
dynamic_1.default,
|
|
13
|
+
core_1.default,
|
|
14
|
+
validation_1.default,
|
|
15
|
+
(0, applicator_1.default)(true),
|
|
16
|
+
format_1.default,
|
|
17
|
+
metadata_1.metadataVocabulary,
|
|
18
|
+
metadata_1.contentVocabulary,
|
|
19
|
+
next_1.default,
|
|
20
|
+
unevaluated_1.default,
|
|
21
|
+
];
|
|
22
|
+
exports.default = draft2020Vocabularies;
|
|
23
|
+
//# sourceMappingURL=draft2020.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("./core");
|
|
4
|
+
const validation_1 = require("./validation");
|
|
5
|
+
const applicator_1 = require("./applicator");
|
|
6
|
+
const format_1 = require("./format");
|
|
7
|
+
const metadata_1 = require("./metadata");
|
|
8
|
+
const draft7Vocabularies = [
|
|
9
|
+
core_1.default,
|
|
10
|
+
validation_1.default,
|
|
11
|
+
(0, applicator_1.default)(),
|
|
12
|
+
format_1.default,
|
|
13
|
+
metadata_1.metadataVocabulary,
|
|
14
|
+
metadata_1.contentVocabulary,
|
|
15
|
+
];
|
|
16
|
+
exports.default = draft7Vocabularies;
|
|
17
|
+
//# sourceMappingURL=draft7.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dynamicAnchor = void 0;
|
|
4
|
+
const codegen_1 = require("../../compile/codegen");
|
|
5
|
+
const names_1 = require("../../compile/names");
|
|
6
|
+
const compile_1 = require("../../compile");
|
|
7
|
+
const ref_1 = require("../core/ref");
|
|
8
|
+
const def = {
|
|
9
|
+
keyword: "$dynamicAnchor",
|
|
10
|
+
schemaType: "string",
|
|
11
|
+
code: (cxt) => dynamicAnchor(cxt, cxt.schema),
|
|
12
|
+
};
|
|
13
|
+
function dynamicAnchor(cxt, anchor) {
|
|
14
|
+
const { gen, it } = cxt;
|
|
15
|
+
it.schemaEnv.root.dynamicAnchors[anchor] = true;
|
|
16
|
+
const v = (0, codegen_1._) `${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`;
|
|
17
|
+
const validate = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt);
|
|
18
|
+
gen.if((0, codegen_1._) `!${v}`, () => gen.assign(v, validate));
|
|
19
|
+
}
|
|
20
|
+
exports.dynamicAnchor = dynamicAnchor;
|
|
21
|
+
function _getValidate(cxt) {
|
|
22
|
+
const { schemaEnv, schema, self } = cxt.it;
|
|
23
|
+
const { root, baseId, localRefs, meta } = schemaEnv.root;
|
|
24
|
+
const { schemaId } = self.opts;
|
|
25
|
+
const sch = new compile_1.SchemaEnv({ schema, schemaId, root, baseId, localRefs, meta });
|
|
26
|
+
compile_1.compileSchema.call(self, sch);
|
|
27
|
+
return (0, ref_1.getValidate)(cxt, sch);
|
|
28
|
+
}
|
|
29
|
+
exports.default = def;
|
|
30
|
+
//# sourceMappingURL=dynamicAnchor.js.map
|