@highstate/designer 0.1.0 → 0.2.1
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/BiOpBOhF.js +69 -0
- package/.output/public/_nuxt/Cbvq2xei.js +1 -0
- package/.output/public/_nuxt/DVgDGs8k.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/71082021-0601-49cb-ab38-1bd553aecfa4.json +1 -0
- package/.output/public/_nuxt/entry.D7UJUp71.css +5 -0
- package/.output/public/_nuxt/rjBY3mWU.js +1 -0
- package/.output/server/chunks/build/client.manifest.mjs +17 -14
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +60 -102
- package/.output/server/chunks/routes/api/_trpc_.mjs +996 -138
- package/.output/server/chunks/routes/api/_trpc_.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +11 -61
- package/.output/server/chunks/routes/renderer.mjs.map +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/buffer-stream.js +52 -0
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/index.js +60 -0
- package/.output/server/node_modules/.nitro/get-stream@5.2.0/package.json +50 -0
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/buffer-stream.js +52 -0
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/index.js +61 -0
- package/.output/server/node_modules/.nitro/get-stream@6.0.1/package.json +47 -0
- package/.output/server/node_modules/.nitro/mimic-response@1.0.1/index.js +32 -0
- package/.output/server/node_modules/.nitro/mimic-response@1.0.1/package.json +37 -0
- package/.output/server/node_modules/.nitro/mimic-response@3.1.0/index.js +77 -0
- package/.output/server/node_modules/.nitro/mimic-response@3.1.0/package.json +42 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +6 -2
- package/.output/server/node_modules/@babel/parser/package.json +2 -2
- package/.output/server/node_modules/@grpc/grpc-js/build/src/admin.js +31 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js +174 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-credentials.js +153 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-interface.js +84 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call-number.js +25 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/call.js +136 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/certificate-provider.js +134 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-credentials.js +272 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-options.js +71 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channel.js +68 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/channelz.js +584 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/client-interceptors.js +428 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/client.js +433 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js +26 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-filter.js +295 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/connectivity-state.js +28 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/constants.js +64 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/control-plane-status.js +43 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/deadline.js +109 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/duration.js +47 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/environment.js +22 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/error.js +41 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/experimental.js +52 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/filter-stack.js +82 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/filter.js +38 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/http_proxy.js +266 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/index.js +144 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/internal-channel.js +572 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js +153 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js +567 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js +482 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js +182 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer.js +117 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js +294 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/logging.js +122 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/make-client.js +144 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/metadata.js +249 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/picker.js +86 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-dns.js +349 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-ip.js +105 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-uds.js +51 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver.js +88 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-call.js +305 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js +309 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/retrying-call.js +665 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-call.js +202 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-credentials.js +305 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server-interceptors.js +770 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/server.js +1569 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/service-config.js +431 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/status-builder.js +68 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/stream-decoder.js +100 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-address.js +202 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-call.js +526 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js +92 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js +137 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel.js +371 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/tls-helpers.js +34 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/transport.js +662 -0
- package/.output/server/node_modules/@grpc/grpc-js/build/src/uri-parser.js +126 -0
- package/.output/server/node_modules/@grpc/grpc-js/package.json +87 -0
- package/.output/server/node_modules/@grpc/grpc-js/proto/channelz.proto +564 -0
- package/.output/server/node_modules/@grpc/proto-loader/build/src/index.js +244 -0
- package/.output/server/node_modules/@grpc/proto-loader/build/src/util.js +89 -0
- package/.output/server/node_modules/@grpc/proto-loader/package.json +69 -0
- package/.output/server/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js +795 -0
- package/.output/server/node_modules/@js-sdsl/ordered-map/package.json +138 -0
- package/.output/server/node_modules/@logdna/tail-file/index.js +3 -0
- package/.output/server/node_modules/@logdna/tail-file/lib/tail-file.js +326 -0
- package/.output/server/node_modules/@logdna/tail-file/package.json +162 -0
- package/.output/server/node_modules/@protobufjs/aspromise/index.js +52 -0
- package/.output/server/node_modules/@protobufjs/aspromise/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/base64/index.js +139 -0
- package/.output/server/node_modules/@protobufjs/base64/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/codegen/index.js +99 -0
- package/.output/server/node_modules/@protobufjs/codegen/package.json +13 -0
- package/.output/server/node_modules/@protobufjs/eventemitter/index.js +76 -0
- package/.output/server/node_modules/@protobufjs/eventemitter/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/fetch/index.js +115 -0
- package/.output/server/node_modules/@protobufjs/fetch/package.json +25 -0
- package/.output/server/node_modules/@protobufjs/float/index.js +335 -0
- package/.output/server/node_modules/@protobufjs/float/package.json +26 -0
- package/.output/server/node_modules/@protobufjs/inquire/index.js +17 -0
- package/.output/server/node_modules/@protobufjs/inquire/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/path/index.js +65 -0
- package/.output/server/node_modules/@protobufjs/path/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/pool/index.js +48 -0
- package/.output/server/node_modules/@protobufjs/pool/package.json +21 -0
- package/.output/server/node_modules/@protobufjs/utf8/index.js +105 -0
- package/.output/server/node_modules/@protobufjs/utf8/package.json +21 -0
- package/.output/server/node_modules/@pulumi/pulumi/asset/archive.js +84 -0
- package/.output/server/node_modules/@pulumi/pulumi/asset/asset.js +84 -0
- package/.output/server/node_modules/@pulumi/pulumi/asset/index.js +21 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/cmd.js +270 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/errors.js +84 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/events.js +47 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/index.js +27 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/localWorkspace.js +1049 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/minimumVersion.js +28 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/remoteStack.js +130 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/remoteWorkspace.js +131 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/server.js +170 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/stack.js +991 -0
- package/.output/server/node_modules/@pulumi/pulumi/automation/stackSettings.js +24 -0
- package/.output/server/node_modules/@pulumi/pulumi/errors.js +126 -0
- package/.output/server/node_modules/@pulumi/pulumi/log/index.js +132 -0
- package/.output/server/node_modules/@pulumi/pulumi/metadata.js +46 -0
- package/.output/server/node_modules/@pulumi/pulumi/output.js +677 -0
- package/.output/server/node_modules/@pulumi/pulumi/package.json +93 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/alias_pb.js +631 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/callback_grpc_pb.js +61 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/callback_pb.js +582 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/codegen/hcl_pb.js +808 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/engine_grpc_pb.js +158 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/engine_pb.js +1058 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/language_grpc_pb.js +510 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/language_pb.js +7222 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/plugin_pb.js +1159 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/provider_pb.js +11300 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/resource_grpc_pb.js +310 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/resource_pb.js +7447 -0
- package/.output/server/node_modules/@pulumi/pulumi/proto/source_pb.js +230 -0
- package/.output/server/node_modules/@pulumi/pulumi/resource.js +774 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/asyncIterableUtil.js +103 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/callbacks.js +456 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/config.js +129 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/debuggable.js +137 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/dependsOn.js +64 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/invoke.js +498 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/resource.js +928 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/rpc.js +844 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/settings.js +551 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/stack.js +276 -0
- package/.output/server/node_modules/@pulumi/pulumi/runtime/state.js +187 -0
- package/.output/server/node_modules/@pulumi/pulumi/utils.js +89 -0
- package/.output/server/node_modules/@pulumi/pulumi/version.js +17 -0
- package/.output/server/node_modules/@pulumi/query/asyncQueryable.js +279 -0
- package/.output/server/node_modules/@pulumi/query/base.js +34 -0
- package/.output/server/node_modules/@pulumi/query/index.js +87 -0
- package/.output/server/node_modules/@pulumi/query/interfaces.js +24 -0
- package/.output/server/node_modules/@pulumi/query/operators.js +1269 -0
- package/.output/server/node_modules/@pulumi/query/package.json +22 -0
- package/.output/server/node_modules/@pulumi/query/sources.js +81 -0
- package/.output/server/node_modules/@pulumi/query/util.js +23 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/index.mjs +78 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/system/policy.mjs +54 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs +37 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs +36 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs +42 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs +54 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs +33 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs +15 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs +8 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs +25 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs +635 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs +25 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs +20 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs +23 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/index.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs +25 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs +230 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs +501 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs +70 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.mjs +4 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/index.mjs +4 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs +20 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs +32 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs +91 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs +38 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs +17 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs +26 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs +64 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/index.mjs +4 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs +12 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs +73 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs +35 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs +102 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs +151 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs +32 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs +71 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs +61 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs +8 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs +24 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs +19 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs +66 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs +22 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs +94 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs +15 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs +8 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs +26 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs +26 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs +18 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs +60 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs +15 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/index.mjs +2 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/schema.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs +48 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/static.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs +49 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs +53 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.mjs +7 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs +167 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs +33 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs +55 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs +13 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs +40 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs +9 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs +13 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/javascript.mjs +89 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/json.mjs +221 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs +60 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/index.mjs +3 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs +5 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs +36 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-type.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs +10 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs +6 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs +158 -0
- package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/index.mjs +1 -0
- package/.output/server/node_modules/@sinclair/typebox/package.json +106 -0
- package/.output/server/node_modules/@sindresorhus/is/dist/index.js +434 -0
- package/.output/server/node_modules/@sindresorhus/is/package.json +96 -0
- package/.output/server/node_modules/@szmarczak/http-timer/dist/source/index.js +126 -0
- package/.output/server/node_modules/@szmarczak/http-timer/package.json +72 -0
- package/.output/server/node_modules/@trpc/server/dist/http.mjs +7 -0
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +11 -871
- package/.output/server/node_modules/@trpc/server/dist/observable/observable.mjs +175 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/createProxy.mjs +73 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/TRPCError.mjs +78 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/formatter.mjs +5 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/getErrorShape.mjs +29 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentType.mjs +224 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentTypeParsers.mjs +12 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +76 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/isAbortError.mjs +7 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs +39 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs +569 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/initTRPC.mjs +80 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/middleware.mjs +90 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/parser.mjs +40 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs +194 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rootConfig.mjs +6 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/router.mjs +176 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rpc/codes.mjs +54 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/jsonl.mjs +631 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/sse.mjs +355 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/tracked.mjs +25 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +167 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs +15 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/disposable.mjs +41 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs +23 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs +23 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +127 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/transformer.mjs +101 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/utils.mjs +83 -0
- package/.output/server/node_modules/@trpc/server/dist/vendor/unpromise/unpromise.mjs +289 -0
- package/.output/server/node_modules/@trpc/server/package.json +52 -73
- package/.output/server/node_modules/@unhead/dom/package.json +3 -3
- package/.output/server/node_modules/@unhead/shared/package.json +2 -2
- package/.output/server/node_modules/@unhead/ssr/package.json +3 -3
- package/.output/server/node_modules/acorn/dist/acorn.mjs +6145 -0
- package/.output/server/node_modules/acorn/package.json +50 -0
- package/.output/server/node_modules/better-lock/dist/better_lock.js +377 -0
- package/.output/server/node_modules/better-lock/dist/errors.js +136 -0
- package/.output/server/node_modules/better-lock/dist/index.js +28 -0
- package/.output/server/node_modules/better-lock/dist/internals.js +75 -0
- package/.output/server/node_modules/better-lock/dist/tools.js +109 -0
- package/.output/server/node_modules/better-lock/package.json +60 -0
- package/.output/server/node_modules/cacheable-lookup/package.json +45 -0
- package/.output/server/node_modules/cacheable-lookup/source/index.js +436 -0
- package/.output/server/node_modules/cacheable-request/package.json +56 -0
- package/.output/server/node_modules/cacheable-request/src/index.js +251 -0
- package/.output/server/node_modules/clone-response/package.json +41 -0
- package/.output/server/node_modules/clone-response/src/index.js +17 -0
- package/.output/server/node_modules/confbox/dist/index.mjs +1 -0
- package/.output/server/node_modules/confbox/dist/json5.mjs +14 -0
- package/.output/server/node_modules/confbox/dist/shared/confbox.9388d834.mjs +1 -0
- package/.output/server/node_modules/confbox/dist/shared/confbox.f9f03f05.mjs +7 -0
- package/.output/server/node_modules/confbox/dist/toml.mjs +239 -0
- package/.output/server/node_modules/confbox/dist/yaml.mjs +32 -0
- package/.output/server/node_modules/confbox/package.json +86 -0
- package/.output/server/node_modules/consola/dist/core.mjs +410 -0
- package/.output/server/node_modules/consola/package.json +101 -0
- package/.output/server/node_modules/cross-spawn/index.js +39 -0
- package/.output/server/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/.output/server/node_modules/cross-spawn/lib/parse.js +91 -0
- package/.output/server/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/.output/server/node_modules/cross-spawn/package.json +73 -0
- package/.output/server/node_modules/decompress-response/index.js +58 -0
- package/.output/server/node_modules/decompress-response/package.json +56 -0
- package/.output/server/node_modules/defer-to-connect/dist/source/index.js +47 -0
- package/.output/server/node_modules/defer-to-connect/package.json +71 -0
- package/.output/server/node_modules/dettle/dist/debounce.js +91 -0
- package/.output/server/node_modules/dettle/dist/index.js +5 -0
- package/.output/server/node_modules/dettle/dist/throttle.js +12 -0
- package/.output/server/node_modules/dettle/package.json +28 -0
- package/.output/server/node_modules/dotenv/config.js +9 -0
- package/.output/server/node_modules/dotenv/lib/cli-options.js +11 -0
- package/.output/server/node_modules/dotenv/lib/env-options.js +24 -0
- package/.output/server/node_modules/dotenv/lib/main.js +361 -0
- package/.output/server/node_modules/dotenv/package.json +61 -0
- package/.output/server/node_modules/end-of-stream/index.js +94 -0
- package/.output/server/node_modules/end-of-stream/package.json +37 -0
- package/.output/server/node_modules/esprima/dist/esprima.js +6709 -0
- package/.output/server/node_modules/esprima/package.json +112 -0
- package/.output/server/node_modules/execa/index.js +268 -0
- package/.output/server/node_modules/execa/lib/command.js +52 -0
- package/.output/server/node_modules/execa/lib/error.js +88 -0
- package/.output/server/node_modules/execa/lib/kill.js +115 -0
- package/.output/server/node_modules/execa/lib/promise.js +46 -0
- package/.output/server/node_modules/execa/lib/stdio.js +52 -0
- package/.output/server/node_modules/execa/lib/stream.js +97 -0
- package/.output/server/node_modules/execa/package.json +74 -0
- package/.output/server/node_modules/google-protobuf/google/protobuf/empty_pb.js +147 -0
- package/.output/server/node_modules/google-protobuf/google/protobuf/struct_pb.js +955 -0
- package/.output/server/node_modules/google-protobuf/google-protobuf.js +149 -0
- package/.output/server/node_modules/google-protobuf/package.json +35 -0
- package/.output/server/node_modules/got/dist/source/as-promise/create-rejection.js +30 -0
- package/.output/server/node_modules/got/dist/source/as-promise/index.js +176 -0
- package/.output/server/node_modules/got/dist/source/as-promise/normalize-arguments.js +78 -0
- package/.output/server/node_modules/got/dist/source/as-promise/parse-body.js +25 -0
- package/.output/server/node_modules/got/dist/source/as-promise/types.js +42 -0
- package/.output/server/node_modules/got/dist/source/core/calculate-retry-delay.js +29 -0
- package/.output/server/node_modules/got/dist/source/core/index.js +1505 -0
- package/.output/server/node_modules/got/dist/source/core/utils/dns-ip-version.js +17 -0
- package/.output/server/node_modules/got/dist/source/core/utils/get-body-size.js +32 -0
- package/.output/server/node_modules/got/dist/source/core/utils/get-buffer.js +16 -0
- package/.output/server/node_modules/got/dist/source/core/utils/is-form-data.js +4 -0
- package/.output/server/node_modules/got/dist/source/core/utils/is-response-ok.js +8 -0
- package/.output/server/node_modules/got/dist/source/core/utils/options-to-url.js +53 -0
- package/.output/server/node_modules/got/dist/source/core/utils/proxy-events.js +17 -0
- package/.output/server/node_modules/got/dist/source/core/utils/timed-out.js +121 -0
- package/.output/server/node_modules/got/dist/source/core/utils/unhandle.js +22 -0
- package/.output/server/node_modules/got/dist/source/core/utils/url-to-options.js +24 -0
- package/.output/server/node_modules/got/dist/source/core/utils/weakable-map.js +29 -0
- package/.output/server/node_modules/got/dist/source/create.js +240 -0
- package/.output/server/node_modules/got/dist/source/index.js +132 -0
- package/.output/server/node_modules/got/dist/source/types.js +2 -0
- package/.output/server/node_modules/got/dist/source/utils/deep-freeze.js +12 -0
- package/.output/server/node_modules/got/dist/source/utils/deprecation-warning.js +13 -0
- package/.output/server/node_modules/got/package.json +131 -0
- package/.output/server/node_modules/http-cache-semantics/index.js +674 -0
- package/.output/server/node_modules/http-cache-semantics/package.json +18 -0
- package/.output/server/node_modules/http2-wrapper/package.json +54 -0
- package/.output/server/node_modules/http2-wrapper/source/agent.js +670 -0
- package/.output/server/node_modules/http2-wrapper/source/auto.js +149 -0
- package/.output/server/node_modules/http2-wrapper/source/client-request.js +445 -0
- package/.output/server/node_modules/http2-wrapper/source/incoming-message.js +58 -0
- package/.output/server/node_modules/http2-wrapper/source/index.js +28 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/calculate-server-name.js +27 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/errors.js +45 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +13 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/proxy-events.js +7 -0
- package/.output/server/node_modules/http2-wrapper/source/utils/url-to-options.js +25 -0
- package/.output/server/node_modules/human-signals/build/src/core.js +273 -0
- package/.output/server/node_modules/human-signals/build/src/main.js +71 -0
- package/.output/server/node_modules/human-signals/build/src/realtime.js +19 -0
- package/.output/server/node_modules/human-signals/build/src/signals.js +35 -0
- package/.output/server/node_modules/human-signals/package.json +64 -0
- package/.output/server/node_modules/import-meta-resolve/index.js +47 -0
- package/.output/server/node_modules/import-meta-resolve/lib/errors.js +507 -0
- package/.output/server/node_modules/import-meta-resolve/lib/get-format.js +159 -0
- package/.output/server/node_modules/import-meta-resolve/lib/package-json-reader.js +177 -0
- package/.output/server/node_modules/import-meta-resolve/lib/resolve.js +1297 -0
- package/.output/server/node_modules/import-meta-resolve/lib/utils.js +47 -0
- package/.output/server/node_modules/import-meta-resolve/package.json +95 -0
- package/.output/server/node_modules/is-stream/index.js +28 -0
- package/.output/server/node_modules/is-stream/package.json +42 -0
- package/.output/server/node_modules/isexe/index.js +57 -0
- package/.output/server/node_modules/isexe/mode.js +41 -0
- package/.output/server/node_modules/isexe/package.json +31 -0
- package/.output/server/node_modules/isexe/windows.js +42 -0
- package/.output/server/node_modules/js-yaml/index.js +7 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/loader.js +1644 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
- package/.output/server/node_modules/js-yaml/lib/js-yaml.js +39 -0
- package/.output/server/node_modules/js-yaml/package.json +49 -0
- package/.output/server/node_modules/json-buffer/index.js +58 -0
- package/.output/server/node_modules/json-buffer/package.json +34 -0
- package/.output/server/node_modules/keyv/package.json +57 -0
- package/.output/server/node_modules/keyv/src/index.js +259 -0
- package/.output/server/node_modules/lodash.camelcase/index.js +599 -0
- package/.output/server/node_modules/lodash.camelcase/package.json +19 -0
- package/.output/server/node_modules/long/package.json +50 -0
- package/.output/server/node_modules/long/umd/index.js +1432 -0
- package/.output/server/node_modules/long/umd/package.json +3 -0
- package/.output/server/node_modules/lowercase-keys/index.js +10 -0
- package/.output/server/node_modules/lowercase-keys/package.json +38 -0
- package/.output/server/node_modules/merge-stream/index.js +41 -0
- package/.output/server/node_modules/merge-stream/package.json +19 -0
- package/.output/server/node_modules/mimic-fn/index.js +13 -0
- package/.output/server/node_modules/mimic-fn/package.json +42 -0
- package/.output/server/node_modules/mlly/dist/index.mjs +2606 -0
- package/.output/server/node_modules/mlly/package.json +50 -0
- package/.output/server/node_modules/normalize-url/index.js +216 -0
- package/.output/server/node_modules/normalize-url/package.json +50 -0
- package/.output/server/node_modules/npm-run-path/index.js +47 -0
- package/.output/server/node_modules/npm-run-path/package.json +44 -0
- package/.output/server/node_modules/nypm/dist/index.mjs +306 -0
- package/.output/server/node_modules/nypm/package.json +60 -0
- package/.output/server/node_modules/once/once.js +42 -0
- package/.output/server/node_modules/once/package.json +33 -0
- package/.output/server/node_modules/onetime/index.js +44 -0
- package/.output/server/node_modules/onetime/package.json +43 -0
- package/.output/server/node_modules/p-cancelable/index.js +111 -0
- package/.output/server/node_modules/p-cancelable/package.json +49 -0
- package/.output/server/node_modules/path-key/index.js +16 -0
- package/.output/server/node_modules/path-key/package.json +39 -0
- package/.output/server/node_modules/pathe/dist/index.mjs +1 -0
- package/.output/server/node_modules/pathe/dist/shared/pathe.ff20891b.mjs +221 -0
- package/.output/server/node_modules/pathe/package.json +48 -0
- package/.output/server/node_modules/pkg-types/dist/index.mjs +156 -0
- package/.output/server/node_modules/pkg-types/package.json +47 -0
- package/.output/server/node_modules/promise-make-counter/dist/index.js +24 -0
- package/.output/server/node_modules/promise-make-counter/package.json +32 -0
- package/.output/server/node_modules/promise-make-naked/dist/index.js +25 -0
- package/.output/server/node_modules/promise-make-naked/dist/utils.js +4 -0
- package/.output/server/node_modules/promise-make-naked/package.json +27 -0
- package/.output/server/node_modules/protobufjs/ext/descriptor/index.js +1052 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/api.json +118 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/descriptor.json +739 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
- package/.output/server/node_modules/protobufjs/google/protobuf/type.json +202 -0
- package/.output/server/node_modules/protobufjs/index.js +4 -0
- package/.output/server/node_modules/protobufjs/package.json +112 -0
- package/.output/server/node_modules/protobufjs/src/common.js +399 -0
- package/.output/server/node_modules/protobufjs/src/converter.js +301 -0
- package/.output/server/node_modules/protobufjs/src/decoder.js +129 -0
- package/.output/server/node_modules/protobufjs/src/encoder.js +100 -0
- package/.output/server/node_modules/protobufjs/src/enum.js +198 -0
- package/.output/server/node_modules/protobufjs/src/field.js +377 -0
- package/.output/server/node_modules/protobufjs/src/index-light.js +104 -0
- package/.output/server/node_modules/protobufjs/src/index-minimal.js +36 -0
- package/.output/server/node_modules/protobufjs/src/index.js +12 -0
- package/.output/server/node_modules/protobufjs/src/mapfield.js +126 -0
- package/.output/server/node_modules/protobufjs/src/message.js +139 -0
- package/.output/server/node_modules/protobufjs/src/method.js +160 -0
- package/.output/server/node_modules/protobufjs/src/namespace.js +433 -0
- package/.output/server/node_modules/protobufjs/src/object.js +243 -0
- package/.output/server/node_modules/protobufjs/src/oneof.js +203 -0
- package/.output/server/node_modules/protobufjs/src/parse.js +893 -0
- package/.output/server/node_modules/protobufjs/src/reader.js +416 -0
- package/.output/server/node_modules/protobufjs/src/reader_buffer.js +51 -0
- package/.output/server/node_modules/protobufjs/src/root.js +368 -0
- package/.output/server/node_modules/protobufjs/src/roots.js +18 -0
- package/.output/server/node_modules/protobufjs/src/rpc/service.js +142 -0
- package/.output/server/node_modules/protobufjs/src/rpc.js +36 -0
- package/.output/server/node_modules/protobufjs/src/service.js +167 -0
- package/.output/server/node_modules/protobufjs/src/tokenize.js +416 -0
- package/.output/server/node_modules/protobufjs/src/type.js +589 -0
- package/.output/server/node_modules/protobufjs/src/types.js +196 -0
- package/.output/server/node_modules/protobufjs/src/util/longbits.js +200 -0
- package/.output/server/node_modules/protobufjs/src/util/minimal.js +438 -0
- package/.output/server/node_modules/protobufjs/src/util.js +212 -0
- package/.output/server/node_modules/protobufjs/src/verifier.js +177 -0
- package/.output/server/node_modules/protobufjs/src/wrappers.js +102 -0
- package/.output/server/node_modules/protobufjs/src/writer.js +465 -0
- package/.output/server/node_modules/protobufjs/src/writer_buffer.js +85 -0
- package/.output/server/node_modules/pump/index.js +86 -0
- package/.output/server/node_modules/pump/package.json +24 -0
- package/.output/server/node_modules/quick-lru/index.js +123 -0
- package/.output/server/node_modules/quick-lru/package.json +43 -0
- package/.output/server/node_modules/remeda/dist/chunk-23J5WHPE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-2H7222YL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-2TTHCYUC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-3AO76THC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-3MWN2VHC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-3X47EJDR.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-54BCGHSM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5DU4ITSF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5G3KY7YR.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5K4XWC27.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5LYW332I.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5O3FBXU6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-5VD5RID3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6GTAPB47.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6HBEBUDI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6IHL7GXT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-6MJCR2TC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-73TZMTEA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7BKSRZNG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7EFS5WOU.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7KI2QQIQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7LYAC624.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7QX4DO53.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-7ROMSESG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-A3FCILQE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ANXBDSUI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ATQJ6737.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-AWX7RJXY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BLEEZ23Z.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BO3LQZNF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BONXESQ2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BQ7TSIFE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BTFWISLJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BYFE4FDX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-BZNENX2T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-C4ACUJGS.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-C4OSHTCI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-C6IMN7SF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CAZXBO45.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CETFG6TX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CGDTCOHY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-CGU6DJQK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-COZRMC32.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DAHUGBAA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DAQH7UR3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DEVKGLTN.js +2 -0
- package/.output/server/node_modules/remeda/dist/chunk-DH3BPT6T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DSLWSGID.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-DUDVLQA2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-E3EM3KJY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-E5GMYZMA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EJCQEWX4.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EKGXROMD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EM24PB7A.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-EMIEIAAH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ENOHV5LT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ENXBNJ36.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-F6MOVT3B.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FB2ENREB.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FDH4IRIM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FFFVS7XT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FJ47D26D.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FMPZ2CLX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FTGV3QMT.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-FW6RZCGF.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-G4OU46SC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-GJJNKHO2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-GK5I7C4J.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-H2MMZB4H.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HBSRBOZK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HJSE3ESO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HO4FFX2R.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HQOQUMZV.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-HV3WACXG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-I3D2BSWJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-I76XIBD5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ICQWNDYD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-IEE7G5JG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-IFSMCGFE.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-IUVYQYF2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-J3IRE4DI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JET27MOQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JJZ7E4YG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JK3VNB42.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JWKJXNB2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-JYNHUNML.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K26VP6CL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K3UJMX27.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K5HTIQFL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-K5LCXBBG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KCAOR2LA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KIA3HX3M.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KQINSXIJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-KSDEFWLH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LAI77QME.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LFEOZTJ2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LIVAT3FO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-LKOWEUPS.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-MD7HNZ54.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-MQWMWXZY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-N4JUOEMS.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NGEN63UD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NJXNQM3G.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NMC53JVB.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NMJS7ULY.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-NP7PEDI6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OC26KGXM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OEI2BOBZ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OIQJEOF7.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OWH4IQQW.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-OYJAL6JK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PJOV2RDB.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PULGOXDA.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PWMUXL7T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-PZOXR343.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-QEKOZYJ5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-R72GEKLP.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RAAYCPUM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RBODUO3Q.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RIKUOZVG.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RLZQTLGN.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RTWSSDNQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RU7WR4KH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RUHQUI2Z.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-RXDTYBQM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-S23N53O3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-S3CYJTB5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SFZGYJFI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SGAFZVQH.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SIBGEYD6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SIQPZPLZ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-SOGKZP3K.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-T5XG33UI.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-TOHMEB3C.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-U2GFW3LV.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-U54ONDS6.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-U753ZCO5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UA6DVSZ3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UEZTW4YU.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UIZMRUOL.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-UWLP4KOD.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-V6HCOU6T.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VBBPTWMC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VCURCCIJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VCYTMP4D.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VFKB5IBK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VFSOOVKJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VMV5GVZ5.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-VPCXVUT7.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-W2HQ33EO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-W3QI2BKC.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WIMS2EYK.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WT5BLBHJ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WY3JJUR4.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-WZSGNJRX.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-X5E5CJJQ.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XBEN2OB2.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XJHR6NID.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XMLUDZIW.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XSF7OVJO.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-XZ6COQKM.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-Y67GVJD3.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-YL2OFO3L.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-YVMG2XEU.js +1 -0
- package/.output/server/node_modules/remeda/dist/chunk-ZF7KX2VP.js +1 -0
- package/.output/server/node_modules/remeda/dist/index.js +1 -0
- package/.output/server/node_modules/remeda/package.json +88 -0
- package/.output/server/node_modules/resolve-alpn/index.js +43 -0
- package/.output/server/node_modules/resolve-alpn/package.json +34 -0
- package/.output/server/node_modules/responselike/package.json +39 -0
- package/.output/server/node_modules/responselike/src/index.js +34 -0
- package/.output/server/node_modules/semver/classes/comparator.js +141 -0
- package/.output/server/node_modules/semver/classes/range.js +554 -0
- package/.output/server/node_modules/semver/classes/semver.js +302 -0
- package/.output/server/node_modules/semver/functions/clean.js +6 -0
- package/.output/server/node_modules/semver/functions/cmp.js +52 -0
- package/.output/server/node_modules/semver/functions/coerce.js +60 -0
- package/.output/server/node_modules/semver/functions/compare-build.js +7 -0
- package/.output/server/node_modules/semver/functions/compare-loose.js +3 -0
- package/.output/server/node_modules/semver/functions/compare.js +5 -0
- package/.output/server/node_modules/semver/functions/diff.js +65 -0
- package/.output/server/node_modules/semver/functions/eq.js +3 -0
- package/.output/server/node_modules/semver/functions/gt.js +3 -0
- package/.output/server/node_modules/semver/functions/gte.js +3 -0
- package/.output/server/node_modules/semver/functions/inc.js +19 -0
- package/.output/server/node_modules/semver/functions/lt.js +3 -0
- package/.output/server/node_modules/semver/functions/lte.js +3 -0
- package/.output/server/node_modules/semver/functions/major.js +3 -0
- package/.output/server/node_modules/semver/functions/minor.js +3 -0
- package/.output/server/node_modules/semver/functions/neq.js +3 -0
- package/.output/server/node_modules/semver/functions/parse.js +16 -0
- package/.output/server/node_modules/semver/functions/patch.js +3 -0
- package/.output/server/node_modules/semver/functions/prerelease.js +6 -0
- package/.output/server/node_modules/semver/functions/rcompare.js +3 -0
- package/.output/server/node_modules/semver/functions/rsort.js +3 -0
- package/.output/server/node_modules/semver/functions/satisfies.js +10 -0
- package/.output/server/node_modules/semver/functions/sort.js +3 -0
- package/.output/server/node_modules/semver/functions/valid.js +6 -0
- package/.output/server/node_modules/semver/index.js +89 -0
- package/.output/server/node_modules/semver/internal/constants.js +35 -0
- package/.output/server/node_modules/semver/internal/debug.js +9 -0
- package/.output/server/node_modules/semver/internal/identifiers.js +23 -0
- package/.output/server/node_modules/semver/internal/lrucache.js +40 -0
- package/.output/server/node_modules/semver/internal/parse-options.js +15 -0
- package/.output/server/node_modules/semver/internal/re.js +217 -0
- package/.output/server/node_modules/semver/package.json +77 -0
- package/.output/server/node_modules/semver/preload.js +2 -0
- package/.output/server/node_modules/semver/ranges/gtr.js +4 -0
- package/.output/server/node_modules/semver/ranges/intersects.js +7 -0
- package/.output/server/node_modules/semver/ranges/ltr.js +4 -0
- package/.output/server/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/.output/server/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/.output/server/node_modules/semver/ranges/min-version.js +61 -0
- package/.output/server/node_modules/semver/ranges/outside.js +80 -0
- package/.output/server/node_modules/semver/ranges/simplify.js +47 -0
- package/.output/server/node_modules/semver/ranges/subset.js +247 -0
- package/.output/server/node_modules/semver/ranges/to-comparators.js +8 -0
- package/.output/server/node_modules/semver/ranges/valid.js +11 -0
- package/.output/server/node_modules/shebang-command/index.js +19 -0
- package/.output/server/node_modules/shebang-command/package.json +34 -0
- package/.output/server/node_modules/shebang-regex/index.js +2 -0
- package/.output/server/node_modules/shebang-regex/package.json +35 -0
- package/.output/server/node_modules/signal-exit/index.js +202 -0
- package/.output/server/node_modules/signal-exit/package.json +38 -0
- package/.output/server/node_modules/signal-exit/signals.js +53 -0
- package/.output/server/node_modules/strip-final-newline/index.js +16 -0
- package/.output/server/node_modules/strip-final-newline/package.json +40 -0
- package/.output/server/node_modules/stubborn-fs/dist/attemptify.js +19 -0
- package/.output/server/node_modules/stubborn-fs/dist/constants.js +8 -0
- package/.output/server/node_modules/stubborn-fs/dist/handlers.js +36 -0
- package/.output/server/node_modules/stubborn-fs/dist/index.js +53 -0
- package/.output/server/node_modules/stubborn-fs/dist/retryify.js +46 -0
- package/.output/server/node_modules/stubborn-fs/dist/retryify_queue.js +62 -0
- package/.output/server/node_modules/stubborn-fs/package.json +28 -0
- package/.output/server/node_modules/tiny-readdir/dist/constants.js +9 -0
- package/.output/server/node_modules/tiny-readdir/dist/index.js +185 -0
- package/.output/server/node_modules/tiny-readdir/dist/utils.js +9 -0
- package/.output/server/node_modules/tiny-readdir/package.json +34 -0
- package/.output/server/node_modules/tinyexec/dist/main.js +578 -0
- package/.output/server/node_modules/tinyexec/package.json +66 -0
- package/.output/server/node_modules/tmp/lib/tmp.js +784 -0
- package/.output/server/node_modules/tmp/package.json +56 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +1 -0
- package/.output/server/node_modules/unhead/package.json +4 -4
- package/.output/server/node_modules/upath/build/code/upath.js +171 -0
- package/.output/server/node_modules/upath/package.json +60 -0
- package/.output/server/node_modules/watcher/dist/constants.js +16 -0
- package/.output/server/node_modules/watcher/dist/enums.js +35 -0
- package/.output/server/node_modules/watcher/dist/lazy_map_set.js +81 -0
- package/.output/server/node_modules/watcher/dist/utils.js +120 -0
- package/.output/server/node_modules/watcher/dist/watcher.js +396 -0
- package/.output/server/node_modules/watcher/dist/watcher_handler.js +248 -0
- package/.output/server/node_modules/watcher/dist/watcher_locker.js +139 -0
- package/.output/server/node_modules/watcher/dist/watcher_locks_resolver.js +42 -0
- package/.output/server/node_modules/watcher/dist/watcher_poller.js +116 -0
- package/.output/server/node_modules/watcher/dist/watcher_stats.js +29 -0
- package/.output/server/node_modules/watcher/package.json +37 -0
- package/.output/server/node_modules/which/package.json +43 -0
- package/.output/server/node_modules/which/which.js +125 -0
- package/.output/server/node_modules/wrappy/package.json +29 -0
- package/.output/server/node_modules/wrappy/wrappy.js +33 -0
- package/.output/server/node_modules/zod/lib/index.mjs +194 -48
- package/.output/server/node_modules/zod/package.json +6 -3
- package/.output/server/package.json +1 -1
- package/package.json +10 -8
- package/.output/public/_nuxt/1jbH28Ud.js +0 -1
- package/.output/public/_nuxt/BAsjE6c8.js +0 -69
- package/.output/public/_nuxt/D4AvvZ3p.js +0 -1
- package/.output/public/_nuxt/DcSK-0AR.js +0 -1
- package/.output/public/_nuxt/builds/meta/0ea9cf82-d280-4ae3-95c8-082f396c88c7.json +0 -1
- package/.output/public/_nuxt/entry.Df9XoxdB.css +0 -1
- package/.output/server/chunks/_/index.mjs +0 -229
- package/.output/server/chunks/_/index.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs +0 -6
- package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs +0 -6
- package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs +0 -6
- package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs +0 -6
- package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs +0 -7
- package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs +0 -6
- package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs +0 -6
- package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs.map +0 -1
- package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs +0 -6
- package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs.map +0 -1
- package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs +0 -6
- package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs.map +0 -1
- package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs +0 -6
- package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs.map +0 -1
- package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs +0 -6
- package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs.map +0 -1
- package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs +0 -6
- package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs.map +0 -1
- package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs +0 -6
- package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs.map +0 -1
- package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs +0 -6
- package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs.map +0 -1
- package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs +0 -6
- package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs.map +0 -1
- package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs +0 -6
- package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs.map +0 -1
- package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs +0 -6
- package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs.map +0 -1
- package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs +0 -6
- package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs.map +0 -1
- package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs +0 -6
- package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs.map +0 -1
- package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs +0 -6
- package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs.map +0 -1
- package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs +0 -6
- package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs.map +0 -1
- package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs +0 -6
- package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs.map +0 -1
- package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs +0 -6
- package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs.map +0 -1
- package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs +0 -6
- package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs.map +0 -1
- package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs +0 -6
- package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs.map +0 -1
- package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs +0 -6
- package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs.map +0 -1
- package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs +0 -6
- package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs.map +0 -1
- package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs +0 -6
- package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs.map +0 -1
- package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs +0 -6
- package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs.map +0 -1
- package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs +0 -6
- package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs.map +0 -1
- package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs +0 -6
- package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs.map +0 -1
- package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs +0 -6
- package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs.map +0 -1
- package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs +0 -6
- package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs.map +0 -1
- package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs +0 -6
- package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs.map +0 -1
- package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs +0 -6
- package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs +0 -39
- package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-BE32jcXw.mjs +0 -399
- package/.output/server/chunks/build/error-404-BE32jcXw.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs +0 -4
- package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs +0 -6
- package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs +0 -6
- package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-B3vPuajn.mjs +0 -80
- package/.output/server/chunks/build/error-500-B3vPuajn.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs +0 -4
- package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs +0 -6
- package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs +0 -6
- package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs.map +0 -1
- package/.output/server/chunks/build/index-C2merokO.mjs +0 -34
- package/.output/server/chunks/build/index-C2merokO.mjs.map +0 -1
- package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs +0 -6
- package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs.map +0 -1
- package/.output/server/chunks/build/server.mjs +0 -10495
- package/.output/server/chunks/build/server.mjs.map +0 -1
- package/.output/server/chunks/build/styles.mjs +0 -47
- package/.output/server/chunks/build/styles.mjs.map +0 -1
- package/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +0 -1996
- package/.output/server/node_modules/@iconify/vue/package.json +0 -65
- package/.output/server/node_modules/@trpc/client/dist/TRPCClientError-38f9a32a.mjs +0 -59
- package/.output/server/node_modules/@trpc/client/dist/httpBatchLink-d0f9eac9.mjs +0 -248
- package/.output/server/node_modules/@trpc/client/dist/httpUtils-b9d0cb48.mjs +0 -144
- package/.output/server/node_modules/@trpc/client/dist/index.mjs +0 -365
- package/.output/server/node_modules/@trpc/client/dist/links/httpLink.mjs +0 -62
- package/.output/server/node_modules/@trpc/client/dist/links/loggerLink.mjs +0 -173
- package/.output/server/node_modules/@trpc/client/dist/links/wsLink.mjs +0 -278
- package/.output/server/node_modules/@trpc/client/dist/splitLink-4c75f7be.mjs +0 -45
- package/.output/server/node_modules/@trpc/client/dist/transformResult-ace864b8.mjs +0 -58
- package/.output/server/node_modules/@trpc/client/package.json +0 -101
- package/.output/server/node_modules/@trpc/server/dist/TRPCError-98d44758.mjs +0 -39
- package/.output/server/node_modules/@trpc/server/dist/batchStreamFormatter-fc1ffb26.mjs +0 -30
- package/.output/server/node_modules/@trpc/server/dist/codes-c924c3db.mjs +0 -44
- package/.output/server/node_modules/@trpc/server/dist/config-d5fdbd39.mjs +0 -196
- package/.output/server/node_modules/@trpc/server/dist/contentType-9fd995d3.mjs +0 -52
- package/.output/server/node_modules/@trpc/server/dist/getCauseFromUnknown-2d66414a.mjs +0 -33
- package/.output/server/node_modules/@trpc/server/dist/http/index.mjs +0 -9
- package/.output/server/node_modules/@trpc/server/dist/index-f91d720c.mjs +0 -97
- package/.output/server/node_modules/@trpc/server/dist/observable/index.mjs +0 -147
- package/.output/server/node_modules/@trpc/server/dist/observable-ade1bad8.mjs +0 -81
- package/.output/server/node_modules/@trpc/server/dist/resolveHTTPResponse-2fc435bb.mjs +0 -291
- package/.output/server/node_modules/@trpc/server/dist/shared/index.mjs +0 -4
- package/.output/server/node_modules/@trpc/server/dist/transformTRPCResponse-1153b421.mjs +0 -53
- package/.output/server/node_modules/@vue-flow/background/dist/vue-flow-background.mjs +0 -126
- package/.output/server/node_modules/@vue-flow/background/package.json +0 -73
- package/.output/server/node_modules/@vue-flow/core/dist/vue-flow-core.mjs +0 -9873
- package/.output/server/node_modules/@vue-flow/core/package.json +0 -92
- package/.output/server/node_modules/@vue-flow/minimap/dist/vue-flow-minimap.mjs +0 -2953
- package/.output/server/node_modules/@vue-flow/minimap/package.json +0 -80
- package/.output/server/node_modules/nanoid/index.js +0 -46
- package/.output/server/node_modules/nanoid/package.json +0 -41
- package/.output/server/node_modules/nanoid/url-alphabet/index.js +0 -2
- package/.output/server/node_modules/pinia/dist/pinia.prod.cjs +0 -858
- package/.output/server/node_modules/pinia/package.json +0 -100
- package/.output/server/node_modules/vue-demi/lib/index.cjs +0 -29
- package/.output/server/node_modules/vue-demi/package.json +0 -47
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Options.js +0 -31
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Refs.js +0 -21
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +0 -14
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/index.js +0 -37
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/package.json +0 -1
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseDef.js +0 -164
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +0 -3
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +0 -25
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +0 -49
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +0 -5
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +0 -46
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +0 -7
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +0 -6
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +0 -6
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +0 -52
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +0 -21
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +0 -25
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +0 -16
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +0 -5
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +0 -10
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +0 -33
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +0 -52
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +0 -45
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +0 -20
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +0 -20
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +0 -57
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +0 -20
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +0 -324
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +0 -32
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +0 -5
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +0 -80
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +0 -3
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +0 -59
- package/.output/server/node_modules/zod-to-json-schema/package.json +0 -89
|
@@ -0,0 +1,1505 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnsupportedProtocolError = exports.ReadError = exports.TimeoutError = exports.UploadError = exports.CacheError = exports.HTTPError = exports.MaxRedirectsError = exports.RequestError = exports.setNonEnumerableProperties = exports.knownHookEvents = exports.withoutBody = exports.kIsNormalizedAlready = void 0;
|
|
4
|
+
const util_1 = require("util");
|
|
5
|
+
const stream_1 = require("stream");
|
|
6
|
+
const fs_1 = require("fs");
|
|
7
|
+
const url_1 = require("url");
|
|
8
|
+
const http = require("http");
|
|
9
|
+
const http_1 = require("http");
|
|
10
|
+
const https = require("https");
|
|
11
|
+
const http_timer_1 = require("@szmarczak/http-timer");
|
|
12
|
+
const cacheable_lookup_1 = require("cacheable-lookup");
|
|
13
|
+
const CacheableRequest = require("cacheable-request");
|
|
14
|
+
const decompressResponse = require("decompress-response");
|
|
15
|
+
// @ts-expect-error Missing types
|
|
16
|
+
const http2wrapper = require("http2-wrapper");
|
|
17
|
+
const lowercaseKeys = require("lowercase-keys");
|
|
18
|
+
const is_1 = require("@sindresorhus/is");
|
|
19
|
+
const get_body_size_1 = require("./utils/get-body-size");
|
|
20
|
+
const is_form_data_1 = require("./utils/is-form-data");
|
|
21
|
+
const proxy_events_1 = require("./utils/proxy-events");
|
|
22
|
+
const timed_out_1 = require("./utils/timed-out");
|
|
23
|
+
const url_to_options_1 = require("./utils/url-to-options");
|
|
24
|
+
const options_to_url_1 = require("./utils/options-to-url");
|
|
25
|
+
const weakable_map_1 = require("./utils/weakable-map");
|
|
26
|
+
const get_buffer_1 = require("./utils/get-buffer");
|
|
27
|
+
const dns_ip_version_1 = require("./utils/dns-ip-version");
|
|
28
|
+
const is_response_ok_1 = require("./utils/is-response-ok");
|
|
29
|
+
const deprecation_warning_1 = require("../utils/deprecation-warning");
|
|
30
|
+
const normalize_arguments_1 = require("../as-promise/normalize-arguments");
|
|
31
|
+
const calculate_retry_delay_1 = require("./calculate-retry-delay");
|
|
32
|
+
let globalDnsCache;
|
|
33
|
+
const kRequest = Symbol('request');
|
|
34
|
+
const kResponse = Symbol('response');
|
|
35
|
+
const kResponseSize = Symbol('responseSize');
|
|
36
|
+
const kDownloadedSize = Symbol('downloadedSize');
|
|
37
|
+
const kBodySize = Symbol('bodySize');
|
|
38
|
+
const kUploadedSize = Symbol('uploadedSize');
|
|
39
|
+
const kServerResponsesPiped = Symbol('serverResponsesPiped');
|
|
40
|
+
const kUnproxyEvents = Symbol('unproxyEvents');
|
|
41
|
+
const kIsFromCache = Symbol('isFromCache');
|
|
42
|
+
const kCancelTimeouts = Symbol('cancelTimeouts');
|
|
43
|
+
const kStartedReading = Symbol('startedReading');
|
|
44
|
+
const kStopReading = Symbol('stopReading');
|
|
45
|
+
const kTriggerRead = Symbol('triggerRead');
|
|
46
|
+
const kBody = Symbol('body');
|
|
47
|
+
const kJobs = Symbol('jobs');
|
|
48
|
+
const kOriginalResponse = Symbol('originalResponse');
|
|
49
|
+
const kRetryTimeout = Symbol('retryTimeout');
|
|
50
|
+
exports.kIsNormalizedAlready = Symbol('isNormalizedAlready');
|
|
51
|
+
const supportsBrotli = is_1.default.string(process.versions.brotli);
|
|
52
|
+
exports.withoutBody = new Set(['GET', 'HEAD']);
|
|
53
|
+
exports.knownHookEvents = [
|
|
54
|
+
'init',
|
|
55
|
+
'beforeRequest',
|
|
56
|
+
'beforeRedirect',
|
|
57
|
+
'beforeError',
|
|
58
|
+
'beforeRetry',
|
|
59
|
+
// Promise-Only
|
|
60
|
+
'afterResponse'
|
|
61
|
+
];
|
|
62
|
+
function validateSearchParameters(searchParameters) {
|
|
63
|
+
// eslint-disable-next-line guard-for-in
|
|
64
|
+
for (const key in searchParameters) {
|
|
65
|
+
const value = searchParameters[key];
|
|
66
|
+
if (!is_1.default.string(value) && !is_1.default.number(value) && !is_1.default.boolean(value) && !is_1.default.null_(value) && !is_1.default.undefined(value)) {
|
|
67
|
+
throw new TypeError(`The \`searchParams\` value '${String(value)}' must be a string, number, boolean or null`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function isClientRequest(clientRequest) {
|
|
72
|
+
return is_1.default.object(clientRequest) && !('statusCode' in clientRequest);
|
|
73
|
+
}
|
|
74
|
+
const cacheableStore = new weakable_map_1.default();
|
|
75
|
+
const waitForOpenFile = async (file) => new Promise((resolve, reject) => {
|
|
76
|
+
const onError = (error) => {
|
|
77
|
+
reject(error);
|
|
78
|
+
};
|
|
79
|
+
// Node.js 12 has incomplete types
|
|
80
|
+
if (!file.pending) {
|
|
81
|
+
resolve();
|
|
82
|
+
}
|
|
83
|
+
file.once('error', onError);
|
|
84
|
+
file.once('ready', () => {
|
|
85
|
+
file.off('error', onError);
|
|
86
|
+
resolve();
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
const redirectCodes = new Set([300, 301, 302, 303, 304, 307, 308]);
|
|
90
|
+
const nonEnumerableProperties = [
|
|
91
|
+
'context',
|
|
92
|
+
'body',
|
|
93
|
+
'json',
|
|
94
|
+
'form'
|
|
95
|
+
];
|
|
96
|
+
exports.setNonEnumerableProperties = (sources, to) => {
|
|
97
|
+
// Non enumerable properties shall not be merged
|
|
98
|
+
const properties = {};
|
|
99
|
+
for (const source of sources) {
|
|
100
|
+
if (!source) {
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
for (const name of nonEnumerableProperties) {
|
|
104
|
+
if (!(name in source)) {
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
properties[name] = {
|
|
108
|
+
writable: true,
|
|
109
|
+
configurable: true,
|
|
110
|
+
enumerable: false,
|
|
111
|
+
// @ts-expect-error TS doesn't see the check above
|
|
112
|
+
value: source[name]
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
Object.defineProperties(to, properties);
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
An error to be thrown when a request fails.
|
|
120
|
+
Contains a `code` property with error class code, like `ECONNREFUSED`.
|
|
121
|
+
*/
|
|
122
|
+
class RequestError extends Error {
|
|
123
|
+
constructor(message, error, self) {
|
|
124
|
+
var _a, _b;
|
|
125
|
+
super(message);
|
|
126
|
+
Error.captureStackTrace(this, this.constructor);
|
|
127
|
+
this.name = 'RequestError';
|
|
128
|
+
this.code = (_a = error.code) !== null && _a !== void 0 ? _a : 'ERR_GOT_REQUEST_ERROR';
|
|
129
|
+
if (self instanceof Request) {
|
|
130
|
+
Object.defineProperty(this, 'request', {
|
|
131
|
+
enumerable: false,
|
|
132
|
+
value: self
|
|
133
|
+
});
|
|
134
|
+
Object.defineProperty(this, 'response', {
|
|
135
|
+
enumerable: false,
|
|
136
|
+
value: self[kResponse]
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(this, 'options', {
|
|
139
|
+
// This fails because of TS 3.7.2 useDefineForClassFields
|
|
140
|
+
// Ref: https://github.com/microsoft/TypeScript/issues/34972
|
|
141
|
+
enumerable: false,
|
|
142
|
+
value: self.options
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
Object.defineProperty(this, 'options', {
|
|
147
|
+
// This fails because of TS 3.7.2 useDefineForClassFields
|
|
148
|
+
// Ref: https://github.com/microsoft/TypeScript/issues/34972
|
|
149
|
+
enumerable: false,
|
|
150
|
+
value: self
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
this.timings = (_b = this.request) === null || _b === void 0 ? void 0 : _b.timings;
|
|
154
|
+
// Recover the original stacktrace
|
|
155
|
+
if (is_1.default.string(error.stack) && is_1.default.string(this.stack)) {
|
|
156
|
+
const indexOfMessage = this.stack.indexOf(this.message) + this.message.length;
|
|
157
|
+
const thisStackTrace = this.stack.slice(indexOfMessage).split('\n').reverse();
|
|
158
|
+
const errorStackTrace = error.stack.slice(error.stack.indexOf(error.message) + error.message.length).split('\n').reverse();
|
|
159
|
+
// Remove duplicated traces
|
|
160
|
+
while (errorStackTrace.length !== 0 && errorStackTrace[0] === thisStackTrace[0]) {
|
|
161
|
+
thisStackTrace.shift();
|
|
162
|
+
}
|
|
163
|
+
this.stack = `${this.stack.slice(0, indexOfMessage)}${thisStackTrace.reverse().join('\n')}${errorStackTrace.reverse().join('\n')}`;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.RequestError = RequestError;
|
|
168
|
+
/**
|
|
169
|
+
An error to be thrown when the server redirects you more than ten times.
|
|
170
|
+
Includes a `response` property.
|
|
171
|
+
*/
|
|
172
|
+
class MaxRedirectsError extends RequestError {
|
|
173
|
+
constructor(request) {
|
|
174
|
+
super(`Redirected ${request.options.maxRedirects} times. Aborting.`, {}, request);
|
|
175
|
+
this.name = 'MaxRedirectsError';
|
|
176
|
+
this.code = 'ERR_TOO_MANY_REDIRECTS';
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
exports.MaxRedirectsError = MaxRedirectsError;
|
|
180
|
+
/**
|
|
181
|
+
An error to be thrown when the server response code is not 2xx nor 3xx if `options.followRedirect` is `true`, but always except for 304.
|
|
182
|
+
Includes a `response` property.
|
|
183
|
+
*/
|
|
184
|
+
class HTTPError extends RequestError {
|
|
185
|
+
constructor(response) {
|
|
186
|
+
super(`Response code ${response.statusCode} (${response.statusMessage})`, {}, response.request);
|
|
187
|
+
this.name = 'HTTPError';
|
|
188
|
+
this.code = 'ERR_NON_2XX_3XX_RESPONSE';
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.HTTPError = HTTPError;
|
|
192
|
+
/**
|
|
193
|
+
An error to be thrown when a cache method fails.
|
|
194
|
+
For example, if the database goes down or there's a filesystem error.
|
|
195
|
+
*/
|
|
196
|
+
class CacheError extends RequestError {
|
|
197
|
+
constructor(error, request) {
|
|
198
|
+
super(error.message, error, request);
|
|
199
|
+
this.name = 'CacheError';
|
|
200
|
+
this.code = this.code === 'ERR_GOT_REQUEST_ERROR' ? 'ERR_CACHE_ACCESS' : this.code;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
exports.CacheError = CacheError;
|
|
204
|
+
/**
|
|
205
|
+
An error to be thrown when the request body is a stream and an error occurs while reading from that stream.
|
|
206
|
+
*/
|
|
207
|
+
class UploadError extends RequestError {
|
|
208
|
+
constructor(error, request) {
|
|
209
|
+
super(error.message, error, request);
|
|
210
|
+
this.name = 'UploadError';
|
|
211
|
+
this.code = this.code === 'ERR_GOT_REQUEST_ERROR' ? 'ERR_UPLOAD' : this.code;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
exports.UploadError = UploadError;
|
|
215
|
+
/**
|
|
216
|
+
An error to be thrown when the request is aborted due to a timeout.
|
|
217
|
+
Includes an `event` and `timings` property.
|
|
218
|
+
*/
|
|
219
|
+
class TimeoutError extends RequestError {
|
|
220
|
+
constructor(error, timings, request) {
|
|
221
|
+
super(error.message, error, request);
|
|
222
|
+
this.name = 'TimeoutError';
|
|
223
|
+
this.event = error.event;
|
|
224
|
+
this.timings = timings;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.TimeoutError = TimeoutError;
|
|
228
|
+
/**
|
|
229
|
+
An error to be thrown when reading from response stream fails.
|
|
230
|
+
*/
|
|
231
|
+
class ReadError extends RequestError {
|
|
232
|
+
constructor(error, request) {
|
|
233
|
+
super(error.message, error, request);
|
|
234
|
+
this.name = 'ReadError';
|
|
235
|
+
this.code = this.code === 'ERR_GOT_REQUEST_ERROR' ? 'ERR_READING_RESPONSE_STREAM' : this.code;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
exports.ReadError = ReadError;
|
|
239
|
+
/**
|
|
240
|
+
An error to be thrown when given an unsupported protocol.
|
|
241
|
+
*/
|
|
242
|
+
class UnsupportedProtocolError extends RequestError {
|
|
243
|
+
constructor(options) {
|
|
244
|
+
super(`Unsupported protocol "${options.url.protocol}"`, {}, options);
|
|
245
|
+
this.name = 'UnsupportedProtocolError';
|
|
246
|
+
this.code = 'ERR_UNSUPPORTED_PROTOCOL';
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
exports.UnsupportedProtocolError = UnsupportedProtocolError;
|
|
250
|
+
const proxiedRequestEvents = [
|
|
251
|
+
'socket',
|
|
252
|
+
'connect',
|
|
253
|
+
'continue',
|
|
254
|
+
'information',
|
|
255
|
+
'upgrade',
|
|
256
|
+
'timeout'
|
|
257
|
+
];
|
|
258
|
+
class Request extends stream_1.Duplex {
|
|
259
|
+
constructor(url, options = {}, defaults) {
|
|
260
|
+
super({
|
|
261
|
+
// This must be false, to enable throwing after destroy
|
|
262
|
+
// It is used for retry logic in Promise API
|
|
263
|
+
autoDestroy: false,
|
|
264
|
+
// It needs to be zero because we're just proxying the data to another stream
|
|
265
|
+
highWaterMark: 0
|
|
266
|
+
});
|
|
267
|
+
this[kDownloadedSize] = 0;
|
|
268
|
+
this[kUploadedSize] = 0;
|
|
269
|
+
this.requestInitialized = false;
|
|
270
|
+
this[kServerResponsesPiped] = new Set();
|
|
271
|
+
this.redirects = [];
|
|
272
|
+
this[kStopReading] = false;
|
|
273
|
+
this[kTriggerRead] = false;
|
|
274
|
+
this[kJobs] = [];
|
|
275
|
+
this.retryCount = 0;
|
|
276
|
+
// TODO: Remove this when targeting Node.js >= 12
|
|
277
|
+
this._progressCallbacks = [];
|
|
278
|
+
const unlockWrite = () => this._unlockWrite();
|
|
279
|
+
const lockWrite = () => this._lockWrite();
|
|
280
|
+
this.on('pipe', (source) => {
|
|
281
|
+
source.prependListener('data', unlockWrite);
|
|
282
|
+
source.on('data', lockWrite);
|
|
283
|
+
source.prependListener('end', unlockWrite);
|
|
284
|
+
source.on('end', lockWrite);
|
|
285
|
+
});
|
|
286
|
+
this.on('unpipe', (source) => {
|
|
287
|
+
source.off('data', unlockWrite);
|
|
288
|
+
source.off('data', lockWrite);
|
|
289
|
+
source.off('end', unlockWrite);
|
|
290
|
+
source.off('end', lockWrite);
|
|
291
|
+
});
|
|
292
|
+
this.on('pipe', source => {
|
|
293
|
+
if (source instanceof http_1.IncomingMessage) {
|
|
294
|
+
this.options.headers = {
|
|
295
|
+
...source.headers,
|
|
296
|
+
...this.options.headers
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
const { json, body, form } = options;
|
|
301
|
+
if (json || body || form) {
|
|
302
|
+
this._lockWrite();
|
|
303
|
+
}
|
|
304
|
+
if (exports.kIsNormalizedAlready in options) {
|
|
305
|
+
this.options = options;
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
try {
|
|
309
|
+
// @ts-expect-error Common TypeScript bug saying that `this.constructor` is not accessible
|
|
310
|
+
this.options = this.constructor.normalizeArguments(url, options, defaults);
|
|
311
|
+
}
|
|
312
|
+
catch (error) {
|
|
313
|
+
// TODO: Move this to `_destroy()`
|
|
314
|
+
if (is_1.default.nodeStream(options.body)) {
|
|
315
|
+
options.body.destroy();
|
|
316
|
+
}
|
|
317
|
+
this.destroy(error);
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
(async () => {
|
|
322
|
+
var _a;
|
|
323
|
+
try {
|
|
324
|
+
if (this.options.body instanceof fs_1.ReadStream) {
|
|
325
|
+
await waitForOpenFile(this.options.body);
|
|
326
|
+
}
|
|
327
|
+
const { url: normalizedURL } = this.options;
|
|
328
|
+
if (!normalizedURL) {
|
|
329
|
+
throw new TypeError('Missing `url` property');
|
|
330
|
+
}
|
|
331
|
+
this.requestUrl = normalizedURL.toString();
|
|
332
|
+
decodeURI(this.requestUrl);
|
|
333
|
+
await this._finalizeBody();
|
|
334
|
+
await this._makeRequest();
|
|
335
|
+
if (this.destroyed) {
|
|
336
|
+
(_a = this[kRequest]) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
// Queued writes etc.
|
|
340
|
+
for (const job of this[kJobs]) {
|
|
341
|
+
job();
|
|
342
|
+
}
|
|
343
|
+
// Prevent memory leak
|
|
344
|
+
this[kJobs].length = 0;
|
|
345
|
+
this.requestInitialized = true;
|
|
346
|
+
}
|
|
347
|
+
catch (error) {
|
|
348
|
+
if (error instanceof RequestError) {
|
|
349
|
+
this._beforeError(error);
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
// This is a workaround for https://github.com/nodejs/node/issues/33335
|
|
353
|
+
if (!this.destroyed) {
|
|
354
|
+
this.destroy(error);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
})();
|
|
358
|
+
}
|
|
359
|
+
static normalizeArguments(url, options, defaults) {
|
|
360
|
+
var _a, _b, _c, _d, _e;
|
|
361
|
+
const rawOptions = options;
|
|
362
|
+
if (is_1.default.object(url) && !is_1.default.urlInstance(url)) {
|
|
363
|
+
options = { ...defaults, ...url, ...options };
|
|
364
|
+
}
|
|
365
|
+
else {
|
|
366
|
+
if (url && options && options.url !== undefined) {
|
|
367
|
+
throw new TypeError('The `url` option is mutually exclusive with the `input` argument');
|
|
368
|
+
}
|
|
369
|
+
options = { ...defaults, ...options };
|
|
370
|
+
if (url !== undefined) {
|
|
371
|
+
options.url = url;
|
|
372
|
+
}
|
|
373
|
+
if (is_1.default.urlInstance(options.url)) {
|
|
374
|
+
options.url = new url_1.URL(options.url.toString());
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
// TODO: Deprecate URL options in Got 12.
|
|
378
|
+
// Support extend-specific options
|
|
379
|
+
if (options.cache === false) {
|
|
380
|
+
options.cache = undefined;
|
|
381
|
+
}
|
|
382
|
+
if (options.dnsCache === false) {
|
|
383
|
+
options.dnsCache = undefined;
|
|
384
|
+
}
|
|
385
|
+
// Nice type assertions
|
|
386
|
+
is_1.assert.any([is_1.default.string, is_1.default.undefined], options.method);
|
|
387
|
+
is_1.assert.any([is_1.default.object, is_1.default.undefined], options.headers);
|
|
388
|
+
is_1.assert.any([is_1.default.string, is_1.default.urlInstance, is_1.default.undefined], options.prefixUrl);
|
|
389
|
+
is_1.assert.any([is_1.default.object, is_1.default.undefined], options.cookieJar);
|
|
390
|
+
is_1.assert.any([is_1.default.object, is_1.default.string, is_1.default.undefined], options.searchParams);
|
|
391
|
+
is_1.assert.any([is_1.default.object, is_1.default.string, is_1.default.undefined], options.cache);
|
|
392
|
+
is_1.assert.any([is_1.default.object, is_1.default.number, is_1.default.undefined], options.timeout);
|
|
393
|
+
is_1.assert.any([is_1.default.object, is_1.default.undefined], options.context);
|
|
394
|
+
is_1.assert.any([is_1.default.object, is_1.default.undefined], options.hooks);
|
|
395
|
+
is_1.assert.any([is_1.default.boolean, is_1.default.undefined], options.decompress);
|
|
396
|
+
is_1.assert.any([is_1.default.boolean, is_1.default.undefined], options.ignoreInvalidCookies);
|
|
397
|
+
is_1.assert.any([is_1.default.boolean, is_1.default.undefined], options.followRedirect);
|
|
398
|
+
is_1.assert.any([is_1.default.number, is_1.default.undefined], options.maxRedirects);
|
|
399
|
+
is_1.assert.any([is_1.default.boolean, is_1.default.undefined], options.throwHttpErrors);
|
|
400
|
+
is_1.assert.any([is_1.default.boolean, is_1.default.undefined], options.http2);
|
|
401
|
+
is_1.assert.any([is_1.default.boolean, is_1.default.undefined], options.allowGetBody);
|
|
402
|
+
is_1.assert.any([is_1.default.string, is_1.default.undefined], options.localAddress);
|
|
403
|
+
is_1.assert.any([dns_ip_version_1.isDnsLookupIpVersion, is_1.default.undefined], options.dnsLookupIpVersion);
|
|
404
|
+
is_1.assert.any([is_1.default.object, is_1.default.undefined], options.https);
|
|
405
|
+
is_1.assert.any([is_1.default.boolean, is_1.default.undefined], options.rejectUnauthorized);
|
|
406
|
+
if (options.https) {
|
|
407
|
+
is_1.assert.any([is_1.default.boolean, is_1.default.undefined], options.https.rejectUnauthorized);
|
|
408
|
+
is_1.assert.any([is_1.default.function_, is_1.default.undefined], options.https.checkServerIdentity);
|
|
409
|
+
is_1.assert.any([is_1.default.string, is_1.default.object, is_1.default.array, is_1.default.undefined], options.https.certificateAuthority);
|
|
410
|
+
is_1.assert.any([is_1.default.string, is_1.default.object, is_1.default.array, is_1.default.undefined], options.https.key);
|
|
411
|
+
is_1.assert.any([is_1.default.string, is_1.default.object, is_1.default.array, is_1.default.undefined], options.https.certificate);
|
|
412
|
+
is_1.assert.any([is_1.default.string, is_1.default.undefined], options.https.passphrase);
|
|
413
|
+
is_1.assert.any([is_1.default.string, is_1.default.buffer, is_1.default.array, is_1.default.undefined], options.https.pfx);
|
|
414
|
+
}
|
|
415
|
+
is_1.assert.any([is_1.default.object, is_1.default.undefined], options.cacheOptions);
|
|
416
|
+
// `options.method`
|
|
417
|
+
if (is_1.default.string(options.method)) {
|
|
418
|
+
options.method = options.method.toUpperCase();
|
|
419
|
+
}
|
|
420
|
+
else {
|
|
421
|
+
options.method = 'GET';
|
|
422
|
+
}
|
|
423
|
+
// `options.headers`
|
|
424
|
+
if (options.headers === (defaults === null || defaults === void 0 ? void 0 : defaults.headers)) {
|
|
425
|
+
options.headers = { ...options.headers };
|
|
426
|
+
}
|
|
427
|
+
else {
|
|
428
|
+
options.headers = lowercaseKeys({ ...(defaults === null || defaults === void 0 ? void 0 : defaults.headers), ...options.headers });
|
|
429
|
+
}
|
|
430
|
+
// Disallow legacy `url.Url`
|
|
431
|
+
if ('slashes' in options) {
|
|
432
|
+
throw new TypeError('The legacy `url.Url` has been deprecated. Use `URL` instead.');
|
|
433
|
+
}
|
|
434
|
+
// `options.auth`
|
|
435
|
+
if ('auth' in options) {
|
|
436
|
+
throw new TypeError('Parameter `auth` is deprecated. Use `username` / `password` instead.');
|
|
437
|
+
}
|
|
438
|
+
// `options.searchParams`
|
|
439
|
+
if ('searchParams' in options) {
|
|
440
|
+
if (options.searchParams && options.searchParams !== (defaults === null || defaults === void 0 ? void 0 : defaults.searchParams)) {
|
|
441
|
+
let searchParameters;
|
|
442
|
+
if (is_1.default.string(options.searchParams) || (options.searchParams instanceof url_1.URLSearchParams)) {
|
|
443
|
+
searchParameters = new url_1.URLSearchParams(options.searchParams);
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
validateSearchParameters(options.searchParams);
|
|
447
|
+
searchParameters = new url_1.URLSearchParams();
|
|
448
|
+
// eslint-disable-next-line guard-for-in
|
|
449
|
+
for (const key in options.searchParams) {
|
|
450
|
+
const value = options.searchParams[key];
|
|
451
|
+
if (value === null) {
|
|
452
|
+
searchParameters.append(key, '');
|
|
453
|
+
}
|
|
454
|
+
else if (value !== undefined) {
|
|
455
|
+
searchParameters.append(key, value);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
// `normalizeArguments()` is also used to merge options
|
|
460
|
+
(_a = defaults === null || defaults === void 0 ? void 0 : defaults.searchParams) === null || _a === void 0 ? void 0 : _a.forEach((value, key) => {
|
|
461
|
+
// Only use default if one isn't already defined
|
|
462
|
+
if (!searchParameters.has(key)) {
|
|
463
|
+
searchParameters.append(key, value);
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
options.searchParams = searchParameters;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
// `options.username` & `options.password`
|
|
470
|
+
options.username = (_b = options.username) !== null && _b !== void 0 ? _b : '';
|
|
471
|
+
options.password = (_c = options.password) !== null && _c !== void 0 ? _c : '';
|
|
472
|
+
// `options.prefixUrl` & `options.url`
|
|
473
|
+
if (is_1.default.undefined(options.prefixUrl)) {
|
|
474
|
+
options.prefixUrl = (_d = defaults === null || defaults === void 0 ? void 0 : defaults.prefixUrl) !== null && _d !== void 0 ? _d : '';
|
|
475
|
+
}
|
|
476
|
+
else {
|
|
477
|
+
options.prefixUrl = options.prefixUrl.toString();
|
|
478
|
+
if (options.prefixUrl !== '' && !options.prefixUrl.endsWith('/')) {
|
|
479
|
+
options.prefixUrl += '/';
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
if (is_1.default.string(options.url)) {
|
|
483
|
+
if (options.url.startsWith('/')) {
|
|
484
|
+
throw new Error('`input` must not start with a slash when using `prefixUrl`');
|
|
485
|
+
}
|
|
486
|
+
options.url = options_to_url_1.default(options.prefixUrl + options.url, options);
|
|
487
|
+
}
|
|
488
|
+
else if ((is_1.default.undefined(options.url) && options.prefixUrl !== '') || options.protocol) {
|
|
489
|
+
options.url = options_to_url_1.default(options.prefixUrl, options);
|
|
490
|
+
}
|
|
491
|
+
if (options.url) {
|
|
492
|
+
if ('port' in options) {
|
|
493
|
+
delete options.port;
|
|
494
|
+
}
|
|
495
|
+
// Make it possible to change `options.prefixUrl`
|
|
496
|
+
let { prefixUrl } = options;
|
|
497
|
+
Object.defineProperty(options, 'prefixUrl', {
|
|
498
|
+
set: (value) => {
|
|
499
|
+
const url = options.url;
|
|
500
|
+
if (!url.href.startsWith(value)) {
|
|
501
|
+
throw new Error(`Cannot change \`prefixUrl\` from ${prefixUrl} to ${value}: ${url.href}`);
|
|
502
|
+
}
|
|
503
|
+
options.url = new url_1.URL(value + url.href.slice(prefixUrl.length));
|
|
504
|
+
prefixUrl = value;
|
|
505
|
+
},
|
|
506
|
+
get: () => prefixUrl
|
|
507
|
+
});
|
|
508
|
+
// Support UNIX sockets
|
|
509
|
+
let { protocol } = options.url;
|
|
510
|
+
if (protocol === 'unix:') {
|
|
511
|
+
protocol = 'http:';
|
|
512
|
+
options.url = new url_1.URL(`http://unix${options.url.pathname}${options.url.search}`);
|
|
513
|
+
}
|
|
514
|
+
// Set search params
|
|
515
|
+
if (options.searchParams) {
|
|
516
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
517
|
+
options.url.search = options.searchParams.toString();
|
|
518
|
+
}
|
|
519
|
+
// Protocol check
|
|
520
|
+
if (protocol !== 'http:' && protocol !== 'https:') {
|
|
521
|
+
throw new UnsupportedProtocolError(options);
|
|
522
|
+
}
|
|
523
|
+
// Update `username`
|
|
524
|
+
if (options.username === '') {
|
|
525
|
+
options.username = options.url.username;
|
|
526
|
+
}
|
|
527
|
+
else {
|
|
528
|
+
options.url.username = options.username;
|
|
529
|
+
}
|
|
530
|
+
// Update `password`
|
|
531
|
+
if (options.password === '') {
|
|
532
|
+
options.password = options.url.password;
|
|
533
|
+
}
|
|
534
|
+
else {
|
|
535
|
+
options.url.password = options.password;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
// `options.cookieJar`
|
|
539
|
+
const { cookieJar } = options;
|
|
540
|
+
if (cookieJar) {
|
|
541
|
+
let { setCookie, getCookieString } = cookieJar;
|
|
542
|
+
is_1.assert.function_(setCookie);
|
|
543
|
+
is_1.assert.function_(getCookieString);
|
|
544
|
+
/* istanbul ignore next: Horrible `tough-cookie` v3 check */
|
|
545
|
+
if (setCookie.length === 4 && getCookieString.length === 0) {
|
|
546
|
+
setCookie = util_1.promisify(setCookie.bind(options.cookieJar));
|
|
547
|
+
getCookieString = util_1.promisify(getCookieString.bind(options.cookieJar));
|
|
548
|
+
options.cookieJar = {
|
|
549
|
+
setCookie,
|
|
550
|
+
getCookieString: getCookieString
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
// `options.cache`
|
|
555
|
+
const { cache } = options;
|
|
556
|
+
if (cache) {
|
|
557
|
+
if (!cacheableStore.has(cache)) {
|
|
558
|
+
cacheableStore.set(cache, new CacheableRequest(((requestOptions, handler) => {
|
|
559
|
+
const result = requestOptions[kRequest](requestOptions, handler);
|
|
560
|
+
// TODO: remove this when `cacheable-request` supports async request functions.
|
|
561
|
+
if (is_1.default.promise(result)) {
|
|
562
|
+
// @ts-expect-error
|
|
563
|
+
// We only need to implement the error handler in order to support HTTP2 caching.
|
|
564
|
+
// The result will be a promise anyway.
|
|
565
|
+
result.once = (event, handler) => {
|
|
566
|
+
if (event === 'error') {
|
|
567
|
+
result.catch(handler);
|
|
568
|
+
}
|
|
569
|
+
else if (event === 'abort') {
|
|
570
|
+
// The empty catch is needed here in case when
|
|
571
|
+
// it rejects before it's `await`ed in `_makeRequest`.
|
|
572
|
+
(async () => {
|
|
573
|
+
try {
|
|
574
|
+
const request = (await result);
|
|
575
|
+
request.once('abort', handler);
|
|
576
|
+
}
|
|
577
|
+
catch (_a) { }
|
|
578
|
+
})();
|
|
579
|
+
}
|
|
580
|
+
else {
|
|
581
|
+
/* istanbul ignore next: safety check */
|
|
582
|
+
throw new Error(`Unknown HTTP2 promise event: ${event}`);
|
|
583
|
+
}
|
|
584
|
+
return result;
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
return result;
|
|
588
|
+
}), cache));
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
// `options.cacheOptions`
|
|
592
|
+
options.cacheOptions = { ...options.cacheOptions };
|
|
593
|
+
// `options.dnsCache`
|
|
594
|
+
if (options.dnsCache === true) {
|
|
595
|
+
if (!globalDnsCache) {
|
|
596
|
+
globalDnsCache = new cacheable_lookup_1.default();
|
|
597
|
+
}
|
|
598
|
+
options.dnsCache = globalDnsCache;
|
|
599
|
+
}
|
|
600
|
+
else if (!is_1.default.undefined(options.dnsCache) && !options.dnsCache.lookup) {
|
|
601
|
+
throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${is_1.default(options.dnsCache)}`);
|
|
602
|
+
}
|
|
603
|
+
// `options.timeout`
|
|
604
|
+
if (is_1.default.number(options.timeout)) {
|
|
605
|
+
options.timeout = { request: options.timeout };
|
|
606
|
+
}
|
|
607
|
+
else if (defaults && options.timeout !== defaults.timeout) {
|
|
608
|
+
options.timeout = {
|
|
609
|
+
...defaults.timeout,
|
|
610
|
+
...options.timeout
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
else {
|
|
614
|
+
options.timeout = { ...options.timeout };
|
|
615
|
+
}
|
|
616
|
+
// `options.context`
|
|
617
|
+
if (!options.context) {
|
|
618
|
+
options.context = {};
|
|
619
|
+
}
|
|
620
|
+
// `options.hooks`
|
|
621
|
+
const areHooksDefault = options.hooks === (defaults === null || defaults === void 0 ? void 0 : defaults.hooks);
|
|
622
|
+
options.hooks = { ...options.hooks };
|
|
623
|
+
for (const event of exports.knownHookEvents) {
|
|
624
|
+
if (event in options.hooks) {
|
|
625
|
+
if (is_1.default.array(options.hooks[event])) {
|
|
626
|
+
// See https://github.com/microsoft/TypeScript/issues/31445#issuecomment-576929044
|
|
627
|
+
options.hooks[event] = [...options.hooks[event]];
|
|
628
|
+
}
|
|
629
|
+
else {
|
|
630
|
+
throw new TypeError(`Parameter \`${event}\` must be an Array, got ${is_1.default(options.hooks[event])}`);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
else {
|
|
634
|
+
options.hooks[event] = [];
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
if (defaults && !areHooksDefault) {
|
|
638
|
+
for (const event of exports.knownHookEvents) {
|
|
639
|
+
const defaultHooks = defaults.hooks[event];
|
|
640
|
+
if (defaultHooks.length > 0) {
|
|
641
|
+
// See https://github.com/microsoft/TypeScript/issues/31445#issuecomment-576929044
|
|
642
|
+
options.hooks[event] = [
|
|
643
|
+
...defaults.hooks[event],
|
|
644
|
+
...options.hooks[event]
|
|
645
|
+
];
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
// DNS options
|
|
650
|
+
if ('family' in options) {
|
|
651
|
+
deprecation_warning_1.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"');
|
|
652
|
+
}
|
|
653
|
+
// HTTPS options
|
|
654
|
+
if (defaults === null || defaults === void 0 ? void 0 : defaults.https) {
|
|
655
|
+
options.https = { ...defaults.https, ...options.https };
|
|
656
|
+
}
|
|
657
|
+
if ('rejectUnauthorized' in options) {
|
|
658
|
+
deprecation_warning_1.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"');
|
|
659
|
+
}
|
|
660
|
+
if ('checkServerIdentity' in options) {
|
|
661
|
+
deprecation_warning_1.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"');
|
|
662
|
+
}
|
|
663
|
+
if ('ca' in options) {
|
|
664
|
+
deprecation_warning_1.default('"options.ca" was never documented, please use "options.https.certificateAuthority"');
|
|
665
|
+
}
|
|
666
|
+
if ('key' in options) {
|
|
667
|
+
deprecation_warning_1.default('"options.key" was never documented, please use "options.https.key"');
|
|
668
|
+
}
|
|
669
|
+
if ('cert' in options) {
|
|
670
|
+
deprecation_warning_1.default('"options.cert" was never documented, please use "options.https.certificate"');
|
|
671
|
+
}
|
|
672
|
+
if ('passphrase' in options) {
|
|
673
|
+
deprecation_warning_1.default('"options.passphrase" was never documented, please use "options.https.passphrase"');
|
|
674
|
+
}
|
|
675
|
+
if ('pfx' in options) {
|
|
676
|
+
deprecation_warning_1.default('"options.pfx" was never documented, please use "options.https.pfx"');
|
|
677
|
+
}
|
|
678
|
+
// Other options
|
|
679
|
+
if ('followRedirects' in options) {
|
|
680
|
+
throw new TypeError('The `followRedirects` option does not exist. Use `followRedirect` instead.');
|
|
681
|
+
}
|
|
682
|
+
if (options.agent) {
|
|
683
|
+
for (const key in options.agent) {
|
|
684
|
+
if (key !== 'http' && key !== 'https' && key !== 'http2') {
|
|
685
|
+
throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${key}\``);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
options.maxRedirects = (_e = options.maxRedirects) !== null && _e !== void 0 ? _e : 0;
|
|
690
|
+
// Set non-enumerable properties
|
|
691
|
+
exports.setNonEnumerableProperties([defaults, rawOptions], options);
|
|
692
|
+
return normalize_arguments_1.default(options, defaults);
|
|
693
|
+
}
|
|
694
|
+
_lockWrite() {
|
|
695
|
+
const onLockedWrite = () => {
|
|
696
|
+
throw new TypeError('The payload has been already provided');
|
|
697
|
+
};
|
|
698
|
+
this.write = onLockedWrite;
|
|
699
|
+
this.end = onLockedWrite;
|
|
700
|
+
}
|
|
701
|
+
_unlockWrite() {
|
|
702
|
+
this.write = super.write;
|
|
703
|
+
this.end = super.end;
|
|
704
|
+
}
|
|
705
|
+
async _finalizeBody() {
|
|
706
|
+
const { options } = this;
|
|
707
|
+
const { headers } = options;
|
|
708
|
+
const isForm = !is_1.default.undefined(options.form);
|
|
709
|
+
const isJSON = !is_1.default.undefined(options.json);
|
|
710
|
+
const isBody = !is_1.default.undefined(options.body);
|
|
711
|
+
const hasPayload = isForm || isJSON || isBody;
|
|
712
|
+
const cannotHaveBody = exports.withoutBody.has(options.method) && !(options.method === 'GET' && options.allowGetBody);
|
|
713
|
+
this._cannotHaveBody = cannotHaveBody;
|
|
714
|
+
if (hasPayload) {
|
|
715
|
+
if (cannotHaveBody) {
|
|
716
|
+
throw new TypeError(`The \`${options.method}\` method cannot be used with a body`);
|
|
717
|
+
}
|
|
718
|
+
if ([isBody, isForm, isJSON].filter(isTrue => isTrue).length > 1) {
|
|
719
|
+
throw new TypeError('The `body`, `json` and `form` options are mutually exclusive');
|
|
720
|
+
}
|
|
721
|
+
if (isBody &&
|
|
722
|
+
!(options.body instanceof stream_1.Readable) &&
|
|
723
|
+
!is_1.default.string(options.body) &&
|
|
724
|
+
!is_1.default.buffer(options.body) &&
|
|
725
|
+
!is_form_data_1.default(options.body)) {
|
|
726
|
+
throw new TypeError('The `body` option must be a stream.Readable, string or Buffer');
|
|
727
|
+
}
|
|
728
|
+
if (isForm && !is_1.default.object(options.form)) {
|
|
729
|
+
throw new TypeError('The `form` option must be an Object');
|
|
730
|
+
}
|
|
731
|
+
{
|
|
732
|
+
// Serialize body
|
|
733
|
+
const noContentType = !is_1.default.string(headers['content-type']);
|
|
734
|
+
if (isBody) {
|
|
735
|
+
// Special case for https://github.com/form-data/form-data
|
|
736
|
+
if (is_form_data_1.default(options.body) && noContentType) {
|
|
737
|
+
headers['content-type'] = `multipart/form-data; boundary=${options.body.getBoundary()}`;
|
|
738
|
+
}
|
|
739
|
+
this[kBody] = options.body;
|
|
740
|
+
}
|
|
741
|
+
else if (isForm) {
|
|
742
|
+
if (noContentType) {
|
|
743
|
+
headers['content-type'] = 'application/x-www-form-urlencoded';
|
|
744
|
+
}
|
|
745
|
+
this[kBody] = (new url_1.URLSearchParams(options.form)).toString();
|
|
746
|
+
}
|
|
747
|
+
else {
|
|
748
|
+
if (noContentType) {
|
|
749
|
+
headers['content-type'] = 'application/json';
|
|
750
|
+
}
|
|
751
|
+
this[kBody] = options.stringifyJson(options.json);
|
|
752
|
+
}
|
|
753
|
+
const uploadBodySize = await get_body_size_1.default(this[kBody], options.headers);
|
|
754
|
+
// See https://tools.ietf.org/html/rfc7230#section-3.3.2
|
|
755
|
+
// A user agent SHOULD send a Content-Length in a request message when
|
|
756
|
+
// no Transfer-Encoding is sent and the request method defines a meaning
|
|
757
|
+
// for an enclosed payload body. For example, a Content-Length header
|
|
758
|
+
// field is normally sent in a POST request even when the value is 0
|
|
759
|
+
// (indicating an empty payload body). A user agent SHOULD NOT send a
|
|
760
|
+
// Content-Length header field when the request message does not contain
|
|
761
|
+
// a payload body and the method semantics do not anticipate such a
|
|
762
|
+
// body.
|
|
763
|
+
if (is_1.default.undefined(headers['content-length']) && is_1.default.undefined(headers['transfer-encoding'])) {
|
|
764
|
+
if (!cannotHaveBody && !is_1.default.undefined(uploadBodySize)) {
|
|
765
|
+
headers['content-length'] = String(uploadBodySize);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
else if (cannotHaveBody) {
|
|
771
|
+
this._lockWrite();
|
|
772
|
+
}
|
|
773
|
+
else {
|
|
774
|
+
this._unlockWrite();
|
|
775
|
+
}
|
|
776
|
+
this[kBodySize] = Number(headers['content-length']) || undefined;
|
|
777
|
+
}
|
|
778
|
+
async _onResponseBase(response) {
|
|
779
|
+
const { options } = this;
|
|
780
|
+
const { url } = options;
|
|
781
|
+
this[kOriginalResponse] = response;
|
|
782
|
+
if (options.decompress) {
|
|
783
|
+
response = decompressResponse(response);
|
|
784
|
+
}
|
|
785
|
+
const statusCode = response.statusCode;
|
|
786
|
+
const typedResponse = response;
|
|
787
|
+
typedResponse.statusMessage = typedResponse.statusMessage ? typedResponse.statusMessage : http.STATUS_CODES[statusCode];
|
|
788
|
+
typedResponse.url = options.url.toString();
|
|
789
|
+
typedResponse.requestUrl = this.requestUrl;
|
|
790
|
+
typedResponse.redirectUrls = this.redirects;
|
|
791
|
+
typedResponse.request = this;
|
|
792
|
+
typedResponse.isFromCache = response.fromCache || false;
|
|
793
|
+
typedResponse.ip = this.ip;
|
|
794
|
+
typedResponse.retryCount = this.retryCount;
|
|
795
|
+
this[kIsFromCache] = typedResponse.isFromCache;
|
|
796
|
+
this[kResponseSize] = Number(response.headers['content-length']) || undefined;
|
|
797
|
+
this[kResponse] = response;
|
|
798
|
+
response.once('end', () => {
|
|
799
|
+
this[kResponseSize] = this[kDownloadedSize];
|
|
800
|
+
this.emit('downloadProgress', this.downloadProgress);
|
|
801
|
+
});
|
|
802
|
+
response.once('error', (error) => {
|
|
803
|
+
// Force clean-up, because some packages don't do this.
|
|
804
|
+
// TODO: Fix decompress-response
|
|
805
|
+
response.destroy();
|
|
806
|
+
this._beforeError(new ReadError(error, this));
|
|
807
|
+
});
|
|
808
|
+
response.once('aborted', () => {
|
|
809
|
+
this._beforeError(new ReadError({
|
|
810
|
+
name: 'Error',
|
|
811
|
+
message: 'The server aborted pending request',
|
|
812
|
+
code: 'ECONNRESET'
|
|
813
|
+
}, this));
|
|
814
|
+
});
|
|
815
|
+
this.emit('downloadProgress', this.downloadProgress);
|
|
816
|
+
const rawCookies = response.headers['set-cookie'];
|
|
817
|
+
if (is_1.default.object(options.cookieJar) && rawCookies) {
|
|
818
|
+
let promises = rawCookies.map(async (rawCookie) => options.cookieJar.setCookie(rawCookie, url.toString()));
|
|
819
|
+
if (options.ignoreInvalidCookies) {
|
|
820
|
+
promises = promises.map(async (p) => p.catch(() => { }));
|
|
821
|
+
}
|
|
822
|
+
try {
|
|
823
|
+
await Promise.all(promises);
|
|
824
|
+
}
|
|
825
|
+
catch (error) {
|
|
826
|
+
this._beforeError(error);
|
|
827
|
+
return;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
if (options.followRedirect && response.headers.location && redirectCodes.has(statusCode)) {
|
|
831
|
+
// We're being redirected, we don't care about the response.
|
|
832
|
+
// It'd be best to abort the request, but we can't because
|
|
833
|
+
// we would have to sacrifice the TCP connection. We don't want that.
|
|
834
|
+
response.resume();
|
|
835
|
+
if (this[kRequest]) {
|
|
836
|
+
this[kCancelTimeouts]();
|
|
837
|
+
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
838
|
+
delete this[kRequest];
|
|
839
|
+
this[kUnproxyEvents]();
|
|
840
|
+
}
|
|
841
|
+
const shouldBeGet = statusCode === 303 && options.method !== 'GET' && options.method !== 'HEAD';
|
|
842
|
+
if (shouldBeGet || !options.methodRewriting) {
|
|
843
|
+
// Server responded with "see other", indicating that the resource exists at another location,
|
|
844
|
+
// and the client should request it from that location via GET or HEAD.
|
|
845
|
+
options.method = 'GET';
|
|
846
|
+
if ('body' in options) {
|
|
847
|
+
delete options.body;
|
|
848
|
+
}
|
|
849
|
+
if ('json' in options) {
|
|
850
|
+
delete options.json;
|
|
851
|
+
}
|
|
852
|
+
if ('form' in options) {
|
|
853
|
+
delete options.form;
|
|
854
|
+
}
|
|
855
|
+
this[kBody] = undefined;
|
|
856
|
+
delete options.headers['content-length'];
|
|
857
|
+
}
|
|
858
|
+
if (this.redirects.length >= options.maxRedirects) {
|
|
859
|
+
this._beforeError(new MaxRedirectsError(this));
|
|
860
|
+
return;
|
|
861
|
+
}
|
|
862
|
+
try {
|
|
863
|
+
// Do not remove. See https://github.com/sindresorhus/got/pull/214
|
|
864
|
+
const redirectBuffer = Buffer.from(response.headers.location, 'binary').toString();
|
|
865
|
+
// Handles invalid URLs. See https://github.com/sindresorhus/got/issues/604
|
|
866
|
+
const redirectUrl = new url_1.URL(redirectBuffer, url);
|
|
867
|
+
const redirectString = redirectUrl.toString();
|
|
868
|
+
decodeURI(redirectString);
|
|
869
|
+
// eslint-disable-next-line no-inner-declarations
|
|
870
|
+
function isUnixSocketURL(url) {
|
|
871
|
+
return url.protocol === 'unix:' || url.hostname === 'unix';
|
|
872
|
+
}
|
|
873
|
+
if (!isUnixSocketURL(url) && isUnixSocketURL(redirectUrl)) {
|
|
874
|
+
this._beforeError(new RequestError('Cannot redirect to UNIX socket', {}, this));
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
// Redirecting to a different site, clear sensitive data.
|
|
878
|
+
if (redirectUrl.hostname !== url.hostname || redirectUrl.port !== url.port) {
|
|
879
|
+
if ('host' in options.headers) {
|
|
880
|
+
delete options.headers.host;
|
|
881
|
+
}
|
|
882
|
+
if ('cookie' in options.headers) {
|
|
883
|
+
delete options.headers.cookie;
|
|
884
|
+
}
|
|
885
|
+
if ('authorization' in options.headers) {
|
|
886
|
+
delete options.headers.authorization;
|
|
887
|
+
}
|
|
888
|
+
if (options.username || options.password) {
|
|
889
|
+
options.username = '';
|
|
890
|
+
options.password = '';
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
else {
|
|
894
|
+
redirectUrl.username = options.username;
|
|
895
|
+
redirectUrl.password = options.password;
|
|
896
|
+
}
|
|
897
|
+
this.redirects.push(redirectString);
|
|
898
|
+
options.url = redirectUrl;
|
|
899
|
+
for (const hook of options.hooks.beforeRedirect) {
|
|
900
|
+
// eslint-disable-next-line no-await-in-loop
|
|
901
|
+
await hook(options, typedResponse);
|
|
902
|
+
}
|
|
903
|
+
this.emit('redirect', typedResponse, options);
|
|
904
|
+
await this._makeRequest();
|
|
905
|
+
}
|
|
906
|
+
catch (error) {
|
|
907
|
+
this._beforeError(error);
|
|
908
|
+
return;
|
|
909
|
+
}
|
|
910
|
+
return;
|
|
911
|
+
}
|
|
912
|
+
if (options.isStream && options.throwHttpErrors && !is_response_ok_1.isResponseOk(typedResponse)) {
|
|
913
|
+
this._beforeError(new HTTPError(typedResponse));
|
|
914
|
+
return;
|
|
915
|
+
}
|
|
916
|
+
response.on('readable', () => {
|
|
917
|
+
if (this[kTriggerRead]) {
|
|
918
|
+
this._read();
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
this.on('resume', () => {
|
|
922
|
+
response.resume();
|
|
923
|
+
});
|
|
924
|
+
this.on('pause', () => {
|
|
925
|
+
response.pause();
|
|
926
|
+
});
|
|
927
|
+
response.once('end', () => {
|
|
928
|
+
this.push(null);
|
|
929
|
+
});
|
|
930
|
+
this.emit('response', response);
|
|
931
|
+
for (const destination of this[kServerResponsesPiped]) {
|
|
932
|
+
if (destination.headersSent) {
|
|
933
|
+
continue;
|
|
934
|
+
}
|
|
935
|
+
// eslint-disable-next-line guard-for-in
|
|
936
|
+
for (const key in response.headers) {
|
|
937
|
+
const isAllowed = options.decompress ? key !== 'content-encoding' : true;
|
|
938
|
+
const value = response.headers[key];
|
|
939
|
+
if (isAllowed) {
|
|
940
|
+
destination.setHeader(key, value);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
destination.statusCode = statusCode;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
async _onResponse(response) {
|
|
947
|
+
try {
|
|
948
|
+
await this._onResponseBase(response);
|
|
949
|
+
}
|
|
950
|
+
catch (error) {
|
|
951
|
+
/* istanbul ignore next: better safe than sorry */
|
|
952
|
+
this._beforeError(error);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
_onRequest(request) {
|
|
956
|
+
const { options } = this;
|
|
957
|
+
const { timeout, url } = options;
|
|
958
|
+
http_timer_1.default(request);
|
|
959
|
+
this[kCancelTimeouts] = timed_out_1.default(request, timeout, url);
|
|
960
|
+
const responseEventName = options.cache ? 'cacheableResponse' : 'response';
|
|
961
|
+
request.once(responseEventName, (response) => {
|
|
962
|
+
void this._onResponse(response);
|
|
963
|
+
});
|
|
964
|
+
request.once('error', (error) => {
|
|
965
|
+
var _a;
|
|
966
|
+
// Force clean-up, because some packages (e.g. nock) don't do this.
|
|
967
|
+
request.destroy();
|
|
968
|
+
// Node.js <= 12.18.2 mistakenly emits the response `end` first.
|
|
969
|
+
(_a = request.res) === null || _a === void 0 ? void 0 : _a.removeAllListeners('end');
|
|
970
|
+
error = error instanceof timed_out_1.TimeoutError ? new TimeoutError(error, this.timings, this) : new RequestError(error.message, error, this);
|
|
971
|
+
this._beforeError(error);
|
|
972
|
+
});
|
|
973
|
+
this[kUnproxyEvents] = proxy_events_1.default(request, this, proxiedRequestEvents);
|
|
974
|
+
this[kRequest] = request;
|
|
975
|
+
this.emit('uploadProgress', this.uploadProgress);
|
|
976
|
+
// Send body
|
|
977
|
+
const body = this[kBody];
|
|
978
|
+
const currentRequest = this.redirects.length === 0 ? this : request;
|
|
979
|
+
if (is_1.default.nodeStream(body)) {
|
|
980
|
+
body.pipe(currentRequest);
|
|
981
|
+
body.once('error', (error) => {
|
|
982
|
+
this._beforeError(new UploadError(error, this));
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
else {
|
|
986
|
+
this._unlockWrite();
|
|
987
|
+
if (!is_1.default.undefined(body)) {
|
|
988
|
+
this._writeRequest(body, undefined, () => { });
|
|
989
|
+
currentRequest.end();
|
|
990
|
+
this._lockWrite();
|
|
991
|
+
}
|
|
992
|
+
else if (this._cannotHaveBody || this._noPipe) {
|
|
993
|
+
currentRequest.end();
|
|
994
|
+
this._lockWrite();
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
this.emit('request', request);
|
|
998
|
+
}
|
|
999
|
+
async _createCacheableRequest(url, options) {
|
|
1000
|
+
return new Promise((resolve, reject) => {
|
|
1001
|
+
// TODO: Remove `utils/url-to-options.ts` when `cacheable-request` is fixed
|
|
1002
|
+
Object.assign(options, url_to_options_1.default(url));
|
|
1003
|
+
// `http-cache-semantics` checks this
|
|
1004
|
+
// TODO: Fix this ignore.
|
|
1005
|
+
// @ts-expect-error
|
|
1006
|
+
delete options.url;
|
|
1007
|
+
let request;
|
|
1008
|
+
// This is ugly
|
|
1009
|
+
const cacheRequest = cacheableStore.get(options.cache)(options, async (response) => {
|
|
1010
|
+
// TODO: Fix `cacheable-response`
|
|
1011
|
+
response._readableState.autoDestroy = false;
|
|
1012
|
+
if (request) {
|
|
1013
|
+
(await request).emit('cacheableResponse', response);
|
|
1014
|
+
}
|
|
1015
|
+
resolve(response);
|
|
1016
|
+
});
|
|
1017
|
+
// Restore options
|
|
1018
|
+
options.url = url;
|
|
1019
|
+
cacheRequest.once('error', reject);
|
|
1020
|
+
cacheRequest.once('request', async (requestOrPromise) => {
|
|
1021
|
+
request = requestOrPromise;
|
|
1022
|
+
resolve(request);
|
|
1023
|
+
});
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
async _makeRequest() {
|
|
1027
|
+
var _a, _b, _c, _d, _e;
|
|
1028
|
+
const { options } = this;
|
|
1029
|
+
const { headers } = options;
|
|
1030
|
+
for (const key in headers) {
|
|
1031
|
+
if (is_1.default.undefined(headers[key])) {
|
|
1032
|
+
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
1033
|
+
delete headers[key];
|
|
1034
|
+
}
|
|
1035
|
+
else if (is_1.default.null_(headers[key])) {
|
|
1036
|
+
throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${key}\` header`);
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
if (options.decompress && is_1.default.undefined(headers['accept-encoding'])) {
|
|
1040
|
+
headers['accept-encoding'] = supportsBrotli ? 'gzip, deflate, br' : 'gzip, deflate';
|
|
1041
|
+
}
|
|
1042
|
+
// Set cookies
|
|
1043
|
+
if (options.cookieJar) {
|
|
1044
|
+
const cookieString = await options.cookieJar.getCookieString(options.url.toString());
|
|
1045
|
+
if (is_1.default.nonEmptyString(cookieString)) {
|
|
1046
|
+
options.headers.cookie = cookieString;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
for (const hook of options.hooks.beforeRequest) {
|
|
1050
|
+
// eslint-disable-next-line no-await-in-loop
|
|
1051
|
+
const result = await hook(options);
|
|
1052
|
+
if (!is_1.default.undefined(result)) {
|
|
1053
|
+
// @ts-expect-error Skip the type mismatch to support abstract responses
|
|
1054
|
+
options.request = () => result;
|
|
1055
|
+
break;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
if (options.body && this[kBody] !== options.body) {
|
|
1059
|
+
this[kBody] = options.body;
|
|
1060
|
+
}
|
|
1061
|
+
const { agent, request, timeout, url } = options;
|
|
1062
|
+
if (options.dnsCache && !('lookup' in options)) {
|
|
1063
|
+
options.lookup = options.dnsCache.lookup;
|
|
1064
|
+
}
|
|
1065
|
+
// UNIX sockets
|
|
1066
|
+
if (url.hostname === 'unix') {
|
|
1067
|
+
const matches = /(?<socketPath>.+?):(?<path>.+)/.exec(`${url.pathname}${url.search}`);
|
|
1068
|
+
if (matches === null || matches === void 0 ? void 0 : matches.groups) {
|
|
1069
|
+
const { socketPath, path } = matches.groups;
|
|
1070
|
+
Object.assign(options, {
|
|
1071
|
+
socketPath,
|
|
1072
|
+
path,
|
|
1073
|
+
host: ''
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
const isHttps = url.protocol === 'https:';
|
|
1078
|
+
// Fallback function
|
|
1079
|
+
let fallbackFn;
|
|
1080
|
+
if (options.http2) {
|
|
1081
|
+
fallbackFn = http2wrapper.auto;
|
|
1082
|
+
}
|
|
1083
|
+
else {
|
|
1084
|
+
fallbackFn = isHttps ? https.request : http.request;
|
|
1085
|
+
}
|
|
1086
|
+
const realFn = (_a = options.request) !== null && _a !== void 0 ? _a : fallbackFn;
|
|
1087
|
+
// Cache support
|
|
1088
|
+
const fn = options.cache ? this._createCacheableRequest : realFn;
|
|
1089
|
+
// Pass an agent directly when HTTP2 is disabled
|
|
1090
|
+
if (agent && !options.http2) {
|
|
1091
|
+
options.agent = agent[isHttps ? 'https' : 'http'];
|
|
1092
|
+
}
|
|
1093
|
+
// Prepare plain HTTP request options
|
|
1094
|
+
options[kRequest] = realFn;
|
|
1095
|
+
delete options.request;
|
|
1096
|
+
// TODO: Fix this ignore.
|
|
1097
|
+
// @ts-expect-error
|
|
1098
|
+
delete options.timeout;
|
|
1099
|
+
const requestOptions = options;
|
|
1100
|
+
requestOptions.shared = (_b = options.cacheOptions) === null || _b === void 0 ? void 0 : _b.shared;
|
|
1101
|
+
requestOptions.cacheHeuristic = (_c = options.cacheOptions) === null || _c === void 0 ? void 0 : _c.cacheHeuristic;
|
|
1102
|
+
requestOptions.immutableMinTimeToLive = (_d = options.cacheOptions) === null || _d === void 0 ? void 0 : _d.immutableMinTimeToLive;
|
|
1103
|
+
requestOptions.ignoreCargoCult = (_e = options.cacheOptions) === null || _e === void 0 ? void 0 : _e.ignoreCargoCult;
|
|
1104
|
+
// If `dnsLookupIpVersion` is not present do not override `family`
|
|
1105
|
+
if (options.dnsLookupIpVersion !== undefined) {
|
|
1106
|
+
try {
|
|
1107
|
+
requestOptions.family = dns_ip_version_1.dnsLookupIpVersionToFamily(options.dnsLookupIpVersion);
|
|
1108
|
+
}
|
|
1109
|
+
catch (_f) {
|
|
1110
|
+
throw new Error('Invalid `dnsLookupIpVersion` option value');
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
// HTTPS options remapping
|
|
1114
|
+
if (options.https) {
|
|
1115
|
+
if ('rejectUnauthorized' in options.https) {
|
|
1116
|
+
requestOptions.rejectUnauthorized = options.https.rejectUnauthorized;
|
|
1117
|
+
}
|
|
1118
|
+
if (options.https.checkServerIdentity) {
|
|
1119
|
+
requestOptions.checkServerIdentity = options.https.checkServerIdentity;
|
|
1120
|
+
}
|
|
1121
|
+
if (options.https.certificateAuthority) {
|
|
1122
|
+
requestOptions.ca = options.https.certificateAuthority;
|
|
1123
|
+
}
|
|
1124
|
+
if (options.https.certificate) {
|
|
1125
|
+
requestOptions.cert = options.https.certificate;
|
|
1126
|
+
}
|
|
1127
|
+
if (options.https.key) {
|
|
1128
|
+
requestOptions.key = options.https.key;
|
|
1129
|
+
}
|
|
1130
|
+
if (options.https.passphrase) {
|
|
1131
|
+
requestOptions.passphrase = options.https.passphrase;
|
|
1132
|
+
}
|
|
1133
|
+
if (options.https.pfx) {
|
|
1134
|
+
requestOptions.pfx = options.https.pfx;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
try {
|
|
1138
|
+
let requestOrResponse = await fn(url, requestOptions);
|
|
1139
|
+
if (is_1.default.undefined(requestOrResponse)) {
|
|
1140
|
+
requestOrResponse = fallbackFn(url, requestOptions);
|
|
1141
|
+
}
|
|
1142
|
+
// Restore options
|
|
1143
|
+
options.request = request;
|
|
1144
|
+
options.timeout = timeout;
|
|
1145
|
+
options.agent = agent;
|
|
1146
|
+
// HTTPS options restore
|
|
1147
|
+
if (options.https) {
|
|
1148
|
+
if ('rejectUnauthorized' in options.https) {
|
|
1149
|
+
delete requestOptions.rejectUnauthorized;
|
|
1150
|
+
}
|
|
1151
|
+
if (options.https.checkServerIdentity) {
|
|
1152
|
+
// @ts-expect-error - This one will be removed when we remove the alias.
|
|
1153
|
+
delete requestOptions.checkServerIdentity;
|
|
1154
|
+
}
|
|
1155
|
+
if (options.https.certificateAuthority) {
|
|
1156
|
+
delete requestOptions.ca;
|
|
1157
|
+
}
|
|
1158
|
+
if (options.https.certificate) {
|
|
1159
|
+
delete requestOptions.cert;
|
|
1160
|
+
}
|
|
1161
|
+
if (options.https.key) {
|
|
1162
|
+
delete requestOptions.key;
|
|
1163
|
+
}
|
|
1164
|
+
if (options.https.passphrase) {
|
|
1165
|
+
delete requestOptions.passphrase;
|
|
1166
|
+
}
|
|
1167
|
+
if (options.https.pfx) {
|
|
1168
|
+
delete requestOptions.pfx;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
if (isClientRequest(requestOrResponse)) {
|
|
1172
|
+
this._onRequest(requestOrResponse);
|
|
1173
|
+
// Emit the response after the stream has been ended
|
|
1174
|
+
}
|
|
1175
|
+
else if (this.writable) {
|
|
1176
|
+
this.once('finish', () => {
|
|
1177
|
+
void this._onResponse(requestOrResponse);
|
|
1178
|
+
});
|
|
1179
|
+
this._unlockWrite();
|
|
1180
|
+
this.end();
|
|
1181
|
+
this._lockWrite();
|
|
1182
|
+
}
|
|
1183
|
+
else {
|
|
1184
|
+
void this._onResponse(requestOrResponse);
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
catch (error) {
|
|
1188
|
+
if (error instanceof CacheableRequest.CacheError) {
|
|
1189
|
+
throw new CacheError(error, this);
|
|
1190
|
+
}
|
|
1191
|
+
throw new RequestError(error.message, error, this);
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
async _error(error) {
|
|
1195
|
+
try {
|
|
1196
|
+
for (const hook of this.options.hooks.beforeError) {
|
|
1197
|
+
// eslint-disable-next-line no-await-in-loop
|
|
1198
|
+
error = await hook(error);
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
catch (error_) {
|
|
1202
|
+
error = new RequestError(error_.message, error_, this);
|
|
1203
|
+
}
|
|
1204
|
+
this.destroy(error);
|
|
1205
|
+
}
|
|
1206
|
+
_beforeError(error) {
|
|
1207
|
+
if (this[kStopReading]) {
|
|
1208
|
+
return;
|
|
1209
|
+
}
|
|
1210
|
+
const { options } = this;
|
|
1211
|
+
const retryCount = this.retryCount + 1;
|
|
1212
|
+
this[kStopReading] = true;
|
|
1213
|
+
if (!(error instanceof RequestError)) {
|
|
1214
|
+
error = new RequestError(error.message, error, this);
|
|
1215
|
+
}
|
|
1216
|
+
const typedError = error;
|
|
1217
|
+
const { response } = typedError;
|
|
1218
|
+
void (async () => {
|
|
1219
|
+
if (response && !response.body) {
|
|
1220
|
+
response.setEncoding(this._readableState.encoding);
|
|
1221
|
+
try {
|
|
1222
|
+
response.rawBody = await get_buffer_1.default(response);
|
|
1223
|
+
response.body = response.rawBody.toString();
|
|
1224
|
+
}
|
|
1225
|
+
catch (_a) { }
|
|
1226
|
+
}
|
|
1227
|
+
if (this.listenerCount('retry') !== 0) {
|
|
1228
|
+
let backoff;
|
|
1229
|
+
try {
|
|
1230
|
+
let retryAfter;
|
|
1231
|
+
if (response && 'retry-after' in response.headers) {
|
|
1232
|
+
retryAfter = Number(response.headers['retry-after']);
|
|
1233
|
+
if (Number.isNaN(retryAfter)) {
|
|
1234
|
+
retryAfter = Date.parse(response.headers['retry-after']) - Date.now();
|
|
1235
|
+
if (retryAfter <= 0) {
|
|
1236
|
+
retryAfter = 1;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
else {
|
|
1240
|
+
retryAfter *= 1000;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
backoff = await options.retry.calculateDelay({
|
|
1244
|
+
attemptCount: retryCount,
|
|
1245
|
+
retryOptions: options.retry,
|
|
1246
|
+
error: typedError,
|
|
1247
|
+
retryAfter,
|
|
1248
|
+
computedValue: calculate_retry_delay_1.default({
|
|
1249
|
+
attemptCount: retryCount,
|
|
1250
|
+
retryOptions: options.retry,
|
|
1251
|
+
error: typedError,
|
|
1252
|
+
retryAfter,
|
|
1253
|
+
computedValue: 0
|
|
1254
|
+
})
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
catch (error_) {
|
|
1258
|
+
void this._error(new RequestError(error_.message, error_, this));
|
|
1259
|
+
return;
|
|
1260
|
+
}
|
|
1261
|
+
if (backoff) {
|
|
1262
|
+
const retry = async () => {
|
|
1263
|
+
try {
|
|
1264
|
+
for (const hook of this.options.hooks.beforeRetry) {
|
|
1265
|
+
// eslint-disable-next-line no-await-in-loop
|
|
1266
|
+
await hook(this.options, typedError, retryCount);
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
catch (error_) {
|
|
1270
|
+
void this._error(new RequestError(error_.message, error, this));
|
|
1271
|
+
return;
|
|
1272
|
+
}
|
|
1273
|
+
// Something forced us to abort the retry
|
|
1274
|
+
if (this.destroyed) {
|
|
1275
|
+
return;
|
|
1276
|
+
}
|
|
1277
|
+
this.destroy();
|
|
1278
|
+
this.emit('retry', retryCount, error);
|
|
1279
|
+
};
|
|
1280
|
+
this[kRetryTimeout] = setTimeout(retry, backoff);
|
|
1281
|
+
return;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
void this._error(typedError);
|
|
1285
|
+
})();
|
|
1286
|
+
}
|
|
1287
|
+
_read() {
|
|
1288
|
+
this[kTriggerRead] = true;
|
|
1289
|
+
const response = this[kResponse];
|
|
1290
|
+
if (response && !this[kStopReading]) {
|
|
1291
|
+
// We cannot put this in the `if` above
|
|
1292
|
+
// because `.read()` also triggers the `end` event
|
|
1293
|
+
if (response.readableLength) {
|
|
1294
|
+
this[kTriggerRead] = false;
|
|
1295
|
+
}
|
|
1296
|
+
let data;
|
|
1297
|
+
while ((data = response.read()) !== null) {
|
|
1298
|
+
this[kDownloadedSize] += data.length;
|
|
1299
|
+
this[kStartedReading] = true;
|
|
1300
|
+
const progress = this.downloadProgress;
|
|
1301
|
+
if (progress.percent < 1) {
|
|
1302
|
+
this.emit('downloadProgress', progress);
|
|
1303
|
+
}
|
|
1304
|
+
this.push(data);
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
// Node.js 12 has incorrect types, so the encoding must be a string
|
|
1309
|
+
_write(chunk, encoding, callback) {
|
|
1310
|
+
const write = () => {
|
|
1311
|
+
this._writeRequest(chunk, encoding, callback);
|
|
1312
|
+
};
|
|
1313
|
+
if (this.requestInitialized) {
|
|
1314
|
+
write();
|
|
1315
|
+
}
|
|
1316
|
+
else {
|
|
1317
|
+
this[kJobs].push(write);
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
_writeRequest(chunk, encoding, callback) {
|
|
1321
|
+
if (this[kRequest].destroyed) {
|
|
1322
|
+
// Probably the `ClientRequest` instance will throw
|
|
1323
|
+
return;
|
|
1324
|
+
}
|
|
1325
|
+
this._progressCallbacks.push(() => {
|
|
1326
|
+
this[kUploadedSize] += Buffer.byteLength(chunk, encoding);
|
|
1327
|
+
const progress = this.uploadProgress;
|
|
1328
|
+
if (progress.percent < 1) {
|
|
1329
|
+
this.emit('uploadProgress', progress);
|
|
1330
|
+
}
|
|
1331
|
+
});
|
|
1332
|
+
// TODO: What happens if it's from cache? Then this[kRequest] won't be defined.
|
|
1333
|
+
this[kRequest].write(chunk, encoding, (error) => {
|
|
1334
|
+
if (!error && this._progressCallbacks.length > 0) {
|
|
1335
|
+
this._progressCallbacks.shift()();
|
|
1336
|
+
}
|
|
1337
|
+
callback(error);
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
_final(callback) {
|
|
1341
|
+
const endRequest = () => {
|
|
1342
|
+
// FIX: Node.js 10 calls the write callback AFTER the end callback!
|
|
1343
|
+
while (this._progressCallbacks.length !== 0) {
|
|
1344
|
+
this._progressCallbacks.shift()();
|
|
1345
|
+
}
|
|
1346
|
+
// We need to check if `this[kRequest]` is present,
|
|
1347
|
+
// because it isn't when we use cache.
|
|
1348
|
+
if (!(kRequest in this)) {
|
|
1349
|
+
callback();
|
|
1350
|
+
return;
|
|
1351
|
+
}
|
|
1352
|
+
if (this[kRequest].destroyed) {
|
|
1353
|
+
callback();
|
|
1354
|
+
return;
|
|
1355
|
+
}
|
|
1356
|
+
this[kRequest].end((error) => {
|
|
1357
|
+
if (!error) {
|
|
1358
|
+
this[kBodySize] = this[kUploadedSize];
|
|
1359
|
+
this.emit('uploadProgress', this.uploadProgress);
|
|
1360
|
+
this[kRequest].emit('upload-complete');
|
|
1361
|
+
}
|
|
1362
|
+
callback(error);
|
|
1363
|
+
});
|
|
1364
|
+
};
|
|
1365
|
+
if (this.requestInitialized) {
|
|
1366
|
+
endRequest();
|
|
1367
|
+
}
|
|
1368
|
+
else {
|
|
1369
|
+
this[kJobs].push(endRequest);
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
_destroy(error, callback) {
|
|
1373
|
+
var _a;
|
|
1374
|
+
this[kStopReading] = true;
|
|
1375
|
+
// Prevent further retries
|
|
1376
|
+
clearTimeout(this[kRetryTimeout]);
|
|
1377
|
+
if (kRequest in this) {
|
|
1378
|
+
this[kCancelTimeouts]();
|
|
1379
|
+
// TODO: Remove the next `if` when these get fixed:
|
|
1380
|
+
// - https://github.com/nodejs/node/issues/32851
|
|
1381
|
+
if (!((_a = this[kResponse]) === null || _a === void 0 ? void 0 : _a.complete)) {
|
|
1382
|
+
this[kRequest].destroy();
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
if (error !== null && !is_1.default.undefined(error) && !(error instanceof RequestError)) {
|
|
1386
|
+
error = new RequestError(error.message, error, this);
|
|
1387
|
+
}
|
|
1388
|
+
callback(error);
|
|
1389
|
+
}
|
|
1390
|
+
get _isAboutToError() {
|
|
1391
|
+
return this[kStopReading];
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
The remote IP address.
|
|
1395
|
+
*/
|
|
1396
|
+
get ip() {
|
|
1397
|
+
var _a;
|
|
1398
|
+
return (_a = this.socket) === null || _a === void 0 ? void 0 : _a.remoteAddress;
|
|
1399
|
+
}
|
|
1400
|
+
/**
|
|
1401
|
+
Indicates whether the request has been aborted or not.
|
|
1402
|
+
*/
|
|
1403
|
+
get aborted() {
|
|
1404
|
+
var _a, _b, _c;
|
|
1405
|
+
return ((_b = (_a = this[kRequest]) === null || _a === void 0 ? void 0 : _a.destroyed) !== null && _b !== void 0 ? _b : this.destroyed) && !((_c = this[kOriginalResponse]) === null || _c === void 0 ? void 0 : _c.complete);
|
|
1406
|
+
}
|
|
1407
|
+
get socket() {
|
|
1408
|
+
var _a, _b;
|
|
1409
|
+
return (_b = (_a = this[kRequest]) === null || _a === void 0 ? void 0 : _a.socket) !== null && _b !== void 0 ? _b : undefined;
|
|
1410
|
+
}
|
|
1411
|
+
/**
|
|
1412
|
+
Progress event for downloading (receiving a response).
|
|
1413
|
+
*/
|
|
1414
|
+
get downloadProgress() {
|
|
1415
|
+
let percent;
|
|
1416
|
+
if (this[kResponseSize]) {
|
|
1417
|
+
percent = this[kDownloadedSize] / this[kResponseSize];
|
|
1418
|
+
}
|
|
1419
|
+
else if (this[kResponseSize] === this[kDownloadedSize]) {
|
|
1420
|
+
percent = 1;
|
|
1421
|
+
}
|
|
1422
|
+
else {
|
|
1423
|
+
percent = 0;
|
|
1424
|
+
}
|
|
1425
|
+
return {
|
|
1426
|
+
percent,
|
|
1427
|
+
transferred: this[kDownloadedSize],
|
|
1428
|
+
total: this[kResponseSize]
|
|
1429
|
+
};
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
Progress event for uploading (sending a request).
|
|
1433
|
+
*/
|
|
1434
|
+
get uploadProgress() {
|
|
1435
|
+
let percent;
|
|
1436
|
+
if (this[kBodySize]) {
|
|
1437
|
+
percent = this[kUploadedSize] / this[kBodySize];
|
|
1438
|
+
}
|
|
1439
|
+
else if (this[kBodySize] === this[kUploadedSize]) {
|
|
1440
|
+
percent = 1;
|
|
1441
|
+
}
|
|
1442
|
+
else {
|
|
1443
|
+
percent = 0;
|
|
1444
|
+
}
|
|
1445
|
+
return {
|
|
1446
|
+
percent,
|
|
1447
|
+
transferred: this[kUploadedSize],
|
|
1448
|
+
total: this[kBodySize]
|
|
1449
|
+
};
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
The object contains the following properties:
|
|
1453
|
+
|
|
1454
|
+
- `start` - Time when the request started.
|
|
1455
|
+
- `socket` - Time when a socket was assigned to the request.
|
|
1456
|
+
- `lookup` - Time when the DNS lookup finished.
|
|
1457
|
+
- `connect` - Time when the socket successfully connected.
|
|
1458
|
+
- `secureConnect` - Time when the socket securely connected.
|
|
1459
|
+
- `upload` - Time when the request finished uploading.
|
|
1460
|
+
- `response` - Time when the request fired `response` event.
|
|
1461
|
+
- `end` - Time when the response fired `end` event.
|
|
1462
|
+
- `error` - Time when the request fired `error` event.
|
|
1463
|
+
- `abort` - Time when the request fired `abort` event.
|
|
1464
|
+
- `phases`
|
|
1465
|
+
- `wait` - `timings.socket - timings.start`
|
|
1466
|
+
- `dns` - `timings.lookup - timings.socket`
|
|
1467
|
+
- `tcp` - `timings.connect - timings.lookup`
|
|
1468
|
+
- `tls` - `timings.secureConnect - timings.connect`
|
|
1469
|
+
- `request` - `timings.upload - (timings.secureConnect || timings.connect)`
|
|
1470
|
+
- `firstByte` - `timings.response - timings.upload`
|
|
1471
|
+
- `download` - `timings.end - timings.response`
|
|
1472
|
+
- `total` - `(timings.end || timings.error || timings.abort) - timings.start`
|
|
1473
|
+
|
|
1474
|
+
If something has not been measured yet, it will be `undefined`.
|
|
1475
|
+
|
|
1476
|
+
__Note__: The time is a `number` representing the milliseconds elapsed since the UNIX epoch.
|
|
1477
|
+
*/
|
|
1478
|
+
get timings() {
|
|
1479
|
+
var _a;
|
|
1480
|
+
return (_a = this[kRequest]) === null || _a === void 0 ? void 0 : _a.timings;
|
|
1481
|
+
}
|
|
1482
|
+
/**
|
|
1483
|
+
Whether the response was retrieved from the cache.
|
|
1484
|
+
*/
|
|
1485
|
+
get isFromCache() {
|
|
1486
|
+
return this[kIsFromCache];
|
|
1487
|
+
}
|
|
1488
|
+
pipe(destination, options) {
|
|
1489
|
+
if (this[kStartedReading]) {
|
|
1490
|
+
throw new Error('Failed to pipe. The response has been emitted already.');
|
|
1491
|
+
}
|
|
1492
|
+
if (destination instanceof http_1.ServerResponse) {
|
|
1493
|
+
this[kServerResponsesPiped].add(destination);
|
|
1494
|
+
}
|
|
1495
|
+
return super.pipe(destination, options);
|
|
1496
|
+
}
|
|
1497
|
+
unpipe(destination) {
|
|
1498
|
+
if (destination instanceof http_1.ServerResponse) {
|
|
1499
|
+
this[kServerResponsesPiped].delete(destination);
|
|
1500
|
+
}
|
|
1501
|
+
super.unpipe(destination);
|
|
1502
|
+
return this;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
exports.default = Request;
|