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,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dynamicRef = void 0;
|
|
4
|
+
const codegen_1 = require("../../compile/codegen");
|
|
5
|
+
const names_1 = require("../../compile/names");
|
|
6
|
+
const ref_1 = require("../core/ref");
|
|
7
|
+
const def = {
|
|
8
|
+
keyword: "$dynamicRef",
|
|
9
|
+
schemaType: "string",
|
|
10
|
+
code: (cxt) => dynamicRef(cxt, cxt.schema),
|
|
11
|
+
};
|
|
12
|
+
function dynamicRef(cxt, ref) {
|
|
13
|
+
const { gen, keyword, it } = cxt;
|
|
14
|
+
if (ref[0] !== "#")
|
|
15
|
+
throw new Error(`"${keyword}" only supports hash fragment reference`);
|
|
16
|
+
const anchor = ref.slice(1);
|
|
17
|
+
if (it.allErrors) {
|
|
18
|
+
_dynamicRef();
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
const valid = gen.let("valid", false);
|
|
22
|
+
_dynamicRef(valid);
|
|
23
|
+
cxt.ok(valid);
|
|
24
|
+
}
|
|
25
|
+
function _dynamicRef(valid) {
|
|
26
|
+
// TODO the assumption here is that `recursiveRef: #` always points to the root
|
|
27
|
+
// of the schema object, which is not correct, because there may be $id that
|
|
28
|
+
// makes # point to it, and the target schema may not contain dynamic/recursiveAnchor.
|
|
29
|
+
// Because of that 2 tests in recursiveRef.json fail.
|
|
30
|
+
// This is a similar problem to #815 (`$id` doesn't alter resolution scope for `{ "$ref": "#" }`).
|
|
31
|
+
// (This problem is not tested in JSON-Schema-Test-Suite)
|
|
32
|
+
if (it.schemaEnv.root.dynamicAnchors[anchor]) {
|
|
33
|
+
const v = gen.let("_v", (0, codegen_1._) `${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`);
|
|
34
|
+
gen.if(v, _callRef(v, valid), _callRef(it.validateName, valid));
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
_callRef(it.validateName, valid)();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function _callRef(validate, valid) {
|
|
41
|
+
return valid
|
|
42
|
+
? () => gen.block(() => {
|
|
43
|
+
(0, ref_1.callRef)(cxt, validate);
|
|
44
|
+
gen.let(valid, true);
|
|
45
|
+
})
|
|
46
|
+
: () => (0, ref_1.callRef)(cxt, validate);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.dynamicRef = dynamicRef;
|
|
50
|
+
exports.default = def;
|
|
51
|
+
//# sourceMappingURL=dynamicRef.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const dynamicAnchor_1 = require("./dynamicAnchor");
|
|
4
|
+
const dynamicRef_1 = require("./dynamicRef");
|
|
5
|
+
const recursiveAnchor_1 = require("./recursiveAnchor");
|
|
6
|
+
const recursiveRef_1 = require("./recursiveRef");
|
|
7
|
+
const dynamic = [dynamicAnchor_1.default, dynamicRef_1.default, recursiveAnchor_1.default, recursiveRef_1.default];
|
|
8
|
+
exports.default = dynamic;
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const dynamicAnchor_1 = require("./dynamicAnchor");
|
|
4
|
+
const util_1 = require("../../compile/util");
|
|
5
|
+
const def = {
|
|
6
|
+
keyword: "$recursiveAnchor",
|
|
7
|
+
schemaType: "boolean",
|
|
8
|
+
code(cxt) {
|
|
9
|
+
if (cxt.schema)
|
|
10
|
+
(0, dynamicAnchor_1.dynamicAnchor)(cxt, "");
|
|
11
|
+
else
|
|
12
|
+
(0, util_1.checkStrictMode)(cxt.it, "$recursiveAnchor: false is ignored");
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
exports.default = def;
|
|
16
|
+
//# sourceMappingURL=recursiveAnchor.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const dynamicRef_1 = require("./dynamicRef");
|
|
4
|
+
const def = {
|
|
5
|
+
keyword: "$recursiveRef",
|
|
6
|
+
schemaType: "string",
|
|
7
|
+
code: (cxt) => (0, dynamicRef_1.dynamicRef)(cxt, cxt.schema),
|
|
8
|
+
};
|
|
9
|
+
exports.default = def;
|
|
10
|
+
//# sourceMappingURL=recursiveRef.js.map
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const codegen_1 = require("../../compile/codegen");
|
|
4
|
+
const error = {
|
|
5
|
+
message: ({ schemaCode }) => (0, codegen_1.str) `must match format "${schemaCode}"`,
|
|
6
|
+
params: ({ schemaCode }) => (0, codegen_1._) `{format: ${schemaCode}}`,
|
|
7
|
+
};
|
|
8
|
+
const def = {
|
|
9
|
+
keyword: "format",
|
|
10
|
+
type: ["number", "string"],
|
|
11
|
+
schemaType: "string",
|
|
12
|
+
$data: true,
|
|
13
|
+
error,
|
|
14
|
+
code(cxt, ruleType) {
|
|
15
|
+
const { gen, data, $data, schema, schemaCode, it } = cxt;
|
|
16
|
+
const { opts, errSchemaPath, schemaEnv, self } = it;
|
|
17
|
+
if (!opts.validateFormats)
|
|
18
|
+
return;
|
|
19
|
+
if ($data)
|
|
20
|
+
validate$DataFormat();
|
|
21
|
+
else
|
|
22
|
+
validateFormat();
|
|
23
|
+
function validate$DataFormat() {
|
|
24
|
+
const fmts = gen.scopeValue("formats", {
|
|
25
|
+
ref: self.formats,
|
|
26
|
+
code: opts.code.formats,
|
|
27
|
+
});
|
|
28
|
+
const fDef = gen.const("fDef", (0, codegen_1._) `${fmts}[${schemaCode}]`);
|
|
29
|
+
const fType = gen.let("fType");
|
|
30
|
+
const format = gen.let("format");
|
|
31
|
+
// TODO simplify
|
|
32
|
+
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));
|
|
33
|
+
cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt()));
|
|
34
|
+
function unknownFmt() {
|
|
35
|
+
if (opts.strictSchema === false)
|
|
36
|
+
return codegen_1.nil;
|
|
37
|
+
return (0, codegen_1._) `${schemaCode} && !${format}`;
|
|
38
|
+
}
|
|
39
|
+
function invalidFmt() {
|
|
40
|
+
const callFormat = schemaEnv.$async
|
|
41
|
+
? (0, codegen_1._) `(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))`
|
|
42
|
+
: (0, codegen_1._) `${format}(${data})`;
|
|
43
|
+
const validData = (0, codegen_1._) `(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))`;
|
|
44
|
+
return (0, codegen_1._) `${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function validateFormat() {
|
|
48
|
+
const formatDef = self.formats[schema];
|
|
49
|
+
if (!formatDef) {
|
|
50
|
+
unknownFormat();
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (formatDef === true)
|
|
54
|
+
return;
|
|
55
|
+
const [fmtType, format, fmtRef] = getFormat(formatDef);
|
|
56
|
+
if (fmtType === ruleType)
|
|
57
|
+
cxt.pass(validCondition());
|
|
58
|
+
function unknownFormat() {
|
|
59
|
+
if (opts.strictSchema === false) {
|
|
60
|
+
self.logger.warn(unknownMsg());
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
throw new Error(unknownMsg());
|
|
64
|
+
function unknownMsg() {
|
|
65
|
+
return `unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function getFormat(fmtDef) {
|
|
69
|
+
const code = fmtDef instanceof RegExp
|
|
70
|
+
? (0, codegen_1.regexpCode)(fmtDef)
|
|
71
|
+
: opts.code.formats
|
|
72
|
+
? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(schema)}`
|
|
73
|
+
: undefined;
|
|
74
|
+
const fmt = gen.scopeValue("formats", { key: schema, ref: fmtDef, code });
|
|
75
|
+
if (typeof fmtDef == "object" && !(fmtDef instanceof RegExp)) {
|
|
76
|
+
return [fmtDef.type || "string", fmtDef.validate, (0, codegen_1._) `${fmt}.validate`];
|
|
77
|
+
}
|
|
78
|
+
return ["string", fmtDef, fmt];
|
|
79
|
+
}
|
|
80
|
+
function validCondition() {
|
|
81
|
+
if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) {
|
|
82
|
+
if (!schemaEnv.$async)
|
|
83
|
+
throw new Error("async format in sync schema");
|
|
84
|
+
return (0, codegen_1._) `await ${fmtRef}(${data})`;
|
|
85
|
+
}
|
|
86
|
+
return typeof format == "function" ? (0, codegen_1._) `${fmtRef}(${data})` : (0, codegen_1._) `${fmtRef}.test(${data})`;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
exports.default = def;
|
|
92
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
4
|
+
exports.metadataVocabulary = [
|
|
5
|
+
"title",
|
|
6
|
+
"description",
|
|
7
|
+
"default",
|
|
8
|
+
"deprecated",
|
|
9
|
+
"readOnly",
|
|
10
|
+
"writeOnly",
|
|
11
|
+
"examples",
|
|
12
|
+
];
|
|
13
|
+
exports.contentVocabulary = [
|
|
14
|
+
"contentMediaType",
|
|
15
|
+
"contentEncoding",
|
|
16
|
+
"contentSchema",
|
|
17
|
+
];
|
|
18
|
+
//# sourceMappingURL=metadata.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const dependentRequired_1 = require("./validation/dependentRequired");
|
|
4
|
+
const dependentSchemas_1 = require("./applicator/dependentSchemas");
|
|
5
|
+
const limitContains_1 = require("./validation/limitContains");
|
|
6
|
+
const next = [dependentRequired_1.default, dependentSchemas_1.default, limitContains_1.default];
|
|
7
|
+
exports.default = next;
|
|
8
|
+
//# sourceMappingURL=next.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const unevaluatedProperties_1 = require("./unevaluatedProperties");
|
|
4
|
+
const unevaluatedItems_1 = require("./unevaluatedItems");
|
|
5
|
+
const unevaluated = [unevaluatedProperties_1.default, unevaluatedItems_1.default];
|
|
6
|
+
exports.default = unevaluated;
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
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: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,
|
|
7
|
+
params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,
|
|
8
|
+
};
|
|
9
|
+
const def = {
|
|
10
|
+
keyword: "unevaluatedItems",
|
|
11
|
+
type: "array",
|
|
12
|
+
schemaType: ["boolean", "object"],
|
|
13
|
+
error,
|
|
14
|
+
code(cxt) {
|
|
15
|
+
const { gen, schema, data, it } = cxt;
|
|
16
|
+
const items = it.items || 0;
|
|
17
|
+
if (items === true)
|
|
18
|
+
return;
|
|
19
|
+
const len = gen.const("len", (0, codegen_1._) `${data}.length`);
|
|
20
|
+
if (schema === false) {
|
|
21
|
+
cxt.setParams({ len: items });
|
|
22
|
+
cxt.fail((0, codegen_1._) `${len} > ${items}`);
|
|
23
|
+
}
|
|
24
|
+
else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) {
|
|
25
|
+
const valid = gen.var("valid", (0, codegen_1._) `${len} <= ${items}`);
|
|
26
|
+
gen.if((0, codegen_1.not)(valid), () => validateItems(valid, items));
|
|
27
|
+
cxt.ok(valid);
|
|
28
|
+
}
|
|
29
|
+
it.items = true;
|
|
30
|
+
function validateItems(valid, from) {
|
|
31
|
+
gen.forRange("i", from, len, (i) => {
|
|
32
|
+
cxt.subschema({ keyword: "unevaluatedItems", dataProp: i, dataPropType: util_1.Type.Num }, valid);
|
|
33
|
+
if (!it.allErrors)
|
|
34
|
+
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
exports.default = def;
|
|
40
|
+
//# sourceMappingURL=unevaluatedItems.js.map
|
package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
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 names_1 = require("../../compile/names");
|
|
6
|
+
const error = {
|
|
7
|
+
message: "must NOT have unevaluated properties",
|
|
8
|
+
params: ({ params }) => (0, codegen_1._) `{unevaluatedProperty: ${params.unevaluatedProperty}}`,
|
|
9
|
+
};
|
|
10
|
+
const def = {
|
|
11
|
+
keyword: "unevaluatedProperties",
|
|
12
|
+
type: "object",
|
|
13
|
+
schemaType: ["boolean", "object"],
|
|
14
|
+
trackErrors: true,
|
|
15
|
+
error,
|
|
16
|
+
code(cxt) {
|
|
17
|
+
const { gen, schema, data, errsCount, it } = cxt;
|
|
18
|
+
/* istanbul ignore if */
|
|
19
|
+
if (!errsCount)
|
|
20
|
+
throw new Error("ajv implementation error");
|
|
21
|
+
const { allErrors, props } = it;
|
|
22
|
+
if (props instanceof codegen_1.Name) {
|
|
23
|
+
gen.if((0, codegen_1._) `${props} !== true`, () => gen.forIn("key", data, (key) => gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key))));
|
|
24
|
+
}
|
|
25
|
+
else if (props !== true) {
|
|
26
|
+
gen.forIn("key", data, (key) => props === undefined
|
|
27
|
+
? unevaluatedPropCode(key)
|
|
28
|
+
: gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key)));
|
|
29
|
+
}
|
|
30
|
+
it.props = true;
|
|
31
|
+
cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);
|
|
32
|
+
function unevaluatedPropCode(key) {
|
|
33
|
+
if (schema === false) {
|
|
34
|
+
cxt.setParams({ unevaluatedProperty: key });
|
|
35
|
+
cxt.error();
|
|
36
|
+
if (!allErrors)
|
|
37
|
+
gen.break();
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (!(0, util_1.alwaysValidSchema)(it, schema)) {
|
|
41
|
+
const valid = gen.name("valid");
|
|
42
|
+
cxt.subschema({
|
|
43
|
+
keyword: "unevaluatedProperties",
|
|
44
|
+
dataProp: key,
|
|
45
|
+
dataPropType: util_1.Type.Str,
|
|
46
|
+
}, valid);
|
|
47
|
+
if (!allErrors)
|
|
48
|
+
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function unevaluatedDynamic(evaluatedProps, key) {
|
|
52
|
+
return (0, codegen_1._) `!${evaluatedProps} || !${evaluatedProps}[${key}]`;
|
|
53
|
+
}
|
|
54
|
+
function unevaluatedStatic(evaluatedProps, key) {
|
|
55
|
+
const ps = [];
|
|
56
|
+
for (const p in evaluatedProps) {
|
|
57
|
+
if (evaluatedProps[p] === true)
|
|
58
|
+
ps.push((0, codegen_1._) `${key} !== ${p}`);
|
|
59
|
+
}
|
|
60
|
+
return (0, codegen_1.and)(...ps);
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
exports.default = def;
|
|
65
|
+
//# sourceMappingURL=unevaluatedProperties.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
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 equal_1 = require("../../runtime/equal");
|
|
6
|
+
const error = {
|
|
7
|
+
message: "must be equal to constant",
|
|
8
|
+
params: ({ schemaCode }) => (0, codegen_1._) `{allowedValue: ${schemaCode}}`,
|
|
9
|
+
};
|
|
10
|
+
const def = {
|
|
11
|
+
keyword: "const",
|
|
12
|
+
$data: true,
|
|
13
|
+
error,
|
|
14
|
+
code(cxt) {
|
|
15
|
+
const { gen, data, $data, schemaCode, schema } = cxt;
|
|
16
|
+
if ($data || (schema && typeof schema == "object")) {
|
|
17
|
+
cxt.fail$data((0, codegen_1._) `!${(0, util_1.useFunc)(gen, equal_1.default)}(${data}, ${schemaCode})`);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
cxt.fail((0, codegen_1._) `${schema} !== ${data}`);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
exports.default = def;
|
|
25
|
+
//# sourceMappingURL=const.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const dependencies_1 = require("../applicator/dependencies");
|
|
4
|
+
const def = {
|
|
5
|
+
keyword: "dependentRequired",
|
|
6
|
+
type: "object",
|
|
7
|
+
schemaType: "object",
|
|
8
|
+
error: dependencies_1.error,
|
|
9
|
+
code: (cxt) => (0, dependencies_1.validatePropertyDeps)(cxt),
|
|
10
|
+
};
|
|
11
|
+
exports.default = def;
|
|
12
|
+
//# sourceMappingURL=dependentRequired.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
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 equal_1 = require("../../runtime/equal");
|
|
6
|
+
const error = {
|
|
7
|
+
message: "must be equal to one of the allowed values",
|
|
8
|
+
params: ({ schemaCode }) => (0, codegen_1._) `{allowedValues: ${schemaCode}}`,
|
|
9
|
+
};
|
|
10
|
+
const def = {
|
|
11
|
+
keyword: "enum",
|
|
12
|
+
schemaType: "array",
|
|
13
|
+
$data: true,
|
|
14
|
+
error,
|
|
15
|
+
code(cxt) {
|
|
16
|
+
const { gen, data, $data, schema, schemaCode, it } = cxt;
|
|
17
|
+
if (!$data && schema.length === 0)
|
|
18
|
+
throw new Error("enum must have non-empty array");
|
|
19
|
+
const useLoop = schema.length >= it.opts.loopEnum;
|
|
20
|
+
let eql;
|
|
21
|
+
const getEql = () => (eql !== null && eql !== void 0 ? eql : (eql = (0, util_1.useFunc)(gen, equal_1.default)));
|
|
22
|
+
let valid;
|
|
23
|
+
if (useLoop || $data) {
|
|
24
|
+
valid = gen.let("valid");
|
|
25
|
+
cxt.block$data(valid, loopEnum);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
/* istanbul ignore if */
|
|
29
|
+
if (!Array.isArray(schema))
|
|
30
|
+
throw new Error("ajv implementation error");
|
|
31
|
+
const vSchema = gen.const("vSchema", schemaCode);
|
|
32
|
+
valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i)));
|
|
33
|
+
}
|
|
34
|
+
cxt.pass(valid);
|
|
35
|
+
function loopEnum() {
|
|
36
|
+
gen.assign(valid, false);
|
|
37
|
+
gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._) `${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()));
|
|
38
|
+
}
|
|
39
|
+
function equalCode(vSchema, i) {
|
|
40
|
+
const sch = schema[i];
|
|
41
|
+
return typeof sch === "object" && sch !== null
|
|
42
|
+
? (0, codegen_1._) `${getEql()}(${data}, ${vSchema}[${i}])`
|
|
43
|
+
: (0, codegen_1._) `${data} === ${sch}`;
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
exports.default = def;
|
|
48
|
+
//# sourceMappingURL=enum.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const limitNumber_1 = require("./limitNumber");
|
|
4
|
+
const multipleOf_1 = require("./multipleOf");
|
|
5
|
+
const limitLength_1 = require("./limitLength");
|
|
6
|
+
const pattern_1 = require("./pattern");
|
|
7
|
+
const limitProperties_1 = require("./limitProperties");
|
|
8
|
+
const required_1 = require("./required");
|
|
9
|
+
const limitItems_1 = require("./limitItems");
|
|
10
|
+
const uniqueItems_1 = require("./uniqueItems");
|
|
11
|
+
const const_1 = require("./const");
|
|
12
|
+
const enum_1 = require("./enum");
|
|
13
|
+
const validation = [
|
|
14
|
+
// number
|
|
15
|
+
limitNumber_1.default,
|
|
16
|
+
multipleOf_1.default,
|
|
17
|
+
// string
|
|
18
|
+
limitLength_1.default,
|
|
19
|
+
pattern_1.default,
|
|
20
|
+
// object
|
|
21
|
+
limitProperties_1.default,
|
|
22
|
+
required_1.default,
|
|
23
|
+
// array
|
|
24
|
+
limitItems_1.default,
|
|
25
|
+
uniqueItems_1.default,
|
|
26
|
+
// any
|
|
27
|
+
{ keyword: "type", schemaType: ["string", "array"] },
|
|
28
|
+
{ keyword: "nullable", schemaType: "boolean" },
|
|
29
|
+
const_1.default,
|
|
30
|
+
enum_1.default,
|
|
31
|
+
];
|
|
32
|
+
exports.default = validation;
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const util_1 = require("../../compile/util");
|
|
4
|
+
const def = {
|
|
5
|
+
keyword: ["maxContains", "minContains"],
|
|
6
|
+
type: "array",
|
|
7
|
+
schemaType: "number",
|
|
8
|
+
code({ keyword, parentSchema, it }) {
|
|
9
|
+
if (parentSchema.contains === undefined) {
|
|
10
|
+
(0, util_1.checkStrictMode)(it, `"${keyword}" without "contains" is ignored`);
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
exports.default = def;
|
|
15
|
+
//# sourceMappingURL=limitContains.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const codegen_1 = require("../../compile/codegen");
|
|
4
|
+
const error = {
|
|
5
|
+
message({ keyword, schemaCode }) {
|
|
6
|
+
const comp = keyword === "maxItems" ? "more" : "fewer";
|
|
7
|
+
return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} items`;
|
|
8
|
+
},
|
|
9
|
+
params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`,
|
|
10
|
+
};
|
|
11
|
+
const def = {
|
|
12
|
+
keyword: ["maxItems", "minItems"],
|
|
13
|
+
type: "array",
|
|
14
|
+
schemaType: "number",
|
|
15
|
+
$data: true,
|
|
16
|
+
error,
|
|
17
|
+
code(cxt) {
|
|
18
|
+
const { keyword, data, schemaCode } = cxt;
|
|
19
|
+
const op = keyword === "maxItems" ? codegen_1.operators.GT : codegen_1.operators.LT;
|
|
20
|
+
cxt.fail$data((0, codegen_1._) `${data}.length ${op} ${schemaCode}`);
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
exports.default = def;
|
|
24
|
+
//# sourceMappingURL=limitItems.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
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 ucs2length_1 = require("../../runtime/ucs2length");
|
|
6
|
+
const error = {
|
|
7
|
+
message({ keyword, schemaCode }) {
|
|
8
|
+
const comp = keyword === "maxLength" ? "more" : "fewer";
|
|
9
|
+
return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} characters`;
|
|
10
|
+
},
|
|
11
|
+
params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`,
|
|
12
|
+
};
|
|
13
|
+
const def = {
|
|
14
|
+
keyword: ["maxLength", "minLength"],
|
|
15
|
+
type: "string",
|
|
16
|
+
schemaType: "number",
|
|
17
|
+
$data: true,
|
|
18
|
+
error,
|
|
19
|
+
code(cxt) {
|
|
20
|
+
const { keyword, data, schemaCode, it } = cxt;
|
|
21
|
+
const op = keyword === "maxLength" ? codegen_1.operators.GT : codegen_1.operators.LT;
|
|
22
|
+
const len = it.opts.unicode === false ? (0, codegen_1._) `${data}.length` : (0, codegen_1._) `${(0, util_1.useFunc)(cxt.gen, ucs2length_1.default)}(${data})`;
|
|
23
|
+
cxt.fail$data((0, codegen_1._) `${len} ${op} ${schemaCode}`);
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
exports.default = def;
|
|
27
|
+
//# sourceMappingURL=limitLength.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const codegen_1 = require("../../compile/codegen");
|
|
4
|
+
const ops = codegen_1.operators;
|
|
5
|
+
const KWDs = {
|
|
6
|
+
maximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT },
|
|
7
|
+
minimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT },
|
|
8
|
+
exclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE },
|
|
9
|
+
exclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE },
|
|
10
|
+
};
|
|
11
|
+
const error = {
|
|
12
|
+
message: ({ keyword, schemaCode }) => (0, codegen_1.str) `must be ${KWDs[keyword].okStr} ${schemaCode}`,
|
|
13
|
+
params: ({ keyword, schemaCode }) => (0, codegen_1._) `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`,
|
|
14
|
+
};
|
|
15
|
+
const def = {
|
|
16
|
+
keyword: Object.keys(KWDs),
|
|
17
|
+
type: "number",
|
|
18
|
+
schemaType: "number",
|
|
19
|
+
$data: true,
|
|
20
|
+
error,
|
|
21
|
+
code(cxt) {
|
|
22
|
+
const { keyword, data, schemaCode } = cxt;
|
|
23
|
+
cxt.fail$data((0, codegen_1._) `${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
exports.default = def;
|
|
27
|
+
//# sourceMappingURL=limitNumber.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const codegen_1 = require("../../compile/codegen");
|
|
4
|
+
const error = {
|
|
5
|
+
message({ keyword, schemaCode }) {
|
|
6
|
+
const comp = keyword === "maxProperties" ? "more" : "fewer";
|
|
7
|
+
return (0, codegen_1.str) `must NOT have ${comp} than ${schemaCode} properties`;
|
|
8
|
+
},
|
|
9
|
+
params: ({ schemaCode }) => (0, codegen_1._) `{limit: ${schemaCode}}`,
|
|
10
|
+
};
|
|
11
|
+
const def = {
|
|
12
|
+
keyword: ["maxProperties", "minProperties"],
|
|
13
|
+
type: "object",
|
|
14
|
+
schemaType: "number",
|
|
15
|
+
$data: true,
|
|
16
|
+
error,
|
|
17
|
+
code(cxt) {
|
|
18
|
+
const { keyword, data, schemaCode } = cxt;
|
|
19
|
+
const op = keyword === "maxProperties" ? codegen_1.operators.GT : codegen_1.operators.LT;
|
|
20
|
+
cxt.fail$data((0, codegen_1._) `Object.keys(${data}).length ${op} ${schemaCode}`);
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
exports.default = def;
|
|
24
|
+
//# sourceMappingURL=limitProperties.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const codegen_1 = require("../../compile/codegen");
|
|
4
|
+
const error = {
|
|
5
|
+
message: ({ schemaCode }) => (0, codegen_1.str) `must be multiple of ${schemaCode}`,
|
|
6
|
+
params: ({ schemaCode }) => (0, codegen_1._) `{multipleOf: ${schemaCode}}`,
|
|
7
|
+
};
|
|
8
|
+
const def = {
|
|
9
|
+
keyword: "multipleOf",
|
|
10
|
+
type: "number",
|
|
11
|
+
schemaType: "number",
|
|
12
|
+
$data: true,
|
|
13
|
+
error,
|
|
14
|
+
code(cxt) {
|
|
15
|
+
const { gen, data, schemaCode, it } = cxt;
|
|
16
|
+
// const bdt = bad$DataType(schemaCode, <string>def.schemaType, $data)
|
|
17
|
+
const prec = it.opts.multipleOfPrecision;
|
|
18
|
+
const res = gen.let("res");
|
|
19
|
+
const invalid = prec
|
|
20
|
+
? (0, codegen_1._) `Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}`
|
|
21
|
+
: (0, codegen_1._) `${res} !== parseInt(${res})`;
|
|
22
|
+
cxt.fail$data((0, codegen_1._) `(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
exports.default = def;
|
|
26
|
+
//# sourceMappingURL=multipleOf.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
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 error = {
|
|
6
|
+
message: ({ schemaCode }) => (0, codegen_1.str) `must match pattern "${schemaCode}"`,
|
|
7
|
+
params: ({ schemaCode }) => (0, codegen_1._) `{pattern: ${schemaCode}}`,
|
|
8
|
+
};
|
|
9
|
+
const def = {
|
|
10
|
+
keyword: "pattern",
|
|
11
|
+
type: "string",
|
|
12
|
+
schemaType: "string",
|
|
13
|
+
$data: true,
|
|
14
|
+
error,
|
|
15
|
+
code(cxt) {
|
|
16
|
+
const { data, $data, schema, schemaCode, it } = cxt;
|
|
17
|
+
// TODO regexp should be wrapped in try/catchs
|
|
18
|
+
const u = it.opts.unicodeRegExp ? "u" : "";
|
|
19
|
+
const regExp = $data ? (0, codegen_1._) `(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema);
|
|
20
|
+
cxt.fail$data((0, codegen_1._) `!${regExp}.test(${data})`);
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
exports.default = def;
|
|
24
|
+
//# sourceMappingURL=pattern.js.map
|