@spotlightjs/spotlight 4.11.3 → 4.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/ajv.js +6 -3
- package/dist/_virtual/ajv2.js +13 -0
- package/dist/_virtual/index.js +6 -3
- package/dist/_virtual/index10.js +3 -3
- package/dist/_virtual/index11.js +3 -3
- package/dist/_virtual/index12.js +13 -0
- package/dist/_virtual/index2.js +3 -3
- package/dist/_virtual/index4.js +3 -3
- package/dist/_virtual/index5.js +3 -3
- package/dist/_virtual/index6.js +3 -3
- package/dist/_virtual/index7.js +3 -3
- package/dist/_virtual/index8.js +3 -3
- package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +1 -1
- package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map +1 -1
- package/dist/node_modules/.pnpm/@modelcontextprotocol_sdk@1.27.1_zod@4.1.13/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +3 -3
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js +203 -194
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js +47 -47
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js +77 -69
- package/dist/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js +80 -85
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js +145 -136
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js +692 -685
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js +143 -135
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js +122 -116
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js +218 -218
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js +43 -35
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js +19 -11
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js +149 -144
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js +31 -25
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js +164 -160
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js +23 -17
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js +52 -49
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js +174 -173
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js +36 -32
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js +473 -478
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js +113 -111
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js +81 -77
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js +573 -574
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json.js +3 -17
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json.js +4 -236
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js +16 -7
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js +27 -18
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js +16 -7
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js +17 -8
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +55 -48
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +104 -99
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +30 -22
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +20 -12
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -88
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +94 -88
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js +71 -64
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js +66 -73
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js +60 -54
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +41 -36
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js +34 -26
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -53
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +73 -67
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +20 -12
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +62 -57
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +46 -39
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +21 -13
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js +132 -129
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js +17 -8
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js +27 -20
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js +121 -118
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +103 -99
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +15 -9
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js +30 -26
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js +84 -76
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js +16 -8
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js +24 -18
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js +33 -27
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js +53 -47
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js +52 -53
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +32 -24
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +37 -31
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +35 -27
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +32 -24
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +31 -23
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +41 -35
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js +80 -74
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -1
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +71 -66
- package/dist/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -1
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +34 -27
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js.map +1 -1
- package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js +300 -0
- package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js.map +1 -0
- package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js +223 -0
- package/dist/node_modules/.pnpm/{fast-uri@3.1.0 → fast-uri@3.1.2}/node_modules/fast-uri/lib/schemes.js.map +1 -1
- package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js +325 -0
- package/dist/node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js.map +1 -0
- package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/helper/streaming/sse.js.map +1 -0
- package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/middleware/cors/index.js +8 -8
- package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/middleware/cors/index.js.map +1 -0
- package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/html.js.map +1 -0
- package/dist/node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/stream.js.map +1 -0
- package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +83 -78
- package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js.map +1 -1
- package/dist/node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.1.13/node_modules/zod-to-json-schema/dist/esm/Options.js +1 -1
- package/dist/node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.1.13/node_modules/zod-to-json-schema/dist/esm/Options.js.map +1 -1
- package/dist/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js +1 -1
- package/dist/node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js.map +1 -1
- package/dist/sentry-config.js +2 -2
- package/dist/server/cli/run.js +2 -2
- package/dist/server/cli.js +2 -2
- package/dist/server/main.js +2 -2
- package/dist/server/mcp/mcp.js +2 -2
- package/dist/server/routes/stream/streaming.js +2 -2
- package/dist/ui/assets/index.js +61 -70
- package/dist/ui/assets/index2.js +1 -1
- package/dist/ui/assets/instrumentation.js +18 -18
- package/dist/ui/assets/main.css +1 -1
- package/dist/ui/assets/main.js +1 -1
- package/dist/ui/assets/serverTimingMeta.js +23 -30
- package/package.json +9 -9
- package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js +0 -264
- package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js.map +0 -1
- package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js +0 -197
- package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js +0 -261
- package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js.map +0 -1
- package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/helper/streaming/sse.js.map +0 -1
- package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/middleware/cors/index.js.map +0 -1
- package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/html.js.map +0 -1
- package/dist/node_modules/.pnpm/hono@4.12.8/node_modules/hono/dist/utils/stream.js.map +0 -1
- /package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/helper/streaming/sse.js +0 -0
- /package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/utils/html.js +0 -0
- /package/dist/node_modules/.pnpm/{hono@4.12.8 → hono@4.12.18}/node_modules/hono/dist/utils/stream.js +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotlightjs/spotlight",
|
|
3
3
|
"description": "Spotlight - Sentry for development. Containing the UI, sidecar, and electron app.",
|
|
4
|
-
"version": "4.11.
|
|
4
|
+
"version": "4.11.5",
|
|
5
5
|
"productName": "Spotlight",
|
|
6
6
|
"author": "Sentry",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@hono/mcp": "^0.2.2",
|
|
35
|
-
"@hono/node-server": "^1.19.
|
|
35
|
+
"@hono/node-server": "^1.19.14",
|
|
36
36
|
"@jridgewell/trace-mapping": "^0.3.25",
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
38
38
|
"@sentry/core": "^10.31.0",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"chalk": "^5.6.2",
|
|
42
42
|
"eventsource": "^4.0.0",
|
|
43
43
|
"fast-fuzzy": "^1.12.0",
|
|
44
|
-
"hono": "^4.12.
|
|
44
|
+
"hono": "^4.12.18",
|
|
45
45
|
"launch-editor": "^2.9.1",
|
|
46
46
|
"logfmt": "^1.4.0",
|
|
47
47
|
"mcp-proxy": "^5.6.0",
|
|
48
48
|
"semver": "^7.7.3",
|
|
49
49
|
"uuidv7": "^1.0.2",
|
|
50
|
-
"yaml": "^2.8.
|
|
50
|
+
"yaml": "^2.8.3",
|
|
51
51
|
"zod": "^4"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
76
76
|
"@typescript-eslint/parser": "^6.21.0",
|
|
77
77
|
"@vitejs/plugin-react": "^4.3.2",
|
|
78
|
-
"@vitest/coverage-v8": "^
|
|
78
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
79
79
|
"autoprefixer": "^10.4.20",
|
|
80
80
|
"beautify": "^0.0.8",
|
|
81
81
|
"class-variance-authority": "^0.7.1",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"concurrently": "^9.1.2",
|
|
84
84
|
"dayjs": "^1.11.13",
|
|
85
85
|
"dotenv": "^16.4.5",
|
|
86
|
-
"electron": "^
|
|
86
|
+
"electron": "^39.8.5",
|
|
87
87
|
"electron-builder": "^24.13.3",
|
|
88
88
|
"electron-store": "^10.0.1",
|
|
89
89
|
"electron-updater": "^6.6.2",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"eslint-plugin-react-refresh": "^0.4.12",
|
|
93
93
|
"fetch-event-stream": "^0.1.5",
|
|
94
94
|
"fossilize": "^0.4.2",
|
|
95
|
-
"happy-dom": "^20.
|
|
95
|
+
"happy-dom": "^20.8.9",
|
|
96
96
|
"magic-string": "^0.30.11",
|
|
97
97
|
"nanovis": "^0.1.3",
|
|
98
98
|
"platformicons": "^7.0.4",
|
|
@@ -109,11 +109,11 @@
|
|
|
109
109
|
"tw-animate-css": "^1.3.4",
|
|
110
110
|
"typescript": "^5.6.2",
|
|
111
111
|
"usehooks-ts": "^2.16.0",
|
|
112
|
-
"vite": "^
|
|
112
|
+
"vite": "^6.4.2",
|
|
113
113
|
"vite-plugin-dts": "^4.5.4",
|
|
114
114
|
"vite-plugin-electron": "^0.29.0",
|
|
115
115
|
"vite-plugin-svgr": "^3.3.0",
|
|
116
|
-
"vitest": "^
|
|
116
|
+
"vitest": "^4.1.0",
|
|
117
117
|
"zustand": "^5.0.3"
|
|
118
118
|
},
|
|
119
119
|
"volta": {
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
!(function() {
|
|
3
|
-
try {
|
|
4
|
-
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "81b7abad-748b-495e-952a-84de27242bac", e._sentryDebugIdIdentifier = "sentry-dbid-81b7abad-748b-495e-952a-84de27242bac");
|
|
6
|
-
} catch (e2) {
|
|
7
|
-
}
|
|
8
|
-
})();
|
|
9
|
-
import { __module as fastUri$1 } from "../../../../../_virtual/index11.js";
|
|
10
|
-
import { u as utils } from "./lib/utils.js";
|
|
11
|
-
import { s as schemes } from "./lib/schemes.js";
|
|
12
|
-
const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = utils;
|
|
13
|
-
const { SCHEMES, getSchemeHandler } = schemes;
|
|
14
|
-
function normalize(uri, options) {
|
|
15
|
-
if (typeof uri === "string") {
|
|
16
|
-
uri = /** @type {T} */
|
|
17
|
-
serialize(parse(uri, options), options);
|
|
18
|
-
} else if (typeof uri === "object") {
|
|
19
|
-
uri = /** @type {T} */
|
|
20
|
-
parse(serialize(uri, options), options);
|
|
21
|
-
}
|
|
22
|
-
return uri;
|
|
23
|
-
}
|
|
24
|
-
function resolve(baseURI, relativeURI, options) {
|
|
25
|
-
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
26
|
-
const resolved = resolveComponent(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true);
|
|
27
|
-
schemelessOptions.skipEscape = true;
|
|
28
|
-
return serialize(resolved, schemelessOptions);
|
|
29
|
-
}
|
|
30
|
-
function resolveComponent(base, relative, options, skipNormalization) {
|
|
31
|
-
const target = {};
|
|
32
|
-
if (!skipNormalization) {
|
|
33
|
-
base = parse(serialize(base, options), options);
|
|
34
|
-
relative = parse(serialize(relative, options), options);
|
|
35
|
-
}
|
|
36
|
-
options = options || {};
|
|
37
|
-
if (!options.tolerant && relative.scheme) {
|
|
38
|
-
target.scheme = relative.scheme;
|
|
39
|
-
target.userinfo = relative.userinfo;
|
|
40
|
-
target.host = relative.host;
|
|
41
|
-
target.port = relative.port;
|
|
42
|
-
target.path = removeDotSegments(relative.path || "");
|
|
43
|
-
target.query = relative.query;
|
|
44
|
-
} else {
|
|
45
|
-
if (relative.userinfo !== void 0 || relative.host !== void 0 || relative.port !== void 0) {
|
|
46
|
-
target.userinfo = relative.userinfo;
|
|
47
|
-
target.host = relative.host;
|
|
48
|
-
target.port = relative.port;
|
|
49
|
-
target.path = removeDotSegments(relative.path || "");
|
|
50
|
-
target.query = relative.query;
|
|
51
|
-
} else {
|
|
52
|
-
if (!relative.path) {
|
|
53
|
-
target.path = base.path;
|
|
54
|
-
if (relative.query !== void 0) {
|
|
55
|
-
target.query = relative.query;
|
|
56
|
-
} else {
|
|
57
|
-
target.query = base.query;
|
|
58
|
-
}
|
|
59
|
-
} else {
|
|
60
|
-
if (relative.path[0] === "/") {
|
|
61
|
-
target.path = removeDotSegments(relative.path);
|
|
62
|
-
} else {
|
|
63
|
-
if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
|
|
64
|
-
target.path = "/" + relative.path;
|
|
65
|
-
} else if (!base.path) {
|
|
66
|
-
target.path = relative.path;
|
|
67
|
-
} else {
|
|
68
|
-
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
69
|
-
}
|
|
70
|
-
target.path = removeDotSegments(target.path);
|
|
71
|
-
}
|
|
72
|
-
target.query = relative.query;
|
|
73
|
-
}
|
|
74
|
-
target.userinfo = base.userinfo;
|
|
75
|
-
target.host = base.host;
|
|
76
|
-
target.port = base.port;
|
|
77
|
-
}
|
|
78
|
-
target.scheme = base.scheme;
|
|
79
|
-
}
|
|
80
|
-
target.fragment = relative.fragment;
|
|
81
|
-
return target;
|
|
82
|
-
}
|
|
83
|
-
function equal(uriA, uriB, options) {
|
|
84
|
-
if (typeof uriA === "string") {
|
|
85
|
-
uriA = unescape(uriA);
|
|
86
|
-
uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true });
|
|
87
|
-
} else if (typeof uriA === "object") {
|
|
88
|
-
uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
|
|
89
|
-
}
|
|
90
|
-
if (typeof uriB === "string") {
|
|
91
|
-
uriB = unescape(uriB);
|
|
92
|
-
uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true });
|
|
93
|
-
} else if (typeof uriB === "object") {
|
|
94
|
-
uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
|
|
95
|
-
}
|
|
96
|
-
return uriA.toLowerCase() === uriB.toLowerCase();
|
|
97
|
-
}
|
|
98
|
-
function serialize(cmpts, opts) {
|
|
99
|
-
const component = {
|
|
100
|
-
host: cmpts.host,
|
|
101
|
-
scheme: cmpts.scheme,
|
|
102
|
-
userinfo: cmpts.userinfo,
|
|
103
|
-
port: cmpts.port,
|
|
104
|
-
path: cmpts.path,
|
|
105
|
-
query: cmpts.query,
|
|
106
|
-
nid: cmpts.nid,
|
|
107
|
-
nss: cmpts.nss,
|
|
108
|
-
uuid: cmpts.uuid,
|
|
109
|
-
fragment: cmpts.fragment,
|
|
110
|
-
reference: cmpts.reference,
|
|
111
|
-
resourceName: cmpts.resourceName,
|
|
112
|
-
secure: cmpts.secure,
|
|
113
|
-
error: ""
|
|
114
|
-
};
|
|
115
|
-
const options = Object.assign({}, opts);
|
|
116
|
-
const uriTokens = [];
|
|
117
|
-
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
118
|
-
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
119
|
-
if (component.path !== void 0) {
|
|
120
|
-
if (!options.skipEscape) {
|
|
121
|
-
component.path = escape(component.path);
|
|
122
|
-
if (component.scheme !== void 0) {
|
|
123
|
-
component.path = component.path.split("%3A").join(":");
|
|
124
|
-
}
|
|
125
|
-
} else {
|
|
126
|
-
component.path = unescape(component.path);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
if (options.reference !== "suffix" && component.scheme) {
|
|
130
|
-
uriTokens.push(component.scheme, ":");
|
|
131
|
-
}
|
|
132
|
-
const authority = recomposeAuthority(component);
|
|
133
|
-
if (authority !== void 0) {
|
|
134
|
-
if (options.reference !== "suffix") {
|
|
135
|
-
uriTokens.push("//");
|
|
136
|
-
}
|
|
137
|
-
uriTokens.push(authority);
|
|
138
|
-
if (component.path && component.path[0] !== "/") {
|
|
139
|
-
uriTokens.push("/");
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
if (component.path !== void 0) {
|
|
143
|
-
let s = component.path;
|
|
144
|
-
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
145
|
-
s = removeDotSegments(s);
|
|
146
|
-
}
|
|
147
|
-
if (authority === void 0 && s[0] === "/" && s[1] === "/") {
|
|
148
|
-
s = "/%2F" + s.slice(2);
|
|
149
|
-
}
|
|
150
|
-
uriTokens.push(s);
|
|
151
|
-
}
|
|
152
|
-
if (component.query !== void 0) {
|
|
153
|
-
uriTokens.push("?", component.query);
|
|
154
|
-
}
|
|
155
|
-
if (component.fragment !== void 0) {
|
|
156
|
-
uriTokens.push("#", component.fragment);
|
|
157
|
-
}
|
|
158
|
-
return uriTokens.join("");
|
|
159
|
-
}
|
|
160
|
-
const URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
161
|
-
function parse(uri, opts) {
|
|
162
|
-
const options = Object.assign({}, opts);
|
|
163
|
-
const parsed = {
|
|
164
|
-
scheme: void 0,
|
|
165
|
-
userinfo: void 0,
|
|
166
|
-
host: "",
|
|
167
|
-
port: void 0,
|
|
168
|
-
path: "",
|
|
169
|
-
query: void 0,
|
|
170
|
-
fragment: void 0
|
|
171
|
-
};
|
|
172
|
-
let isIP = false;
|
|
173
|
-
if (options.reference === "suffix") {
|
|
174
|
-
if (options.scheme) {
|
|
175
|
-
uri = options.scheme + ":" + uri;
|
|
176
|
-
} else {
|
|
177
|
-
uri = "//" + uri;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
const matches = uri.match(URI_PARSE);
|
|
181
|
-
if (matches) {
|
|
182
|
-
parsed.scheme = matches[1];
|
|
183
|
-
parsed.userinfo = matches[3];
|
|
184
|
-
parsed.host = matches[4];
|
|
185
|
-
parsed.port = parseInt(matches[5], 10);
|
|
186
|
-
parsed.path = matches[6] || "";
|
|
187
|
-
parsed.query = matches[7];
|
|
188
|
-
parsed.fragment = matches[8];
|
|
189
|
-
if (isNaN(parsed.port)) {
|
|
190
|
-
parsed.port = matches[5];
|
|
191
|
-
}
|
|
192
|
-
if (parsed.host) {
|
|
193
|
-
const ipv4result = isIPv4(parsed.host);
|
|
194
|
-
if (ipv4result === false) {
|
|
195
|
-
const ipv6result = normalizeIPv6(parsed.host);
|
|
196
|
-
parsed.host = ipv6result.host.toLowerCase();
|
|
197
|
-
isIP = ipv6result.isIPV6;
|
|
198
|
-
} else {
|
|
199
|
-
isIP = true;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && parsed.query === void 0 && !parsed.path) {
|
|
203
|
-
parsed.reference = "same-document";
|
|
204
|
-
} else if (parsed.scheme === void 0) {
|
|
205
|
-
parsed.reference = "relative";
|
|
206
|
-
} else if (parsed.fragment === void 0) {
|
|
207
|
-
parsed.reference = "absolute";
|
|
208
|
-
} else {
|
|
209
|
-
parsed.reference = "uri";
|
|
210
|
-
}
|
|
211
|
-
if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) {
|
|
212
|
-
parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
213
|
-
}
|
|
214
|
-
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
215
|
-
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
216
|
-
if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
217
|
-
try {
|
|
218
|
-
parsed.host = URL.domainToASCII(parsed.host.toLowerCase());
|
|
219
|
-
} catch (e) {
|
|
220
|
-
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
225
|
-
if (uri.indexOf("%") !== -1) {
|
|
226
|
-
if (parsed.scheme !== void 0) {
|
|
227
|
-
parsed.scheme = unescape(parsed.scheme);
|
|
228
|
-
}
|
|
229
|
-
if (parsed.host !== void 0) {
|
|
230
|
-
parsed.host = unescape(parsed.host);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
if (parsed.path) {
|
|
234
|
-
parsed.path = escape(unescape(parsed.path));
|
|
235
|
-
}
|
|
236
|
-
if (parsed.fragment) {
|
|
237
|
-
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
if (schemeHandler && schemeHandler.parse) {
|
|
241
|
-
schemeHandler.parse(parsed, options);
|
|
242
|
-
}
|
|
243
|
-
} else {
|
|
244
|
-
parsed.error = parsed.error || "URI can not be parsed.";
|
|
245
|
-
}
|
|
246
|
-
return parsed;
|
|
247
|
-
}
|
|
248
|
-
const fastUri = {
|
|
249
|
-
SCHEMES,
|
|
250
|
-
normalize,
|
|
251
|
-
resolve,
|
|
252
|
-
resolveComponent,
|
|
253
|
-
equal,
|
|
254
|
-
serialize,
|
|
255
|
-
parse
|
|
256
|
-
};
|
|
257
|
-
fastUri$1.exports = fastUri;
|
|
258
|
-
fastUri$1.exports.default = fastUri;
|
|
259
|
-
fastUri$1.exports.fastUri = fastUri;
|
|
260
|
-
var fastUriExports = fastUri$1.exports;
|
|
261
|
-
export {
|
|
262
|
-
fastUriExports as f
|
|
263
|
-
};
|
|
264
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js"],"sourcesContent":["'use strict'\n\nconst { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require('./lib/utils')\nconst { SCHEMES, getSchemeHandler } = require('./lib/schemes')\n\n/**\n * @template {import('./types/index').URIComponent|string} T\n * @param {T} uri\n * @param {import('./types/index').Options} [options]\n * @returns {T}\n */\nfunction normalize (uri, options) {\n if (typeof uri === 'string') {\n uri = /** @type {T} */ (serialize(parse(uri, options), options))\n } else if (typeof uri === 'object') {\n uri = /** @type {T} */ (parse(serialize(uri, options), options))\n }\n return uri\n}\n\n/**\n * @param {string} baseURI\n * @param {string} relativeURI\n * @param {import('./types/index').Options} [options]\n * @returns {string}\n */\nfunction resolve (baseURI, relativeURI, options) {\n const schemelessOptions = options ? Object.assign({ scheme: 'null' }, options) : { scheme: 'null' }\n const resolved = resolveComponent(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true)\n schemelessOptions.skipEscape = true\n return serialize(resolved, schemelessOptions)\n}\n\n/**\n * @param {import ('./types/index').URIComponent} base\n * @param {import ('./types/index').URIComponent} relative\n * @param {import('./types/index').Options} [options]\n * @param {boolean} [skipNormalization=false]\n * @returns {import ('./types/index').URIComponent}\n */\nfunction resolveComponent (base, relative, options, skipNormalization) {\n /** @type {import('./types/index').URIComponent} */\n const target = {}\n if (!skipNormalization) {\n base = parse(serialize(base, options), options) // normalize base component\n relative = parse(serialize(relative, options), options) // normalize relative component\n }\n options = options || {}\n\n if (!options.tolerant && relative.scheme) {\n target.scheme = relative.scheme\n // target.authority = relative.authority;\n target.userinfo = relative.userinfo\n target.host = relative.host\n target.port = relative.port\n target.path = removeDotSegments(relative.path || '')\n target.query = relative.query\n } else {\n if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {\n // target.authority = relative.authority;\n target.userinfo = relative.userinfo\n target.host = relative.host\n target.port = relative.port\n target.path = removeDotSegments(relative.path || '')\n target.query = relative.query\n } else {\n if (!relative.path) {\n target.path = base.path\n if (relative.query !== undefined) {\n target.query = relative.query\n } else {\n target.query = base.query\n }\n } else {\n if (relative.path[0] === '/') {\n target.path = removeDotSegments(relative.path)\n } else {\n if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {\n target.path = '/' + relative.path\n } else if (!base.path) {\n target.path = relative.path\n } else {\n target.path = base.path.slice(0, base.path.lastIndexOf('/') + 1) + relative.path\n }\n target.path = removeDotSegments(target.path)\n }\n target.query = relative.query\n }\n // target.authority = base.authority;\n target.userinfo = base.userinfo\n target.host = base.host\n target.port = base.port\n }\n target.scheme = base.scheme\n }\n\n target.fragment = relative.fragment\n\n return target\n}\n\n/**\n * @param {import ('./types/index').URIComponent|string} uriA\n * @param {import ('./types/index').URIComponent|string} uriB\n * @param {import ('./types/index').Options} options\n * @returns {boolean}\n */\nfunction equal (uriA, uriB, options) {\n if (typeof uriA === 'string') {\n uriA = unescape(uriA)\n uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true })\n } else if (typeof uriA === 'object') {\n uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true })\n }\n\n if (typeof uriB === 'string') {\n uriB = unescape(uriB)\n uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true })\n } else if (typeof uriB === 'object') {\n uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true })\n }\n\n return uriA.toLowerCase() === uriB.toLowerCase()\n}\n\n/**\n * @param {Readonly<import('./types/index').URIComponent>} cmpts\n * @param {import('./types/index').Options} [opts]\n * @returns {string}\n */\nfunction serialize (cmpts, opts) {\n const component = {\n host: cmpts.host,\n scheme: cmpts.scheme,\n userinfo: cmpts.userinfo,\n port: cmpts.port,\n path: cmpts.path,\n query: cmpts.query,\n nid: cmpts.nid,\n nss: cmpts.nss,\n uuid: cmpts.uuid,\n fragment: cmpts.fragment,\n reference: cmpts.reference,\n resourceName: cmpts.resourceName,\n secure: cmpts.secure,\n error: ''\n }\n const options = Object.assign({}, opts)\n const uriTokens = []\n\n // find scheme handler\n const schemeHandler = getSchemeHandler(options.scheme || component.scheme)\n\n // perform scheme specific serialization\n if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options)\n\n if (component.path !== undefined) {\n if (!options.skipEscape) {\n component.path = escape(component.path)\n\n if (component.scheme !== undefined) {\n component.path = component.path.split('%3A').join(':')\n }\n } else {\n component.path = unescape(component.path)\n }\n }\n\n if (options.reference !== 'suffix' && component.scheme) {\n uriTokens.push(component.scheme, ':')\n }\n\n const authority = recomposeAuthority(component)\n if (authority !== undefined) {\n if (options.reference !== 'suffix') {\n uriTokens.push('//')\n }\n\n uriTokens.push(authority)\n\n if (component.path && component.path[0] !== '/') {\n uriTokens.push('/')\n }\n }\n if (component.path !== undefined) {\n let s = component.path\n\n if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {\n s = removeDotSegments(s)\n }\n\n if (\n authority === undefined &&\n s[0] === '/' &&\n s[1] === '/'\n ) {\n // don't allow the path to start with \"//\"\n s = '/%2F' + s.slice(2)\n }\n\n uriTokens.push(s)\n }\n\n if (component.query !== undefined) {\n uriTokens.push('?', component.query)\n }\n\n if (component.fragment !== undefined) {\n uriTokens.push('#', component.fragment)\n }\n return uriTokens.join('')\n}\n\nconst URI_PARSE = /^(?:([^#/:?]+):)?(?:\\/\\/((?:([^#/?@]*)@)?(\\[[^#/?\\]]+\\]|[^#/:?]*)(?::(\\d*))?))?([^#?]*)(?:\\?([^#]*))?(?:#((?:.|[\\n\\r])*))?/u\n\n/**\n * @param {string} uri\n * @param {import('./types/index').Options} [opts]\n * @returns\n */\nfunction parse (uri, opts) {\n const options = Object.assign({}, opts)\n /** @type {import('./types/index').URIComponent} */\n const parsed = {\n scheme: undefined,\n userinfo: undefined,\n host: '',\n port: undefined,\n path: '',\n query: undefined,\n fragment: undefined\n }\n\n let isIP = false\n if (options.reference === 'suffix') {\n if (options.scheme) {\n uri = options.scheme + ':' + uri\n } else {\n uri = '//' + uri\n }\n }\n\n const matches = uri.match(URI_PARSE)\n\n if (matches) {\n // store each component\n parsed.scheme = matches[1]\n parsed.userinfo = matches[3]\n parsed.host = matches[4]\n parsed.port = parseInt(matches[5], 10)\n parsed.path = matches[6] || ''\n parsed.query = matches[7]\n parsed.fragment = matches[8]\n\n // fix port number\n if (isNaN(parsed.port)) {\n parsed.port = matches[5]\n }\n if (parsed.host) {\n const ipv4result = isIPv4(parsed.host)\n if (ipv4result === false) {\n const ipv6result = normalizeIPv6(parsed.host)\n parsed.host = ipv6result.host.toLowerCase()\n isIP = ipv6result.isIPV6\n } else {\n isIP = true\n }\n }\n if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && parsed.query === undefined && !parsed.path) {\n parsed.reference = 'same-document'\n } else if (parsed.scheme === undefined) {\n parsed.reference = 'relative'\n } else if (parsed.fragment === undefined) {\n parsed.reference = 'absolute'\n } else {\n parsed.reference = 'uri'\n }\n\n // check for reference errors\n if (options.reference && options.reference !== 'suffix' && options.reference !== parsed.reference) {\n parsed.error = parsed.error || 'URI is not a ' + options.reference + ' reference.'\n }\n\n // find scheme handler\n const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme)\n\n // check if scheme can't handle IRIs\n if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {\n // if host component is a domain name\n if (parsed.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost)) && isIP === false && nonSimpleDomain(parsed.host)) {\n // convert Unicode IDN -> ASCII IDN\n try {\n parsed.host = URL.domainToASCII(parsed.host.toLowerCase())\n } catch (e) {\n parsed.error = parsed.error || \"Host's domain name can not be converted to ASCII: \" + e\n }\n }\n // convert IRI -> URI\n }\n\n if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) {\n if (uri.indexOf('%') !== -1) {\n if (parsed.scheme !== undefined) {\n parsed.scheme = unescape(parsed.scheme)\n }\n if (parsed.host !== undefined) {\n parsed.host = unescape(parsed.host)\n }\n }\n if (parsed.path) {\n parsed.path = escape(unescape(parsed.path))\n }\n if (parsed.fragment) {\n parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment))\n }\n }\n\n // perform scheme specific parsing\n if (schemeHandler && schemeHandler.parse) {\n schemeHandler.parse(parsed, options)\n }\n } else {\n parsed.error = parsed.error || 'URI can not be parsed.'\n }\n return parsed\n}\n\nconst fastUri = {\n SCHEMES,\n normalize,\n resolve,\n resolveComponent,\n equal,\n serialize,\n parse\n}\n\nmodule.exports = fastUri\nmodule.exports.default = fastUri\nmodule.exports.fastUri = fastUri\n"],"names":["require$$0","require$$1","fastUriModule"],"mappings":";;;;;;;;;;;AAEA,MAAM,EAAE,eAAe,mBAAmB,oBAAoB,4BAA4B,QAAQ,oBAAoBA;AACtH,MAAM,EAAE,SAAS,qBAAqBC;AAQtC,SAAS,UAAW,KAAK,SAAS;AAChC,MAAI,OAAO,QAAQ,UAAU;AAC3B;AAAA,IAAwB,UAAU,MAAM,KAAK,OAAO,GAAG,OAAO;AAAA,EAClE,WAAa,OAAO,QAAQ,UAAU;AAClC;AAAA,IAAwB,MAAM,UAAU,KAAK,OAAO,GAAG,OAAO;AAAA,EAClE;AACE,SAAO;AACT;AAQA,SAAS,QAAS,SAAS,aAAa,SAAS;AAC/C,QAAM,oBAAoB,UAAU,OAAO,OAAO,EAAE,QAAQ,UAAU,OAAO,IAAI,EAAE,QAAQ,OAAM;AACjG,QAAM,WAAW,iBAAiB,MAAM,SAAS,iBAAi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IAAI,CAAC;AAAA,MAClD;AACM,UAAI,OAAO,UAAU;AACnB,eAAO,WAAW,UAAU,mBAAmB,OAAO,QAAQ,CAAC;AAAA,MACvE;AAAA,IACA;AAGI,QAAI,iBAAiB,cAAc,OAAO;AACxC,oBAAc,MAAM,QAAQ,OAAO;AAAA,IACzC;AAAA,EACA,OAAS;AACL,WAAO,QAAQ,OAAO,SAAS;AAAA,EACnC;AACE,SAAO;AACT;AAEA,MAAM,UAAU;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEAC,UAAA,UAAiB;AACjBA,UAAA,QAAA,UAAyB;AACzBA,UAAA,QAAA,UAAyB;;","x_google_ignoreList":[0]}
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
!(function() {
|
|
3
|
-
try {
|
|
4
|
-
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e08d0e99-173d-4b0d-94f2-368b10ae7f20", e._sentryDebugIdIdentifier = "sentry-dbid-e08d0e99-173d-4b0d-94f2-368b10ae7f20");
|
|
6
|
-
} catch (e2) {
|
|
7
|
-
}
|
|
8
|
-
})();
|
|
9
|
-
import { u as utils } from "./utils.js";
|
|
10
|
-
const { isUUID } = utils;
|
|
11
|
-
const URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
12
|
-
function wsIsSecure(wsComponent) {
|
|
13
|
-
if (wsComponent.secure === true) {
|
|
14
|
-
return true;
|
|
15
|
-
} else if (wsComponent.secure === false) {
|
|
16
|
-
return false;
|
|
17
|
-
} else if (wsComponent.scheme) {
|
|
18
|
-
return wsComponent.scheme.length === 3 && (wsComponent.scheme[0] === "w" || wsComponent.scheme[0] === "W") && (wsComponent.scheme[1] === "s" || wsComponent.scheme[1] === "S") && (wsComponent.scheme[2] === "s" || wsComponent.scheme[2] === "S");
|
|
19
|
-
} else {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function httpParse(component) {
|
|
24
|
-
if (!component.host) {
|
|
25
|
-
component.error = component.error || "HTTP URIs must have a host.";
|
|
26
|
-
}
|
|
27
|
-
return component;
|
|
28
|
-
}
|
|
29
|
-
function httpSerialize(component) {
|
|
30
|
-
const secure = String(component.scheme).toLowerCase() === "https";
|
|
31
|
-
if (component.port === (secure ? 443 : 80) || component.port === "") {
|
|
32
|
-
component.port = void 0;
|
|
33
|
-
}
|
|
34
|
-
if (!component.path) {
|
|
35
|
-
component.path = "/";
|
|
36
|
-
}
|
|
37
|
-
return component;
|
|
38
|
-
}
|
|
39
|
-
function wsParse(wsComponent) {
|
|
40
|
-
wsComponent.secure = wsIsSecure(wsComponent);
|
|
41
|
-
wsComponent.resourceName = (wsComponent.path || "/") + (wsComponent.query ? "?" + wsComponent.query : "");
|
|
42
|
-
wsComponent.path = void 0;
|
|
43
|
-
wsComponent.query = void 0;
|
|
44
|
-
return wsComponent;
|
|
45
|
-
}
|
|
46
|
-
function wsSerialize(wsComponent) {
|
|
47
|
-
if (wsComponent.port === (wsIsSecure(wsComponent) ? 443 : 80) || wsComponent.port === "") {
|
|
48
|
-
wsComponent.port = void 0;
|
|
49
|
-
}
|
|
50
|
-
if (typeof wsComponent.secure === "boolean") {
|
|
51
|
-
wsComponent.scheme = wsComponent.secure ? "wss" : "ws";
|
|
52
|
-
wsComponent.secure = void 0;
|
|
53
|
-
}
|
|
54
|
-
if (wsComponent.resourceName) {
|
|
55
|
-
const [path, query] = wsComponent.resourceName.split("?");
|
|
56
|
-
wsComponent.path = path && path !== "/" ? path : void 0;
|
|
57
|
-
wsComponent.query = query;
|
|
58
|
-
wsComponent.resourceName = void 0;
|
|
59
|
-
}
|
|
60
|
-
wsComponent.fragment = void 0;
|
|
61
|
-
return wsComponent;
|
|
62
|
-
}
|
|
63
|
-
function urnParse(urnComponent, options) {
|
|
64
|
-
if (!urnComponent.path) {
|
|
65
|
-
urnComponent.error = "URN can not be parsed";
|
|
66
|
-
return urnComponent;
|
|
67
|
-
}
|
|
68
|
-
const matches = urnComponent.path.match(URN_REG);
|
|
69
|
-
if (matches) {
|
|
70
|
-
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
71
|
-
urnComponent.nid = matches[1].toLowerCase();
|
|
72
|
-
urnComponent.nss = matches[2];
|
|
73
|
-
const urnScheme = `${scheme}:${options.nid || urnComponent.nid}`;
|
|
74
|
-
const schemeHandler = getSchemeHandler(urnScheme);
|
|
75
|
-
urnComponent.path = void 0;
|
|
76
|
-
if (schemeHandler) {
|
|
77
|
-
urnComponent = schemeHandler.parse(urnComponent, options);
|
|
78
|
-
}
|
|
79
|
-
} else {
|
|
80
|
-
urnComponent.error = urnComponent.error || "URN can not be parsed.";
|
|
81
|
-
}
|
|
82
|
-
return urnComponent;
|
|
83
|
-
}
|
|
84
|
-
function urnSerialize(urnComponent, options) {
|
|
85
|
-
if (urnComponent.nid === void 0) {
|
|
86
|
-
throw new Error("URN without nid cannot be serialized");
|
|
87
|
-
}
|
|
88
|
-
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
89
|
-
const nid = urnComponent.nid.toLowerCase();
|
|
90
|
-
const urnScheme = `${scheme}:${options.nid || nid}`;
|
|
91
|
-
const schemeHandler = getSchemeHandler(urnScheme);
|
|
92
|
-
if (schemeHandler) {
|
|
93
|
-
urnComponent = schemeHandler.serialize(urnComponent, options);
|
|
94
|
-
}
|
|
95
|
-
const uriComponent = urnComponent;
|
|
96
|
-
const nss = urnComponent.nss;
|
|
97
|
-
uriComponent.path = `${nid || options.nid}:${nss}`;
|
|
98
|
-
options.skipEscape = true;
|
|
99
|
-
return uriComponent;
|
|
100
|
-
}
|
|
101
|
-
function urnuuidParse(urnComponent, options) {
|
|
102
|
-
const uuidComponent = urnComponent;
|
|
103
|
-
uuidComponent.uuid = uuidComponent.nss;
|
|
104
|
-
uuidComponent.nss = void 0;
|
|
105
|
-
if (!options.tolerant && (!uuidComponent.uuid || !isUUID(uuidComponent.uuid))) {
|
|
106
|
-
uuidComponent.error = uuidComponent.error || "UUID is not valid.";
|
|
107
|
-
}
|
|
108
|
-
return uuidComponent;
|
|
109
|
-
}
|
|
110
|
-
function urnuuidSerialize(uuidComponent) {
|
|
111
|
-
const urnComponent = uuidComponent;
|
|
112
|
-
urnComponent.nss = (uuidComponent.uuid || "").toLowerCase();
|
|
113
|
-
return urnComponent;
|
|
114
|
-
}
|
|
115
|
-
const http = (
|
|
116
|
-
/** @type {SchemeHandler} */
|
|
117
|
-
{
|
|
118
|
-
scheme: "http",
|
|
119
|
-
domainHost: true,
|
|
120
|
-
parse: httpParse,
|
|
121
|
-
serialize: httpSerialize
|
|
122
|
-
}
|
|
123
|
-
);
|
|
124
|
-
const https = (
|
|
125
|
-
/** @type {SchemeHandler} */
|
|
126
|
-
{
|
|
127
|
-
scheme: "https",
|
|
128
|
-
domainHost: http.domainHost,
|
|
129
|
-
parse: httpParse,
|
|
130
|
-
serialize: httpSerialize
|
|
131
|
-
}
|
|
132
|
-
);
|
|
133
|
-
const ws = (
|
|
134
|
-
/** @type {SchemeHandler} */
|
|
135
|
-
{
|
|
136
|
-
scheme: "ws",
|
|
137
|
-
domainHost: true,
|
|
138
|
-
parse: wsParse,
|
|
139
|
-
serialize: wsSerialize
|
|
140
|
-
}
|
|
141
|
-
);
|
|
142
|
-
const wss = (
|
|
143
|
-
/** @type {SchemeHandler} */
|
|
144
|
-
{
|
|
145
|
-
scheme: "wss",
|
|
146
|
-
domainHost: ws.domainHost,
|
|
147
|
-
parse: ws.parse,
|
|
148
|
-
serialize: ws.serialize
|
|
149
|
-
}
|
|
150
|
-
);
|
|
151
|
-
const urn = (
|
|
152
|
-
/** @type {SchemeHandler} */
|
|
153
|
-
{
|
|
154
|
-
scheme: "urn",
|
|
155
|
-
parse: urnParse,
|
|
156
|
-
serialize: urnSerialize,
|
|
157
|
-
skipNormalize: true
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
const urnuuid = (
|
|
161
|
-
/** @type {SchemeHandler} */
|
|
162
|
-
{
|
|
163
|
-
scheme: "urn:uuid",
|
|
164
|
-
parse: urnuuidParse,
|
|
165
|
-
serialize: urnuuidSerialize,
|
|
166
|
-
skipNormalize: true
|
|
167
|
-
}
|
|
168
|
-
);
|
|
169
|
-
const SCHEMES = (
|
|
170
|
-
/** @type {Record<SchemeName, SchemeHandler>} */
|
|
171
|
-
{
|
|
172
|
-
http,
|
|
173
|
-
https,
|
|
174
|
-
ws,
|
|
175
|
-
wss,
|
|
176
|
-
urn,
|
|
177
|
-
"urn:uuid": urnuuid
|
|
178
|
-
}
|
|
179
|
-
);
|
|
180
|
-
Object.setPrototypeOf(SCHEMES, null);
|
|
181
|
-
function getSchemeHandler(scheme) {
|
|
182
|
-
return scheme && (SCHEMES[
|
|
183
|
-
/** @type {SchemeName} */
|
|
184
|
-
scheme
|
|
185
|
-
] || SCHEMES[
|
|
186
|
-
/** @type {SchemeName} */
|
|
187
|
-
scheme.toLowerCase()
|
|
188
|
-
]) || void 0;
|
|
189
|
-
}
|
|
190
|
-
var schemes = {
|
|
191
|
-
SCHEMES,
|
|
192
|
-
getSchemeHandler
|
|
193
|
-
};
|
|
194
|
-
export {
|
|
195
|
-
schemes as s
|
|
196
|
-
};
|
|
197
|
-
//# sourceMappingURL=schemes.js.map
|