@qqbrowser/openclaw-qbot 0.10.8 → 0.10.10
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/README.md +1 -54
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +72 -71
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +21 -21
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +17 -7
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +18 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +0 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js +15 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +0 -1
- package/node_modules/@aws-sdk/core/package.json +7 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +157 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/constants.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +16 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +81 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +11 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +10 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/index.js +4 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +7 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +70 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +9 -25
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.browser.js +11 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.js +7 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/throw-200-exceptions.js +9 -25
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.browser.js +8 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.js +4 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +15 -8
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +18 -18
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +336 -0
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +26 -2
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-external/nodable_entities.js +332 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +26 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +3 -2
- package/node_modules/@clack/core/dist/index.mjs +16 -10
- package/node_modules/@clack/core/package.json +5 -2
- package/node_modules/@clack/prompts/dist/index.mjs +114 -107
- package/node_modules/@clack/prompts/package.json +7 -4
- package/node_modules/@google/genai/dist/index.cjs +207 -146
- package/node_modules/@google/genai/dist/index.mjs +208 -147
- package/node_modules/@google/genai/dist/node/index.cjs +235 -156
- package/node_modules/@google/genai/dist/node/index.mjs +236 -157
- package/node_modules/@google/genai/dist/tokenizer/node.cjs +15 -1
- package/node_modules/@google/genai/dist/tokenizer/node.mjs +15 -1
- package/node_modules/@google/genai/dist/vertex_internal/index.cjs +130 -117
- package/node_modules/@google/genai/dist/vertex_internal/index.js +130 -117
- package/node_modules/@google/genai/dist/web/index.mjs +201 -145
- package/node_modules/@google/genai/package.json +6 -1
- package/node_modules/@line/bot-sdk/node_modules/@types/node/package.json +2 -2
- package/node_modules/@nodable/entities/package.json +54 -0
- package/node_modules/@nodable/entities/src/EntityDecoder.js +543 -0
- package/node_modules/@nodable/entities/src/EntityEncoder.js +194 -0
- package/node_modules/@nodable/entities/src/entities.js +1177 -0
- package/node_modules/@nodable/entities/src/entityTries.js +49 -0
- package/node_modules/@nodable/entities/src/index.js +29 -0
- package/node_modules/@opentelemetry/context-async-hooks/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/context-async-hooks/package.json +2 -2
- package/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/src/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/src/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/resources/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@opentelemetry/resources/package.json +3 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/exemplar/ExemplarReservoir.js +6 -5
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/AsyncMetricStorage.js +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/DeltaMetricProcessor.js +4 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/state/MultiWritableMetricStorage.js +4 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/view/AttributesProcessor.js +10 -8
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/exemplar/ExemplarReservoir.js +6 -5
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/AsyncMetricStorage.js +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/DeltaMetricProcessor.js +4 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/state/MultiWritableMetricStorage.js +4 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/view/AttributesProcessor.js +10 -8
- package/node_modules/@opentelemetry/sdk-metrics/build/src/exemplar/ExemplarReservoir.js +6 -5
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/AsyncMetricStorage.js +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/DeltaMetricProcessor.js +4 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/src/state/MultiWritableMetricStorage.js +4 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/view/AttributesProcessor.js +10 -8
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esm/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/src/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/src/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/package.json +4 -4
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/sampler/TraceIdRatioBasedSampler.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/sampler/TraceIdRatioBasedSampler.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/sampler/TraceIdRatioBasedSampler.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/src/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/src/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@opentelemetry/sdk-trace-base/package.json +5 -5
- package/node_modules/@opentelemetry/sdk-trace-node/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esm/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esm/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esnext/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esnext/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/src/propagation/composite.js +8 -3
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/src/trace/TraceState.js +101 -51
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@opentelemetry/sdk-trace-node/package.json +6 -6
- package/node_modules/@protobufjs/codegen/index.js +14 -1
- package/node_modules/@protobufjs/codegen/package.json +1 -1
- package/node_modules/@protobufjs/inquire/index.js +25 -5
- package/node_modules/@protobufjs/inquire/package.json +2 -2
- package/node_modules/@protobufjs/utf8/index.js +27 -28
- package/node_modules/@protobufjs/utf8/package.json +21 -21
- package/node_modules/@slack/bolt/dist/conversation-store.js +2 -0
- package/node_modules/@slack/bolt/dist/errors.js +1 -1
- package/node_modules/@slack/bolt/dist/receivers/HTTPModuleFunctions.js +7 -2
- package/node_modules/@slack/bolt/dist/receivers/HTTPReceiver.js +4 -3
- package/node_modules/@slack/bolt/package.json +12 -6
- package/node_modules/@slack/socket-mode/dist/package.json +1 -1
- package/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +7 -1
- package/node_modules/@slack/socket-mode/package.json +1 -1
- package/node_modules/@slack/types/package.json +1 -1
- package/node_modules/@slack/web-api/package.json +4 -5
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +22 -198
- package/node_modules/@smithy/config-resolver/dist-es/index.js +1 -3
- package/node_modules/@smithy/config-resolver/package.json +5 -30
- package/node_modules/@smithy/core/checksum.js +5 -0
- package/node_modules/@smithy/core/client.js +6 -0
- package/node_modules/@smithy/core/config.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/index.js +6 -7
- package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +8 -12
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +202 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +259 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +229 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +1136 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +375 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +735 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +364 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +860 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +873 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +866 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +627 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +297 -20
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +800 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +827 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +1452 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +996 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +1452 -0
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +2 -2
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +1 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +2 -3
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -3
- package/node_modules/@smithy/core/dist-es/submodules/checksum/chunked-blob-reader/chunked-blob-reader.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/chunked-blob-reader/chunked-blob-reader.native.js +27 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/hash-blob-browser/blobHasher.js +8 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/hash-stream-node/HashCalculator.js +18 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/hash-stream-node/fileStreamHasher.js +24 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/hash-stream-node/readableStreamHasher.js +19 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.browser.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.native.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/constants.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/md5.js +168 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/index.js +26 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/client.js +1 -1
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/command.js +2 -2
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/extensions/checksum.js +1 -1
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/extensions/defaultExtensionConfiguration.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/circularReplacer.js +12 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/createWaiter.js +48 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/poller.js +87 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/sleep.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/validate.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/util-waiter/waiter.js +35 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +2 -1
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +2 -1
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/endpointsConfig/resolveCustomEndpointsConfig.js +1 -1
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/endpointsConfig/resolveEndpointsConfig.js +1 -1
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionConfig/checkRegion.js +1 -1
- package/node_modules/@smithy/{util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js → core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.browser.js} +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js +98 -0
- package/node_modules/@smithy/{util-defaults-mode-browser/dist-es → core/dist-es/submodules/config/defaults-mode}/resolveDefaultsModeConfig.native.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/index.browser.js +43 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/index.js +29 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/index.native.js +43 -0
- package/node_modules/@smithy/{node-config-provider/dist-es → core/dist-es/submodules/config/node-config-provider}/configLoader.js +2 -1
- package/node_modules/@smithy/{node-config-provider/dist-es → core/dist-es/submodules/config/node-config-provider}/fromEnv.js +1 -1
- package/node_modules/@smithy/{node-config-provider/dist-es → core/dist-es/submodules/config/node-config-provider}/fromSharedConfigFiles.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js +1 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getConfigFilepath.js +1 -1
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getCredentialsFilepath.js +1 -1
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getHomeDir.js +2 -2
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getSSOTokenFilepath.js +2 -2
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getSSOTokenFromFile.js +1 -1
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/loadSharedConfigFiles.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.browser.js +22 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +21 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/adaptors/getEndpointFromConfig.js +1 -1
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/adaptors/getEndpointFromInstructions.js +28 -27
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/adaptors/getEndpointUrlConfig.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/toEndpointV1.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +47 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/getEndpointPlugin.js +26 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +25 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +1 -1
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateExpression.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +1 -1
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/HeaderMarshaller.js +1 -1
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/Int64.js +1 -1
- package/node_modules/@smithy/{eventstream-serde-browser/dist-es/EventStreamMarshaller.js → core/dist-es/submodules/event-streams/eventstream-serde/EventStreamMarshaller.browser.js} +6 -5
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/EventStreamMarshaller.js +45 -0
- package/node_modules/@smithy/{eventstream-serde-browser/dist-es → core/dist-es/submodules/event-streams/eventstream-serde}/utils.js +1 -1
- package/node_modules/@smithy/{eventstream-serde-universal/dist-es → core/dist-es/submodules/event-streams/eventstream-serde-universal}/EventStreamMarshaller.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/index.browser.js +14 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/index.js +14 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +3 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +12 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +39 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.js +21 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/requestBuilder.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +1 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/url-parser/parseUrl.js +18 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/index.browser.js +27 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/index.js +20 -0
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/configurations.js +4 -2
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/isStreamingPayload/isStreamingPayload.js +1 -1
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/omitRetryHeadersMiddleware.js +2 -2
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/parseRetryAfterHeader.js +1 -1
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/retry-pre-sra-deprecated/AdaptiveRetryStrategy.js +2 -1
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/retry-pre-sra-deprecated/StandardRetryStrategy.js +5 -4
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/retry-pre-sra-deprecated/defaultRetryQuota.js +1 -1
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/retry-pre-sra-deprecated/delayDecider.js +1 -1
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/retry-pre-sra-deprecated/retryDecider.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +109 -0
- package/node_modules/@smithy/{service-error-classification/dist-es/index.js → core/dist-es/submodules/retry/service-error-classification/service-error-classification.js} +1 -0
- package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/AdaptiveRetryStrategy.js +6 -3
- package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/DefaultRateLimiter.js +3 -2
- package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/StandardRetryStrategy.js +22 -12
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/generateIdempotencyToken.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/hash-node/hash-node.js +36 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +34 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +33 -10
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +34 -0
- package/node_modules/@smithy/{middleware-serde/dist-es → core/dist-es/submodules/serde/middleware-serde}/deserializerMiddleware.js +1 -1
- package/node_modules/@smithy/{util-base64/dist-es → core/dist-es/submodules/serde/util-base64}/fromBase64.browser.js +1 -1
- package/node_modules/@smithy/{util-base64/dist-es → core/dist-es/submodules/serde/util-base64}/fromBase64.js +1 -1
- package/node_modules/@smithy/{util-base64/dist-es → core/dist-es/submodules/serde/util-base64}/toBase64.browser.js +2 -2
- package/node_modules/@smithy/{util-base64/dist-es → core/dist-es/submodules/serde/util-base64}/toBase64.js +2 -2
- package/node_modules/@smithy/{util-body-length-node/dist-es → core/dist-es/submodules/serde/util-body-length}/calculateBodyLength.js +1 -1
- package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/dist-es/index.js → @smithy/core/dist-es/submodules/serde/util-buffer-from/buffer-from.js} +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-hex-encoding/hex-encoding.js +33 -0
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/blob/Uint8ArrayBlobAdapter.js +4 -2
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/checksum/ChecksumStream.js +2 -2
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/checksum/createChecksumStream.browser.js +1 -1
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/checksum/createChecksumStream.js +1 -1
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/createBufferedReadable.js +1 -1
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/headStream.js +1 -1
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/sdk-stream-mixin.browser.js +4 -4
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/sdk-stream-mixin.js +3 -3
- package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/splitStream.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js +53 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.js +48 -0
- package/node_modules/@smithy/{util-utf8/dist-es → core/dist-es/submodules/serde/util-utf8}/fromUtf8.js +1 -1
- package/node_modules/@smithy/{util-utf8/dist-es → core/dist-es/submodules/serde/util-utf8}/toUtf8.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/uuid/randomUUID.js +3 -0
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +2 -2
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +1 -1
- package/node_modules/@smithy/core/package.json +110 -11
- package/node_modules/@smithy/core/retry.js +5 -0
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +39 -41
- package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +3 -3
- package/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js +2 -3
- package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +2 -3
- package/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js +2 -2
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -4
- package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +11 -401
- package/node_modules/@smithy/eventstream-codec/dist-es/index.js +1 -8
- package/node_modules/@smithy/eventstream-codec/package.json +5 -26
- package/node_modules/@smithy/eventstream-serde-browser/dist-cjs/index.js +9 -58
- package/node_modules/@smithy/eventstream-serde-browser/dist-es/index.js +3 -3
- package/node_modules/@smithy/eventstream-serde-browser/package.json +7 -24
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +5 -7
- package/node_modules/@smithy/eventstream-serde-config-resolver/dist-es/index.js +1 -1
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -25
- package/node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js +6 -53
- package/node_modules/@smithy/eventstream-serde-node/dist-es/index.js +1 -2
- package/node_modules/@smithy/eventstream-serde-node/package.json +5 -23
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -7
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +1 -2
- package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +1 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -4
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +5 -42
- package/node_modules/@smithy/hash-node/dist-es/index.js +1 -37
- package/node_modules/@smithy/hash-node/package.json +5 -29
- package/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +6 -10
- package/node_modules/@smithy/invalid-dependency/dist-es/index.js +1 -2
- package/node_modules/@smithy/invalid-dependency/package.json +5 -25
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +30 -4
- package/node_modules/@smithy/is-array-buffer/package.json +12 -13
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +7 -46
- package/node_modules/@smithy/middleware-content-length/dist-es/index.js +1 -39
- package/node_modules/@smithy/middleware-content-length/package.json +5 -28
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +12 -264
- package/node_modules/@smithy/middleware-endpoint/dist-es/index.js +1 -6
- package/node_modules/@smithy/middleware-endpoint/package.json +5 -39
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +22 -396
- package/node_modules/@smithy/middleware-retry/dist-es/index.js +1 -8
- package/node_modules/@smithy/middleware-retry/package.json +5 -44
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +9 -104
- package/node_modules/@smithy/middleware-serde/dist-es/index.js +1 -3
- package/node_modules/@smithy/middleware-serde/package.json +5 -30
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +5 -285
- package/node_modules/@smithy/middleware-stack/dist-es/index.js +1 -1
- package/node_modules/@smithy/middleware-stack/package.json +5 -26
- package/node_modules/@smithy/node-config-provider/dist-cjs/index.js +5 -62
- package/node_modules/@smithy/node-config-provider/dist-es/index.js +1 -1
- package/node_modules/@smithy/node-config-provider/package.json +5 -28
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +72 -41
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +5 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +26 -16
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +31 -18
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -4
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +2 -3
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +10 -117
- package/node_modules/@smithy/property-provider/dist-es/index.js +1 -6
- package/node_modules/@smithy/property-provider/package.json +5 -25
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +11 -169
- package/node_modules/@smithy/protocol-http/dist-es/index.js +1 -8
- package/node_modules/@smithy/protocol-http/package.json +5 -25
- package/node_modules/@smithy/querystring-builder/dist-cjs/index.js +5 -26
- package/node_modules/@smithy/querystring-builder/dist-es/index.js +1 -21
- package/node_modules/@smithy/querystring-builder/package.json +5 -25
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +16 -196
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +1 -10
- package/node_modules/@smithy/shared-ini-file-loader/package.json +5 -37
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +167 -170
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +1 -2
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +3 -4
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +3 -4
- package/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js +1 -2
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +1 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +1 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +1 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +1 -1
- package/node_modules/@smithy/signature-v4/package.json +2 -7
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +75 -642
- package/node_modules/@smithy/smithy-client/dist-es/index.js +3 -20
- package/node_modules/@smithy/smithy-client/package.json +5 -33
- package/node_modules/@smithy/url-parser/dist-cjs/index.js +5 -23
- package/node_modules/@smithy/url-parser/dist-es/index.js +1 -18
- package/node_modules/@smithy/url-parser/package.json +5 -26
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +6 -27
- package/node_modules/@smithy/util-base64/dist-es/index.js +1 -2
- package/node_modules/@smithy/util-base64/package.json +5 -38
- package/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +5 -30
- package/node_modules/@smithy/util-body-length-browser/dist-es/index.js +1 -1
- package/node_modules/@smithy/util-body-length-browser/package.json +5 -25
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +5 -32
- package/node_modules/@smithy/util-body-length-node/dist-es/index.js +1 -1
- package/node_modules/@smithy/util-body-length-node/package.json +5 -26
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +44 -17
- package/node_modules/@smithy/util-buffer-from/package.json +14 -15
- package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +7 -30
- package/node_modules/@smithy/util-config-provider/dist-es/index.js +1 -3
- package/node_modules/@smithy/util-config-provider/package.json +5 -26
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +5 -16
- package/node_modules/@smithy/util-defaults-mode-browser/dist-es/index.js +1 -1
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -30
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +5 -74
- package/node_modules/@smithy/util-defaults-mode-node/dist-es/index.js +1 -1
- package/node_modules/@smithy/util-defaults-mode-node/package.json +5 -31
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +12 -573
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +1 -8
- package/node_modules/@smithy/util-endpoints/package.json +5 -29
- package/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +6 -38
- package/node_modules/@smithy/util-hex-encoding/dist-es/index.js +1 -33
- package/node_modules/@smithy/util-hex-encoding/package.json +5 -25
- package/node_modules/@smithy/util-middleware/dist-cjs/index.js +6 -15
- package/node_modules/@smithy/util-middleware/dist-es/index.js +1 -2
- package/node_modules/@smithy/util-middleware/package.json +5 -26
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +21 -333
- package/node_modules/@smithy/util-retry/dist-es/index.js +1 -8
- package/node_modules/@smithy/util-retry/package.json +5 -30
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +14 -108
- package/node_modules/@smithy/util-stream/dist-es/index.js +1 -9
- package/node_modules/@smithy/util-stream/package.json +7 -63
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +7 -32
- package/node_modules/@smithy/util-utf8/dist-es/index.js +1 -3
- package/node_modules/@smithy/util-utf8/package.json +5 -31
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/dist/priority-queue.js +53 -6
- package/node_modules/@whiskeysockets/baileys/node_modules/p-queue/package.json +3 -3
- package/node_modules/ajv/dist/core.js +1 -1
- package/node_modules/ajv/package.json +2 -3
- package/node_modules/axios/dist/axios.js +1416 -1075
- package/node_modules/axios/dist/axios.min.js +3 -3
- package/node_modules/axios/dist/browser/axios.cjs +1511 -1122
- package/node_modules/axios/dist/esm/axios.js +1513 -1123
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/node/axios.cjs +1150 -737
- package/node_modules/axios/index.d.cts +26 -13
- package/node_modules/axios/index.js +2 -0
- package/node_modules/axios/lib/adapters/adapters.js +4 -2
- package/node_modules/axios/lib/adapters/fetch.js +126 -10
- package/node_modules/axios/lib/adapters/http.js +232 -66
- package/node_modules/axios/lib/adapters/xhr.js +6 -2
- package/node_modules/axios/lib/core/Axios.js +7 -3
- package/node_modules/axios/lib/core/AxiosError.js +86 -1
- package/node_modules/axios/lib/core/AxiosHeaders.js +3 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +19 -7
- package/node_modules/axios/lib/core/mergeConfig.js +16 -1
- package/node_modules/axios/lib/core/settle.js +7 -11
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +1 -1
- package/node_modules/axios/lib/helpers/cookies.js +14 -2
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +28 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +1 -1
- package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
- package/node_modules/axios/lib/helpers/resolveConfig.js +46 -18
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +26 -1
- package/node_modules/axios/lib/helpers/validator.js +3 -1
- package/node_modules/axios/lib/utils.js +27 -15
- package/node_modules/axios/package.json +17 -24
- package/node_modules/basic-ftp/dist/FtpContext.js +7 -1
- package/node_modules/basic-ftp/package.json +5 -5
- package/node_modules/brace-expansion/dist/commonjs/index.js +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js +1 -1
- package/node_modules/brace-expansion/package.json +1 -1
- package/node_modules/cacheable/dist/index.cjs +17 -6
- package/node_modules/cacheable/dist/index.js +17 -6
- package/node_modules/cacheable/package.json +6 -6
- package/node_modules/express-rate-limit/dist/index.cjs +51 -10
- package/node_modules/express-rate-limit/dist/index.d.cts +31 -1
- package/node_modules/express-rate-limit/dist/index.mjs +51 -10
- package/node_modules/express-rate-limit/package.json +3 -2
- package/node_modules/fast-string-truncated-width/dist/index.js +36 -96
- package/node_modules/fast-string-truncated-width/dist/utils.js +14 -9
- package/node_modules/fast-string-truncated-width/package.json +1 -1
- package/node_modules/fast-string-width/package.json +2 -2
- package/node_modules/fast-uri/.github/workflows/ci.yml +12 -7
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +1 -1
- package/node_modules/fast-uri/index.js +90 -24
- package/node_modules/fast-uri/lib/utils.js +129 -22
- package/node_modules/fast-uri/package.json +3 -4
- package/node_modules/fast-wrap-ansi/lib/main.js +4 -1
- package/node_modules/fast-wrap-ansi/package.json +2 -2
- package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -1
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +91 -1
- package/node_modules/fast-xml-builder/lib/fxb.min.js +1 -1
- package/node_modules/fast-xml-builder/package.json +3 -2
- package/node_modules/fast-xml-builder/src/fxb.js +106 -40
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +95 -42
- package/node_modules/fast-xml-builder/src/util.js +16 -0
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +172 -6
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/package.json +5 -4
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +2 -5
- package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +15 -11
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +174 -245
- package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +2 -2
- package/node_modules/get-east-asian-width/lookup-data.js +15 -12
- package/node_modules/get-east-asian-width/lookup.js +25 -22
- package/node_modules/get-east-asian-width/package.json +1 -1
- package/node_modules/hosted-git-info/lib/hosts.js +2 -2
- package/node_modules/hosted-git-info/package.json +13 -17
- package/node_modules/ip-address/dist/common.js +21 -0
- package/node_modules/ip-address/dist/ipv4.js +193 -68
- package/node_modules/ip-address/dist/ipv6.js +345 -131
- package/node_modules/ip-address/dist/v6/constants.js +5 -0
- package/node_modules/ip-address/dist/v6/helpers.js +12 -3
- package/node_modules/ip-address/package.json +45 -35
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -1
- package/node_modules/ipaddr.js/lib/ipaddr.js +21 -6
- package/node_modules/ipaddr.js/package.json +1 -1
- package/node_modules/jiti/dist/babel.cjs +38 -27
- package/node_modules/jiti/dist/jiti.cjs +1 -1
- package/node_modules/jiti/lib/jiti-static.mjs +23 -0
- package/node_modules/jiti/package.json +56 -43
- package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/node_modules/jose/dist/webapi/lib/pbes2kw.js +3 -0
- package/node_modules/jose/package.json +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +1686 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +11 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +4 -7
- package/node_modules/lru-cache/dist/commonjs/index.js +10 -16
- package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js +1686 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +11 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js +11 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.js +9 -15
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/browser/perf.js +8 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.js +9 -15
- package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +2 -3
- package/node_modules/lru-cache/dist/esm/node/index.js +9 -15
- package/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/perf.js +8 -0
- package/node_modules/lru-cache/dist/esm/perf.js +8 -0
- package/node_modules/lru-cache/package.json +44 -16
- package/node_modules/protobufjs/dist/light/protobuf.js +233 -109
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.js +90 -38
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.js +237 -112
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/ext/descriptor/index.js +35 -16
- package/node_modules/protobufjs/package.json +7 -4
- package/node_modules/protobufjs/src/converter.js +14 -5
- package/node_modules/protobufjs/src/decoder.js +17 -9
- package/node_modules/protobufjs/src/enum.js +4 -1
- package/node_modules/protobufjs/src/namespace.js +13 -7
- package/node_modules/protobufjs/src/object.js +4 -0
- package/node_modules/protobufjs/src/parse.js +4 -3
- package/node_modules/protobufjs/src/reader.js +12 -2
- package/node_modules/protobufjs/src/service.js +8 -4
- package/node_modules/protobufjs/src/type.js +22 -12
- package/node_modules/protobufjs/src/types.js +1 -1
- package/node_modules/protobufjs/src/util/minimal.js +24 -1
- package/node_modules/protobufjs/src/util/patterns.js +8 -0
- package/node_modules/protobufjs/src/util.js +9 -9
- package/node_modules/protobufjs/src/verifier.js +7 -4
- package/node_modules/protobufjs/src/wrappers.js +4 -3
- package/node_modules/qified/dist/index.cjs +129 -24
- package/node_modules/qified/dist/index.d.cts +41 -14
- package/node_modules/qified/dist/index.mjs +129 -24
- package/node_modules/qified/node_modules/hookified/dist/browser/index.global.js +949 -890
- package/node_modules/qified/node_modules/hookified/dist/browser/index.js +934 -886
- package/node_modules/qified/node_modules/hookified/dist/node/index.cjs +900 -912
- package/node_modules/qified/node_modules/hookified/dist/node/index.d.cts +730 -631
- package/node_modules/qified/node_modules/hookified/dist/node/index.js +895 -882
- package/node_modules/qified/node_modules/hookified/package.json +12 -11
- package/node_modules/qified/package.json +1 -1
- package/node_modules/semver/bin/semver.js +14 -10
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/index.js +2 -0
- package/node_modules/semver/internal/re.js +1 -1
- package/node_modules/semver/package.json +3 -3
- package/node_modules/semver/range.bnf +5 -4
- package/node_modules/socks/package.json +3 -3
- package/node_modules/strnum/package.json +3 -2
- package/node_modules/strnum/strnum.js +12 -10
- package/node_modules/xml-naming/package.json +54 -0
- package/node_modules/xml-naming/src/index.js +270 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +5 -3
- package/node_modules/yaml/browser/dist/nodes/Alias.js +2 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +11 -8
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +2 -1
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +5 -3
- package/node_modules/yaml/dist/nodes/Alias.js +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +10 -7
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +2 -1
- package/node_modules/yaml/package.json +1 -1
- package/node_modules/zod/locales/package.json +2 -1
- package/node_modules/zod/mini/package.json +2 -1
- package/node_modules/zod/package.json +1 -1
- package/node_modules/zod/v3/package.json +2 -1
- package/node_modules/zod/v4/classic/errors.js +2 -2
- package/node_modules/zod/v4/classic/external.d.cts +1 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +31 -16
- package/node_modules/zod/v4/classic/from-json-schema.js +31 -16
- package/node_modules/zod/v4/classic/package.json +2 -1
- package/node_modules/zod/v4/classic/schemas.cjs +358 -119
- package/node_modules/zod/v4/classic/schemas.d.cts +42 -14
- package/node_modules/zod/v4/classic/schemas.js +356 -118
- package/node_modules/zod/v4/core/api.cjs +7 -2
- package/node_modules/zod/v4/core/api.d.cts +26 -5
- package/node_modules/zod/v4/core/api.js +7 -2
- package/node_modules/zod/v4/core/checks.d.cts +1 -1
- package/node_modules/zod/v4/core/core.cjs +3 -1
- package/node_modules/zod/v4/core/core.js +4 -2
- package/node_modules/zod/v4/core/errors.cjs +26 -23
- package/node_modules/zod/v4/core/errors.d.cts +1 -0
- package/node_modules/zod/v4/core/errors.js +26 -23
- package/node_modules/zod/v4/core/json-schema-processors.cjs +16 -20
- package/node_modules/zod/v4/core/json-schema-processors.js +16 -20
- package/node_modules/zod/v4/core/package.json +2 -1
- package/node_modules/zod/v4/core/parse.cjs +7 -7
- package/node_modules/zod/v4/core/parse.js +7 -7
- package/node_modules/zod/v4/core/regexes.cjs +9 -3
- package/node_modules/zod/v4/core/regexes.d.cts +6 -0
- package/node_modules/zod/v4/core/regexes.js +7 -1
- package/node_modules/zod/v4/core/schemas.cjs +211 -65
- package/node_modules/zod/v4/core/schemas.d.cts +39 -1
- package/node_modules/zod/v4/core/schemas.js +210 -64
- package/node_modules/zod/v4/core/to-json-schema.cjs +12 -1
- package/node_modules/zod/v4/core/to-json-schema.js +12 -1
- package/node_modules/zod/v4/core/util.cjs +54 -30
- package/node_modules/zod/v4/core/util.d.cts +1 -0
- package/node_modules/zod/v4/core/util.js +55 -32
- package/node_modules/zod/v4/core/versions.cjs +2 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/locales/el.cjs +136 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.js +109 -0
- package/node_modules/zod/v4/locales/en.cjs +4 -0
- package/node_modules/zod/v4/locales/en.js +4 -0
- package/node_modules/zod/v4/locales/fr.cjs +24 -7
- package/node_modules/zod/v4/locales/fr.js +24 -7
- package/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.js +122 -0
- package/node_modules/zod/v4/locales/index.cjs +8 -1
- package/node_modules/zod/v4/locales/index.d.cts +3 -0
- package/node_modules/zod/v4/locales/index.js +3 -0
- package/node_modules/zod/v4/locales/it.cjs +1 -1
- package/node_modules/zod/v4/locales/it.js +1 -1
- package/node_modules/zod/v4/locales/ka.cjs +8 -8
- package/node_modules/zod/v4/locales/ka.js +8 -8
- package/node_modules/zod/v4/locales/package.json +2 -1
- package/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.js +119 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/mini/external.d.cts +1 -0
- package/node_modules/zod/v4/mini/package.json +2 -1
- package/node_modules/zod/v4/mini/schemas.cjs +41 -4
- package/node_modules/zod/v4/mini/schemas.d.cts +28 -10
- package/node_modules/zod/v4/mini/schemas.js +40 -4
- package/node_modules/zod/v4/package.json +2 -1
- package/node_modules/zod/v4-mini/package.json +2 -1
- package/package.json +2 -2
- package/skills/news-fetcher/SKILL.md +278 -0
- package/skills/qqbrowser-skill/SKILL.md +15 -4
- package/skills/social-publish/SKILL.md +115 -0
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/package.json +0 -60
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
- package/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from/package.json +0 -61
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-es/index.js +0 -2
- package/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/package.json +0 -60
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-es/index.js +0 -14
- package/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/package.json +0 -61
- package/node_modules/@protobufjs/inquire/.npmignore +0 -3
- package/node_modules/@protobufjs/utf8/.npmignore +0 -3
- package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/index.js +0 -4
- package/node_modules/@smithy/config-resolver/dist-es/regionConfig/index.js +0 -2
- package/node_modules/@smithy/config-resolver/dist-es/regionInfo/index.js +0 -3
- package/node_modules/@smithy/eventstream-serde-browser/dist-es/provider.js +0 -2
- package/node_modules/@smithy/eventstream-serde-node/dist-es/EventStreamMarshaller.js +0 -19
- package/node_modules/@smithy/eventstream-serde-node/dist-es/provider.js +0 -2
- package/node_modules/@smithy/eventstream-serde-node/dist-es/utils.js +0 -26
- package/node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js +0 -132
- package/node_modules/@smithy/eventstream-serde-universal/dist-es/index.js +0 -2
- package/node_modules/@smithy/eventstream-serde-universal/dist-es/provider.js +0 -2
- package/node_modules/@smithy/eventstream-serde-universal/package.json +0 -65
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.browser.js +0 -5
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +0 -7
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js +0 -35
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/index.js +0 -2
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +0 -17
- package/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js +0 -36
- package/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js +0 -18
- package/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js +0 -24
- package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.browser.js +0 -5
- package/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +0 -7
- package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +0 -105
- package/node_modules/@smithy/node-config-provider/dist-es/fromStatic.js +0 -3
- package/node_modules/@smithy/property-provider/dist-es/fromStatic.js +0 -1
- package/node_modules/@smithy/protocol-http/dist-es/extensions/index.js +0 -1
- package/node_modules/@smithy/querystring-parser/dist-cjs/index.js +0 -27
- package/node_modules/@smithy/querystring-parser/package.json +0 -60
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +0 -82
- package/node_modules/@smithy/service-error-classification/package.json +0 -59
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +0 -26
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +0 -12
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +0 -15
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +0 -16
- package/node_modules/@smithy/smithy-client/dist-es/collect-stream-body.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-es/extended-encode-uri-component.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-es/extensions/index.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-es/resolve-path.js +0 -1
- package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +0 -12
- package/node_modules/@smithy/util-base64/dist-cjs/fromBase64.browser.js +0 -40
- package/node_modules/@smithy/util-base64/dist-cjs/fromBase64.js +0 -16
- package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +0 -38
- package/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +0 -19
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/constants.js +0 -4
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +0 -34
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +0 -23
- package/node_modules/@smithy/util-defaults-mode-browser/dist-es/constants.js +0 -1
- package/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js +0 -52
- package/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +0 -36
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js +0 -7
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +0 -64
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +0 -39
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +0 -12
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +0 -60
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +0 -103
- package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js +0 -31
- package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +0 -41
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +0 -34
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.js +0 -42
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +0 -68
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +0 -54
- package/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +0 -10
- package/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +0 -16
- package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +0 -10
- package/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +0 -9
- package/node_modules/@smithy/util-uri-escape/dist-es/index.js +0 -2
- package/node_modules/@smithy/util-uri-escape/package.json +0 -60
- package/node_modules/@smithy/uuid/dist-cjs/index.js +0 -36
- package/node_modules/@smithy/uuid/dist-cjs/randomUUID.js +0 -6
- package/node_modules/@smithy/uuid/dist-cjs/randomUUID.native.js +0 -4
- package/node_modules/@smithy/uuid/dist-es/index.js +0 -1
- package/node_modules/@smithy/uuid/dist-es/randomUUID.browser.js +0 -1
- package/node_modules/@smithy/uuid/dist-es/randomUUID.js +0 -2
- package/node_modules/@smithy/uuid/dist-es/randomUUID.native.js +0 -1
- package/node_modules/@smithy/uuid/package.json +0 -66
- package/node_modules/fast-uri/.github/.stale.yml +0 -21
- package/node_modules/fast-uri/.github/tests_checker.yml +0 -8
- package/node_modules/fast-xml-parser/lib/pem.d.cts +0 -148
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.mts.map +0 -1
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +0 -1
- package/node_modules/@smithy/{invalid-dependency/dist-es → core/dist-es/submodules/client/invalid-dependency}/invalidFunction.js +0 -0
- package/node_modules/@smithy/{invalid-dependency/dist-es → core/dist-es/submodules/client/invalid-dependency}/invalidProvider.js +0 -0
- package/node_modules/@smithy/{middleware-stack/dist-es → core/dist-es/submodules/client/middleware-stack}/MiddlewareStack.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/client/middleware-stack}/types.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/NoOpLogger.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/constants.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/create-aggregated-client.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/default-error-handler.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/defaults-mode.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/emitWarningIfUnsupportedVersion.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/exceptions.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/extensions/retry.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/get-array-if-single-item.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/get-value-from-text-node.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/is-serializable-header-value.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/object-mapping.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/schemaLogFilter.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/ser-utils.js +0 -0
- package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/client/smithy-client}/serde-json.js +0 -0
- package/node_modules/@smithy/{util-middleware/dist-es → core/dist-es/submodules/client/util-middleware}/getSmithyContext.js +0 -0
- package/node_modules/@smithy/{util-middleware/dist-es → core/dist-es/submodules/client/util-middleware}/normalizeProvider.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/endpointsConfig/utils/getEndpointFromRegion.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionConfig/config.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionConfig/getRealRegion.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionConfig/isFipsRegion.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionConfig/resolveRegionConfig.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/EndpointVariant.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/EndpointVariantTag.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/PartitionHash.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/RegionHash.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/getHostnameFromVariants.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/getRegionInfo.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/getResolvedHostname.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/getResolvedPartition.js +0 -0
- package/node_modules/@smithy/{config-resolver/dist-es → core/dist-es/submodules/config/config-resolver}/regionInfo/getResolvedSigningRegion.js +0 -0
- package/node_modules/@smithy/{util-defaults-mode-node/dist-es → core/dist-es/submodules/config/defaults-mode}/constants.js +0 -0
- package/node_modules/@smithy/{util-defaults-mode-node/dist-es → core/dist-es/submodules/config/defaults-mode}/defaultsModeConfig.js +0 -0
- package/node_modules/@smithy/{node-config-provider/dist-es → core/dist-es/submodules/config/node-config-provider}/getSelectorName.js +0 -0
- package/node_modules/@smithy/{property-provider/dist-es → core/dist-es/submodules/config/property-provider}/CredentialsProviderError.js +0 -0
- package/node_modules/@smithy/{property-provider/dist-es → core/dist-es/submodules/config/property-provider}/ProviderError.js +0 -0
- package/node_modules/@smithy/{property-provider/dist-es → core/dist-es/submodules/config/property-provider}/TokenProviderError.js +0 -0
- package/node_modules/@smithy/{property-provider/dist-es → core/dist-es/submodules/config/property-provider}/chain.js +0 -0
- package/node_modules/@smithy/{property-provider/dist-es → core/dist-es/submodules/config/property-provider}/memoize.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/constants.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/externalDataInterceptor.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getConfigData.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getProfileName.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/getSsoSessionData.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/loadSsoSessionData.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/mergeConfigFiles.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/parseIni.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/parseKnownFiles.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/config/shared-ini-file-loader}/readFile.js +0 -0
- package/node_modules/@smithy/{middleware-retry/dist-es/retry-pre-sra-deprecated → core/dist-es/submodules/config/shared-ini-file-loader}/types.js +0 -0
- package/node_modules/@smithy/{util-config-provider/dist-es → core/dist-es/submodules/config/util-config-provider}/booleanSelector.js +0 -0
- package/node_modules/@smithy/{util-config-provider/dist-es → core/dist-es/submodules/config/util-config-provider}/numberSelector.js +0 -0
- package/node_modules/@smithy/{util-config-provider/dist-es → core/dist-es/submodules/config/util-config-provider}/types.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/adaptors/createConfigValueProvider.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/adaptors/getEndpointFromConfig.browser.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/resolveEndpointRequiredConfig.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/service-customizations/index.js +0 -0
- package/node_modules/@smithy/{middleware-endpoint/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/service-customizations/s3.js +0 -0
- package/node_modules/@smithy/{middleware-stack/dist-es → core/dist-es/submodules/endpoints/middleware-endpoint}/types.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/bdd/BinaryDecisionDiagram.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/cache/EndpointCache.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/debug/debugId.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/debug/index.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/debug/toDebugString.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/decideEndpoint.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/getEndpointUrlConfig.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/booleanEquals.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/coalesce.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/getAttr.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/getAttrPathList.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/index.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/isIpAddress.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/isSet.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/isValidHostLabel.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/ite.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/not.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/parseURL.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/split.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/stringEquals.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/substring.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/lib/uriEncode.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/resolveEndpoint.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/EndpointError.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/EndpointFunctions.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/EndpointRuleObject.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/ErrorRuleObject.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/RuleSetObject.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/TreeRuleObject.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/index.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/types/shared.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/callFunction.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/customEndpointFunctions.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/endpointFunctions.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateCondition.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateConditions.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateEndpointRule.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateErrorRule.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateRules.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateTemplate.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/evaluateTreeRule.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/getEndpointHeaders.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/getEndpointProperties.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/getEndpointProperty.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/getEndpointUrl.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/getReferenceValue.js +0 -0
- package/node_modules/@smithy/{util-endpoints/dist-es → core/dist-es/submodules/endpoints/util-endpoints}/utils/index.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/EventStreamCodec.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/Message.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/MessageDecoderStream.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/MessageEncoderStream.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/SmithyMessageDecoderStream.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/SmithyMessageEncoderStream.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/TestVectors.fixture.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/splitMessage.js +0 -0
- package/node_modules/@smithy/{eventstream-codec/dist-es → core/dist-es/submodules/event-streams/eventstream-codec}/vectorTypes.fixture.js +0 -0
- package/node_modules/@smithy/{eventstream-serde-config-resolver/dist-es → core/dist-es/submodules/event-streams/eventstream-serde-config-resolver}/EventStreamSerdeConfig.js +0 -0
- package/node_modules/@smithy/{eventstream-serde-universal/dist-es → core/dist-es/submodules/event-streams/eventstream-serde-universal}/getChunkedStream.js +0 -0
- package/node_modules/@smithy/{eventstream-serde-universal/dist-es → core/dist-es/submodules/event-streams/eventstream-serde-universal}/getUnmarshalledStream.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/Field.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/Fields.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/extensions/httpExtensionConfiguration.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/httpHandler.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/httpRequest.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/httpResponse.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/isValidHostname.js +0 -0
- package/node_modules/@smithy/{protocol-http/dist-es → core/dist-es/submodules/protocols/protocol-http}/types.js +0 -0
- package/node_modules/@smithy/{querystring-parser/dist-es/index.js → core/dist-es/submodules/protocols/querystring-parser/parseQueryString.js} +0 -0
- package/node_modules/@smithy/{util-uri-escape/dist-es → core/dist-es/submodules/protocols/util-uri-escape}/escape-uri-path.js +0 -0
- package/node_modules/@smithy/{util-uri-escape/dist-es → core/dist-es/submodules/protocols/util-uri-escape}/escape-uri.js +0 -0
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/isStreamingPayload/isStreamingPayload.browser.js +0 -0
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/longPollMiddleware.js +0 -0
- package/node_modules/@smithy/{shared-ini-file-loader/dist-es → core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated}/types.js +0 -0
- package/node_modules/@smithy/{middleware-retry/dist-es → core/dist-es/submodules/retry/middleware-retry}/util.js +0 -0
- package/node_modules/@smithy/{service-error-classification/dist-es → core/dist-es/submodules/retry/service-error-classification}/constants.js +0 -0
- package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/ConfiguredRetryStrategy.js +1 -1
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/DefaultRetryBackoffStrategy.js +0 -0
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/DefaultRetryToken.js +0 -0
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/config.js +0 -0
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/constants.js +0 -0
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/retries-2026-config.js +0 -0
- /package/node_modules/@smithy/{util-retry/dist-es → core/dist-es/submodules/retry/util-retry}/types.js +0 -0
- /package/node_modules/{@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer/dist-es/index.js → @smithy/core/dist-es/submodules/serde/is-array-buffer/is-array-buffer.js} +0 -0
- /package/node_modules/@smithy/{middleware-serde/dist-es → core/dist-es/submodules/serde/middleware-serde}/serdePlugin.js +0 -0
- /package/node_modules/@smithy/{middleware-serde/dist-es → core/dist-es/submodules/serde/middleware-serde}/serializerMiddleware.js +0 -0
- /package/node_modules/@smithy/{util-base64/dist-es/constants.browser.js → core/dist-es/submodules/serde/util-base64/constants-for-browser.js} +0 -0
- /package/node_modules/@smithy/{util-body-length-browser/dist-es/calculateBodyLength.js → core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js} +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/ByteArrayCollector.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/checksum/ChecksumStream.browser.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es/createBufferedReadableStream.js → core/dist-es/submodules/serde/util-stream/createBufferedReadable.browser.js} +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/getAwsChunkedEncodingStream.browser.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/getAwsChunkedEncodingStream.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/headStream.browser.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/splitStream.browser.js +0 -0
- /package/node_modules/@smithy/{util-stream/dist-es → core/dist-es/submodules/serde/util-stream}/stream-type-check.js +0 -0
- /package/node_modules/@smithy/{util-utf8/dist-es → core/dist-es/submodules/serde/util-utf8}/fromUtf8.browser.js +0 -0
- /package/node_modules/@smithy/{util-utf8/dist-es → core/dist-es/submodules/serde/util-utf8}/toUint8Array.js +0 -0
- /package/node_modules/@smithy/{util-utf8/dist-es → core/dist-es/submodules/serde/util-utf8}/toUtf8.browser.js +0 -0
- /package/node_modules/@smithy/{uuid/dist-es → core/dist-es/submodules/serde/uuid}/v4.js +0 -0
|
@@ -1,890 +1,903 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/eventified.ts
|
|
2
|
+
const ERROR_EVENT = "error";
|
|
3
3
|
var Eventified = class {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
for (let i = 0; i < entry.length; i++) {
|
|
322
|
-
result.push(entry[i]);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
return result;
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
* Sends a log message using the configured logger based on the event name
|
|
330
|
-
* @param {string | symbol} eventName - The event name that determines the log level
|
|
331
|
-
* @param {unknown} data - The data to log
|
|
332
|
-
*/
|
|
333
|
-
sendToEventLogger(eventName, data) {
|
|
334
|
-
if (!this._eventLogger) {
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
let message;
|
|
338
|
-
if (typeof data === "string") {
|
|
339
|
-
message = data;
|
|
340
|
-
} else if (Array.isArray(data) && data.length > 0 && data[0] instanceof Error) {
|
|
341
|
-
message = data[0].message;
|
|
342
|
-
} else if (data instanceof Error) {
|
|
343
|
-
message = data.message;
|
|
344
|
-
} else if (Array.isArray(data) && data.length > 0 && typeof data[0]?.message === "string") {
|
|
345
|
-
message = data[0].message;
|
|
346
|
-
} else {
|
|
347
|
-
message = JSON.stringify(data);
|
|
348
|
-
}
|
|
349
|
-
switch (eventName) {
|
|
350
|
-
case "error": {
|
|
351
|
-
this._eventLogger.error?.(message, { event: eventName, data });
|
|
352
|
-
break;
|
|
353
|
-
}
|
|
354
|
-
case "warn": {
|
|
355
|
-
this._eventLogger.warn?.(message, { event: eventName, data });
|
|
356
|
-
break;
|
|
357
|
-
}
|
|
358
|
-
case "trace": {
|
|
359
|
-
this._eventLogger.trace?.(message, { event: eventName, data });
|
|
360
|
-
break;
|
|
361
|
-
}
|
|
362
|
-
case "debug": {
|
|
363
|
-
this._eventLogger.debug?.(message, { event: eventName, data });
|
|
364
|
-
break;
|
|
365
|
-
}
|
|
366
|
-
case "fatal": {
|
|
367
|
-
this._eventLogger.fatal?.(message, { event: eventName, data });
|
|
368
|
-
break;
|
|
369
|
-
}
|
|
370
|
-
default: {
|
|
371
|
-
this._eventLogger.info?.(message, { event: eventName, data });
|
|
372
|
-
break;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
4
|
+
_eventListeners;
|
|
5
|
+
_maxListeners;
|
|
6
|
+
_eventLogger;
|
|
7
|
+
_throwOnEmitError = false;
|
|
8
|
+
_throwOnEmptyListeners = true;
|
|
9
|
+
constructor(options) {
|
|
10
|
+
this._eventListeners = /* @__PURE__ */ new Map();
|
|
11
|
+
this._maxListeners = 0;
|
|
12
|
+
this._eventLogger = options?.eventLogger;
|
|
13
|
+
if (options?.throwOnEmitError !== void 0) this._throwOnEmitError = options.throwOnEmitError;
|
|
14
|
+
if (options?.throwOnEmptyListeners !== void 0) this._throwOnEmptyListeners = options.throwOnEmptyListeners;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Gets the event logger
|
|
18
|
+
* @returns {Logger}
|
|
19
|
+
*/
|
|
20
|
+
get eventLogger() {
|
|
21
|
+
return this._eventLogger;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Sets the event logger
|
|
25
|
+
* @param {Logger} eventLogger
|
|
26
|
+
*/
|
|
27
|
+
set eventLogger(eventLogger) {
|
|
28
|
+
this._eventLogger = eventLogger;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Gets whether an error should be thrown when an emit throws an error. Default is false and only emits an error event.
|
|
32
|
+
* @returns {boolean}
|
|
33
|
+
*/
|
|
34
|
+
get throwOnEmitError() {
|
|
35
|
+
return this._throwOnEmitError;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Sets whether an error should be thrown when an emit throws an error. Default is false and only emits an error event.
|
|
39
|
+
* @param {boolean} value
|
|
40
|
+
*/
|
|
41
|
+
set throwOnEmitError(value) {
|
|
42
|
+
this._throwOnEmitError = value;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Gets whether an error should be thrown when emitting 'error' event with no listeners. Default is false.
|
|
46
|
+
* @returns {boolean}
|
|
47
|
+
*/
|
|
48
|
+
get throwOnEmptyListeners() {
|
|
49
|
+
return this._throwOnEmptyListeners;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Sets whether an error should be thrown when emitting 'error' event with no listeners. Default is false.
|
|
53
|
+
* @param {boolean} value
|
|
54
|
+
*/
|
|
55
|
+
set throwOnEmptyListeners(value) {
|
|
56
|
+
this._throwOnEmptyListeners = value;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Adds a handler function for a specific event that will run only once
|
|
60
|
+
* @param {string | symbol} eventName
|
|
61
|
+
* @param {EventListener} listener
|
|
62
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
|
63
|
+
*/
|
|
64
|
+
once(eventName, listener) {
|
|
65
|
+
const onceListener = (...arguments_) => {
|
|
66
|
+
this.off(eventName, onceListener);
|
|
67
|
+
listener(...arguments_);
|
|
68
|
+
};
|
|
69
|
+
this.on(eventName, onceListener);
|
|
70
|
+
return this;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Gets the number of listeners for a specific event. If no event is provided, it returns the total number of listeners
|
|
74
|
+
* @param {string} eventName The event name. Not required
|
|
75
|
+
* @returns {number} The number of listeners
|
|
76
|
+
*/
|
|
77
|
+
listenerCount(eventName) {
|
|
78
|
+
if (eventName === void 0) {
|
|
79
|
+
let count = 0;
|
|
80
|
+
for (const entry of this._eventListeners.values()) count += typeof entry === "function" ? 1 : entry.length;
|
|
81
|
+
return count;
|
|
82
|
+
}
|
|
83
|
+
const entry = this._eventListeners.get(eventName);
|
|
84
|
+
if (entry === void 0) return 0;
|
|
85
|
+
return typeof entry === "function" ? 1 : entry.length;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Gets an array of event names
|
|
89
|
+
* @returns {Array<string | symbol>} An array of event names
|
|
90
|
+
*/
|
|
91
|
+
eventNames() {
|
|
92
|
+
return [...this._eventListeners.keys()];
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Gets an array of listeners for a specific event. If no event is provided, it returns all listeners
|
|
96
|
+
* @param {string} [event] (Optional) The event name
|
|
97
|
+
* @returns {EventListener[]} An array of listeners
|
|
98
|
+
*/
|
|
99
|
+
rawListeners(event) {
|
|
100
|
+
if (event === void 0) return this.getAllListeners();
|
|
101
|
+
const entry = this._eventListeners.get(event);
|
|
102
|
+
if (entry === void 0) return [];
|
|
103
|
+
return typeof entry === "function" ? [entry] : entry;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Prepends a listener to the beginning of the listeners array for the specified event
|
|
107
|
+
* @param {string | symbol} eventName
|
|
108
|
+
* @param {EventListener} listener
|
|
109
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
|
110
|
+
*/
|
|
111
|
+
prependListener(eventName, listener) {
|
|
112
|
+
const existing = this._eventListeners.get(eventName);
|
|
113
|
+
if (existing === void 0) this._eventListeners.set(eventName, listener);
|
|
114
|
+
else if (typeof existing === "function") this._eventListeners.set(eventName, [listener, existing]);
|
|
115
|
+
else existing.unshift(listener);
|
|
116
|
+
return this;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Prepends a one-time listener to the beginning of the listeners array for the specified event
|
|
120
|
+
* @param {string | symbol} eventName
|
|
121
|
+
* @param {EventListener} listener
|
|
122
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
|
123
|
+
*/
|
|
124
|
+
prependOnceListener(eventName, listener) {
|
|
125
|
+
const onceListener = (...arguments_) => {
|
|
126
|
+
this.off(eventName, onceListener);
|
|
127
|
+
listener(...arguments_);
|
|
128
|
+
};
|
|
129
|
+
this.prependListener(eventName, onceListener);
|
|
130
|
+
return this;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Gets the maximum number of listeners that can be added for a single event
|
|
134
|
+
* @returns {number} The maximum number of listeners
|
|
135
|
+
*/
|
|
136
|
+
maxListeners() {
|
|
137
|
+
return this._maxListeners;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Adds a listener for a specific event. It is an alias for the on() method
|
|
141
|
+
* @param {string | symbol} event
|
|
142
|
+
* @param {EventListener} listener
|
|
143
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
|
144
|
+
*/
|
|
145
|
+
addListener(event, listener) {
|
|
146
|
+
this.on(event, listener);
|
|
147
|
+
return this;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Adds a listener for a specific event
|
|
151
|
+
* @param {string | symbol} event
|
|
152
|
+
* @param {EventListener} listener
|
|
153
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
|
154
|
+
*/
|
|
155
|
+
on(event, listener) {
|
|
156
|
+
const existing = this._eventListeners.get(event);
|
|
157
|
+
if (existing === void 0) {
|
|
158
|
+
this._eventListeners.set(event, listener);
|
|
159
|
+
return this;
|
|
160
|
+
}
|
|
161
|
+
if (typeof existing === "function") {
|
|
162
|
+
const arr = [existing, listener];
|
|
163
|
+
this._eventListeners.set(event, arr);
|
|
164
|
+
if (this._maxListeners > 0 && arr.length > this._maxListeners) console.warn(`MaxListenersExceededWarning: Possible event memory leak detected. ${arr.length} ${event} listeners added. Use setMaxListeners() to increase limit.`);
|
|
165
|
+
} else {
|
|
166
|
+
existing.push(listener);
|
|
167
|
+
if (this._maxListeners > 0 && existing.length > this._maxListeners) console.warn(`MaxListenersExceededWarning: Possible event memory leak detected. ${existing.length} ${event} listeners added. Use setMaxListeners() to increase limit.`);
|
|
168
|
+
}
|
|
169
|
+
return this;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Removes a listener for a specific event. It is an alias for the off() method
|
|
173
|
+
* @param {string | symbol} event
|
|
174
|
+
* @param {EventListener} listener
|
|
175
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
|
176
|
+
*/
|
|
177
|
+
removeListener(event, listener) {
|
|
178
|
+
this.off(event, listener);
|
|
179
|
+
return this;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Removes a listener for a specific event
|
|
183
|
+
* @param {string | symbol} event
|
|
184
|
+
* @param {EventListener} listener
|
|
185
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
|
186
|
+
*/
|
|
187
|
+
off(event, listener) {
|
|
188
|
+
const entry = this._eventListeners.get(event);
|
|
189
|
+
if (entry === void 0) return this;
|
|
190
|
+
if (typeof entry === "function") {
|
|
191
|
+
if (entry === listener) this._eventListeners.delete(event);
|
|
192
|
+
return this;
|
|
193
|
+
}
|
|
194
|
+
const index = entry.indexOf(listener);
|
|
195
|
+
if (index !== -1) if (entry.length === 2) this._eventListeners.set(event, entry[1 - index]);
|
|
196
|
+
else if (entry.length === 1) this._eventListeners.delete(event);
|
|
197
|
+
else entry.splice(index, 1);
|
|
198
|
+
return this;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Calls all listeners for a specific event
|
|
202
|
+
* @param {string | symbol} event
|
|
203
|
+
* @param arguments_ The arguments to pass to the listeners
|
|
204
|
+
* @returns {boolean} Returns true if the event had listeners, false otherwise
|
|
205
|
+
*/
|
|
206
|
+
emit(event, ...arguments_) {
|
|
207
|
+
let result = false;
|
|
208
|
+
const entry = this._eventListeners.get(event);
|
|
209
|
+
const argumentLength = arguments_.length;
|
|
210
|
+
if (entry !== void 0) {
|
|
211
|
+
if (typeof entry === "function") if (argumentLength === 1) entry(arguments_[0]);
|
|
212
|
+
else if (argumentLength === 2) entry(arguments_[0], arguments_[1]);
|
|
213
|
+
else entry(...arguments_);
|
|
214
|
+
else {
|
|
215
|
+
const len = entry.length;
|
|
216
|
+
for (let i = 0; i < len; i++) if (argumentLength === 1) entry[i](arguments_[0]);
|
|
217
|
+
else if (argumentLength === 2) entry[i](arguments_[0], arguments_[1]);
|
|
218
|
+
else entry[i](...arguments_);
|
|
219
|
+
}
|
|
220
|
+
result = true;
|
|
221
|
+
}
|
|
222
|
+
if (this._eventLogger) this.sendToEventLogger(event, arguments_);
|
|
223
|
+
if (!result && event === ERROR_EVENT) {
|
|
224
|
+
const error = arguments_[0] instanceof Error ? arguments_[0] : /* @__PURE__ */ new Error(`${arguments_[0]}`);
|
|
225
|
+
if (this._throwOnEmitError || this._throwOnEmptyListeners) throw error;
|
|
226
|
+
}
|
|
227
|
+
return result;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Gets all listeners for a specific event. If no event is provided, it returns all listeners
|
|
231
|
+
* @param {string} [event] (Optional) The event name
|
|
232
|
+
* @returns {EventListener[]} An array of listeners
|
|
233
|
+
*/
|
|
234
|
+
listeners(event) {
|
|
235
|
+
const entry = this._eventListeners.get(event);
|
|
236
|
+
if (entry === void 0) return [];
|
|
237
|
+
return typeof entry === "function" ? [entry] : entry;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Removes all listeners for a specific event. If no event is provided, it removes all listeners
|
|
241
|
+
* @param {string} [event] (Optional) The event name
|
|
242
|
+
* @returns {IEventEmitter} returns the instance of the class for chaining
|
|
243
|
+
*/
|
|
244
|
+
removeAllListeners(event) {
|
|
245
|
+
if (event !== void 0) this._eventListeners.delete(event);
|
|
246
|
+
else this._eventListeners.clear();
|
|
247
|
+
return this;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Sets the maximum number of listeners that can be added for a single event
|
|
251
|
+
* @param {number} n The maximum number of listeners
|
|
252
|
+
* @returns {void}
|
|
253
|
+
*/
|
|
254
|
+
setMaxListeners(n) {
|
|
255
|
+
this._maxListeners = n < 0 ? 0 : n;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Gets all listeners
|
|
259
|
+
* @returns {EventListener[]} An array of listeners
|
|
260
|
+
*/
|
|
261
|
+
getAllListeners() {
|
|
262
|
+
const result = [];
|
|
263
|
+
for (const entry of this._eventListeners.values()) if (typeof entry === "function") result.push(entry);
|
|
264
|
+
else for (let i = 0; i < entry.length; i++) result.push(entry[i]);
|
|
265
|
+
return result;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Sends a log message using the configured logger based on the event name
|
|
269
|
+
* @param {string | symbol} eventName - The event name that determines the log level
|
|
270
|
+
* @param {unknown} data - The data to log
|
|
271
|
+
*/
|
|
272
|
+
sendToEventLogger(eventName, data) {
|
|
273
|
+
/* v8 ignore next 3 -- @preserve: guarded by caller */
|
|
274
|
+
if (!this._eventLogger) return;
|
|
275
|
+
let message;
|
|
276
|
+
/* v8 ignore next -- @preserve */
|
|
277
|
+
if (typeof data === "string") message = data;
|
|
278
|
+
else if (Array.isArray(data) && data.length > 0 && data[0] instanceof Error) message = data[0].message;
|
|
279
|
+
else if (data instanceof Error) message = data.message;
|
|
280
|
+
else if (Array.isArray(data) && data.length > 0 && typeof data[0]?.message === "string") message = data[0].message;
|
|
281
|
+
else message = JSON.stringify(data);
|
|
282
|
+
switch (eventName) {
|
|
283
|
+
case "error":
|
|
284
|
+
this._eventLogger.error?.(message, {
|
|
285
|
+
event: eventName,
|
|
286
|
+
data
|
|
287
|
+
});
|
|
288
|
+
break;
|
|
289
|
+
case "warn":
|
|
290
|
+
this._eventLogger.warn?.(message, {
|
|
291
|
+
event: eventName,
|
|
292
|
+
data
|
|
293
|
+
});
|
|
294
|
+
break;
|
|
295
|
+
case "trace":
|
|
296
|
+
this._eventLogger.trace?.(message, {
|
|
297
|
+
event: eventName,
|
|
298
|
+
data
|
|
299
|
+
});
|
|
300
|
+
break;
|
|
301
|
+
case "debug":
|
|
302
|
+
this._eventLogger.debug?.(message, {
|
|
303
|
+
event: eventName,
|
|
304
|
+
data
|
|
305
|
+
});
|
|
306
|
+
break;
|
|
307
|
+
case "fatal":
|
|
308
|
+
this._eventLogger.fatal?.(message, {
|
|
309
|
+
event: eventName,
|
|
310
|
+
data
|
|
311
|
+
});
|
|
312
|
+
break;
|
|
313
|
+
default:
|
|
314
|
+
this._eventLogger.info?.(message, {
|
|
315
|
+
event: eventName,
|
|
316
|
+
data
|
|
317
|
+
});
|
|
318
|
+
break;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
376
321
|
};
|
|
377
|
-
|
|
378
|
-
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region src/hooks/hook.ts
|
|
324
|
+
/**
|
|
325
|
+
* Concrete implementation of the IHook interface.
|
|
326
|
+
* Provides a convenient class-based way to create hook entries.
|
|
327
|
+
*/
|
|
379
328
|
var Hook = class {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
329
|
+
id;
|
|
330
|
+
event;
|
|
331
|
+
handler;
|
|
332
|
+
/**
|
|
333
|
+
* Creates a new Hook instance
|
|
334
|
+
* @param {string} event - The event name for the hook
|
|
335
|
+
* @param {HookFn} handler - The handler function for the hook
|
|
336
|
+
* @param {string} [id] - Optional unique identifier for the hook
|
|
337
|
+
*/
|
|
338
|
+
constructor(event, handler, id) {
|
|
339
|
+
this.id = id;
|
|
340
|
+
this.event = event;
|
|
341
|
+
this.handler = handler;
|
|
342
|
+
}
|
|
394
343
|
};
|
|
395
|
-
|
|
396
|
-
|
|
344
|
+
//#endregion
|
|
345
|
+
//#region src/hooks/parallel-hook.ts
|
|
346
|
+
/**
|
|
347
|
+
* A ParallelHook fans a single invocation out to many registered hook
|
|
348
|
+
* functions concurrently via Promise.allSettled, then calls a final
|
|
349
|
+
* handler with the aggregated results — including failures — keyed by
|
|
350
|
+
* the hook function reference for direct lookup. Each hook receives only
|
|
351
|
+
* the original arguments; hooks do not see each other's results.
|
|
352
|
+
*
|
|
353
|
+
* Implements IHook for compatibility with Hookified.onHook(); the final
|
|
354
|
+
* handler is called regardless of whether the parallel hook is invoked
|
|
355
|
+
* directly or through Hookified.hook().
|
|
356
|
+
*
|
|
357
|
+
* Generics tighten the per-hook signature when every hook in the set
|
|
358
|
+
* accepts the same `initialArgs` and returns the same result type.
|
|
359
|
+
* Both default to `any` for backwards compatibility.
|
|
360
|
+
*
|
|
361
|
+
* @template TArgs - The shape of `initialArgs` passed to every hook
|
|
362
|
+
* @template TResult - The result type each hook returns
|
|
363
|
+
*/
|
|
364
|
+
var ParallelHook = class {
|
|
365
|
+
id;
|
|
366
|
+
event;
|
|
367
|
+
handler;
|
|
368
|
+
hooks;
|
|
369
|
+
_finalHandler;
|
|
370
|
+
/**
|
|
371
|
+
* Creates a new ParallelHook instance
|
|
372
|
+
* @param {string} event - The event name for the hook
|
|
373
|
+
* @param {ParallelHookFinalFn<TArgs, TResult>} finalHandler - Called once with `{ initialArgs, results }` after all parallel hooks settle
|
|
374
|
+
* @param {string} [id] - Optional unique identifier for the hook
|
|
375
|
+
*/
|
|
376
|
+
constructor(event, finalHandler, id) {
|
|
377
|
+
this.id = id;
|
|
378
|
+
this.event = event;
|
|
379
|
+
this.hooks = [];
|
|
380
|
+
this._finalHandler = finalHandler;
|
|
381
|
+
this.handler = async (...arguments_) => {
|
|
382
|
+
const initialArgs = arguments_.length === 1 ? arguments_[0] : arguments_;
|
|
383
|
+
const snapshot = [...this.hooks];
|
|
384
|
+
const settled = await Promise.allSettled(snapshot.map((hook) => Promise.resolve().then(() => hook({ initialArgs }))));
|
|
385
|
+
const results = /* @__PURE__ */ new Map();
|
|
386
|
+
snapshot.forEach((hook, index) => {
|
|
387
|
+
const outcome = settled[index];
|
|
388
|
+
results.set(hook, outcome.status === "fulfilled" ? {
|
|
389
|
+
status: "fulfilled",
|
|
390
|
+
result: outcome.value
|
|
391
|
+
} : {
|
|
392
|
+
status: "rejected",
|
|
393
|
+
reason: outcome.reason
|
|
394
|
+
});
|
|
395
|
+
});
|
|
396
|
+
await this._finalHandler({
|
|
397
|
+
initialArgs,
|
|
398
|
+
results
|
|
399
|
+
});
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Adds a hook function to the parallel set
|
|
404
|
+
* @param {ParallelHookFn<TArgs, TResult>} hook - The hook function to add
|
|
405
|
+
*/
|
|
406
|
+
addHook(hook) {
|
|
407
|
+
this.hooks.push(hook);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Removes a specific hook function from the parallel set
|
|
411
|
+
* @param {ParallelHookFn<TArgs, TResult>} hook - The hook function to remove
|
|
412
|
+
* @returns {boolean} true if the hook was found and removed
|
|
413
|
+
*/
|
|
414
|
+
removeHook(hook) {
|
|
415
|
+
const index = this.hooks.indexOf(hook);
|
|
416
|
+
if (index !== -1) {
|
|
417
|
+
this.hooks.splice(index, 1);
|
|
418
|
+
return true;
|
|
419
|
+
}
|
|
420
|
+
return false;
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
//#endregion
|
|
424
|
+
//#region src/hooks/waterfall-hook.ts
|
|
425
|
+
/**
|
|
426
|
+
* A WaterfallHook chains multiple hook functions sequentially,
|
|
427
|
+
* where each hook receives a context with the previous result,
|
|
428
|
+
* initial arguments, and accumulated results. After all hooks
|
|
429
|
+
* have executed, the final handler receives the transformed result.
|
|
430
|
+
* Implements IHook for compatibility with Hookified.onHook().
|
|
431
|
+
*/
|
|
397
432
|
var WaterfallHook = class {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
433
|
+
id;
|
|
434
|
+
event;
|
|
435
|
+
handler;
|
|
436
|
+
hooks;
|
|
437
|
+
_finalHandler;
|
|
438
|
+
/**
|
|
439
|
+
* Creates a new WaterfallHook instance
|
|
440
|
+
* @param {string} event - The event name for the hook
|
|
441
|
+
* @param {WaterfallHookFn} finalHandler - The final handler function that receives the transformed result
|
|
442
|
+
* @param {string} [id] - Optional unique identifier for the hook
|
|
443
|
+
*/
|
|
444
|
+
constructor(event, finalHandler, id) {
|
|
445
|
+
this.id = id;
|
|
446
|
+
this.event = event;
|
|
447
|
+
this.hooks = [];
|
|
448
|
+
this._finalHandler = finalHandler;
|
|
449
|
+
this.handler = async (...arguments_) => {
|
|
450
|
+
const initialArgs = arguments_.length === 1 ? arguments_[0] : arguments_;
|
|
451
|
+
const results = [];
|
|
452
|
+
for (const hook of this.hooks) {
|
|
453
|
+
const result = await hook({
|
|
454
|
+
initialArgs,
|
|
455
|
+
results: [...results]
|
|
456
|
+
});
|
|
457
|
+
results.push({
|
|
458
|
+
hook,
|
|
459
|
+
result
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
await this._finalHandler({
|
|
463
|
+
initialArgs,
|
|
464
|
+
results: [...results]
|
|
465
|
+
});
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Adds a hook function to the end of the waterfall chain
|
|
470
|
+
* @param {WaterfallHookFn} hook - The hook function to add
|
|
471
|
+
*/
|
|
472
|
+
addHook(hook) {
|
|
473
|
+
this.hooks.push(hook);
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Removes a specific hook function from the waterfall chain
|
|
477
|
+
* @param {WaterfallHookFn} hook - The hook function to remove
|
|
478
|
+
* @returns {boolean} true if the hook was found and removed
|
|
479
|
+
*/
|
|
480
|
+
removeHook(hook) {
|
|
481
|
+
const index = this.hooks.indexOf(hook);
|
|
482
|
+
if (index !== -1) {
|
|
483
|
+
this.hooks.splice(index, 1);
|
|
484
|
+
return true;
|
|
485
|
+
}
|
|
486
|
+
return false;
|
|
487
|
+
}
|
|
444
488
|
};
|
|
445
|
-
|
|
446
|
-
|
|
489
|
+
//#endregion
|
|
490
|
+
//#region src/index.ts
|
|
447
491
|
var Hookified = class extends Eventified {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
validateHookName(event) {
|
|
858
|
-
if (this._enforceBeforeAfter) {
|
|
859
|
-
const eventValue = event.trim().toLocaleLowerCase();
|
|
860
|
-
if (!eventValue.startsWith("before") && !eventValue.startsWith("after")) {
|
|
861
|
-
throw new Error(
|
|
862
|
-
`Hook event "${event}" must start with "before" or "after" when enforceBeforeAfter is enabled`
|
|
863
|
-
);
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
/**
|
|
868
|
-
* Checks if a hook is deprecated and emits a warning if it is
|
|
869
|
-
* @param {string} event - The event name to check
|
|
870
|
-
* @returns {boolean} - Returns true if the hook should proceed, false if it should be blocked
|
|
871
|
-
*/
|
|
872
|
-
checkDeprecatedHook(event) {
|
|
873
|
-
if (this._deprecatedHooks.has(event)) {
|
|
874
|
-
const message = this._deprecatedHooks.get(event);
|
|
875
|
-
const warningMessage = `Hook "${event}" is deprecated${message ? `: ${message}` : ""}`;
|
|
876
|
-
this.emit("warn", { hook: event, message: warningMessage });
|
|
877
|
-
return this._allowDeprecated;
|
|
878
|
-
}
|
|
879
|
-
return true;
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
|
-
export {
|
|
883
|
-
Eventified,
|
|
884
|
-
Hook,
|
|
885
|
-
Hookified,
|
|
886
|
-
WaterfallHook
|
|
492
|
+
_hooks;
|
|
493
|
+
_throwOnHookError = false;
|
|
494
|
+
_enforceBeforeAfter = false;
|
|
495
|
+
_deprecatedHooks;
|
|
496
|
+
_allowDeprecated = true;
|
|
497
|
+
_useHookClone = true;
|
|
498
|
+
constructor(options) {
|
|
499
|
+
super({
|
|
500
|
+
eventLogger: options?.eventLogger,
|
|
501
|
+
throwOnEmitError: options?.throwOnEmitError,
|
|
502
|
+
throwOnEmptyListeners: options?.throwOnEmptyListeners
|
|
503
|
+
});
|
|
504
|
+
this._hooks = /* @__PURE__ */ new Map();
|
|
505
|
+
this._deprecatedHooks = options?.deprecatedHooks ? new Map(options.deprecatedHooks) : /* @__PURE__ */ new Map();
|
|
506
|
+
if (options?.throwOnHookError !== void 0) this._throwOnHookError = options.throwOnHookError;
|
|
507
|
+
if (options?.enforceBeforeAfter !== void 0) this._enforceBeforeAfter = options.enforceBeforeAfter;
|
|
508
|
+
if (options?.allowDeprecated !== void 0) this._allowDeprecated = options.allowDeprecated;
|
|
509
|
+
if (options?.useHookClone !== void 0) this._useHookClone = options.useHookClone;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Gets all hooks
|
|
513
|
+
* @returns {Map<string, IHook[]>}
|
|
514
|
+
*/
|
|
515
|
+
get hooks() {
|
|
516
|
+
return this._hooks;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Gets whether an error should be thrown when a hook throws an error. Default is false and only emits an error event.
|
|
520
|
+
* @returns {boolean}
|
|
521
|
+
*/
|
|
522
|
+
get throwOnHookError() {
|
|
523
|
+
return this._throwOnHookError;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* Sets whether an error should be thrown when a hook throws an error. Default is false and only emits an error event.
|
|
527
|
+
* @param {boolean} value
|
|
528
|
+
*/
|
|
529
|
+
set throwOnHookError(value) {
|
|
530
|
+
this._throwOnHookError = value;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Gets whether to enforce that all hook names start with 'before' or 'after'. Default is false.
|
|
534
|
+
* @returns {boolean}
|
|
535
|
+
* @default false
|
|
536
|
+
*/
|
|
537
|
+
get enforceBeforeAfter() {
|
|
538
|
+
return this._enforceBeforeAfter;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Sets whether to enforce that all hook names start with 'before' or 'after'. Default is false.
|
|
542
|
+
* @param {boolean} value
|
|
543
|
+
*/
|
|
544
|
+
set enforceBeforeAfter(value) {
|
|
545
|
+
this._enforceBeforeAfter = value;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Gets the map of deprecated hook names to deprecation messages.
|
|
549
|
+
* @returns {Map<string, string>}
|
|
550
|
+
*/
|
|
551
|
+
get deprecatedHooks() {
|
|
552
|
+
return this._deprecatedHooks;
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Sets the map of deprecated hook names to deprecation messages.
|
|
556
|
+
* @param {Map<string, string>} value
|
|
557
|
+
*/
|
|
558
|
+
set deprecatedHooks(value) {
|
|
559
|
+
this._deprecatedHooks = value;
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Gets whether deprecated hooks are allowed to be registered and executed. Default is true.
|
|
563
|
+
* @returns {boolean}
|
|
564
|
+
*/
|
|
565
|
+
get allowDeprecated() {
|
|
566
|
+
return this._allowDeprecated;
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Sets whether deprecated hooks are allowed to be registered and executed. Default is true.
|
|
570
|
+
* @param {boolean} value
|
|
571
|
+
*/
|
|
572
|
+
set allowDeprecated(value) {
|
|
573
|
+
this._allowDeprecated = value;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Gets whether hook objects are cloned before storing. Default is true.
|
|
577
|
+
* @returns {boolean}
|
|
578
|
+
*/
|
|
579
|
+
get useHookClone() {
|
|
580
|
+
return this._useHookClone;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Sets whether hook objects are cloned before storing. Default is true.
|
|
584
|
+
* When false, the original IHook reference is stored directly.
|
|
585
|
+
* @param {boolean} value
|
|
586
|
+
*/
|
|
587
|
+
set useHookClone(value) {
|
|
588
|
+
this._useHookClone = value;
|
|
589
|
+
}
|
|
590
|
+
onHook(hookOrEvent, optionsOrHandler) {
|
|
591
|
+
let hook;
|
|
592
|
+
let options;
|
|
593
|
+
if (typeof hookOrEvent === "string") {
|
|
594
|
+
if (typeof optionsOrHandler !== "function") throw new TypeError("When calling onHook(event, handler), the second argument must be a function");
|
|
595
|
+
hook = {
|
|
596
|
+
event: hookOrEvent,
|
|
597
|
+
handler: optionsOrHandler
|
|
598
|
+
};
|
|
599
|
+
options = void 0;
|
|
600
|
+
} else {
|
|
601
|
+
hook = hookOrEvent;
|
|
602
|
+
options = optionsOrHandler;
|
|
603
|
+
}
|
|
604
|
+
this.validateHookName(hook.event);
|
|
605
|
+
if (!this.checkDeprecatedHook(hook.event)) return;
|
|
606
|
+
const entry = options?.useHookClone ?? this._useHookClone ? {
|
|
607
|
+
id: hook.id,
|
|
608
|
+
event: hook.event,
|
|
609
|
+
handler: hook.handler
|
|
610
|
+
} : hook;
|
|
611
|
+
entry.id = entry.id ?? crypto.randomUUID();
|
|
612
|
+
const eventHandlers = this._hooks.get(hook.event);
|
|
613
|
+
if (eventHandlers) {
|
|
614
|
+
const existingIndex = eventHandlers.findIndex((h) => h.id === entry.id);
|
|
615
|
+
if (existingIndex !== -1) eventHandlers[existingIndex] = entry;
|
|
616
|
+
else {
|
|
617
|
+
const position = options?.position ?? "Bottom";
|
|
618
|
+
if (position === "Top") eventHandlers.unshift(entry);
|
|
619
|
+
else if (position === "Bottom") eventHandlers.push(entry);
|
|
620
|
+
else {
|
|
621
|
+
const index = Math.max(0, Math.min(position, eventHandlers.length));
|
|
622
|
+
eventHandlers.splice(index, 0, entry);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
} else this._hooks.set(hook.event, [entry]);
|
|
626
|
+
return entry;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Alias for onHook. This is provided for compatibility with other libraries that use the `addHook` method.
|
|
630
|
+
* @param {string} event - the event name
|
|
631
|
+
* @param {HookFn} handler - the handler function
|
|
632
|
+
* @returns {void}
|
|
633
|
+
*/
|
|
634
|
+
addHook(event, handler) {
|
|
635
|
+
this.onHook({
|
|
636
|
+
event,
|
|
637
|
+
handler
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Adds handler functions for specific events
|
|
642
|
+
* @param {Array<IHook>} hooks
|
|
643
|
+
* @param {OnHookOptions} [options] - optional per-call options (e.g., useHookClone override, position)
|
|
644
|
+
* @returns {void}
|
|
645
|
+
*/
|
|
646
|
+
onHooks(hooks, options) {
|
|
647
|
+
for (const hook of hooks) this.onHook(hook, options);
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* Adds a handler function for a specific event that runs before all other handlers.
|
|
651
|
+
* Equivalent to calling `onHook(hook, { position: "Top" })`.
|
|
652
|
+
* @param {IHook} hook - the hook containing event name and handler
|
|
653
|
+
* @param {PrependHookOptions} [options] - optional per-call options (e.g., useHookClone override)
|
|
654
|
+
* @returns {IHook | undefined} the stored hook, or undefined if blocked by deprecation
|
|
655
|
+
*/
|
|
656
|
+
prependHook(hook, options) {
|
|
657
|
+
return this.onHook(hook, {
|
|
658
|
+
...options,
|
|
659
|
+
position: "Top"
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* Adds a handler that only executes once for a specific event before all other handlers.
|
|
664
|
+
* Equivalent to calling `onHook` with a self-removing wrapper and `{ position: "Top" }`.
|
|
665
|
+
* @param {IHook} hook - the hook containing event name and handler
|
|
666
|
+
* @param {PrependHookOptions} [options] - optional per-call options (e.g., useHookClone override)
|
|
667
|
+
* @returns {IHook | undefined} the stored hook, or undefined if blocked by deprecation
|
|
668
|
+
*/
|
|
669
|
+
prependOnceHook(hook, options) {
|
|
670
|
+
const wrappedHandler = async (...arguments_) => {
|
|
671
|
+
this.removeHook({
|
|
672
|
+
event: hook.event,
|
|
673
|
+
handler: wrappedHandler
|
|
674
|
+
});
|
|
675
|
+
return hook.handler(...arguments_);
|
|
676
|
+
};
|
|
677
|
+
return this.onHook({
|
|
678
|
+
id: hook.id,
|
|
679
|
+
event: hook.event,
|
|
680
|
+
handler: wrappedHandler
|
|
681
|
+
}, {
|
|
682
|
+
...options,
|
|
683
|
+
position: "Top"
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* Adds a handler that only executes once for a specific event
|
|
688
|
+
* @param {IHook} hook - the hook containing event name and handler
|
|
689
|
+
*/
|
|
690
|
+
onceHook(hook) {
|
|
691
|
+
this.validateHookName(hook.event);
|
|
692
|
+
if (!this.checkDeprecatedHook(hook.event)) return;
|
|
693
|
+
const wrappedHandler = async (...arguments_) => {
|
|
694
|
+
this.removeHook({
|
|
695
|
+
event: hook.event,
|
|
696
|
+
handler: wrappedHandler
|
|
697
|
+
});
|
|
698
|
+
return hook.handler(...arguments_);
|
|
699
|
+
};
|
|
700
|
+
this.onHook({
|
|
701
|
+
id: hook.id,
|
|
702
|
+
event: hook.event,
|
|
703
|
+
handler: wrappedHandler
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* Removes a handler function for a specific event
|
|
708
|
+
* @param {IHook} hook - the hook containing event name and handler to remove
|
|
709
|
+
* @returns {IHook | undefined} the removed hook, or undefined if not found
|
|
710
|
+
*/
|
|
711
|
+
removeHook(hook) {
|
|
712
|
+
this.validateHookName(hook.event);
|
|
713
|
+
const eventHandlers = this._hooks.get(hook.event);
|
|
714
|
+
if (eventHandlers) {
|
|
715
|
+
const index = eventHandlers.findIndex((h) => h.handler === hook.handler);
|
|
716
|
+
if (index !== -1) {
|
|
717
|
+
eventHandlers.splice(index, 1);
|
|
718
|
+
if (eventHandlers.length === 0) this._hooks.delete(hook.event);
|
|
719
|
+
return {
|
|
720
|
+
event: hook.event,
|
|
721
|
+
handler: hook.handler
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* Removes multiple hook handlers
|
|
728
|
+
* @param {Array<IHook>} hooks
|
|
729
|
+
* @returns {IHook[]} the hooks that were successfully removed
|
|
730
|
+
*/
|
|
731
|
+
removeHooks(hooks) {
|
|
732
|
+
const removed = [];
|
|
733
|
+
for (const hook of hooks) {
|
|
734
|
+
const result = this.removeHook(hook);
|
|
735
|
+
if (result) removed.push(result);
|
|
736
|
+
}
|
|
737
|
+
return removed;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Calls all handlers for a specific event
|
|
741
|
+
* @param {string} event
|
|
742
|
+
* @param {T[]} arguments_
|
|
743
|
+
* @returns {Promise<void>}
|
|
744
|
+
*/
|
|
745
|
+
async hook(event, ...arguments_) {
|
|
746
|
+
this.validateHookName(event);
|
|
747
|
+
if (!this.checkDeprecatedHook(event)) return;
|
|
748
|
+
const eventHandlers = this._hooks.get(event);
|
|
749
|
+
if (eventHandlers) for (const hook of [...eventHandlers]) try {
|
|
750
|
+
await hook.handler(...arguments_);
|
|
751
|
+
} catch (error) {
|
|
752
|
+
const message = `${event}: ${error.message}`;
|
|
753
|
+
this.emit("error", new Error(message));
|
|
754
|
+
if (this._throwOnHookError) throw new Error(message);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* Calls all synchronous handlers for a specific event.
|
|
759
|
+
* Async handlers (declared with `async` keyword) are silently skipped.
|
|
760
|
+
*
|
|
761
|
+
* Note: The `hook` method is preferred as it executes both sync and async functions.
|
|
762
|
+
* Use `hookSync` only when you specifically need synchronous execution.
|
|
763
|
+
* @param {string} event
|
|
764
|
+
* @param {T[]} arguments_
|
|
765
|
+
* @returns {void}
|
|
766
|
+
*/
|
|
767
|
+
hookSync(event, ...arguments_) {
|
|
768
|
+
this.validateHookName(event);
|
|
769
|
+
if (!this.checkDeprecatedHook(event)) return;
|
|
770
|
+
const eventHandlers = this._hooks.get(event);
|
|
771
|
+
if (eventHandlers) for (const hook of [...eventHandlers]) {
|
|
772
|
+
if (hook.handler.constructor.name === "AsyncFunction") continue;
|
|
773
|
+
try {
|
|
774
|
+
hook.handler(...arguments_);
|
|
775
|
+
} catch (error) {
|
|
776
|
+
const message = `${event}: ${error.message}`;
|
|
777
|
+
this.emit("error", new Error(message));
|
|
778
|
+
if (this._throwOnHookError) throw new Error(message);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Prepends the word `before` to your hook. Example is event is `test`, the before hook is `before:test`.
|
|
784
|
+
* @param {string} event - The event name
|
|
785
|
+
* @param {T[]} arguments_ - The arguments to pass to the hook
|
|
786
|
+
*/
|
|
787
|
+
async beforeHook(event, ...arguments_) {
|
|
788
|
+
await this.hook(`before:${event}`, ...arguments_);
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* Prepends the word `after` to your hook. Example is event is `test`, the after hook is `after:test`.
|
|
792
|
+
* @param {string} event - The event name
|
|
793
|
+
* @param {T[]} arguments_ - The arguments to pass to the hook
|
|
794
|
+
*/
|
|
795
|
+
async afterHook(event, ...arguments_) {
|
|
796
|
+
await this.hook(`after:${event}`, ...arguments_);
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* Calls all handlers for a specific event. This is an alias for `hook` and is provided for
|
|
800
|
+
* compatibility with other libraries that use the `callHook` method.
|
|
801
|
+
* @param {string} event
|
|
802
|
+
* @param {T[]} arguments_
|
|
803
|
+
* @returns {Promise<void>}
|
|
804
|
+
*/
|
|
805
|
+
async callHook(event, ...arguments_) {
|
|
806
|
+
await this.hook(event, ...arguments_);
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Gets all hooks for a specific event
|
|
810
|
+
* @param {string} event
|
|
811
|
+
* @returns {IHook[]}
|
|
812
|
+
*/
|
|
813
|
+
getHooks(event) {
|
|
814
|
+
this.validateHookName(event);
|
|
815
|
+
return this._hooks.get(event);
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Gets a specific hook by id, searching across all events
|
|
819
|
+
* @param {string} id - the hook id
|
|
820
|
+
* @returns {IHook | undefined} the hook if found, or undefined
|
|
821
|
+
*/
|
|
822
|
+
getHook(id) {
|
|
823
|
+
for (const eventHandlers of this._hooks.values()) {
|
|
824
|
+
const found = eventHandlers.find((h) => h.id === id);
|
|
825
|
+
if (found) return found;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Removes one or more hooks by id, searching across all events
|
|
830
|
+
* @param {string | string[]} id - the hook id or array of hook ids to remove
|
|
831
|
+
* @returns {IHook | IHook[] | undefined} the removed hook(s), or undefined/empty array if not found
|
|
832
|
+
*/
|
|
833
|
+
removeHookById(id) {
|
|
834
|
+
if (Array.isArray(id)) {
|
|
835
|
+
const removed = [];
|
|
836
|
+
for (const singleId of id) {
|
|
837
|
+
const result = this.removeHookById(singleId);
|
|
838
|
+
if (result && !Array.isArray(result)) removed.push(result);
|
|
839
|
+
}
|
|
840
|
+
return removed;
|
|
841
|
+
}
|
|
842
|
+
for (const [event, eventHandlers] of this._hooks.entries()) {
|
|
843
|
+
const index = eventHandlers.findIndex((h) => h.id === id);
|
|
844
|
+
if (index !== -1) {
|
|
845
|
+
const [removed] = eventHandlers.splice(index, 1);
|
|
846
|
+
if (eventHandlers.length === 0) this._hooks.delete(event);
|
|
847
|
+
return removed;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* Removes all hooks
|
|
853
|
+
* @returns {void}
|
|
854
|
+
*/
|
|
855
|
+
clearHooks() {
|
|
856
|
+
this._hooks.clear();
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* Removes all hooks for a specific event and returns the removed hooks.
|
|
860
|
+
* @param {string} event - The event name to remove hooks for.
|
|
861
|
+
* @returns {IHook[]} the hooks that were removed
|
|
862
|
+
*/
|
|
863
|
+
removeEventHooks(event) {
|
|
864
|
+
this.validateHookName(event);
|
|
865
|
+
const eventHandlers = this._hooks.get(event);
|
|
866
|
+
if (eventHandlers) {
|
|
867
|
+
const removed = [...eventHandlers];
|
|
868
|
+
this._hooks.delete(event);
|
|
869
|
+
return removed;
|
|
870
|
+
}
|
|
871
|
+
return [];
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Validates hook event name if enforceBeforeAfter is enabled
|
|
875
|
+
* @param {string} event - The event name to validate
|
|
876
|
+
* @throws {Error} If enforceBeforeAfter is true and event doesn't start with 'before' or 'after'
|
|
877
|
+
*/
|
|
878
|
+
validateHookName(event) {
|
|
879
|
+
if (this._enforceBeforeAfter) {
|
|
880
|
+
const eventValue = event.trim().toLocaleLowerCase();
|
|
881
|
+
if (!eventValue.startsWith("before") && !eventValue.startsWith("after")) throw new Error(`Hook event "${event}" must start with "before" or "after" when enforceBeforeAfter is enabled`);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Checks if a hook is deprecated and emits a warning if it is
|
|
886
|
+
* @param {string} event - The event name to check
|
|
887
|
+
* @returns {boolean} - Returns true if the hook should proceed, false if it should be blocked
|
|
888
|
+
*/
|
|
889
|
+
checkDeprecatedHook(event) {
|
|
890
|
+
if (this._deprecatedHooks.has(event)) {
|
|
891
|
+
const message = this._deprecatedHooks.get(event);
|
|
892
|
+
const warningMessage = `Hook "${event}" is deprecated${message ? `: ${message}` : ""}`;
|
|
893
|
+
this.emit("warn", {
|
|
894
|
+
hook: event,
|
|
895
|
+
message: warningMessage
|
|
896
|
+
});
|
|
897
|
+
return this._allowDeprecated;
|
|
898
|
+
}
|
|
899
|
+
return true;
|
|
900
|
+
}
|
|
887
901
|
};
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
/* v8 ignore next -- @preserve */
|
|
902
|
+
//#endregion
|
|
903
|
+
export { Eventified, Hook, Hookified, ParallelHook, WaterfallHook };
|