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,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// do not edit .js files directly - edit src/index.jst
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module.exports = function equal(a, b) {
|
|
8
|
+
if (a === b) return true;
|
|
9
|
+
|
|
10
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
11
|
+
if (a.constructor !== b.constructor) return false;
|
|
12
|
+
|
|
13
|
+
var length, i, keys;
|
|
14
|
+
if (Array.isArray(a)) {
|
|
15
|
+
length = a.length;
|
|
16
|
+
if (length != b.length) return false;
|
|
17
|
+
for (i = length; i-- !== 0;)
|
|
18
|
+
if (!equal(a[i], b[i])) return false;
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
25
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
26
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
27
|
+
|
|
28
|
+
keys = Object.keys(a);
|
|
29
|
+
length = keys.length;
|
|
30
|
+
if (length !== Object.keys(b).length) return false;
|
|
31
|
+
|
|
32
|
+
for (i = length; i-- !== 0;)
|
|
33
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
34
|
+
|
|
35
|
+
for (i = length; i-- !== 0;) {
|
|
36
|
+
var key = keys[i];
|
|
37
|
+
|
|
38
|
+
if (!equal(a[key], b[key])) return false;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// true if both NaN, false otherwise
|
|
45
|
+
return a!==a && b!==b;
|
|
46
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fast-deep-equal",
|
|
3
|
+
"version": "3.1.3",
|
|
4
|
+
"description": "Fast deep equal",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"eslint": "eslint *.js benchmark/*.js spec/*.js",
|
|
8
|
+
"build": "node build",
|
|
9
|
+
"benchmark": "npm i && npm run build && cd ./benchmark && npm i && node ./",
|
|
10
|
+
"test-spec": "mocha spec/*.spec.js -R spec",
|
|
11
|
+
"test-cov": "nyc npm run test-spec",
|
|
12
|
+
"test-ts": "tsc --target ES5 --noImplicitAny index.d.ts",
|
|
13
|
+
"test": "npm run build && npm run eslint && npm run test-ts && npm run test-cov",
|
|
14
|
+
"prepublish": "npm run build"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/epoberezkin/fast-deep-equal.git"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"fast",
|
|
22
|
+
"equal",
|
|
23
|
+
"deep-equal"
|
|
24
|
+
],
|
|
25
|
+
"author": "Evgeny Poberezkin",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/epoberezkin/fast-deep-equal/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/epoberezkin/fast-deep-equal#readme",
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"coveralls": "^3.1.0",
|
|
33
|
+
"dot": "^1.1.2",
|
|
34
|
+
"eslint": "^7.2.0",
|
|
35
|
+
"mocha": "^7.2.0",
|
|
36
|
+
"nyc": "^15.1.0",
|
|
37
|
+
"pre-commit": "^1.2.2",
|
|
38
|
+
"react": "^16.12.0",
|
|
39
|
+
"react-test-renderer": "^16.12.0",
|
|
40
|
+
"sinon": "^9.0.2",
|
|
41
|
+
"typescript": "^3.9.5"
|
|
42
|
+
},
|
|
43
|
+
"nyc": {
|
|
44
|
+
"exclude": [
|
|
45
|
+
"**/spec/**",
|
|
46
|
+
"node_modules"
|
|
47
|
+
],
|
|
48
|
+
"reporter": [
|
|
49
|
+
"lcov",
|
|
50
|
+
"text-summary"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"index.js",
|
|
55
|
+
"index.d.ts",
|
|
56
|
+
"react.js",
|
|
57
|
+
"react.d.ts",
|
|
58
|
+
"es6/"
|
|
59
|
+
],
|
|
60
|
+
"types": "index.d.ts"
|
|
61
|
+
}
|
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require('./lib/utils')
|
|
4
|
+
const { SCHEMES, getSchemeHandler } = require('./lib/schemes')
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @template {import('./types/index').URIComponent|string} T
|
|
8
|
+
* @param {T} uri
|
|
9
|
+
* @param {import('./types/index').Options} [options]
|
|
10
|
+
* @returns {T}
|
|
11
|
+
*/
|
|
12
|
+
function normalize (uri, options) {
|
|
13
|
+
if (typeof uri === 'string') {
|
|
14
|
+
uri = /** @type {T} */ (normalizeString(uri, options))
|
|
15
|
+
} else if (typeof uri === 'object') {
|
|
16
|
+
uri = /** @type {T} */ (parse(serialize(uri, options), options))
|
|
17
|
+
}
|
|
18
|
+
return uri
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @param {string} baseURI
|
|
23
|
+
* @param {string} relativeURI
|
|
24
|
+
* @param {import('./types/index').Options} [options]
|
|
25
|
+
* @returns {string}
|
|
26
|
+
*/
|
|
27
|
+
function resolve (baseURI, relativeURI, options) {
|
|
28
|
+
const schemelessOptions = options ? Object.assign({ scheme: 'null' }, options) : { scheme: 'null' }
|
|
29
|
+
const resolved = resolveComponent(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true)
|
|
30
|
+
schemelessOptions.skipEscape = true
|
|
31
|
+
return serialize(resolved, schemelessOptions)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @param {import ('./types/index').URIComponent} base
|
|
36
|
+
* @param {import ('./types/index').URIComponent} relative
|
|
37
|
+
* @param {import('./types/index').Options} [options]
|
|
38
|
+
* @param {boolean} [skipNormalization=false]
|
|
39
|
+
* @returns {import ('./types/index').URIComponent}
|
|
40
|
+
*/
|
|
41
|
+
function resolveComponent (base, relative, options, skipNormalization) {
|
|
42
|
+
/** @type {import('./types/index').URIComponent} */
|
|
43
|
+
const target = {}
|
|
44
|
+
if (!skipNormalization) {
|
|
45
|
+
base = parse(serialize(base, options), options) // normalize base component
|
|
46
|
+
relative = parse(serialize(relative, options), options) // normalize relative component
|
|
47
|
+
}
|
|
48
|
+
options = options || {}
|
|
49
|
+
|
|
50
|
+
if (!options.tolerant && relative.scheme) {
|
|
51
|
+
target.scheme = relative.scheme
|
|
52
|
+
// target.authority = relative.authority;
|
|
53
|
+
target.userinfo = relative.userinfo
|
|
54
|
+
target.host = relative.host
|
|
55
|
+
target.port = relative.port
|
|
56
|
+
target.path = removeDotSegments(relative.path || '')
|
|
57
|
+
target.query = relative.query
|
|
58
|
+
} else {
|
|
59
|
+
if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
|
|
60
|
+
// target.authority = relative.authority;
|
|
61
|
+
target.userinfo = relative.userinfo
|
|
62
|
+
target.host = relative.host
|
|
63
|
+
target.port = relative.port
|
|
64
|
+
target.path = removeDotSegments(relative.path || '')
|
|
65
|
+
target.query = relative.query
|
|
66
|
+
} else {
|
|
67
|
+
if (!relative.path) {
|
|
68
|
+
target.path = base.path
|
|
69
|
+
if (relative.query !== undefined) {
|
|
70
|
+
target.query = relative.query
|
|
71
|
+
} else {
|
|
72
|
+
target.query = base.query
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
if (relative.path[0] === '/') {
|
|
76
|
+
target.path = removeDotSegments(relative.path)
|
|
77
|
+
} else {
|
|
78
|
+
if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
|
|
79
|
+
target.path = '/' + relative.path
|
|
80
|
+
} else if (!base.path) {
|
|
81
|
+
target.path = relative.path
|
|
82
|
+
} else {
|
|
83
|
+
target.path = base.path.slice(0, base.path.lastIndexOf('/') + 1) + relative.path
|
|
84
|
+
}
|
|
85
|
+
target.path = removeDotSegments(target.path)
|
|
86
|
+
}
|
|
87
|
+
target.query = relative.query
|
|
88
|
+
}
|
|
89
|
+
// target.authority = base.authority;
|
|
90
|
+
target.userinfo = base.userinfo
|
|
91
|
+
target.host = base.host
|
|
92
|
+
target.port = base.port
|
|
93
|
+
}
|
|
94
|
+
target.scheme = base.scheme
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
target.fragment = relative.fragment
|
|
98
|
+
|
|
99
|
+
return target
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @param {import ('./types/index').URIComponent|string} uriA
|
|
104
|
+
* @param {import ('./types/index').URIComponent|string} uriB
|
|
105
|
+
* @param {import ('./types/index').Options} options
|
|
106
|
+
* @returns {boolean}
|
|
107
|
+
*/
|
|
108
|
+
function equal (uriA, uriB, options) {
|
|
109
|
+
const normalizedA = normalizeComparableURI(uriA, options)
|
|
110
|
+
const normalizedB = normalizeComparableURI(uriB, options)
|
|
111
|
+
|
|
112
|
+
return normalizedA !== undefined && normalizedB !== undefined && normalizedA.toLowerCase() === normalizedB.toLowerCase()
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @param {Readonly<import('./types/index').URIComponent>} cmpts
|
|
117
|
+
* @param {import('./types/index').Options} [opts]
|
|
118
|
+
* @returns {string}
|
|
119
|
+
*/
|
|
120
|
+
function serialize (cmpts, opts) {
|
|
121
|
+
const component = {
|
|
122
|
+
host: cmpts.host,
|
|
123
|
+
scheme: cmpts.scheme,
|
|
124
|
+
userinfo: cmpts.userinfo,
|
|
125
|
+
port: cmpts.port,
|
|
126
|
+
path: cmpts.path,
|
|
127
|
+
query: cmpts.query,
|
|
128
|
+
nid: cmpts.nid,
|
|
129
|
+
nss: cmpts.nss,
|
|
130
|
+
uuid: cmpts.uuid,
|
|
131
|
+
fragment: cmpts.fragment,
|
|
132
|
+
reference: cmpts.reference,
|
|
133
|
+
resourceName: cmpts.resourceName,
|
|
134
|
+
secure: cmpts.secure,
|
|
135
|
+
error: ''
|
|
136
|
+
}
|
|
137
|
+
const options = Object.assign({}, opts)
|
|
138
|
+
const uriTokens = []
|
|
139
|
+
|
|
140
|
+
// find scheme handler
|
|
141
|
+
const schemeHandler = getSchemeHandler(options.scheme || component.scheme)
|
|
142
|
+
|
|
143
|
+
// perform scheme specific serialization
|
|
144
|
+
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options)
|
|
145
|
+
|
|
146
|
+
if (component.path !== undefined) {
|
|
147
|
+
if (!options.skipEscape) {
|
|
148
|
+
component.path = escapePreservingEscapes(component.path)
|
|
149
|
+
|
|
150
|
+
if (component.scheme !== undefined) {
|
|
151
|
+
component.path = component.path.split('%3A').join(':')
|
|
152
|
+
}
|
|
153
|
+
} else {
|
|
154
|
+
component.path = normalizePercentEncoding(component.path)
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (options.reference !== 'suffix' && component.scheme) {
|
|
159
|
+
uriTokens.push(component.scheme, ':')
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const authority = recomposeAuthority(component)
|
|
163
|
+
if (authority !== undefined) {
|
|
164
|
+
if (options.reference !== 'suffix') {
|
|
165
|
+
uriTokens.push('//')
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
uriTokens.push(authority)
|
|
169
|
+
|
|
170
|
+
if (component.path && component.path[0] !== '/') {
|
|
171
|
+
uriTokens.push('/')
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
if (component.path !== undefined) {
|
|
175
|
+
let s = component.path
|
|
176
|
+
|
|
177
|
+
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
178
|
+
s = removeDotSegments(s)
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (
|
|
182
|
+
authority === undefined &&
|
|
183
|
+
s[0] === '/' &&
|
|
184
|
+
s[1] === '/'
|
|
185
|
+
) {
|
|
186
|
+
// don't allow the path to start with "//"
|
|
187
|
+
s = '/%2F' + s.slice(2)
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
uriTokens.push(s)
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (component.query !== undefined) {
|
|
194
|
+
uriTokens.push('?', component.query)
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (component.fragment !== undefined) {
|
|
198
|
+
uriTokens.push('#', component.fragment)
|
|
199
|
+
}
|
|
200
|
+
return uriTokens.join('')
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* @param {import('./types/index').URIComponent} parsed
|
|
207
|
+
* @param {RegExpMatchArray} matches
|
|
208
|
+
* @returns {string|undefined}
|
|
209
|
+
*/
|
|
210
|
+
function getParseError (parsed, matches) {
|
|
211
|
+
if (matches[2] !== undefined && parsed.path && parsed.path[0] !== '/') {
|
|
212
|
+
return 'URI path must start with "/" when authority is present.'
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (typeof parsed.port === 'number' && (parsed.port < 0 || parsed.port > 65535)) {
|
|
216
|
+
return 'URI port is malformed.'
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
return undefined
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @param {string} uri
|
|
224
|
+
* @param {import('./types/index').Options} [opts]
|
|
225
|
+
* @returns {{ parsed: import('./types/index').URIComponent, malformedAuthorityOrPort: boolean }}
|
|
226
|
+
*/
|
|
227
|
+
function parseWithStatus (uri, opts) {
|
|
228
|
+
const options = Object.assign({}, opts)
|
|
229
|
+
/** @type {import('./types/index').URIComponent} */
|
|
230
|
+
const parsed = {
|
|
231
|
+
scheme: undefined,
|
|
232
|
+
userinfo: undefined,
|
|
233
|
+
host: '',
|
|
234
|
+
port: undefined,
|
|
235
|
+
path: '',
|
|
236
|
+
query: undefined,
|
|
237
|
+
fragment: undefined
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
let malformedAuthorityOrPort = false
|
|
241
|
+
|
|
242
|
+
let isIP = false
|
|
243
|
+
if (options.reference === 'suffix') {
|
|
244
|
+
if (options.scheme) {
|
|
245
|
+
uri = options.scheme + ':' + uri
|
|
246
|
+
} else {
|
|
247
|
+
uri = '//' + uri
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
const matches = uri.match(URI_PARSE)
|
|
252
|
+
|
|
253
|
+
if (matches) {
|
|
254
|
+
// store each component
|
|
255
|
+
parsed.scheme = matches[1]
|
|
256
|
+
parsed.userinfo = matches[3]
|
|
257
|
+
parsed.host = matches[4]
|
|
258
|
+
parsed.port = parseInt(matches[5], 10)
|
|
259
|
+
parsed.path = matches[6] || ''
|
|
260
|
+
parsed.query = matches[7]
|
|
261
|
+
parsed.fragment = matches[8]
|
|
262
|
+
|
|
263
|
+
// fix port number
|
|
264
|
+
if (isNaN(parsed.port)) {
|
|
265
|
+
parsed.port = matches[5]
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
const parseError = getParseError(parsed, matches)
|
|
269
|
+
if (parseError !== undefined) {
|
|
270
|
+
parsed.error = parsed.error || parseError
|
|
271
|
+
malformedAuthorityOrPort = true
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (parsed.host) {
|
|
275
|
+
const ipv4result = isIPv4(parsed.host)
|
|
276
|
+
if (ipv4result === false) {
|
|
277
|
+
const ipv6result = normalizeIPv6(parsed.host)
|
|
278
|
+
parsed.host = ipv6result.host.toLowerCase()
|
|
279
|
+
isIP = ipv6result.isIPV6
|
|
280
|
+
} else {
|
|
281
|
+
isIP = true
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && parsed.query === undefined && !parsed.path) {
|
|
285
|
+
parsed.reference = 'same-document'
|
|
286
|
+
} else if (parsed.scheme === undefined) {
|
|
287
|
+
parsed.reference = 'relative'
|
|
288
|
+
} else if (parsed.fragment === undefined) {
|
|
289
|
+
parsed.reference = 'absolute'
|
|
290
|
+
} else {
|
|
291
|
+
parsed.reference = 'uri'
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// check for reference errors
|
|
295
|
+
if (options.reference && options.reference !== 'suffix' && options.reference !== parsed.reference) {
|
|
296
|
+
parsed.error = parsed.error || 'URI is not a ' + options.reference + ' reference.'
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// find scheme handler
|
|
300
|
+
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme)
|
|
301
|
+
|
|
302
|
+
// check if scheme can't handle IRIs
|
|
303
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
304
|
+
// if host component is a domain name
|
|
305
|
+
if (parsed.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost)) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
306
|
+
// convert Unicode IDN -> ASCII IDN
|
|
307
|
+
try {
|
|
308
|
+
parsed.host = new URL('http://' + parsed.host).hostname
|
|
309
|
+
} catch (e) {
|
|
310
|
+
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
// convert IRI -> URI
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) {
|
|
317
|
+
if (uri.indexOf('%') !== -1) {
|
|
318
|
+
if (parsed.scheme !== undefined) {
|
|
319
|
+
parsed.scheme = unescape(parsed.scheme)
|
|
320
|
+
}
|
|
321
|
+
if (parsed.host !== undefined) {
|
|
322
|
+
parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP)
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
if (parsed.path) {
|
|
326
|
+
parsed.path = normalizePathEncoding(parsed.path)
|
|
327
|
+
}
|
|
328
|
+
if (parsed.fragment) {
|
|
329
|
+
try {
|
|
330
|
+
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment))
|
|
331
|
+
} catch {
|
|
332
|
+
parsed.error = parsed.error || 'URI malformed'
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
// perform scheme specific parsing
|
|
338
|
+
if (schemeHandler && schemeHandler.parse) {
|
|
339
|
+
schemeHandler.parse(parsed, options)
|
|
340
|
+
}
|
|
341
|
+
} else {
|
|
342
|
+
parsed.error = parsed.error || 'URI can not be parsed.'
|
|
343
|
+
}
|
|
344
|
+
return { parsed, malformedAuthorityOrPort }
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* @param {string} uri
|
|
349
|
+
* @param {import('./types/index').Options} [opts]
|
|
350
|
+
* @returns
|
|
351
|
+
*/
|
|
352
|
+
function parse (uri, opts) {
|
|
353
|
+
return parseWithStatus(uri, opts).parsed
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* @param {string} uri
|
|
358
|
+
* @param {import('./types/index').Options} [opts]
|
|
359
|
+
* @returns {string}
|
|
360
|
+
*/
|
|
361
|
+
function normalizeString (uri, opts) {
|
|
362
|
+
return normalizeStringWithStatus(uri, opts).normalized
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* @param {string} uri
|
|
367
|
+
* @param {import('./types/index').Options} [opts]
|
|
368
|
+
* @returns {{ normalized: string, malformedAuthorityOrPort: boolean }}
|
|
369
|
+
*/
|
|
370
|
+
function normalizeStringWithStatus (uri, opts) {
|
|
371
|
+
const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts)
|
|
372
|
+
return {
|
|
373
|
+
normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
|
|
374
|
+
malformedAuthorityOrPort
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* @param {import ('./types/index').URIComponent|string} uri
|
|
380
|
+
* @param {import('./types/index').Options} [opts]
|
|
381
|
+
* @returns {string|undefined}
|
|
382
|
+
*/
|
|
383
|
+
function normalizeComparableURI (uri, opts) {
|
|
384
|
+
if (typeof uri === 'string') {
|
|
385
|
+
const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts)
|
|
386
|
+
return malformedAuthorityOrPort ? undefined : normalized
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
if (typeof uri === 'object') {
|
|
390
|
+
return serialize(uri, opts)
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
const fastUri = {
|
|
395
|
+
SCHEMES,
|
|
396
|
+
normalize,
|
|
397
|
+
resolve,
|
|
398
|
+
resolveComponent,
|
|
399
|
+
equal,
|
|
400
|
+
serialize,
|
|
401
|
+
parse
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
module.exports = fastUri
|
|
405
|
+
module.exports.default = fastUri
|
|
406
|
+
module.exports.fastUri = fastUri
|