@highstate/designer 0.4.5 → 0.4.6
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 +1 -1
- package/.output/public/_nuxt/{B_hR0Ok_.js → CiOkjSfX.js} +1 -1
- package/.output/public/_nuxt/{BA0u-n1q.js → D01t-DsO.js} +64 -64
- package/.output/public/_nuxt/{Cj8SV8PB.js → DoGffnu_.js} +1 -1
- package/.output/public/_nuxt/{DE7L338O.js → DtaR4eeX.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/c96427f3-ab77-406f-bb94-426a783445eb.json +1 -0
- package/.output/public/_nuxt/{entry.7p8V-3Ph.css → entry.BrXvcFAN.css} +1 -1
- package/.output/server/index.mjs +72 -3589
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/package.json +1 -1
- package/package.json +4 -4
- package/.output/public/_nuxt/builds/meta/befe985c-c66f-4500-9488-46464c80fbfc.json +0 -1
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/buffer-stream.js +0 -52
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/index.js +0 -60
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/package.json +0 -50
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/buffer-stream.js +0 -52
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/index.js +0 -61
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/package.json +0 -47
- package/.output/server/node_modules/.nitro/mimic-response@1.0.1/index.js +0 -32
- package/.output/server/node_modules/.nitro/mimic-response@1.0.1/package.json +0 -37
- package/.output/server/node_modules/.nitro/mimic-response@3.1.0/index.js +0 -77
- package/.output/server/node_modules/.nitro/mimic-response@3.1.0/package.json +0 -42
- package/.output/server/node_modules/.nitro/pathe@1.1.2/dist/index.mjs +0 -1
- package/.output/server/node_modules/.nitro/pathe@1.1.2/dist/shared/pathe.ff20891b.mjs +0 -221
- package/.output/server/node_modules/.nitro/pathe@1.1.2/package.json +0 -48
- package/.output/server/node_modules/.nitro/pathe@2.0.3/dist/index.mjs +0 -19
- package/.output/server/node_modules/.nitro/pathe@2.0.3/dist/shared/pathe.M-eThtNZ.mjs +0 -249
- package/.output/server/node_modules/.nitro/pathe@2.0.3/package.json +0 -61
- package/.output/server/node_modules/@grpc/grpc-js/build/src/admin.js +0 -30
- package/.output/server/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js +0 -174
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-credentials.js +0 -153
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-interface.js +0 -84
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-number.js +0 -24
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call.js +0 -136
- package/.output/server/node_modules/@grpc/grpc-js/build/src/certificate-provider.js +0 -134
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-credentials.js +0 -272
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-options.js +0 -71
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel.js +0 -68
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channelz.js +0 -584
- package/.output/server/node_modules/@grpc/grpc-js/build/src/client-interceptors.js +0 -428
- package/.output/server/node_modules/@grpc/grpc-js/build/src/client.js +0 -433
- package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js +0 -26
- package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-filter.js +0 -295
- package/.output/server/node_modules/@grpc/grpc-js/build/src/connectivity-state.js +0 -28
- package/.output/server/node_modules/@grpc/grpc-js/build/src/constants.js +0 -64
- package/.output/server/node_modules/@grpc/grpc-js/build/src/control-plane-status.js +0 -42
- package/.output/server/node_modules/@grpc/grpc-js/build/src/deadline.js +0 -108
- package/.output/server/node_modules/@grpc/grpc-js/build/src/duration.js +0 -46
- package/.output/server/node_modules/@grpc/grpc-js/build/src/environment.js +0 -22
- package/.output/server/node_modules/@grpc/grpc-js/build/src/error.js +0 -40
- package/.output/server/node_modules/@grpc/grpc-js/build/src/experimental.js +0 -52
- package/.output/server/node_modules/@grpc/grpc-js/build/src/filter-stack.js +0 -82
- package/.output/server/node_modules/@grpc/grpc-js/build/src/filter.js +0 -38
- package/.output/server/node_modules/@grpc/grpc-js/build/src/http_proxy.js +0 -265
- package/.output/server/node_modules/@grpc/grpc-js/build/src/index.js +0 -144
- package/.output/server/node_modules/@grpc/grpc-js/build/src/internal-channel.js +0 -602
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js +0 -153
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js +0 -567
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js +0 -482
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js +0 -182
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer.js +0 -116
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js +0 -294
- package/.output/server/node_modules/@grpc/grpc-js/build/src/logging.js +0 -122
- package/.output/server/node_modules/@grpc/grpc-js/build/src/make-client.js +0 -143
- package/.output/server/node_modules/@grpc/grpc-js/build/src/metadata.js +0 -249
- package/.output/server/node_modules/@grpc/grpc-js/build/src/picker.js +0 -86
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-dns.js +0 -349
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-ip.js +0 -104
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-uds.js +0 -50
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver.js +0 -87
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-call.js +0 -305
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js +0 -309
- package/.output/server/node_modules/@grpc/grpc-js/build/src/retrying-call.js +0 -665
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-call.js +0 -202
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-credentials.js +0 -305
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-interceptors.js +0 -770
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server.js +0 -1569
- package/.output/server/node_modules/@grpc/grpc-js/build/src/service-config.js +0 -430
- package/.output/server/node_modules/@grpc/grpc-js/build/src/status-builder.js +0 -68
- package/.output/server/node_modules/@grpc/grpc-js/build/src/stream-decoder.js +0 -100
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-address.js +0 -202
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-call.js +0 -542
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js +0 -92
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js +0 -137
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel.js +0 -371
- package/.output/server/node_modules/@grpc/grpc-js/build/src/tls-helpers.js +0 -34
- package/.output/server/node_modules/@grpc/grpc-js/build/src/transport.js +0 -662
- package/.output/server/node_modules/@grpc/grpc-js/build/src/uri-parser.js +0 -125
- package/.output/server/node_modules/@grpc/grpc-js/package.json +0 -87
- package/.output/server/node_modules/@grpc/grpc-js/proto/channelz.proto +0 -564
- package/.output/server/node_modules/@grpc/proto-loader/build/src/index.js +0 -244
- package/.output/server/node_modules/@grpc/proto-loader/build/src/util.js +0 -89
- package/.output/server/node_modules/@grpc/proto-loader/package.json +0 -69
- package/.output/server/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js +0 -795
- package/.output/server/node_modules/@js-sdsl/ordered-map/package.json +0 -138
- package/.output/server/node_modules/@logdna/tail-file/index.js +0 -3
- package/.output/server/node_modules/@logdna/tail-file/lib/tail-file.js +0 -326
- package/.output/server/node_modules/@logdna/tail-file/package.json +0 -162
- package/.output/server/node_modules/@protobufjs/aspromise/index.js +0 -52
- package/.output/server/node_modules/@protobufjs/aspromise/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/base64/index.js +0 -139
- package/.output/server/node_modules/@protobufjs/base64/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/codegen/index.js +0 -99
- package/.output/server/node_modules/@protobufjs/codegen/package.json +0 -13
- package/.output/server/node_modules/@protobufjs/eventemitter/index.js +0 -76
- package/.output/server/node_modules/@protobufjs/eventemitter/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/fetch/index.js +0 -115
- package/.output/server/node_modules/@protobufjs/fetch/package.json +0 -25
- package/.output/server/node_modules/@protobufjs/float/index.js +0 -335
- package/.output/server/node_modules/@protobufjs/float/package.json +0 -26
- package/.output/server/node_modules/@protobufjs/inquire/index.js +0 -17
- package/.output/server/node_modules/@protobufjs/inquire/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/path/index.js +0 -65
- package/.output/server/node_modules/@protobufjs/path/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/pool/index.js +0 -48
- package/.output/server/node_modules/@protobufjs/pool/package.json +0 -21
- package/.output/server/node_modules/@protobufjs/utf8/index.js +0 -105
- package/.output/server/node_modules/@protobufjs/utf8/package.json +0 -21
- package/.output/server/node_modules/@pulumi/pulumi/asset/archive.js +0 -84
- package/.output/server/node_modules/@pulumi/pulumi/asset/asset.js +0 -84
- package/.output/server/node_modules/@pulumi/pulumi/asset/index.js +0 -21
- package/.output/server/node_modules/@pulumi/pulumi/automation/cmd.js +0 -270
- package/.output/server/node_modules/@pulumi/pulumi/automation/errors.js +0 -84
- package/.output/server/node_modules/@pulumi/pulumi/automation/events.js +0 -47
- package/.output/server/node_modules/@pulumi/pulumi/automation/index.js +0 -27
- package/.output/server/node_modules/@pulumi/pulumi/automation/localWorkspace.js +0 -1049
- package/.output/server/node_modules/@pulumi/pulumi/automation/minimumVersion.js +0 -28
- package/.output/server/node_modules/@pulumi/pulumi/automation/remoteStack.js +0 -130
- package/.output/server/node_modules/@pulumi/pulumi/automation/remoteWorkspace.js +0 -131
- package/.output/server/node_modules/@pulumi/pulumi/automation/server.js +0 -170
- package/.output/server/node_modules/@pulumi/pulumi/automation/stack.js +0 -995
- package/.output/server/node_modules/@pulumi/pulumi/automation/stackSettings.js +0 -24
- package/.output/server/node_modules/@pulumi/pulumi/errors.js +0 -126
- package/.output/server/node_modules/@pulumi/pulumi/log/index.js +0 -132
- package/.output/server/node_modules/@pulumi/pulumi/metadata.js +0 -46
- package/.output/server/node_modules/@pulumi/pulumi/output.js +0 -701
- package/.output/server/node_modules/@pulumi/pulumi/package.json +0 -95
- package/.output/server/node_modules/@pulumi/pulumi/proto/alias_pb.js +0 -631
- package/.output/server/node_modules/@pulumi/pulumi/proto/callback_grpc_pb.js +0 -61
- package/.output/server/node_modules/@pulumi/pulumi/proto/callback_pb.js +0 -582
- package/.output/server/node_modules/@pulumi/pulumi/proto/codegen/hcl_pb.js +0 -808
- package/.output/server/node_modules/@pulumi/pulumi/proto/engine_grpc_pb.js +0 -158
- package/.output/server/node_modules/@pulumi/pulumi/proto/engine_pb.js +0 -1058
- package/.output/server/node_modules/@pulumi/pulumi/proto/language_grpc_pb.js +0 -551
- package/.output/server/node_modules/@pulumi/pulumi/proto/language_pb.js +0 -7222
- package/.output/server/node_modules/@pulumi/pulumi/proto/plugin_pb.js +0 -1159
- package/.output/server/node_modules/@pulumi/pulumi/proto/provider_pb.js +0 -11300
- package/.output/server/node_modules/@pulumi/pulumi/proto/resource_grpc_pb.js +0 -312
- package/.output/server/node_modules/@pulumi/pulumi/proto/resource_pb.js +0 -7447
- package/.output/server/node_modules/@pulumi/pulumi/proto/source_pb.js +0 -230
- package/.output/server/node_modules/@pulumi/pulumi/resource.js +0 -774
- package/.output/server/node_modules/@pulumi/pulumi/runtime/asyncIterableUtil.js +0 -103
- package/.output/server/node_modules/@pulumi/pulumi/runtime/callbacks.js +0 -456
- package/.output/server/node_modules/@pulumi/pulumi/runtime/config.js +0 -129
- package/.output/server/node_modules/@pulumi/pulumi/runtime/debuggable.js +0 -137
- package/.output/server/node_modules/@pulumi/pulumi/runtime/dependsOn.js +0 -157
- package/.output/server/node_modules/@pulumi/pulumi/runtime/invoke.js +0 -533
- package/.output/server/node_modules/@pulumi/pulumi/runtime/resource.js +0 -850
- package/.output/server/node_modules/@pulumi/pulumi/runtime/rpc.js +0 -858
- package/.output/server/node_modules/@pulumi/pulumi/runtime/settings.js +0 -551
- package/.output/server/node_modules/@pulumi/pulumi/runtime/stack.js +0 -276
- package/.output/server/node_modules/@pulumi/pulumi/runtime/state.js +0 -187
- package/.output/server/node_modules/@pulumi/pulumi/utils.js +0 -89
- package/.output/server/node_modules/@pulumi/pulumi/version.js +0 -17
- package/.output/server/node_modules/@pulumi/query/asyncQueryable.js +0 -279
- package/.output/server/node_modules/@pulumi/query/base.js +0 -34
- package/.output/server/node_modules/@pulumi/query/index.js +0 -87
- package/.output/server/node_modules/@pulumi/query/interfaces.js +0 -24
- package/.output/server/node_modules/@pulumi/query/operators.js +0 -1269
- package/.output/server/node_modules/@pulumi/query/package.json +0 -22
- package/.output/server/node_modules/@pulumi/query/sources.js +0 -81
- package/.output/server/node_modules/@pulumi/query/util.js +0 -23
- package/.output/server/node_modules/@sinclair/typebox/build/esm/index.mjs +0 -80
- package/.output/server/node_modules/@sinclair/typebox/build/esm/system/policy.mjs +0 -54
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/argument/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs +0 -37
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs +0 -9
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs +0 -36
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs +0 -42
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs +0 -54
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs +0 -7
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs +0 -33
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs +0 -15
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs +0 -8
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs +0 -25
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs +0 -635
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs +0 -25
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs +0 -20
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs +0 -23
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/index.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs +0 -25
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs +0 -235
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs +0 -509
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs +0 -70
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.mjs +0 -4
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/index.mjs +0 -4
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs +0 -22
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs +0 -20
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs +0 -32
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs +0 -91
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs +0 -7
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs +0 -115
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs +0 -38
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs +0 -17
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs +0 -26
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs +0 -64
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/index.mjs +0 -4
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs +0 -12
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs +0 -73
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs +0 -35
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs +0 -10
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.mjs +0 -9
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs +0 -9
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs +0 -102
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs +0 -166
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs +0 -32
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs +0 -22
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs +0 -22
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs +0 -71
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs +0 -22
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs +0 -7
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs +0 -74
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs +0 -8
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs +0 -24
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs +0 -19
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs +0 -66
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs +0 -22
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs +0 -116
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs +0 -15
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs +0 -10
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs +0 -8
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs +0 -26
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs +0 -26
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs +0 -18
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs +0 -73
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs +0 -15
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs +0 -7
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/index.mjs +0 -2
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/schema.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs +0 -48
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/static.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs +0 -10
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs +0 -49
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs +0 -53
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.mjs +0 -7
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs +0 -167
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs +0 -33
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs +0 -55
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs +0 -13
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs +0 -9
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs +0 -40
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs +0 -9
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs +0 -13
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/javascript.mjs +0 -99
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/json.mjs +0 -221
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs +0 -62
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/index.mjs +0 -3
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs +0 -5
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs +0 -36
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-type.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs +0 -10
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs +0 -6
- package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs +0 -158
- package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/index.mjs +0 -1
- package/.output/server/node_modules/@sinclair/typebox/package.json +0 -116
- package/.output/server/node_modules/@sindresorhus/is/dist/index.js +0 -434
- package/.output/server/node_modules/@sindresorhus/is/package.json +0 -96
- package/.output/server/node_modules/@szmarczak/http-timer/dist/source/index.js +0 -126
- package/.output/server/node_modules/@szmarczak/http-timer/package.json +0 -72
- package/.output/server/node_modules/abstract-level/abstract-chained-batch.js +0 -420
- package/.output/server/node_modules/abstract-level/abstract-iterator.js +0 -397
- package/.output/server/node_modules/abstract-level/abstract-level.js +0 -935
- package/.output/server/node_modules/abstract-level/index.js +0 -8
- package/.output/server/node_modules/abstract-level/lib/abstract-sublevel-iterator.js +0 -122
- package/.output/server/node_modules/abstract-level/lib/abstract-sublevel.js +0 -269
- package/.output/server/node_modules/abstract-level/lib/common.js +0 -33
- package/.output/server/node_modules/abstract-level/lib/default-chained-batch.js +0 -29
- package/.output/server/node_modules/abstract-level/lib/default-kv-iterator.js +0 -74
- package/.output/server/node_modules/abstract-level/lib/deferred-iterator.js +0 -110
- package/.output/server/node_modules/abstract-level/lib/deferred-queue.js +0 -86
- package/.output/server/node_modules/abstract-level/lib/errors.js +0 -21
- package/.output/server/node_modules/abstract-level/lib/event-monitor.js +0 -41
- package/.output/server/node_modules/abstract-level/lib/hooks.js +0 -79
- package/.output/server/node_modules/abstract-level/lib/prefixes.js +0 -21
- package/.output/server/node_modules/abstract-level/lib/prewrite-batch.js +0 -100
- package/.output/server/node_modules/abstract-level/lib/range-options.js +0 -26
- package/.output/server/node_modules/abstract-level/package.json +0 -62
- package/.output/server/node_modules/acorn/dist/acorn.mjs +0 -6145
- package/.output/server/node_modules/acorn/package.json +0 -50
- package/.output/server/node_modules/ajv/dist/ajv.js +0 -50
- package/.output/server/node_modules/ajv/dist/compile/codegen/code.js +0 -156
- package/.output/server/node_modules/ajv/dist/compile/codegen/index.js +0 -697
- package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
- package/.output/server/node_modules/ajv/dist/compile/errors.js +0 -123
- package/.output/server/node_modules/ajv/dist/compile/index.js +0 -242
- package/.output/server/node_modules/ajv/dist/compile/names.js +0 -28
- package/.output/server/node_modules/ajv/dist/compile/ref_error.js +0 -12
- package/.output/server/node_modules/ajv/dist/compile/resolve.js +0 -155
- package/.output/server/node_modules/ajv/dist/compile/rules.js +0 -26
- package/.output/server/node_modules/ajv/dist/compile/util.js +0 -178
- package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
- package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
- package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
- package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
- package/.output/server/node_modules/ajv/dist/compile/validate/index.js +0 -520
- package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
- package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
- package/.output/server/node_modules/ajv/dist/core.js +0 -618
- package/.output/server/node_modules/ajv/dist/refs/data.json +0 -13
- package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
- package/.output/server/node_modules/ajv/dist/runtime/equal.js +0 -7
- package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
- package/.output/server/node_modules/ajv/dist/runtime/uri.js +0 -6
- package/.output/server/node_modules/ajv/dist/runtime/validation_error.js +0 -11
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
- package/.output/server/node_modules/ajv/dist/vocabularies/code.js +0 -131
- package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
- package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
- package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
- package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
- package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
- package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
- package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
- package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
- package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -24
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
- package/.output/server/node_modules/ajv/package.json +0 -126
- package/.output/server/node_modules/atomic-sleep/index.js +0 -38
- package/.output/server/node_modules/atomic-sleep/package.json +0 -37
- package/.output/server/node_modules/better-lock/dist/better_lock.js +0 -377
- package/.output/server/node_modules/better-lock/dist/errors.js +0 -136
- package/.output/server/node_modules/better-lock/dist/index.js +0 -28
- package/.output/server/node_modules/better-lock/dist/internals.js +0 -75
- package/.output/server/node_modules/better-lock/dist/tools.js +0 -109
- package/.output/server/node_modules/better-lock/package.json +0 -60
- package/.output/server/node_modules/cacheable-lookup/package.json +0 -45
- package/.output/server/node_modules/cacheable-lookup/source/index.js +0 -436
- package/.output/server/node_modules/cacheable-request/package.json +0 -56
- package/.output/server/node_modules/cacheable-request/src/index.js +0 -251
- package/.output/server/node_modules/classic-level/binding.js +0 -1
- package/.output/server/node_modules/classic-level/chained-batch.js +0 -35
- package/.output/server/node_modules/classic-level/index.js +0 -177
- package/.output/server/node_modules/classic-level/iterator.js +0 -121
- package/.output/server/node_modules/classic-level/package.json +0 -71
- package/.output/server/node_modules/classic-level/prebuilds/linux-x64/classic-level.node +0 -0
- package/.output/server/node_modules/clone-response/package.json +0 -41
- package/.output/server/node_modules/clone-response/src/index.js +0 -17
- package/.output/server/node_modules/confbox/dist/index.mjs +0 -1
- package/.output/server/node_modules/confbox/dist/json5.mjs +0 -14
- package/.output/server/node_modules/confbox/dist/shared/confbox.9388d834.mjs +0 -1
- package/.output/server/node_modules/confbox/dist/shared/confbox.f9f03f05.mjs +0 -7
- package/.output/server/node_modules/confbox/dist/toml.mjs +0 -239
- package/.output/server/node_modules/confbox/dist/yaml.mjs +0 -32
- package/.output/server/node_modules/confbox/package.json +0 -86
- package/.output/server/node_modules/cross-spawn/index.js +0 -39
- package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
- package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/.output/server/node_modules/cross-spawn/package.json +0 -73
- package/.output/server/node_modules/crypto-hash/index.js +0 -66
- package/.output/server/node_modules/crypto-hash/package.json +0 -54
- package/.output/server/node_modules/crypto-hash/thread.js +0 -10
- package/.output/server/node_modules/crypto-hash/utilities.js +0 -10
- package/.output/server/node_modules/decompress-response/index.js +0 -58
- package/.output/server/node_modules/decompress-response/package.json +0 -56
- package/.output/server/node_modules/defer-to-connect/dist/source/index.js +0 -47
- package/.output/server/node_modules/defer-to-connect/package.json +0 -71
- package/.output/server/node_modules/dettle/dist/debounce.js +0 -91
- package/.output/server/node_modules/dettle/dist/index.js +0 -5
- package/.output/server/node_modules/dettle/dist/throttle.js +0 -12
- package/.output/server/node_modules/dettle/package.json +0 -29
- package/.output/server/node_modules/dotenv/config.js +0 -9
- package/.output/server/node_modules/dotenv/lib/cli-options.js +0 -11
- package/.output/server/node_modules/dotenv/lib/env-options.js +0 -24
- package/.output/server/node_modules/dotenv/lib/main.js +0 -361
- package/.output/server/node_modules/dotenv/package.json +0 -61
- package/.output/server/node_modules/end-of-stream/index.js +0 -94
- package/.output/server/node_modules/end-of-stream/package.json +0 -37
- package/.output/server/node_modules/esprima/dist/esprima.js +0 -6709
- package/.output/server/node_modules/esprima/package.json +0 -112
- package/.output/server/node_modules/execa/index.js +0 -268
- package/.output/server/node_modules/execa/lib/command.js +0 -52
- package/.output/server/node_modules/execa/lib/error.js +0 -88
- package/.output/server/node_modules/execa/lib/kill.js +0 -115
- package/.output/server/node_modules/execa/lib/promise.js +0 -46
- package/.output/server/node_modules/execa/lib/stdio.js +0 -52
- package/.output/server/node_modules/execa/lib/stream.js +0 -97
- package/.output/server/node_modules/execa/package.json +0 -74
- package/.output/server/node_modules/fast-deep-equal/index.js +0 -46
- package/.output/server/node_modules/fast-deep-equal/package.json +0 -61
- package/.output/server/node_modules/fast-redact/index.js +0 -56
- package/.output/server/node_modules/fast-redact/lib/modifiers.js +0 -291
- package/.output/server/node_modules/fast-redact/lib/parse.js +0 -44
- package/.output/server/node_modules/fast-redact/lib/redactor.js +0 -108
- package/.output/server/node_modules/fast-redact/lib/restorer.js +0 -92
- package/.output/server/node_modules/fast-redact/lib/rx.js +0 -16
- package/.output/server/node_modules/fast-redact/lib/state.js +0 -20
- package/.output/server/node_modules/fast-redact/lib/validator.js +0 -33
- package/.output/server/node_modules/fast-redact/package.json +0 -50
- package/.output/server/node_modules/fast-uri/index.js +0 -303
- package/.output/server/node_modules/fast-uri/lib/schemes.js +0 -188
- package/.output/server/node_modules/fast-uri/lib/scopedChars.js +0 -30
- package/.output/server/node_modules/fast-uri/lib/utils.js +0 -244
- package/.output/server/node_modules/fast-uri/package.json +0 -68
- package/.output/server/node_modules/google-protobuf/google/protobuf/empty_pb.js +0 -147
- package/.output/server/node_modules/google-protobuf/google/protobuf/struct_pb.js +0 -955
- package/.output/server/node_modules/google-protobuf/google-protobuf.js +0 -149
- package/.output/server/node_modules/google-protobuf/package.json +0 -35
- package/.output/server/node_modules/got/dist/source/as-promise/create-rejection.js +0 -30
- package/.output/server/node_modules/got/dist/source/as-promise/index.js +0 -176
- package/.output/server/node_modules/got/dist/source/as-promise/normalize-arguments.js +0 -78
- package/.output/server/node_modules/got/dist/source/as-promise/parse-body.js +0 -25
- package/.output/server/node_modules/got/dist/source/as-promise/types.js +0 -42
- package/.output/server/node_modules/got/dist/source/core/calculate-retry-delay.js +0 -29
- package/.output/server/node_modules/got/dist/source/core/index.js +0 -1505
- package/.output/server/node_modules/got/dist/source/core/utils/dns-ip-version.js +0 -17
- package/.output/server/node_modules/got/dist/source/core/utils/get-body-size.js +0 -32
- package/.output/server/node_modules/got/dist/source/core/utils/get-buffer.js +0 -16
- package/.output/server/node_modules/got/dist/source/core/utils/is-form-data.js +0 -4
- package/.output/server/node_modules/got/dist/source/core/utils/is-response-ok.js +0 -8
- package/.output/server/node_modules/got/dist/source/core/utils/options-to-url.js +0 -53
- package/.output/server/node_modules/got/dist/source/core/utils/proxy-events.js +0 -17
- package/.output/server/node_modules/got/dist/source/core/utils/timed-out.js +0 -121
- package/.output/server/node_modules/got/dist/source/core/utils/unhandle.js +0 -22
- package/.output/server/node_modules/got/dist/source/core/utils/url-to-options.js +0 -24
- package/.output/server/node_modules/got/dist/source/core/utils/weakable-map.js +0 -29
- package/.output/server/node_modules/got/dist/source/create.js +0 -240
- package/.output/server/node_modules/got/dist/source/index.js +0 -132
- package/.output/server/node_modules/got/dist/source/types.js +0 -2
- package/.output/server/node_modules/got/dist/source/utils/deep-freeze.js +0 -12
- package/.output/server/node_modules/got/dist/source/utils/deprecation-warning.js +0 -13
- package/.output/server/node_modules/got/package.json +0 -131
- package/.output/server/node_modules/http-cache-semantics/index.js +0 -674
- package/.output/server/node_modules/http-cache-semantics/package.json +0 -18
- package/.output/server/node_modules/http2-wrapper/package.json +0 -54
- package/.output/server/node_modules/http2-wrapper/source/agent.js +0 -670
- package/.output/server/node_modules/http2-wrapper/source/auto.js +0 -149
- package/.output/server/node_modules/http2-wrapper/source/client-request.js +0 -445
- package/.output/server/node_modules/http2-wrapper/source/incoming-message.js +0 -58
- package/.output/server/node_modules/http2-wrapper/source/index.js +0 -28
- package/.output/server/node_modules/http2-wrapper/source/utils/calculate-server-name.js +0 -27
- package/.output/server/node_modules/http2-wrapper/source/utils/errors.js +0 -45
- package/.output/server/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +0 -13
- package/.output/server/node_modules/http2-wrapper/source/utils/proxy-events.js +0 -7
- package/.output/server/node_modules/http2-wrapper/source/utils/url-to-options.js +0 -25
- package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
- package/.output/server/node_modules/human-signals/build/src/main.js +0 -71
- package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -19
- package/.output/server/node_modules/human-signals/build/src/signals.js +0 -35
- package/.output/server/node_modules/human-signals/package.json +0 -64
- package/.output/server/node_modules/import-meta-resolve/index.js +0 -47
- package/.output/server/node_modules/import-meta-resolve/lib/errors.js +0 -507
- package/.output/server/node_modules/import-meta-resolve/lib/get-format.js +0 -159
- package/.output/server/node_modules/import-meta-resolve/lib/package-json-reader.js +0 -177
- package/.output/server/node_modules/import-meta-resolve/lib/resolve.js +0 -1297
- package/.output/server/node_modules/import-meta-resolve/lib/utils.js +0 -47
- package/.output/server/node_modules/import-meta-resolve/package.json +0 -95
- package/.output/server/node_modules/is-stream/index.js +0 -28
- package/.output/server/node_modules/is-stream/package.json +0 -42
- package/.output/server/node_modules/isexe/index.js +0 -57
- package/.output/server/node_modules/isexe/mode.js +0 -41
- package/.output/server/node_modules/isexe/package.json +0 -31
- package/.output/server/node_modules/isexe/windows.js +0 -42
- package/.output/server/node_modules/js-yaml/index.js +0 -7
- package/.output/server/node_modules/js-yaml/lib/js-yaml/common.js +0 -59
- package/.output/server/node_modules/js-yaml/lib/js-yaml/dumper.js +0 -850
- package/.output/server/node_modules/js-yaml/lib/js-yaml/exception.js +0 -43
- package/.output/server/node_modules/js-yaml/lib/js-yaml/loader.js +0 -1644
- package/.output/server/node_modules/js-yaml/lib/js-yaml/mark.js +0 -76
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/core.js +0 -18
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +0 -25
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +0 -28
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +0 -17
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/json.js +0 -25
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema.js +0 -108
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/binary.js +0 -138
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/bool.js +0 -35
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/float.js +0 -116
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/int.js +0 -173
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -93
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -60
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/map.js +0 -8
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/merge.js +0 -12
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/null.js +0 -34
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/omap.js +0 -44
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/pairs.js +0 -53
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/seq.js +0 -8
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/set.js +0 -29
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/str.js +0 -8
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +0 -88
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type.js +0 -61
- package/.output/server/node_modules/js-yaml/lib/js-yaml.js +0 -39
- package/.output/server/node_modules/js-yaml/package.json +0 -49
- package/.output/server/node_modules/json-buffer/index.js +0 -58
- package/.output/server/node_modules/json-buffer/package.json +0 -34
- package/.output/server/node_modules/json-schema-traverse/index.js +0 -93
- package/.output/server/node_modules/json-schema-traverse/package.json +0 -43
- package/.output/server/node_modules/keyv/package.json +0 -57
- package/.output/server/node_modules/keyv/src/index.js +0 -259
- package/.output/server/node_modules/level-supports/index.js +0 -26
- package/.output/server/node_modules/level-supports/package.json +0 -46
- package/.output/server/node_modules/level-transcoder/index.js +0 -158
- package/.output/server/node_modules/level-transcoder/lib/encoding.js +0 -105
- package/.output/server/node_modules/level-transcoder/lib/encodings.js +0 -135
- package/.output/server/node_modules/level-transcoder/lib/formats.js +0 -111
- package/.output/server/node_modules/level-transcoder/lib/text-endec.js +0 -19
- package/.output/server/node_modules/level-transcoder/package.json +0 -46
- package/.output/server/node_modules/lodash.camelcase/index.js +0 -599
- package/.output/server/node_modules/lodash.camelcase/package.json +0 -19
- package/.output/server/node_modules/long/package.json +0 -58
- package/.output/server/node_modules/long/umd/index.js +0 -1622
- package/.output/server/node_modules/long/umd/package.json +0 -3
- package/.output/server/node_modules/lowercase-keys/index.js +0 -10
- package/.output/server/node_modules/lowercase-keys/package.json +0 -38
- package/.output/server/node_modules/maybe-combine-errors/index.js +0 -60
- package/.output/server/node_modules/maybe-combine-errors/package.json +0 -33
- package/.output/server/node_modules/merge-stream/index.js +0 -41
- package/.output/server/node_modules/merge-stream/package.json +0 -19
- package/.output/server/node_modules/mimic-fn/index.js +0 -13
- package/.output/server/node_modules/mimic-fn/package.json +0 -42
- package/.output/server/node_modules/mlly/dist/index.mjs +0 -2606
- package/.output/server/node_modules/mlly/package.json +0 -50
- package/.output/server/node_modules/module-error/index.js +0 -22
- package/.output/server/node_modules/module-error/package.json +0 -36
- package/.output/server/node_modules/nano-spawn/package.json +0 -66
- package/.output/server/node_modules/nano-spawn/source/context.js +0 -12
- package/.output/server/node_modules/nano-spawn/source/index.js +0 -28
- package/.output/server/node_modules/nano-spawn/source/iterable.js +0 -61
- package/.output/server/node_modules/nano-spawn/source/options.js +0 -37
- package/.output/server/node_modules/nano-spawn/source/pipe.js +0 -43
- package/.output/server/node_modules/nano-spawn/source/result.js +0 -74
- package/.output/server/node_modules/nano-spawn/source/spawn.js +0 -44
- package/.output/server/node_modules/nano-spawn/source/windows.js +0 -76
- package/.output/server/node_modules/node-gyp-build/index.js +0 -6
- package/.output/server/node_modules/node-gyp-build/node-gyp-build.js +0 -207
- package/.output/server/node_modules/node-gyp-build/package.json +0 -43
- package/.output/server/node_modules/normalize-url/index.js +0 -216
- package/.output/server/node_modules/normalize-url/package.json +0 -50
- package/.output/server/node_modules/npm-run-path/index.js +0 -47
- package/.output/server/node_modules/npm-run-path/package.json +0 -44
- package/.output/server/node_modules/nypm/dist/index.mjs +0 -306
- package/.output/server/node_modules/nypm/package.json +0 -60
- package/.output/server/node_modules/on-exit-leak-free/index.js +0 -108
- package/.output/server/node_modules/on-exit-leak-free/package.json +0 -37
- package/.output/server/node_modules/once/once.js +0 -42
- package/.output/server/node_modules/once/package.json +0 -33
- package/.output/server/node_modules/onetime/index.js +0 -44
- package/.output/server/node_modules/onetime/package.json +0 -43
- package/.output/server/node_modules/p-cancelable/index.js +0 -111
- package/.output/server/node_modules/p-cancelable/package.json +0 -49
- package/.output/server/node_modules/path-key/index.js +0 -16
- package/.output/server/node_modules/path-key/package.json +0 -39
- package/.output/server/node_modules/pino/file.js +0 -12
- package/.output/server/node_modules/pino/lib/caller.js +0 -30
- package/.output/server/node_modules/pino/lib/constants.js +0 -28
- package/.output/server/node_modules/pino/lib/levels.js +0 -241
- package/.output/server/node_modules/pino/lib/meta.js +0 -3
- package/.output/server/node_modules/pino/lib/multistream.js +0 -188
- package/.output/server/node_modules/pino/lib/proto.js +0 -234
- package/.output/server/node_modules/pino/lib/redaction.js +0 -118
- package/.output/server/node_modules/pino/lib/symbols.js +0 -74
- package/.output/server/node_modules/pino/lib/time.js +0 -11
- package/.output/server/node_modules/pino/lib/tools.js +0 -394
- package/.output/server/node_modules/pino/lib/transport-stream.js +0 -56
- package/.output/server/node_modules/pino/lib/transport.js +0 -167
- package/.output/server/node_modules/pino/lib/worker.js +0 -194
- package/.output/server/node_modules/pino/package.json +0 -120
- package/.output/server/node_modules/pino/pino.js +0 -234
- package/.output/server/node_modules/pino-abstract-transport/index.js +0 -128
- package/.output/server/node_modules/pino-abstract-transport/package.json +0 -40
- package/.output/server/node_modules/pino-std-serializers/index.js +0 -36
- package/.output/server/node_modules/pino-std-serializers/lib/err-helpers.js +0 -118
- package/.output/server/node_modules/pino-std-serializers/lib/err-proto.js +0 -48
- package/.output/server/node_modules/pino-std-serializers/lib/err-with-cause.js +0 -48
- package/.output/server/node_modules/pino-std-serializers/lib/err.js +0 -45
- package/.output/server/node_modules/pino-std-serializers/lib/req.js +0 -100
- package/.output/server/node_modules/pino-std-serializers/lib/res.js +0 -47
- package/.output/server/node_modules/pino-std-serializers/package.json +0 -47
- package/.output/server/node_modules/pkg-types/dist/index.mjs +0 -157
- package/.output/server/node_modules/pkg-types/package.json +0 -47
- package/.output/server/node_modules/promise-make-counter/dist/index.js +0 -24
- package/.output/server/node_modules/promise-make-counter/package.json +0 -33
- package/.output/server/node_modules/promise-make-naked/dist/index.js +0 -25
- package/.output/server/node_modules/promise-make-naked/dist/utils.js +0 -4
- package/.output/server/node_modules/promise-make-naked/package.json +0 -29
- package/.output/server/node_modules/protobufjs/ext/descriptor/index.js +0 -1052
- package/.output/server/node_modules/protobufjs/google/protobuf/api.json +0 -118
- package/.output/server/node_modules/protobufjs/google/protobuf/descriptor.json +0 -739
- package/.output/server/node_modules/protobufjs/google/protobuf/source_context.json +0 -20
- package/.output/server/node_modules/protobufjs/google/protobuf/type.json +0 -202
- package/.output/server/node_modules/protobufjs/index.js +0 -4
- package/.output/server/node_modules/protobufjs/package.json +0 -112
- package/.output/server/node_modules/protobufjs/src/common.js +0 -399
- package/.output/server/node_modules/protobufjs/src/converter.js +0 -301
- package/.output/server/node_modules/protobufjs/src/decoder.js +0 -129
- package/.output/server/node_modules/protobufjs/src/encoder.js +0 -100
- package/.output/server/node_modules/protobufjs/src/enum.js +0 -198
- package/.output/server/node_modules/protobufjs/src/field.js +0 -377
- package/.output/server/node_modules/protobufjs/src/index-light.js +0 -104
- package/.output/server/node_modules/protobufjs/src/index-minimal.js +0 -36
- package/.output/server/node_modules/protobufjs/src/index.js +0 -12
- package/.output/server/node_modules/protobufjs/src/mapfield.js +0 -126
- package/.output/server/node_modules/protobufjs/src/message.js +0 -139
- package/.output/server/node_modules/protobufjs/src/method.js +0 -160
- package/.output/server/node_modules/protobufjs/src/namespace.js +0 -433
- package/.output/server/node_modules/protobufjs/src/object.js +0 -243
- package/.output/server/node_modules/protobufjs/src/oneof.js +0 -203
- package/.output/server/node_modules/protobufjs/src/parse.js +0 -893
- package/.output/server/node_modules/protobufjs/src/reader.js +0 -416
- package/.output/server/node_modules/protobufjs/src/reader_buffer.js +0 -51
- package/.output/server/node_modules/protobufjs/src/root.js +0 -368
- package/.output/server/node_modules/protobufjs/src/roots.js +0 -18
- package/.output/server/node_modules/protobufjs/src/rpc/service.js +0 -142
- package/.output/server/node_modules/protobufjs/src/rpc.js +0 -36
- package/.output/server/node_modules/protobufjs/src/service.js +0 -167
- package/.output/server/node_modules/protobufjs/src/tokenize.js +0 -416
- package/.output/server/node_modules/protobufjs/src/type.js +0 -589
- package/.output/server/node_modules/protobufjs/src/types.js +0 -196
- package/.output/server/node_modules/protobufjs/src/util/longbits.js +0 -200
- package/.output/server/node_modules/protobufjs/src/util/minimal.js +0 -438
- package/.output/server/node_modules/protobufjs/src/util.js +0 -212
- package/.output/server/node_modules/protobufjs/src/verifier.js +0 -177
- package/.output/server/node_modules/protobufjs/src/wrappers.js +0 -102
- package/.output/server/node_modules/protobufjs/src/writer.js +0 -465
- package/.output/server/node_modules/protobufjs/src/writer_buffer.js +0 -85
- package/.output/server/node_modules/pump/index.js +0 -86
- package/.output/server/node_modules/pump/package.json +0 -24
- package/.output/server/node_modules/quick-format-unescaped/index.js +0 -109
- package/.output/server/node_modules/quick-format-unescaped/package.json +0 -29
- package/.output/server/node_modules/quick-lru/index.js +0 -123
- package/.output/server/node_modules/quick-lru/package.json +0 -43
- package/.output/server/node_modules/real-require/package.json +0 -49
- package/.output/server/node_modules/real-require/src/index.js +0 -14
- package/.output/server/node_modules/remeda/dist/chunk-26ILFTOP.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-2KIKGHAO.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-2OQBQB3V.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-2P44HXVH.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-32MVV6O6.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-3D3RWAVJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-3FKP6OOU.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-3IFJP4R5.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-3T4TGMU4.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-3UBK2BVM.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-3XGGB2R4.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-3ZJAREUD.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-4NRWDO7P.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-4UEQNEAO.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-4YLWJIJ6.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-4ZFFLFWV.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-567G5ZXL.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-57KROWWS.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-5DU4ITSF.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-5NQBDF4H.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-5S4PYKVY.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-5WKPQX7L.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-6GTAPB47.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-6OEKBHIX.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-6RKHJ2CP.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-6RL33UFT.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-7QX4DO53.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-A3PVMI4K.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-A3ZTVFWP.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ADT4LUUN.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-AHDTEY6L.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ALS6JP7S.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ANXBDSUI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-B6PG574O.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BCPWYWXN.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BO3LQZNF.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BSLJB6JE.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BXEO7YHQ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-BZNENX2T.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-C4LV5VIX.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-C4OZY4Z2.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-C6IMN7SF.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-CAZXBO45.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-DAE7EJQ2.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-DEVKGLTN.js +0 -2
- package/.output/server/node_modules/remeda/dist/chunk-DH3BPT6T.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-DM52TTEP.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-DSLWSGID.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-EMIEIAAH.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ENOHV5LT.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ENS7GPLZ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ETADWPSK.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-EVIH3PFY.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-FDH4IRIM.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-FMPZ2CLX.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-FRNNS7AX.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-G2JPX77Y.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-G5B2IDWB.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-GDGEDZJG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-GGYFZTDW.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-GIKF2ZNG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-GK5I7C4J.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-GMMLSO2N.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-GPLTWAVR.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-GYH2VCL4.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-H4OTHZJB.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-HGKLN5KY.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-HJSE3ESO.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-HV3WACXG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-HVJXDSOP.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-HVLRA6ZU.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-I3D2BSWJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-IXASGXCR.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-J3IRE4DI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-J4EKWFDW.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-J7R2OSHS.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-JJZ7E4YG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-JK3VNB42.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-K2FFNW24.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-K3UJMX27.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-KI5UAETW.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-KQRZQWDE.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-KVHF7QRD.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-KZIKCQ56.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-LDNOJYCI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-LE6I3KC6.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-MQDP6CFS.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-MSOX5OUI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-MYLLMFC7.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-N4JUOEMS.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-NFFV4IQT.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-NJXNQM3G.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-NMC53JVB.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-NS6ZBRLP.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-OAMXQXGR.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-OCJMJQKO.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-OIQJEOF7.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-OLNQBNAJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-OP5ZF26D.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-OWH4IQQW.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-P2PQB7KO.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-P3DXEVTH.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-P5WDBFN2.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-P6LAFGAN.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-PDQFB3TV.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-PFSVCZNE.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-PGMPBC5Q.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-PIX5OHMW.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-PULGOXDA.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-PVYOMZ3I.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-Q5ASJ5N7.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-QDGUNRDA.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-QDOP3ITN.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-QEKOZYJ5.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-QOEIYQAG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-QTQTP2VB.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-R72GEKLP.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-R7PILVSQ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-RBODUO3Q.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-RZUYD7QY.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-S52RID4A.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-SBKJLULJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-SDLIKNSY.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-SFZGYJFI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-SGAFZVQH.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-SSDL7ATG.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-T4H4IOYC.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-T4PLMLCP.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-T5XG33UI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-U753ZCO5.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-UA6DVSZ3.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-UHDYHGOF.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-UZ6BOIAH.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-V6HCOU6T.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VCYTMP4D.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VFECZ57D.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VFSOOVKJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VG2NVNXT.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VIBSXWWU.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VMV5GVZ5.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VO5MRBXA.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-VVM5DH6Z.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-W2ARC73P.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-W6ZHPGFP.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-WFMWIRTS.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-WOUS55DT.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-WPTI67A4.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-WWPMIW33.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-WZOX4VKU.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XE3XIKTJ.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XHPQVWZM.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XMLUDZIW.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XPCYQPKH.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XUX3ZEXI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XWBKJZIP.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-XZ6COQKM.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-Y3VKZ3P5.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-YDIA5YQI.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-YNNF733L.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-YRJ25UV2.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-YVJOC2U3.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-YVMG2XEU.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ZJS5DNQW.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ZP6YI2JT.js +0 -1
- package/.output/server/node_modules/remeda/dist/chunk-ZRKG4NSC.js +0 -1
- package/.output/server/node_modules/remeda/dist/index.js +0 -1
- package/.output/server/node_modules/remeda/package.json +0 -85
- package/.output/server/node_modules/resolve-alpn/index.js +0 -43
- package/.output/server/node_modules/resolve-alpn/package.json +0 -34
- package/.output/server/node_modules/responselike/package.json +0 -39
- package/.output/server/node_modules/responselike/src/index.js +0 -34
- package/.output/server/node_modules/safe-stable-stringify/index.js +0 -625
- package/.output/server/node_modules/safe-stable-stringify/package.json +0 -65
- package/.output/server/node_modules/semver/classes/comparator.js +0 -141
- package/.output/server/node_modules/semver/classes/range.js +0 -554
- package/.output/server/node_modules/semver/classes/semver.js +0 -318
- package/.output/server/node_modules/semver/functions/clean.js +0 -6
- package/.output/server/node_modules/semver/functions/cmp.js +0 -52
- package/.output/server/node_modules/semver/functions/coerce.js +0 -60
- package/.output/server/node_modules/semver/functions/compare-build.js +0 -7
- package/.output/server/node_modules/semver/functions/compare-loose.js +0 -3
- package/.output/server/node_modules/semver/functions/compare.js +0 -5
- package/.output/server/node_modules/semver/functions/diff.js +0 -58
- package/.output/server/node_modules/semver/functions/eq.js +0 -3
- package/.output/server/node_modules/semver/functions/gt.js +0 -3
- package/.output/server/node_modules/semver/functions/gte.js +0 -3
- package/.output/server/node_modules/semver/functions/inc.js +0 -19
- package/.output/server/node_modules/semver/functions/lt.js +0 -3
- package/.output/server/node_modules/semver/functions/lte.js +0 -3
- package/.output/server/node_modules/semver/functions/major.js +0 -3
- package/.output/server/node_modules/semver/functions/minor.js +0 -3
- package/.output/server/node_modules/semver/functions/neq.js +0 -3
- package/.output/server/node_modules/semver/functions/parse.js +0 -16
- package/.output/server/node_modules/semver/functions/patch.js +0 -3
- package/.output/server/node_modules/semver/functions/prerelease.js +0 -6
- package/.output/server/node_modules/semver/functions/rcompare.js +0 -3
- package/.output/server/node_modules/semver/functions/rsort.js +0 -3
- package/.output/server/node_modules/semver/functions/satisfies.js +0 -10
- package/.output/server/node_modules/semver/functions/sort.js +0 -3
- package/.output/server/node_modules/semver/functions/valid.js +0 -6
- package/.output/server/node_modules/semver/index.js +0 -89
- package/.output/server/node_modules/semver/internal/constants.js +0 -35
- package/.output/server/node_modules/semver/internal/debug.js +0 -9
- package/.output/server/node_modules/semver/internal/identifiers.js +0 -23
- package/.output/server/node_modules/semver/internal/lrucache.js +0 -40
- package/.output/server/node_modules/semver/internal/parse-options.js +0 -15
- package/.output/server/node_modules/semver/internal/re.js +0 -219
- package/.output/server/node_modules/semver/package.json +0 -78
- package/.output/server/node_modules/semver/preload.js +0 -2
- package/.output/server/node_modules/semver/ranges/gtr.js +0 -4
- package/.output/server/node_modules/semver/ranges/intersects.js +0 -7
- package/.output/server/node_modules/semver/ranges/ltr.js +0 -4
- package/.output/server/node_modules/semver/ranges/max-satisfying.js +0 -25
- package/.output/server/node_modules/semver/ranges/min-satisfying.js +0 -24
- package/.output/server/node_modules/semver/ranges/min-version.js +0 -61
- package/.output/server/node_modules/semver/ranges/outside.js +0 -80
- package/.output/server/node_modules/semver/ranges/simplify.js +0 -47
- package/.output/server/node_modules/semver/ranges/subset.js +0 -247
- package/.output/server/node_modules/semver/ranges/to-comparators.js +0 -8
- package/.output/server/node_modules/semver/ranges/valid.js +0 -11
- package/.output/server/node_modules/shebang-command/index.js +0 -19
- package/.output/server/node_modules/shebang-command/package.json +0 -34
- package/.output/server/node_modules/shebang-regex/index.js +0 -2
- package/.output/server/node_modules/shebang-regex/package.json +0 -35
- package/.output/server/node_modules/signal-exit/index.js +0 -202
- package/.output/server/node_modules/signal-exit/package.json +0 -38
- package/.output/server/node_modules/signal-exit/signals.js +0 -53
- package/.output/server/node_modules/sonic-boom/index.js +0 -719
- package/.output/server/node_modules/sonic-boom/package.json +0 -52
- package/.output/server/node_modules/split2/index.js +0 -141
- package/.output/server/node_modules/split2/package.json +0 -39
- package/.output/server/node_modules/strip-final-newline/index.js +0 -16
- package/.output/server/node_modules/strip-final-newline/package.json +0 -40
- package/.output/server/node_modules/stubborn-fs/dist/attemptify.js +0 -19
- package/.output/server/node_modules/stubborn-fs/dist/constants.js +0 -8
- package/.output/server/node_modules/stubborn-fs/dist/handlers.js +0 -36
- package/.output/server/node_modules/stubborn-fs/dist/index.js +0 -53
- package/.output/server/node_modules/stubborn-fs/dist/retryify.js +0 -46
- package/.output/server/node_modules/stubborn-fs/dist/retryify_queue.js +0 -62
- package/.output/server/node_modules/stubborn-fs/package.json +0 -28
- package/.output/server/node_modules/thread-stream/index.js +0 -537
- package/.output/server/node_modules/thread-stream/lib/indexes.js +0 -9
- package/.output/server/node_modules/thread-stream/lib/wait.js +0 -61
- package/.output/server/node_modules/thread-stream/lib/worker.js +0 -174
- package/.output/server/node_modules/thread-stream/package.json +0 -57
- package/.output/server/node_modules/tiny-readdir/dist/constants.js +0 -9
- package/.output/server/node_modules/tiny-readdir/dist/index.js +0 -185
- package/.output/server/node_modules/tiny-readdir/dist/utils.js +0 -9
- package/.output/server/node_modules/tiny-readdir/package.json +0 -35
- package/.output/server/node_modules/tinyexec/dist/main.js +0 -578
- package/.output/server/node_modules/tinyexec/package.json +0 -66
- package/.output/server/node_modules/tmp/lib/tmp.js +0 -784
- package/.output/server/node_modules/tmp/package.json +0 -56
- package/.output/server/node_modules/upath/build/code/upath.js +0 -171
- package/.output/server/node_modules/upath/package.json +0 -60
- package/.output/server/node_modules/uuidv7/dist/index.js +0 -403
- package/.output/server/node_modules/uuidv7/package.json +0 -47
- package/.output/server/node_modules/watcher/dist/constants.js +0 -16
- package/.output/server/node_modules/watcher/dist/enums.js +0 -35
- package/.output/server/node_modules/watcher/dist/lazy_map_set.js +0 -81
- package/.output/server/node_modules/watcher/dist/utils.js +0 -120
- package/.output/server/node_modules/watcher/dist/watcher.js +0 -396
- package/.output/server/node_modules/watcher/dist/watcher_handler.js +0 -248
- package/.output/server/node_modules/watcher/dist/watcher_locker.js +0 -139
- package/.output/server/node_modules/watcher/dist/watcher_locks_resolver.js +0 -42
- package/.output/server/node_modules/watcher/dist/watcher_poller.js +0 -116
- package/.output/server/node_modules/watcher/dist/watcher_stats.js +0 -29
- package/.output/server/node_modules/watcher/package.json +0 -37
- package/.output/server/node_modules/which/package.json +0 -43
- package/.output/server/node_modules/which/which.js +0 -125
- package/.output/server/node_modules/wrappy/package.json +0 -29
- package/.output/server/node_modules/wrappy/wrappy.js +0 -33
|
@@ -1,1297 +0,0 @@
|
|
|
1
|
-
// Manually “tree shaken” from:
|
|
2
|
-
// <https://github.com/nodejs/node/blob/81a9a97/lib/internal/modules/esm/resolve.js>
|
|
3
|
-
// Last checked on: Apr 29, 2023.
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @typedef {import('node:fs').Stats} Stats
|
|
7
|
-
* @typedef {import('./errors.js').ErrnoException} ErrnoException
|
|
8
|
-
* @typedef {import('./package-json-reader.js').PackageConfig} PackageConfig
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import assert from 'node:assert'
|
|
12
|
-
import {statSync, realpathSync} from 'node:fs'
|
|
13
|
-
import process from 'node:process'
|
|
14
|
-
import {URL, fileURLToPath, pathToFileURL} from 'node:url'
|
|
15
|
-
import path from 'node:path'
|
|
16
|
-
import {builtinModules} from 'node:module'
|
|
17
|
-
import {defaultGetFormatWithoutErrors} from './get-format.js'
|
|
18
|
-
import {codes} from './errors.js'
|
|
19
|
-
import {getPackageScopeConfig, read} from './package-json-reader.js'
|
|
20
|
-
import {getConditionsSet} from './utils.js'
|
|
21
|
-
|
|
22
|
-
const RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace]
|
|
23
|
-
|
|
24
|
-
const {
|
|
25
|
-
ERR_NETWORK_IMPORT_DISALLOWED,
|
|
26
|
-
ERR_INVALID_MODULE_SPECIFIER,
|
|
27
|
-
ERR_INVALID_PACKAGE_CONFIG,
|
|
28
|
-
ERR_INVALID_PACKAGE_TARGET,
|
|
29
|
-
ERR_MODULE_NOT_FOUND,
|
|
30
|
-
ERR_PACKAGE_IMPORT_NOT_DEFINED,
|
|
31
|
-
ERR_PACKAGE_PATH_NOT_EXPORTED,
|
|
32
|
-
ERR_UNSUPPORTED_DIR_IMPORT,
|
|
33
|
-
ERR_UNSUPPORTED_RESOLVE_REQUEST
|
|
34
|
-
} = codes
|
|
35
|
-
|
|
36
|
-
const own = {}.hasOwnProperty
|
|
37
|
-
|
|
38
|
-
const invalidSegmentRegEx =
|
|
39
|
-
/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i
|
|
40
|
-
const deprecatedInvalidSegmentRegEx =
|
|
41
|
-
/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i
|
|
42
|
-
const invalidPackageNameRegEx = /^\.|%|\\/
|
|
43
|
-
const patternRegEx = /\*/g
|
|
44
|
-
const encodedSeparatorRegEx = /%2f|%5c/i
|
|
45
|
-
/** @type {Set<string>} */
|
|
46
|
-
const emittedPackageWarnings = new Set()
|
|
47
|
-
|
|
48
|
-
const doubleSlashRegEx = /[/\\]{2}/
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @param {string} target
|
|
53
|
-
* @param {string} request
|
|
54
|
-
* @param {string} match
|
|
55
|
-
* @param {URL} packageJsonUrl
|
|
56
|
-
* @param {boolean} internal
|
|
57
|
-
* @param {URL} base
|
|
58
|
-
* @param {boolean} isTarget
|
|
59
|
-
*/
|
|
60
|
-
function emitInvalidSegmentDeprecation(
|
|
61
|
-
target,
|
|
62
|
-
request,
|
|
63
|
-
match,
|
|
64
|
-
packageJsonUrl,
|
|
65
|
-
internal,
|
|
66
|
-
base,
|
|
67
|
-
isTarget
|
|
68
|
-
) {
|
|
69
|
-
// @ts-expect-error: apparently it does exist, TS.
|
|
70
|
-
if (process.noDeprecation) {
|
|
71
|
-
return
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const pjsonPath = fileURLToPath(packageJsonUrl)
|
|
75
|
-
const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null
|
|
76
|
-
process.emitWarning(
|
|
77
|
-
`Use of deprecated ${
|
|
78
|
-
double ? 'double slash' : 'leading or trailing slash matching'
|
|
79
|
-
} resolving "${target}" for module ` +
|
|
80
|
-
`request "${request}" ${
|
|
81
|
-
request === match ? '' : `matched to "${match}" `
|
|
82
|
-
}in the "${
|
|
83
|
-
internal ? 'imports' : 'exports'
|
|
84
|
-
}" field module resolution of the package at ${pjsonPath}${
|
|
85
|
-
base ? ` imported from ${fileURLToPath(base)}` : ''
|
|
86
|
-
}.`,
|
|
87
|
-
'DeprecationWarning',
|
|
88
|
-
'DEP0166'
|
|
89
|
-
)
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @param {URL} url
|
|
94
|
-
* @param {URL} packageJsonUrl
|
|
95
|
-
* @param {URL} base
|
|
96
|
-
* @param {string} [main]
|
|
97
|
-
* @returns {void}
|
|
98
|
-
*/
|
|
99
|
-
function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
100
|
-
// @ts-expect-error: apparently it does exist, TS.
|
|
101
|
-
if (process.noDeprecation) {
|
|
102
|
-
return
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const format = defaultGetFormatWithoutErrors(url, {parentURL: base.href})
|
|
106
|
-
if (format !== 'module') return
|
|
107
|
-
const urlPath = fileURLToPath(url.href)
|
|
108
|
-
const packagePath = fileURLToPath(new URL('.', packageJsonUrl))
|
|
109
|
-
const basePath = fileURLToPath(base)
|
|
110
|
-
if (!main) {
|
|
111
|
-
process.emitWarning(
|
|
112
|
-
`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
|
|
113
|
-
packagePath.length
|
|
114
|
-
)}", imported from ${basePath}.\nDefault "index" lookups for the main are deprecated for ES modules.`,
|
|
115
|
-
'DeprecationWarning',
|
|
116
|
-
'DEP0151'
|
|
117
|
-
)
|
|
118
|
-
} else if (path.resolve(packagePath, main) !== urlPath) {
|
|
119
|
-
process.emitWarning(
|
|
120
|
-
`Package ${packagePath} has a "main" field set to "${main}", ` +
|
|
121
|
-
`excluding the full filename and extension to the resolved file at "${urlPath.slice(
|
|
122
|
-
packagePath.length
|
|
123
|
-
)}", imported from ${basePath}.\n Automatic extension resolution of the "main" field is ` +
|
|
124
|
-
'deprecated for ES modules.',
|
|
125
|
-
'DeprecationWarning',
|
|
126
|
-
'DEP0151'
|
|
127
|
-
)
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* @param {string} path
|
|
133
|
-
* @returns {Stats | undefined}
|
|
134
|
-
*/
|
|
135
|
-
function tryStatSync(path) {
|
|
136
|
-
// Note: from Node 15 onwards we can use `throwIfNoEntry: false` instead.
|
|
137
|
-
try {
|
|
138
|
-
return statSync(path)
|
|
139
|
-
} catch {
|
|
140
|
-
// Note: in Node code this returns `new Stats`,
|
|
141
|
-
// but in Node 22 that’s marked as a deprecated internal API.
|
|
142
|
-
// Which, well, we kinda are, but still to prevent that warning,
|
|
143
|
-
// just yield `undefined`.
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Legacy CommonJS main resolution:
|
|
149
|
-
* 1. let M = pkg_url + (json main field)
|
|
150
|
-
* 2. TRY(M, M.js, M.json, M.node)
|
|
151
|
-
* 3. TRY(M/index.js, M/index.json, M/index.node)
|
|
152
|
-
* 4. TRY(pkg_url/index.js, pkg_url/index.json, pkg_url/index.node)
|
|
153
|
-
* 5. NOT_FOUND
|
|
154
|
-
*
|
|
155
|
-
* @param {URL} url
|
|
156
|
-
* @returns {boolean}
|
|
157
|
-
*/
|
|
158
|
-
function fileExists(url) {
|
|
159
|
-
const stats = statSync(url, {throwIfNoEntry: false})
|
|
160
|
-
const isFile = stats ? stats.isFile() : undefined
|
|
161
|
-
return isFile === null || isFile === undefined ? false : isFile
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @param {URL} packageJsonUrl
|
|
166
|
-
* @param {PackageConfig} packageConfig
|
|
167
|
-
* @param {URL} base
|
|
168
|
-
* @returns {URL}
|
|
169
|
-
*/
|
|
170
|
-
function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
171
|
-
/** @type {URL | undefined} */
|
|
172
|
-
let guess
|
|
173
|
-
if (packageConfig.main !== undefined) {
|
|
174
|
-
guess = new URL(packageConfig.main, packageJsonUrl)
|
|
175
|
-
// Note: fs check redundances will be handled by Descriptor cache here.
|
|
176
|
-
if (fileExists(guess)) return guess
|
|
177
|
-
|
|
178
|
-
const tries = [
|
|
179
|
-
`./${packageConfig.main}.js`,
|
|
180
|
-
`./${packageConfig.main}.json`,
|
|
181
|
-
`./${packageConfig.main}.node`,
|
|
182
|
-
`./${packageConfig.main}/index.js`,
|
|
183
|
-
`./${packageConfig.main}/index.json`,
|
|
184
|
-
`./${packageConfig.main}/index.node`
|
|
185
|
-
]
|
|
186
|
-
let i = -1
|
|
187
|
-
|
|
188
|
-
while (++i < tries.length) {
|
|
189
|
-
guess = new URL(tries[i], packageJsonUrl)
|
|
190
|
-
if (fileExists(guess)) break
|
|
191
|
-
guess = undefined
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
if (guess) {
|
|
195
|
-
emitLegacyIndexDeprecation(
|
|
196
|
-
guess,
|
|
197
|
-
packageJsonUrl,
|
|
198
|
-
base,
|
|
199
|
-
packageConfig.main
|
|
200
|
-
)
|
|
201
|
-
return guess
|
|
202
|
-
}
|
|
203
|
-
// Fallthrough.
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
const tries = ['./index.js', './index.json', './index.node']
|
|
207
|
-
let i = -1
|
|
208
|
-
|
|
209
|
-
while (++i < tries.length) {
|
|
210
|
-
guess = new URL(tries[i], packageJsonUrl)
|
|
211
|
-
if (fileExists(guess)) break
|
|
212
|
-
guess = undefined
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
if (guess) {
|
|
216
|
-
emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main)
|
|
217
|
-
return guess
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// Not found.
|
|
221
|
-
throw new ERR_MODULE_NOT_FOUND(
|
|
222
|
-
fileURLToPath(new URL('.', packageJsonUrl)),
|
|
223
|
-
fileURLToPath(base)
|
|
224
|
-
)
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @param {URL} resolved
|
|
229
|
-
* @param {URL} base
|
|
230
|
-
* @param {boolean} [preserveSymlinks]
|
|
231
|
-
* @returns {URL}
|
|
232
|
-
*/
|
|
233
|
-
function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
234
|
-
if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
|
|
235
|
-
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
236
|
-
resolved.pathname,
|
|
237
|
-
'must not include encoded "/" or "\\" characters',
|
|
238
|
-
fileURLToPath(base)
|
|
239
|
-
)
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/** @type {string} */
|
|
243
|
-
let filePath
|
|
244
|
-
|
|
245
|
-
try {
|
|
246
|
-
filePath = fileURLToPath(resolved)
|
|
247
|
-
} catch (error) {
|
|
248
|
-
const cause = /** @type {ErrnoException} */ (error)
|
|
249
|
-
Object.defineProperty(cause, 'input', {value: String(resolved)})
|
|
250
|
-
Object.defineProperty(cause, 'module', {value: String(base)})
|
|
251
|
-
throw cause
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
const stats = tryStatSync(
|
|
255
|
-
filePath.endsWith('/') ? filePath.slice(-1) : filePath
|
|
256
|
-
)
|
|
257
|
-
|
|
258
|
-
if (stats && stats.isDirectory()) {
|
|
259
|
-
const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, fileURLToPath(base))
|
|
260
|
-
// @ts-expect-error Add this for `import.meta.resolve`.
|
|
261
|
-
error.url = String(resolved)
|
|
262
|
-
throw error
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
if (!stats || !stats.isFile()) {
|
|
266
|
-
const error = new ERR_MODULE_NOT_FOUND(
|
|
267
|
-
filePath || resolved.pathname,
|
|
268
|
-
base && fileURLToPath(base),
|
|
269
|
-
true
|
|
270
|
-
)
|
|
271
|
-
// @ts-expect-error Add this for `import.meta.resolve`.
|
|
272
|
-
error.url = String(resolved)
|
|
273
|
-
throw error
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
if (!preserveSymlinks) {
|
|
277
|
-
const real = realpathSync(filePath)
|
|
278
|
-
const {search, hash} = resolved
|
|
279
|
-
resolved = pathToFileURL(real + (filePath.endsWith(path.sep) ? '/' : ''))
|
|
280
|
-
resolved.search = search
|
|
281
|
-
resolved.hash = hash
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
return resolved
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* @param {string} specifier
|
|
289
|
-
* @param {URL | undefined} packageJsonUrl
|
|
290
|
-
* @param {URL} base
|
|
291
|
-
* @returns {Error}
|
|
292
|
-
*/
|
|
293
|
-
function importNotDefined(specifier, packageJsonUrl, base) {
|
|
294
|
-
return new ERR_PACKAGE_IMPORT_NOT_DEFINED(
|
|
295
|
-
specifier,
|
|
296
|
-
packageJsonUrl && fileURLToPath(new URL('.', packageJsonUrl)),
|
|
297
|
-
fileURLToPath(base)
|
|
298
|
-
)
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* @param {string} subpath
|
|
303
|
-
* @param {URL} packageJsonUrl
|
|
304
|
-
* @param {URL} base
|
|
305
|
-
* @returns {Error}
|
|
306
|
-
*/
|
|
307
|
-
function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
308
|
-
return new ERR_PACKAGE_PATH_NOT_EXPORTED(
|
|
309
|
-
fileURLToPath(new URL('.', packageJsonUrl)),
|
|
310
|
-
subpath,
|
|
311
|
-
base && fileURLToPath(base)
|
|
312
|
-
)
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* @param {string} request
|
|
317
|
-
* @param {string} match
|
|
318
|
-
* @param {URL} packageJsonUrl
|
|
319
|
-
* @param {boolean} internal
|
|
320
|
-
* @param {URL} [base]
|
|
321
|
-
* @returns {never}
|
|
322
|
-
*/
|
|
323
|
-
function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
324
|
-
const reason = `request is not a valid match in pattern "${match}" for the "${
|
|
325
|
-
internal ? 'imports' : 'exports'
|
|
326
|
-
}" resolution of ${fileURLToPath(packageJsonUrl)}`
|
|
327
|
-
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
328
|
-
request,
|
|
329
|
-
reason,
|
|
330
|
-
base && fileURLToPath(base)
|
|
331
|
-
)
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* @param {string} subpath
|
|
336
|
-
* @param {unknown} target
|
|
337
|
-
* @param {URL} packageJsonUrl
|
|
338
|
-
* @param {boolean} internal
|
|
339
|
-
* @param {URL} [base]
|
|
340
|
-
* @returns {Error}
|
|
341
|
-
*/
|
|
342
|
-
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
343
|
-
target =
|
|
344
|
-
typeof target === 'object' && target !== null
|
|
345
|
-
? JSON.stringify(target, null, '')
|
|
346
|
-
: `${target}`
|
|
347
|
-
|
|
348
|
-
return new ERR_INVALID_PACKAGE_TARGET(
|
|
349
|
-
fileURLToPath(new URL('.', packageJsonUrl)),
|
|
350
|
-
subpath,
|
|
351
|
-
target,
|
|
352
|
-
internal,
|
|
353
|
-
base && fileURLToPath(base)
|
|
354
|
-
)
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* @param {string} target
|
|
359
|
-
* @param {string} subpath
|
|
360
|
-
* @param {string} match
|
|
361
|
-
* @param {URL} packageJsonUrl
|
|
362
|
-
* @param {URL} base
|
|
363
|
-
* @param {boolean} pattern
|
|
364
|
-
* @param {boolean} internal
|
|
365
|
-
* @param {boolean} isPathMap
|
|
366
|
-
* @param {Set<string> | undefined} conditions
|
|
367
|
-
* @returns {URL}
|
|
368
|
-
*/
|
|
369
|
-
function resolvePackageTargetString(
|
|
370
|
-
target,
|
|
371
|
-
subpath,
|
|
372
|
-
match,
|
|
373
|
-
packageJsonUrl,
|
|
374
|
-
base,
|
|
375
|
-
pattern,
|
|
376
|
-
internal,
|
|
377
|
-
isPathMap,
|
|
378
|
-
conditions
|
|
379
|
-
) {
|
|
380
|
-
if (subpath !== '' && !pattern && target[target.length - 1] !== '/')
|
|
381
|
-
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)
|
|
382
|
-
|
|
383
|
-
if (!target.startsWith('./')) {
|
|
384
|
-
if (internal && !target.startsWith('../') && !target.startsWith('/')) {
|
|
385
|
-
let isURL = false
|
|
386
|
-
|
|
387
|
-
try {
|
|
388
|
-
new URL(target)
|
|
389
|
-
isURL = true
|
|
390
|
-
} catch {
|
|
391
|
-
// Continue regardless of error.
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
if (!isURL) {
|
|
395
|
-
const exportTarget = pattern
|
|
396
|
-
? RegExpPrototypeSymbolReplace.call(
|
|
397
|
-
patternRegEx,
|
|
398
|
-
target,
|
|
399
|
-
() => subpath
|
|
400
|
-
)
|
|
401
|
-
: target + subpath
|
|
402
|
-
|
|
403
|
-
return packageResolve(exportTarget, packageJsonUrl, conditions)
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
|
|
411
|
-
if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
|
|
412
|
-
if (!isPathMap) {
|
|
413
|
-
const request = pattern
|
|
414
|
-
? match.replace('*', () => subpath)
|
|
415
|
-
: match + subpath
|
|
416
|
-
const resolvedTarget = pattern
|
|
417
|
-
? RegExpPrototypeSymbolReplace.call(
|
|
418
|
-
patternRegEx,
|
|
419
|
-
target,
|
|
420
|
-
() => subpath
|
|
421
|
-
)
|
|
422
|
-
: target
|
|
423
|
-
emitInvalidSegmentDeprecation(
|
|
424
|
-
resolvedTarget,
|
|
425
|
-
request,
|
|
426
|
-
match,
|
|
427
|
-
packageJsonUrl,
|
|
428
|
-
internal,
|
|
429
|
-
base,
|
|
430
|
-
true
|
|
431
|
-
)
|
|
432
|
-
}
|
|
433
|
-
} else {
|
|
434
|
-
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
const resolved = new URL(target, packageJsonUrl)
|
|
439
|
-
const resolvedPath = resolved.pathname
|
|
440
|
-
const packagePath = new URL('.', packageJsonUrl).pathname
|
|
441
|
-
|
|
442
|
-
if (!resolvedPath.startsWith(packagePath))
|
|
443
|
-
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)
|
|
444
|
-
|
|
445
|
-
if (subpath === '') return resolved
|
|
446
|
-
|
|
447
|
-
if (invalidSegmentRegEx.exec(subpath) !== null) {
|
|
448
|
-
const request = pattern
|
|
449
|
-
? match.replace('*', () => subpath)
|
|
450
|
-
: match + subpath
|
|
451
|
-
if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {
|
|
452
|
-
if (!isPathMap) {
|
|
453
|
-
const resolvedTarget = pattern
|
|
454
|
-
? RegExpPrototypeSymbolReplace.call(
|
|
455
|
-
patternRegEx,
|
|
456
|
-
target,
|
|
457
|
-
() => subpath
|
|
458
|
-
)
|
|
459
|
-
: target
|
|
460
|
-
emitInvalidSegmentDeprecation(
|
|
461
|
-
resolvedTarget,
|
|
462
|
-
request,
|
|
463
|
-
match,
|
|
464
|
-
packageJsonUrl,
|
|
465
|
-
internal,
|
|
466
|
-
base,
|
|
467
|
-
false
|
|
468
|
-
)
|
|
469
|
-
}
|
|
470
|
-
} else {
|
|
471
|
-
throwInvalidSubpath(request, match, packageJsonUrl, internal, base)
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
if (pattern) {
|
|
476
|
-
return new URL(
|
|
477
|
-
RegExpPrototypeSymbolReplace.call(
|
|
478
|
-
patternRegEx,
|
|
479
|
-
resolved.href,
|
|
480
|
-
() => subpath
|
|
481
|
-
)
|
|
482
|
-
)
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
return new URL(subpath, resolved)
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* @param {string} key
|
|
490
|
-
* @returns {boolean}
|
|
491
|
-
*/
|
|
492
|
-
function isArrayIndex(key) {
|
|
493
|
-
const keyNumber = Number(key)
|
|
494
|
-
if (`${keyNumber}` !== key) return false
|
|
495
|
-
return keyNumber >= 0 && keyNumber < 0xff_ff_ff_ff
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
/**
|
|
499
|
-
* @param {URL} packageJsonUrl
|
|
500
|
-
* @param {unknown} target
|
|
501
|
-
* @param {string} subpath
|
|
502
|
-
* @param {string} packageSubpath
|
|
503
|
-
* @param {URL} base
|
|
504
|
-
* @param {boolean} pattern
|
|
505
|
-
* @param {boolean} internal
|
|
506
|
-
* @param {boolean} isPathMap
|
|
507
|
-
* @param {Set<string> | undefined} conditions
|
|
508
|
-
* @returns {URL | null}
|
|
509
|
-
*/
|
|
510
|
-
function resolvePackageTarget(
|
|
511
|
-
packageJsonUrl,
|
|
512
|
-
target,
|
|
513
|
-
subpath,
|
|
514
|
-
packageSubpath,
|
|
515
|
-
base,
|
|
516
|
-
pattern,
|
|
517
|
-
internal,
|
|
518
|
-
isPathMap,
|
|
519
|
-
conditions
|
|
520
|
-
) {
|
|
521
|
-
if (typeof target === 'string') {
|
|
522
|
-
return resolvePackageTargetString(
|
|
523
|
-
target,
|
|
524
|
-
subpath,
|
|
525
|
-
packageSubpath,
|
|
526
|
-
packageJsonUrl,
|
|
527
|
-
base,
|
|
528
|
-
pattern,
|
|
529
|
-
internal,
|
|
530
|
-
isPathMap,
|
|
531
|
-
conditions
|
|
532
|
-
)
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
if (Array.isArray(target)) {
|
|
536
|
-
/** @type {Array<unknown>} */
|
|
537
|
-
const targetList = target
|
|
538
|
-
if (targetList.length === 0) return null
|
|
539
|
-
|
|
540
|
-
/** @type {ErrnoException | null | undefined} */
|
|
541
|
-
let lastException
|
|
542
|
-
let i = -1
|
|
543
|
-
|
|
544
|
-
while (++i < targetList.length) {
|
|
545
|
-
const targetItem = targetList[i]
|
|
546
|
-
/** @type {URL | null} */
|
|
547
|
-
let resolveResult
|
|
548
|
-
try {
|
|
549
|
-
resolveResult = resolvePackageTarget(
|
|
550
|
-
packageJsonUrl,
|
|
551
|
-
targetItem,
|
|
552
|
-
subpath,
|
|
553
|
-
packageSubpath,
|
|
554
|
-
base,
|
|
555
|
-
pattern,
|
|
556
|
-
internal,
|
|
557
|
-
isPathMap,
|
|
558
|
-
conditions
|
|
559
|
-
)
|
|
560
|
-
} catch (error) {
|
|
561
|
-
const exception = /** @type {ErrnoException} */ (error)
|
|
562
|
-
lastException = exception
|
|
563
|
-
if (exception.code === 'ERR_INVALID_PACKAGE_TARGET') continue
|
|
564
|
-
throw error
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
if (resolveResult === undefined) continue
|
|
568
|
-
|
|
569
|
-
if (resolveResult === null) {
|
|
570
|
-
lastException = null
|
|
571
|
-
continue
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
return resolveResult
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
if (lastException === undefined || lastException === null) {
|
|
578
|
-
return null
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
throw lastException
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
if (typeof target === 'object' && target !== null) {
|
|
585
|
-
const keys = Object.getOwnPropertyNames(target)
|
|
586
|
-
let i = -1
|
|
587
|
-
|
|
588
|
-
while (++i < keys.length) {
|
|
589
|
-
const key = keys[i]
|
|
590
|
-
if (isArrayIndex(key)) {
|
|
591
|
-
throw new ERR_INVALID_PACKAGE_CONFIG(
|
|
592
|
-
fileURLToPath(packageJsonUrl),
|
|
593
|
-
base,
|
|
594
|
-
'"exports" cannot contain numeric property keys.'
|
|
595
|
-
)
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
i = -1
|
|
600
|
-
|
|
601
|
-
while (++i < keys.length) {
|
|
602
|
-
const key = keys[i]
|
|
603
|
-
if (key === 'default' || (conditions && conditions.has(key))) {
|
|
604
|
-
// @ts-expect-error: indexable.
|
|
605
|
-
const conditionalTarget = /** @type {unknown} */ (target[key])
|
|
606
|
-
const resolveResult = resolvePackageTarget(
|
|
607
|
-
packageJsonUrl,
|
|
608
|
-
conditionalTarget,
|
|
609
|
-
subpath,
|
|
610
|
-
packageSubpath,
|
|
611
|
-
base,
|
|
612
|
-
pattern,
|
|
613
|
-
internal,
|
|
614
|
-
isPathMap,
|
|
615
|
-
conditions
|
|
616
|
-
)
|
|
617
|
-
if (resolveResult === undefined) continue
|
|
618
|
-
return resolveResult
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
return null
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
if (target === null) {
|
|
626
|
-
return null
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
throw invalidPackageTarget(
|
|
630
|
-
packageSubpath,
|
|
631
|
-
target,
|
|
632
|
-
packageJsonUrl,
|
|
633
|
-
internal,
|
|
634
|
-
base
|
|
635
|
-
)
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* @param {unknown} exports
|
|
640
|
-
* @param {URL} packageJsonUrl
|
|
641
|
-
* @param {URL} base
|
|
642
|
-
* @returns {boolean}
|
|
643
|
-
*/
|
|
644
|
-
function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
645
|
-
if (typeof exports === 'string' || Array.isArray(exports)) return true
|
|
646
|
-
if (typeof exports !== 'object' || exports === null) return false
|
|
647
|
-
|
|
648
|
-
const keys = Object.getOwnPropertyNames(exports)
|
|
649
|
-
let isConditionalSugar = false
|
|
650
|
-
let i = 0
|
|
651
|
-
let keyIndex = -1
|
|
652
|
-
while (++keyIndex < keys.length) {
|
|
653
|
-
const key = keys[keyIndex]
|
|
654
|
-
const currentIsConditionalSugar = key === '' || key[0] !== '.'
|
|
655
|
-
if (i++ === 0) {
|
|
656
|
-
isConditionalSugar = currentIsConditionalSugar
|
|
657
|
-
} else if (isConditionalSugar !== currentIsConditionalSugar) {
|
|
658
|
-
throw new ERR_INVALID_PACKAGE_CONFIG(
|
|
659
|
-
fileURLToPath(packageJsonUrl),
|
|
660
|
-
base,
|
|
661
|
-
'"exports" cannot contain some keys starting with \'.\' and some not.' +
|
|
662
|
-
' The exports object must either be an object of package subpath keys' +
|
|
663
|
-
' or an object of main entry condition name keys only.'
|
|
664
|
-
)
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
return isConditionalSugar
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
/**
|
|
672
|
-
* @param {string} match
|
|
673
|
-
* @param {URL} pjsonUrl
|
|
674
|
-
* @param {URL} base
|
|
675
|
-
*/
|
|
676
|
-
function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
677
|
-
// @ts-expect-error: apparently it does exist, TS.
|
|
678
|
-
if (process.noDeprecation) {
|
|
679
|
-
return
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
const pjsonPath = fileURLToPath(pjsonUrl)
|
|
683
|
-
if (emittedPackageWarnings.has(pjsonPath + '|' + match)) return
|
|
684
|
-
emittedPackageWarnings.add(pjsonPath + '|' + match)
|
|
685
|
-
process.emitWarning(
|
|
686
|
-
`Use of deprecated trailing slash pattern mapping "${match}" in the ` +
|
|
687
|
-
`"exports" field module resolution of the package at ${pjsonPath}${
|
|
688
|
-
base ? ` imported from ${fileURLToPath(base)}` : ''
|
|
689
|
-
}. Mapping specifiers ending in "/" is no longer supported.`,
|
|
690
|
-
'DeprecationWarning',
|
|
691
|
-
'DEP0155'
|
|
692
|
-
)
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* @param {URL} packageJsonUrl
|
|
697
|
-
* @param {string} packageSubpath
|
|
698
|
-
* @param {Record<string, unknown>} packageConfig
|
|
699
|
-
* @param {URL} base
|
|
700
|
-
* @param {Set<string> | undefined} conditions
|
|
701
|
-
* @returns {URL}
|
|
702
|
-
*/
|
|
703
|
-
function packageExportsResolve(
|
|
704
|
-
packageJsonUrl,
|
|
705
|
-
packageSubpath,
|
|
706
|
-
packageConfig,
|
|
707
|
-
base,
|
|
708
|
-
conditions
|
|
709
|
-
) {
|
|
710
|
-
let exports = packageConfig.exports
|
|
711
|
-
|
|
712
|
-
if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) {
|
|
713
|
-
exports = {'.': exports}
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
if (
|
|
717
|
-
own.call(exports, packageSubpath) &&
|
|
718
|
-
!packageSubpath.includes('*') &&
|
|
719
|
-
!packageSubpath.endsWith('/')
|
|
720
|
-
) {
|
|
721
|
-
// @ts-expect-error: indexable.
|
|
722
|
-
const target = exports[packageSubpath]
|
|
723
|
-
const resolveResult = resolvePackageTarget(
|
|
724
|
-
packageJsonUrl,
|
|
725
|
-
target,
|
|
726
|
-
'',
|
|
727
|
-
packageSubpath,
|
|
728
|
-
base,
|
|
729
|
-
false,
|
|
730
|
-
false,
|
|
731
|
-
false,
|
|
732
|
-
conditions
|
|
733
|
-
)
|
|
734
|
-
if (resolveResult === null || resolveResult === undefined) {
|
|
735
|
-
throw exportsNotFound(packageSubpath, packageJsonUrl, base)
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
return resolveResult
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
let bestMatch = ''
|
|
742
|
-
let bestMatchSubpath = ''
|
|
743
|
-
const keys = Object.getOwnPropertyNames(exports)
|
|
744
|
-
let i = -1
|
|
745
|
-
|
|
746
|
-
while (++i < keys.length) {
|
|
747
|
-
const key = keys[i]
|
|
748
|
-
const patternIndex = key.indexOf('*')
|
|
749
|
-
|
|
750
|
-
if (
|
|
751
|
-
patternIndex !== -1 &&
|
|
752
|
-
packageSubpath.startsWith(key.slice(0, patternIndex))
|
|
753
|
-
) {
|
|
754
|
-
// When this reaches EOL, this can throw at the top of the whole function:
|
|
755
|
-
//
|
|
756
|
-
// if (StringPrototypeEndsWith(packageSubpath, '/'))
|
|
757
|
-
// throwInvalidSubpath(packageSubpath)
|
|
758
|
-
//
|
|
759
|
-
// To match "imports" and the spec.
|
|
760
|
-
if (packageSubpath.endsWith('/')) {
|
|
761
|
-
emitTrailingSlashPatternDeprecation(
|
|
762
|
-
packageSubpath,
|
|
763
|
-
packageJsonUrl,
|
|
764
|
-
base
|
|
765
|
-
)
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
const patternTrailer = key.slice(patternIndex + 1)
|
|
769
|
-
|
|
770
|
-
if (
|
|
771
|
-
packageSubpath.length >= key.length &&
|
|
772
|
-
packageSubpath.endsWith(patternTrailer) &&
|
|
773
|
-
patternKeyCompare(bestMatch, key) === 1 &&
|
|
774
|
-
key.lastIndexOf('*') === patternIndex
|
|
775
|
-
) {
|
|
776
|
-
bestMatch = key
|
|
777
|
-
bestMatchSubpath = packageSubpath.slice(
|
|
778
|
-
patternIndex,
|
|
779
|
-
packageSubpath.length - patternTrailer.length
|
|
780
|
-
)
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
if (bestMatch) {
|
|
786
|
-
// @ts-expect-error: indexable.
|
|
787
|
-
const target = /** @type {unknown} */ (exports[bestMatch])
|
|
788
|
-
const resolveResult = resolvePackageTarget(
|
|
789
|
-
packageJsonUrl,
|
|
790
|
-
target,
|
|
791
|
-
bestMatchSubpath,
|
|
792
|
-
bestMatch,
|
|
793
|
-
base,
|
|
794
|
-
true,
|
|
795
|
-
false,
|
|
796
|
-
packageSubpath.endsWith('/'),
|
|
797
|
-
conditions
|
|
798
|
-
)
|
|
799
|
-
|
|
800
|
-
if (resolveResult === null || resolveResult === undefined) {
|
|
801
|
-
throw exportsNotFound(packageSubpath, packageJsonUrl, base)
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
return resolveResult
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
throw exportsNotFound(packageSubpath, packageJsonUrl, base)
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* @param {string} a
|
|
812
|
-
* @param {string} b
|
|
813
|
-
*/
|
|
814
|
-
function patternKeyCompare(a, b) {
|
|
815
|
-
const aPatternIndex = a.indexOf('*')
|
|
816
|
-
const bPatternIndex = b.indexOf('*')
|
|
817
|
-
const baseLengthA = aPatternIndex === -1 ? a.length : aPatternIndex + 1
|
|
818
|
-
const baseLengthB = bPatternIndex === -1 ? b.length : bPatternIndex + 1
|
|
819
|
-
if (baseLengthA > baseLengthB) return -1
|
|
820
|
-
if (baseLengthB > baseLengthA) return 1
|
|
821
|
-
if (aPatternIndex === -1) return 1
|
|
822
|
-
if (bPatternIndex === -1) return -1
|
|
823
|
-
if (a.length > b.length) return -1
|
|
824
|
-
if (b.length > a.length) return 1
|
|
825
|
-
return 0
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* @param {string} name
|
|
830
|
-
* @param {URL} base
|
|
831
|
-
* @param {Set<string>} [conditions]
|
|
832
|
-
* @returns {URL}
|
|
833
|
-
*/
|
|
834
|
-
function packageImportsResolve(name, base, conditions) {
|
|
835
|
-
if (name === '#' || name.startsWith('#/') || name.endsWith('/')) {
|
|
836
|
-
const reason = 'is not a valid internal imports specifier name'
|
|
837
|
-
throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, fileURLToPath(base))
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
/** @type {URL | undefined} */
|
|
841
|
-
let packageJsonUrl
|
|
842
|
-
|
|
843
|
-
const packageConfig = getPackageScopeConfig(base)
|
|
844
|
-
|
|
845
|
-
if (packageConfig.exists) {
|
|
846
|
-
packageJsonUrl = pathToFileURL(packageConfig.pjsonPath)
|
|
847
|
-
const imports = packageConfig.imports
|
|
848
|
-
if (imports) {
|
|
849
|
-
if (own.call(imports, name) && !name.includes('*')) {
|
|
850
|
-
const resolveResult = resolvePackageTarget(
|
|
851
|
-
packageJsonUrl,
|
|
852
|
-
imports[name],
|
|
853
|
-
'',
|
|
854
|
-
name,
|
|
855
|
-
base,
|
|
856
|
-
false,
|
|
857
|
-
true,
|
|
858
|
-
false,
|
|
859
|
-
conditions
|
|
860
|
-
)
|
|
861
|
-
if (resolveResult !== null && resolveResult !== undefined) {
|
|
862
|
-
return resolveResult
|
|
863
|
-
}
|
|
864
|
-
} else {
|
|
865
|
-
let bestMatch = ''
|
|
866
|
-
let bestMatchSubpath = ''
|
|
867
|
-
const keys = Object.getOwnPropertyNames(imports)
|
|
868
|
-
let i = -1
|
|
869
|
-
|
|
870
|
-
while (++i < keys.length) {
|
|
871
|
-
const key = keys[i]
|
|
872
|
-
const patternIndex = key.indexOf('*')
|
|
873
|
-
|
|
874
|
-
if (patternIndex !== -1 && name.startsWith(key.slice(0, -1))) {
|
|
875
|
-
const patternTrailer = key.slice(patternIndex + 1)
|
|
876
|
-
if (
|
|
877
|
-
name.length >= key.length &&
|
|
878
|
-
name.endsWith(patternTrailer) &&
|
|
879
|
-
patternKeyCompare(bestMatch, key) === 1 &&
|
|
880
|
-
key.lastIndexOf('*') === patternIndex
|
|
881
|
-
) {
|
|
882
|
-
bestMatch = key
|
|
883
|
-
bestMatchSubpath = name.slice(
|
|
884
|
-
patternIndex,
|
|
885
|
-
name.length - patternTrailer.length
|
|
886
|
-
)
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
if (bestMatch) {
|
|
892
|
-
const target = imports[bestMatch]
|
|
893
|
-
const resolveResult = resolvePackageTarget(
|
|
894
|
-
packageJsonUrl,
|
|
895
|
-
target,
|
|
896
|
-
bestMatchSubpath,
|
|
897
|
-
bestMatch,
|
|
898
|
-
base,
|
|
899
|
-
true,
|
|
900
|
-
true,
|
|
901
|
-
false,
|
|
902
|
-
conditions
|
|
903
|
-
)
|
|
904
|
-
|
|
905
|
-
if (resolveResult !== null && resolveResult !== undefined) {
|
|
906
|
-
return resolveResult
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
throw importNotDefined(name, packageJsonUrl, base)
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
/**
|
|
917
|
-
* @param {string} specifier
|
|
918
|
-
* @param {URL} base
|
|
919
|
-
*/
|
|
920
|
-
function parsePackageName(specifier, base) {
|
|
921
|
-
let separatorIndex = specifier.indexOf('/')
|
|
922
|
-
let validPackageName = true
|
|
923
|
-
let isScoped = false
|
|
924
|
-
if (specifier[0] === '@') {
|
|
925
|
-
isScoped = true
|
|
926
|
-
if (separatorIndex === -1 || specifier.length === 0) {
|
|
927
|
-
validPackageName = false
|
|
928
|
-
} else {
|
|
929
|
-
separatorIndex = specifier.indexOf('/', separatorIndex + 1)
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
const packageName =
|
|
934
|
-
separatorIndex === -1 ? specifier : specifier.slice(0, separatorIndex)
|
|
935
|
-
|
|
936
|
-
// Package name cannot have leading . and cannot have percent-encoding or
|
|
937
|
-
// \\ separators.
|
|
938
|
-
if (invalidPackageNameRegEx.exec(packageName) !== null) {
|
|
939
|
-
validPackageName = false
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
if (!validPackageName) {
|
|
943
|
-
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
944
|
-
specifier,
|
|
945
|
-
'is not a valid package name',
|
|
946
|
-
fileURLToPath(base)
|
|
947
|
-
)
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
const packageSubpath =
|
|
951
|
-
'.' + (separatorIndex === -1 ? '' : specifier.slice(separatorIndex))
|
|
952
|
-
|
|
953
|
-
return {packageName, packageSubpath, isScoped}
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
/**
|
|
957
|
-
* @param {string} specifier
|
|
958
|
-
* @param {URL} base
|
|
959
|
-
* @param {Set<string> | undefined} conditions
|
|
960
|
-
* @returns {URL}
|
|
961
|
-
*/
|
|
962
|
-
function packageResolve(specifier, base, conditions) {
|
|
963
|
-
if (builtinModules.includes(specifier)) {
|
|
964
|
-
return new URL('node:' + specifier)
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
const {packageName, packageSubpath, isScoped} = parsePackageName(
|
|
968
|
-
specifier,
|
|
969
|
-
base
|
|
970
|
-
)
|
|
971
|
-
|
|
972
|
-
// ResolveSelf
|
|
973
|
-
const packageConfig = getPackageScopeConfig(base)
|
|
974
|
-
|
|
975
|
-
// Can’t test.
|
|
976
|
-
/* c8 ignore next 16 */
|
|
977
|
-
if (packageConfig.exists) {
|
|
978
|
-
const packageJsonUrl = pathToFileURL(packageConfig.pjsonPath)
|
|
979
|
-
if (
|
|
980
|
-
packageConfig.name === packageName &&
|
|
981
|
-
packageConfig.exports !== undefined &&
|
|
982
|
-
packageConfig.exports !== null
|
|
983
|
-
) {
|
|
984
|
-
return packageExportsResolve(
|
|
985
|
-
packageJsonUrl,
|
|
986
|
-
packageSubpath,
|
|
987
|
-
packageConfig,
|
|
988
|
-
base,
|
|
989
|
-
conditions
|
|
990
|
-
)
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
let packageJsonUrl = new URL(
|
|
995
|
-
'./node_modules/' + packageName + '/package.json',
|
|
996
|
-
base
|
|
997
|
-
)
|
|
998
|
-
let packageJsonPath = fileURLToPath(packageJsonUrl)
|
|
999
|
-
/** @type {string} */
|
|
1000
|
-
let lastPath
|
|
1001
|
-
do {
|
|
1002
|
-
const stat = tryStatSync(packageJsonPath.slice(0, -13))
|
|
1003
|
-
if (!stat || !stat.isDirectory()) {
|
|
1004
|
-
lastPath = packageJsonPath
|
|
1005
|
-
packageJsonUrl = new URL(
|
|
1006
|
-
(isScoped ? '../../../../node_modules/' : '../../../node_modules/') +
|
|
1007
|
-
packageName +
|
|
1008
|
-
'/package.json',
|
|
1009
|
-
packageJsonUrl
|
|
1010
|
-
)
|
|
1011
|
-
packageJsonPath = fileURLToPath(packageJsonUrl)
|
|
1012
|
-
continue
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
// Package match.
|
|
1016
|
-
const packageConfig = read(packageJsonPath, {base, specifier})
|
|
1017
|
-
if (packageConfig.exports !== undefined && packageConfig.exports !== null) {
|
|
1018
|
-
return packageExportsResolve(
|
|
1019
|
-
packageJsonUrl,
|
|
1020
|
-
packageSubpath,
|
|
1021
|
-
packageConfig,
|
|
1022
|
-
base,
|
|
1023
|
-
conditions
|
|
1024
|
-
)
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
if (packageSubpath === '.') {
|
|
1028
|
-
return legacyMainResolve(packageJsonUrl, packageConfig, base)
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
return new URL(packageSubpath, packageJsonUrl)
|
|
1032
|
-
// Cross-platform root check.
|
|
1033
|
-
} while (packageJsonPath.length !== lastPath.length)
|
|
1034
|
-
|
|
1035
|
-
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), false)
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
/**
|
|
1039
|
-
* @param {string} specifier
|
|
1040
|
-
* @returns {boolean}
|
|
1041
|
-
*/
|
|
1042
|
-
function isRelativeSpecifier(specifier) {
|
|
1043
|
-
if (specifier[0] === '.') {
|
|
1044
|
-
if (specifier.length === 1 || specifier[1] === '/') return true
|
|
1045
|
-
if (
|
|
1046
|
-
specifier[1] === '.' &&
|
|
1047
|
-
(specifier.length === 2 || specifier[2] === '/')
|
|
1048
|
-
) {
|
|
1049
|
-
return true
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
return false
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
/**
|
|
1057
|
-
* @param {string} specifier
|
|
1058
|
-
* @returns {boolean}
|
|
1059
|
-
*/
|
|
1060
|
-
function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
|
|
1061
|
-
if (specifier === '') return false
|
|
1062
|
-
if (specifier[0] === '/') return true
|
|
1063
|
-
return isRelativeSpecifier(specifier)
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
/**
|
|
1067
|
-
* The “Resolver Algorithm Specification” as detailed in the Node docs (which is
|
|
1068
|
-
* sync and slightly lower-level than `resolve`).
|
|
1069
|
-
*
|
|
1070
|
-
* @param {string} specifier
|
|
1071
|
-
* `/example.js`, `./example.js`, `../example.js`, `some-package`, `fs`, etc.
|
|
1072
|
-
* @param {URL} base
|
|
1073
|
-
* Full URL (to a file) that `specifier` is resolved relative from.
|
|
1074
|
-
* @param {Set<string>} [conditions]
|
|
1075
|
-
* Conditions.
|
|
1076
|
-
* @param {boolean} [preserveSymlinks]
|
|
1077
|
-
* Keep symlinks instead of resolving them.
|
|
1078
|
-
* @returns {URL}
|
|
1079
|
-
* A URL object to the found thing.
|
|
1080
|
-
*/
|
|
1081
|
-
export function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
1082
|
-
// Note: The Node code supports `base` as a string (in this internal API) too,
|
|
1083
|
-
// we don’t.
|
|
1084
|
-
const protocol = base.protocol
|
|
1085
|
-
const isData = protocol === 'data:'
|
|
1086
|
-
const isRemote = isData || protocol === 'http:' || protocol === 'https:'
|
|
1087
|
-
// Order swapped from spec for minor perf gain.
|
|
1088
|
-
// Ok since relative URLs cannot parse as URLs.
|
|
1089
|
-
/** @type {URL | undefined} */
|
|
1090
|
-
let resolved
|
|
1091
|
-
|
|
1092
|
-
if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
|
|
1093
|
-
try {
|
|
1094
|
-
resolved = new URL(specifier, base)
|
|
1095
|
-
} catch (error_) {
|
|
1096
|
-
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base)
|
|
1097
|
-
error.cause = error_
|
|
1098
|
-
throw error
|
|
1099
|
-
}
|
|
1100
|
-
} else if (protocol === 'file:' && specifier[0] === '#') {
|
|
1101
|
-
resolved = packageImportsResolve(specifier, base, conditions)
|
|
1102
|
-
} else {
|
|
1103
|
-
try {
|
|
1104
|
-
resolved = new URL(specifier)
|
|
1105
|
-
} catch (error_) {
|
|
1106
|
-
// Note: actual code uses `canBeRequiredWithoutScheme`.
|
|
1107
|
-
if (isRemote && !builtinModules.includes(specifier)) {
|
|
1108
|
-
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base)
|
|
1109
|
-
error.cause = error_
|
|
1110
|
-
throw error
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
resolved = packageResolve(specifier, base, conditions)
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
assert(resolved !== undefined, 'expected to be defined')
|
|
1118
|
-
|
|
1119
|
-
if (resolved.protocol !== 'file:') {
|
|
1120
|
-
return resolved
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
return finalizeResolution(resolved, base, preserveSymlinks)
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
/**
|
|
1127
|
-
* @param {string} specifier
|
|
1128
|
-
* @param {URL | undefined} parsed
|
|
1129
|
-
* @param {URL | undefined} parsedParentURL
|
|
1130
|
-
*/
|
|
1131
|
-
function checkIfDisallowedImport(specifier, parsed, parsedParentURL) {
|
|
1132
|
-
if (parsedParentURL) {
|
|
1133
|
-
// Avoid accessing the `protocol` property due to the lazy getters.
|
|
1134
|
-
const parentProtocol = parsedParentURL.protocol
|
|
1135
|
-
|
|
1136
|
-
if (parentProtocol === 'http:' || parentProtocol === 'https:') {
|
|
1137
|
-
if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
|
|
1138
|
-
// Avoid accessing the `protocol` property due to the lazy getters.
|
|
1139
|
-
const parsedProtocol = parsed?.protocol
|
|
1140
|
-
|
|
1141
|
-
// `data:` and `blob:` disallowed due to allowing file: access via
|
|
1142
|
-
// indirection
|
|
1143
|
-
if (
|
|
1144
|
-
parsedProtocol &&
|
|
1145
|
-
parsedProtocol !== 'https:' &&
|
|
1146
|
-
parsedProtocol !== 'http:'
|
|
1147
|
-
) {
|
|
1148
|
-
throw new ERR_NETWORK_IMPORT_DISALLOWED(
|
|
1149
|
-
specifier,
|
|
1150
|
-
parsedParentURL,
|
|
1151
|
-
'remote imports cannot import from a local location.'
|
|
1152
|
-
)
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
return {url: parsed?.href || ''}
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
if (builtinModules.includes(specifier)) {
|
|
1159
|
-
throw new ERR_NETWORK_IMPORT_DISALLOWED(
|
|
1160
|
-
specifier,
|
|
1161
|
-
parsedParentURL,
|
|
1162
|
-
'remote imports cannot import from a local location.'
|
|
1163
|
-
)
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
throw new ERR_NETWORK_IMPORT_DISALLOWED(
|
|
1167
|
-
specifier,
|
|
1168
|
-
parsedParentURL,
|
|
1169
|
-
'only relative and absolute specifiers are supported.'
|
|
1170
|
-
)
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
// Note: this is from:
|
|
1176
|
-
// <https://github.com/nodejs/node/blob/3e74590/lib/internal/url.js#L687>
|
|
1177
|
-
/**
|
|
1178
|
-
* Checks if a value has the shape of a WHATWG URL object.
|
|
1179
|
-
*
|
|
1180
|
-
* Using a symbol or instanceof would not be able to recognize URL objects
|
|
1181
|
-
* coming from other implementations (e.g. in Electron), so instead we are
|
|
1182
|
-
* checking some well known properties for a lack of a better test.
|
|
1183
|
-
*
|
|
1184
|
-
* We use `href` and `protocol` as they are the only properties that are
|
|
1185
|
-
* easy to retrieve and calculate due to the lazy nature of the getters.
|
|
1186
|
-
*
|
|
1187
|
-
* @template {unknown} Value
|
|
1188
|
-
* @param {Value} self
|
|
1189
|
-
* @returns {Value is URL}
|
|
1190
|
-
*/
|
|
1191
|
-
function isURL(self) {
|
|
1192
|
-
return Boolean(
|
|
1193
|
-
self &&
|
|
1194
|
-
typeof self === 'object' &&
|
|
1195
|
-
'href' in self &&
|
|
1196
|
-
typeof self.href === 'string' &&
|
|
1197
|
-
'protocol' in self &&
|
|
1198
|
-
typeof self.protocol === 'string' &&
|
|
1199
|
-
self.href &&
|
|
1200
|
-
self.protocol
|
|
1201
|
-
)
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
/**
|
|
1205
|
-
* Validate user-input in `context` supplied by a custom loader.
|
|
1206
|
-
*
|
|
1207
|
-
* @param {unknown} parentURL
|
|
1208
|
-
* @returns {asserts parentURL is URL | string | undefined}
|
|
1209
|
-
*/
|
|
1210
|
-
function throwIfInvalidParentURL(parentURL) {
|
|
1211
|
-
if (parentURL === undefined) {
|
|
1212
|
-
return // Main entry point, so no parent
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
if (typeof parentURL !== 'string' && !isURL(parentURL)) {
|
|
1216
|
-
throw new codes.ERR_INVALID_ARG_TYPE(
|
|
1217
|
-
'parentURL',
|
|
1218
|
-
['string', 'URL'],
|
|
1219
|
-
parentURL
|
|
1220
|
-
)
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
/**
|
|
1225
|
-
* @param {string} specifier
|
|
1226
|
-
* @param {{parentURL?: string, conditions?: Array<string>}} context
|
|
1227
|
-
* @returns {{url: string, format?: string | null}}
|
|
1228
|
-
*/
|
|
1229
|
-
export function defaultResolve(specifier, context = {}) {
|
|
1230
|
-
const {parentURL} = context
|
|
1231
|
-
assert(parentURL !== undefined, 'expected `parentURL` to be defined')
|
|
1232
|
-
throwIfInvalidParentURL(parentURL)
|
|
1233
|
-
|
|
1234
|
-
/** @type {URL | undefined} */
|
|
1235
|
-
let parsedParentURL
|
|
1236
|
-
if (parentURL) {
|
|
1237
|
-
try {
|
|
1238
|
-
parsedParentURL = new URL(parentURL)
|
|
1239
|
-
} catch {
|
|
1240
|
-
// Ignore exception
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
/** @type {URL | undefined} */
|
|
1245
|
-
let parsed
|
|
1246
|
-
/** @type {string | undefined} */
|
|
1247
|
-
let protocol
|
|
1248
|
-
|
|
1249
|
-
try {
|
|
1250
|
-
parsed = shouldBeTreatedAsRelativeOrAbsolutePath(specifier)
|
|
1251
|
-
? new URL(specifier, parsedParentURL)
|
|
1252
|
-
: new URL(specifier)
|
|
1253
|
-
|
|
1254
|
-
// Avoid accessing the `protocol` property due to the lazy getters.
|
|
1255
|
-
protocol = parsed.protocol
|
|
1256
|
-
|
|
1257
|
-
if (protocol === 'data:') {
|
|
1258
|
-
return {url: parsed.href, format: null}
|
|
1259
|
-
}
|
|
1260
|
-
} catch {
|
|
1261
|
-
// Ignore exception
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
// There are multiple deep branches that can either throw or return; instead
|
|
1265
|
-
// of duplicating that deeply nested logic for the possible returns, DRY and
|
|
1266
|
-
// check for a return. This seems the least gnarly.
|
|
1267
|
-
const maybeReturn = checkIfDisallowedImport(
|
|
1268
|
-
specifier,
|
|
1269
|
-
parsed,
|
|
1270
|
-
parsedParentURL
|
|
1271
|
-
)
|
|
1272
|
-
|
|
1273
|
-
if (maybeReturn) return maybeReturn
|
|
1274
|
-
|
|
1275
|
-
// This must come after checkIfDisallowedImport
|
|
1276
|
-
if (protocol === undefined && parsed) {
|
|
1277
|
-
protocol = parsed.protocol
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
if (protocol === 'node:') {
|
|
1281
|
-
return {url: specifier}
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
// This must come after checkIfDisallowedImport
|
|
1285
|
-
if (parsed && parsed.protocol === 'node:') return {url: specifier}
|
|
1286
|
-
|
|
1287
|
-
const conditions = getConditionsSet(context.conditions)
|
|
1288
|
-
|
|
1289
|
-
const url = moduleResolve(specifier, new URL(parentURL), conditions, false)
|
|
1290
|
-
|
|
1291
|
-
return {
|
|
1292
|
-
// Do NOT cast `url` to a string: that will work even when there are real
|
|
1293
|
-
// problems, silencing them
|
|
1294
|
-
url: url.href,
|
|
1295
|
-
format: defaultGetFormatWithoutErrors(url, {parentURL})
|
|
1296
|
-
}
|
|
1297
|
-
}
|