lambda-live-debugger 1.12.7 → 1.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extension/extension.zip +0 -0
- package/dist/extension/nodejs/node_modules/interceptor.js +258 -47
- package/dist/extension/nodejs/node_modules/interceptor.js.map +4 -4
- package/node_modules/@aws-sdk/checksums/package.json +5 -5
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-iam/package.json +9 -9
- package/node_modules/@aws-sdk/client-iot/dist-cjs/index.js +71 -9
- package/node_modules/@aws-sdk/client-iot/dist-es/models/enums.js +14 -0
- package/node_modules/@aws-sdk/client-iot/dist-es/schemas/schemas_0.js +49 -8
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/AttachSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CancelDetectMitigationActionsTaskCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateCustomMetricCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateDimensionCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateTopicRuleCommand.d.ts +34 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/CreateTopicRuleDestinationCommand.d.ts +14 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteCustomMetricCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteDimensionCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteTopicRuleDestinationCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeleteV2LoggingLevelCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DeprecateThingTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeCustomMetricCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeDetectMitigationActionsTaskCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeDimensionCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DescribeSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/DetachSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetBehaviorModelTrainingSummariesCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetTopicRuleCommand.d.ts +34 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/GetTopicRuleDestinationCommand.d.ts +7 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListActiveViolationsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListCustomMetricsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDetectMitigationActionsExecutionsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDetectMitigationActionsTasksCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListDimensionsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListSecurityProfilesCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListSecurityProfilesForTargetCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListStreamsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTargetsForPolicyCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTargetsForSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListTopicRuleDestinationsCommand.d.ts +7 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ListViolationEventsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/PutVerificationStateOnViolationCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ReplaceTopicRuleCommand.d.ts +34 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/StartDetectMitigationActionsTaskCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateCustomMetricCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateDimensionCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/UpdateSecurityProfileCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/commands/ValidateSecurityProfileBehaviorsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/models/enums.d.ts +38 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/models/models_0.d.ts +195 -45
- package/node_modules/@aws-sdk/client-iot/dist-types/models/models_1.d.ts +46 -69
- package/node_modules/@aws-sdk/client-iot/dist-types/models/models_2.d.ts +112 -2
- package/node_modules/@aws-sdk/client-iot/dist-types/schemas/schemas_0.d.ts +5 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeleteTopicRuleDestinationCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeleteV2LoggingLevelCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/DeprecateThingTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/commands/ListTargetsForPolicyCommand.d.ts +1 -2
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/enums.d.ts +18 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_0.d.ts +36 -11
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_1.d.ts +11 -18
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/models/models_2.d.ts +28 -0
- package/node_modules/@aws-sdk/client-iot/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
- package/node_modules/@aws-sdk/client-iot/package.json +8 -8
- package/node_modules/@aws-sdk/client-iot-data-plane/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-iot-data-plane/package.json +8 -8
- package/node_modules/@aws-sdk/client-lambda/README.md +21 -0
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +83 -3
- package/node_modules/@aws-sdk/client-lambda/dist-es/Lambda.js +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/GetResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/PutResourcePolicyCommand.js +4 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/commands/index.js +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +5 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +52 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +21 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +5 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/AddPermissionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateFunctionCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetFunctionConfigurationCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetResourcePolicyCommand.d.ts +84 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListFunctionsCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListVersionsByFunctionCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PublishVersionCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutResourcePolicyCommand.d.ts +98 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/RemovePermissionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionCodeCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateFunctionConfigurationCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +13 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +95 -4
- package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/Lambda.d.ts +51 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/LambdaClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +25 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/package.json +9 -9
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-s3/package.json +13 -13
- package/node_modules/@aws-sdk/core/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
- package/node_modules/@aws-sdk/credential-providers/package.json +15 -15
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +6 -6
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +8 -4
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@inquirer/ansi/package.json +3 -2
- package/node_modules/@inquirer/checkbox/dist/index.d.ts +12 -1
- package/node_modules/@inquirer/checkbox/package.json +7 -6
- package/node_modules/@inquirer/confirm/README.md +23 -0
- package/node_modules/@inquirer/confirm/dist/index.d.ts +27 -3
- package/node_modules/@inquirer/confirm/dist/index.js +40 -14
- package/node_modules/@inquirer/confirm/package.json +5 -4
- package/node_modules/@inquirer/core/README.md +9 -3
- package/node_modules/@inquirer/core/dist/lib/create-prompt.d.ts +10 -3
- package/node_modules/@inquirer/core/dist/lib/hook-engine.d.ts +2 -8
- package/node_modules/@inquirer/core/dist/lib/make-theme.js +1 -0
- package/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.d.ts +2 -3
- package/node_modules/@inquirer/core/dist/lib/theme.d.ts +1 -1
- package/node_modules/@inquirer/core/dist/lib/use-memo.js +1 -1
- package/node_modules/@inquirer/core/dist/lib/use-state.d.ts +5 -2
- package/node_modules/@inquirer/core/dist/lib/use-state.js +7 -2
- package/node_modules/@inquirer/core/package.json +7 -6
- package/node_modules/@inquirer/editor/dist/index.d.ts +10 -2
- package/node_modules/@inquirer/editor/package.json +6 -5
- package/node_modules/@inquirer/expand/README.md +1 -1
- package/node_modules/@inquirer/expand/dist/index.d.ts +12 -1
- package/node_modules/@inquirer/expand/package.json +5 -4
- package/node_modules/@inquirer/external-editor/README.md +13 -0
- package/node_modules/@inquirer/external-editor/package.json +4 -3
- package/node_modules/@inquirer/figures/package.json +4 -3
- package/node_modules/@inquirer/input/dist/index.d.ts +13 -1
- package/node_modules/@inquirer/input/package.json +5 -4
- package/node_modules/@inquirer/number/dist/index.d.ts +12 -2
- package/node_modules/@inquirer/number/dist/index.js +1 -6
- package/node_modules/@inquirer/number/dist/is-step-of.d.ts +1 -0
- package/node_modules/@inquirer/number/dist/is-step-of.js +22 -0
- package/node_modules/@inquirer/number/package.json +5 -4
- package/node_modules/@inquirer/password/README.md +24 -6
- package/node_modules/@inquirer/password/dist/index.d.ts +9 -1
- package/node_modules/@inquirer/password/dist/index.js +27 -8
- package/node_modules/@inquirer/password/package.json +6 -5
- package/node_modules/@inquirer/prompts/README.md +67 -7
- package/node_modules/@inquirer/prompts/package.json +14 -13
- package/node_modules/@inquirer/rawlist/dist/index.d.ts +8 -1
- package/node_modules/@inquirer/rawlist/package.json +5 -4
- package/node_modules/@inquirer/search/README.md +9 -8
- package/node_modules/@inquirer/search/dist/index.d.ts +13 -1
- package/node_modules/@inquirer/search/dist/index.js +6 -1
- package/node_modules/@inquirer/search/package.json +6 -5
- package/node_modules/@inquirer/select/dist/index.d.ts +9 -1
- package/node_modules/@inquirer/select/package.json +7 -6
- package/node_modules/@inquirer/type/dist/utils.d.ts +8 -3
- package/node_modules/@inquirer/type/package.json +3 -2
- package/node_modules/@smithy/core/CHANGELOG.md +7 -0
- package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +126 -39
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +7 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/transport/hasOwn.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/hasOwn.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/index.d.ts +1 -0
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/node-http-handler/CHANGELOG.md +23 -0
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +18 -6
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +8 -1
- package/node_modules/@smithy/node-http-handler/package.json +3 -3
- package/node_modules/@smithy/types/CHANGELOG.md +6 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/buffer.buffer.d.ts +10 -5
- package/node_modules/@types/node/crypto.d.ts +2 -4
- package/node_modules/@types/node/dgram.d.ts +119 -4
- package/node_modules/@types/node/ffi.d.ts +1 -1
- package/node_modules/@types/node/fs/promises.d.ts +61 -65
- package/node_modules/@types/node/fs.d.ts +86 -76
- package/node_modules/@types/node/http.d.ts +17 -1
- package/node_modules/@types/node/http2.d.ts +12 -4
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/inspector.d.ts +2 -1
- package/node_modules/@types/node/net.d.ts +108 -16
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/process.d.ts +52 -0
- package/node_modules/@types/node/quic.d.ts +246 -38
- package/node_modules/@types/node/sqlite.d.ts +6 -2
- package/node_modules/@types/node/stream/iter.d.ts +4 -4
- package/node_modules/@types/node/test.d.ts +36 -0
- package/node_modules/@types/node/tls.d.ts +24 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +5 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
- package/node_modules/@types/node/tty.d.ts +4 -3
- package/node_modules/@types/node/vfs.d.ts +210 -0
- package/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/fast-xml-parser/CHANGELOG.md +8 -1
- package/node_modules/fast-xml-parser/README.md +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
- package/node_modules/fast-xml-parser/package.json +2 -2
- package/node_modules/fast-xml-parser/src/fxp.d.ts +2 -0
- package/node_modules/fast-xml-parser/src/validator.js +98 -5
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +16 -1
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +23 -1
- package/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +14 -0
- package/node_modules/inquirer/README.md +3 -9
- package/node_modules/inquirer/dist/index.d.ts +2 -3
- package/node_modules/inquirer/dist/index.js +1 -1
- package/node_modules/inquirer/dist/types.d.ts +3 -3
- package/node_modules/inquirer/package.json +7 -6
- package/node_modules/strnum/CHANGELOG.md +6 -0
- package/node_modules/strnum/package.json +1 -1
- package/node_modules/strnum/strnum.js +5 -1
- package/package.json +19 -19
- package/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.d.ts +0 -10
- package/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.js +0 -13
- package/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.d.ts +0 -10
- package/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.js +0 -13
- package/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.d.ts +0 -10
- package/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.js +0 -13
- package/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.d.ts +0 -10
- package/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.js +0 -13
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasOwn } from "./hasOwn";
|
|
1
2
|
import { parseUrl } from "./parseUrl";
|
|
2
3
|
export const toEndpointV1 = (endpoint) => {
|
|
3
4
|
if (typeof endpoint === "object") {
|
|
@@ -6,6 +7,8 @@ export const toEndpointV1 = (endpoint) => {
|
|
|
6
7
|
if (endpoint.headers) {
|
|
7
8
|
v1Endpoint.headers = {};
|
|
8
9
|
for (const name in endpoint.headers) {
|
|
10
|
+
if (!hasOwn(endpoint.headers, name))
|
|
11
|
+
continue;
|
|
9
12
|
v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
|
|
10
13
|
}
|
|
11
14
|
}
|
|
@@ -39,3 +39,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
|
|
|
39
39
|
export { streamCollector } from "./util-stream/stream-collector.browser";
|
|
40
40
|
export declare const v4: () => string;
|
|
41
41
|
export declare const generateIdempotencyToken: () => string;
|
|
42
|
+
export { hasOwn } from "@smithy/core/transport";
|
|
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
|
|
|
37
37
|
export { streamCollector } from "./util-stream/stream-collector";
|
|
38
38
|
export declare const v4: () => string;
|
|
39
39
|
export declare const generateIdempotencyToken: () => string;
|
|
40
|
+
export { hasOwn } from "@smithy/core/transport";
|
|
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
|
|
|
37
37
|
export { streamCollector } from "./util-stream/stream-collector.browser";
|
|
38
38
|
export declare const v4: () => string;
|
|
39
39
|
export declare const generateIdempotencyToken: () => string;
|
|
40
|
+
export { hasOwn } from "@smithy/core/transport";
|
|
@@ -39,3 +39,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
|
|
|
39
39
|
export { streamCollector } from "./util-stream/stream-collector.browser";
|
|
40
40
|
export declare const v4: () => string;
|
|
41
41
|
export declare const generateIdempotencyToken: () => string;
|
|
42
|
+
export { hasOwn } from "@smithy/core/transport";
|
|
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
|
|
|
37
37
|
export { streamCollector } from "./util-stream/stream-collector";
|
|
38
38
|
export declare const v4: () => string;
|
|
39
39
|
export declare const generateIdempotencyToken: () => string;
|
|
40
|
+
export { hasOwn } from "@smithy/core/transport";
|
|
@@ -37,3 +37,4 @@ export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
|
|
|
37
37
|
export { streamCollector } from "./util-stream/stream-collector.browser";
|
|
38
38
|
export declare const v4: () => string;
|
|
39
39
|
export declare const generateIdempotencyToken: () => string;
|
|
40
|
+
export { hasOwn } from "@smithy/core/transport";
|
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1d85108: Clear the HTTP/2 session timeout before destroying a session. Node keeps a destroyed `Http2Session` reachable until its pending `setTimeout` fires, so with the default 300 s timer on isolated sessions every completed request was retained for 5 minutes.
|
|
8
|
+
- Updated dependencies [016389b]
|
|
9
|
+
- @smithy/types@4.18.0
|
|
10
|
+
|
|
11
|
+
## 4.12.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- bb68484: destroy isolated http2 session and manage timeout
|
|
16
|
+
|
|
17
|
+
## 4.11.3
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- a825452: switch for-in loops to guarded
|
|
22
|
+
- Updated dependencies [e82a22b]
|
|
23
|
+
- Updated dependencies [a825452]
|
|
24
|
+
- @smithy/core@3.33.3
|
|
25
|
+
|
|
3
26
|
## 4.11.2
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
const { hasOwn } = require("@smithy/core/serde");
|
|
2
|
+
const { streamCollector } = require("@smithy/core/serde");
|
|
3
|
+
exports.streamCollector = streamCollector;
|
|
1
4
|
const { buildQueryString, HttpResponse } = require("@smithy/core/protocols");
|
|
2
5
|
const node_https = require("node:https");
|
|
3
6
|
const { Readable } = require("node:stream");
|
|
4
7
|
const http2 = require("node:http2");
|
|
5
|
-
const { streamCollector } = require("@smithy/core/serde");
|
|
6
|
-
exports.streamCollector = streamCollector;
|
|
7
8
|
|
|
8
9
|
function buildAbortError(abortSignal) {
|
|
9
10
|
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal
|
|
@@ -30,6 +31,8 @@ const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
|
|
|
30
31
|
const getTransformedHeaders = (headers) => {
|
|
31
32
|
const transformedHeaders = {};
|
|
32
33
|
for (const name in headers) {
|
|
34
|
+
if (!hasOwn(headers, name))
|
|
35
|
+
continue;
|
|
33
36
|
const headerValues = headers[name];
|
|
34
37
|
transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues;
|
|
35
38
|
}
|
|
@@ -231,6 +234,8 @@ class NodeHttpHandler {
|
|
|
231
234
|
}
|
|
232
235
|
if (sockets && requests) {
|
|
233
236
|
for (const origin in sockets) {
|
|
237
|
+
if (!hasOwn(sockets, origin))
|
|
238
|
+
continue;
|
|
234
239
|
const socketsInUse = sockets[origin]?.length ?? 0;
|
|
235
240
|
const requestsEnqueued = requests[origin]?.length ?? 0;
|
|
236
241
|
if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
|
|
@@ -486,6 +491,7 @@ class ClientHttp2SessionRef {
|
|
|
486
491
|
destroy() {
|
|
487
492
|
this.refs = 0;
|
|
488
493
|
if (!this.session.destroyed) {
|
|
494
|
+
this.session.setTimeout(0);
|
|
489
495
|
this.session.destroy();
|
|
490
496
|
}
|
|
491
497
|
}
|
|
@@ -603,9 +609,8 @@ class NodeHttp2ConnectionManager {
|
|
|
603
609
|
session.on("error", ensureDestroyed);
|
|
604
610
|
session.on("frameError", ensureDestroyed);
|
|
605
611
|
session.on("close", ensureDestroyed);
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
}
|
|
612
|
+
const timeout = connectionConfiguration.requestTimeout ?? 300_000;
|
|
613
|
+
session.setTimeout(timeout, ensureDestroyed);
|
|
609
614
|
ref.retain();
|
|
610
615
|
return ref;
|
|
611
616
|
}
|
|
@@ -812,6 +817,9 @@ class NodeHttp2Handler {
|
|
|
812
817
|
resolve({ response: httpResponse });
|
|
813
818
|
if (useIsolatedSession) {
|
|
814
819
|
session.close();
|
|
820
|
+
clientHttp2Stream.on("end", () => {
|
|
821
|
+
ref.destroy();
|
|
822
|
+
});
|
|
815
823
|
}
|
|
816
824
|
});
|
|
817
825
|
clientHttp2Stream.on("close", () => {
|
|
@@ -822,7 +830,11 @@ class NodeHttp2Handler {
|
|
|
822
830
|
this.connectionManager.release(requestContext, ref);
|
|
823
831
|
}
|
|
824
832
|
if (!fulfilled) {
|
|
825
|
-
|
|
833
|
+
const error = new Error("Unexpected error: http2 request did not get a response");
|
|
834
|
+
if (session.destroyed) {
|
|
835
|
+
error.name = "TimeoutError";
|
|
836
|
+
}
|
|
837
|
+
rejectWithDestroy(error);
|
|
826
838
|
}
|
|
827
839
|
});
|
|
828
840
|
writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/serde";
|
|
1
2
|
const getTransformedHeaders = (headers) => {
|
|
2
3
|
const transformedHeaders = {};
|
|
3
4
|
for (const name in headers) {
|
|
5
|
+
if (!hasOwn(headers, name))
|
|
6
|
+
continue;
|
|
4
7
|
const headerValues = headers[name];
|
|
5
8
|
transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues;
|
|
6
9
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/serde";
|
|
1
2
|
import { HttpResponse, buildQueryString } from "@smithy/core/protocols";
|
|
2
3
|
import { buildAbortError } from "./build-abort-error";
|
|
3
4
|
import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants";
|
|
@@ -35,6 +36,8 @@ export class NodeHttpHandler {
|
|
|
35
36
|
}
|
|
36
37
|
if (sockets && requests) {
|
|
37
38
|
for (const origin in sockets) {
|
|
39
|
+
if (!hasOwn(sockets, origin))
|
|
40
|
+
continue;
|
|
38
41
|
const socketsInUse = sockets[origin]?.length ?? 0;
|
|
39
42
|
const requestsEnqueued = requests[origin]?.length ?? 0;
|
|
40
43
|
if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
|
|
@@ -64,9 +64,8 @@ export class NodeHttp2ConnectionManager {
|
|
|
64
64
|
session.on("error", ensureDestroyed);
|
|
65
65
|
session.on("frameError", ensureDestroyed);
|
|
66
66
|
session.on("close", ensureDestroyed);
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
67
|
+
const timeout = connectionConfiguration.requestTimeout ?? 300_000;
|
|
68
|
+
session.setTimeout(timeout, ensureDestroyed);
|
|
70
69
|
ref.retain();
|
|
71
70
|
return ref;
|
|
72
71
|
}
|
|
@@ -142,6 +142,9 @@ export class NodeHttp2Handler {
|
|
|
142
142
|
resolve({ response: httpResponse });
|
|
143
143
|
if (useIsolatedSession) {
|
|
144
144
|
session.close();
|
|
145
|
+
clientHttp2Stream.on("end", () => {
|
|
146
|
+
ref.destroy();
|
|
147
|
+
});
|
|
145
148
|
}
|
|
146
149
|
});
|
|
147
150
|
clientHttp2Stream.on("close", () => {
|
|
@@ -152,7 +155,11 @@ export class NodeHttp2Handler {
|
|
|
152
155
|
this.connectionManager.release(requestContext, ref);
|
|
153
156
|
}
|
|
154
157
|
if (!fulfilled) {
|
|
155
|
-
|
|
158
|
+
const error = new Error("Unexpected error: http2 request did not get a response");
|
|
159
|
+
if (session.destroyed) {
|
|
160
|
+
error.name = "TimeoutError";
|
|
161
|
+
}
|
|
162
|
+
rejectWithDestroy(error);
|
|
156
163
|
}
|
|
157
164
|
});
|
|
158
165
|
writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-http-handler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.1",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"test:watch": "yarn g:vitest watch"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@smithy/core": "^3.33.
|
|
43
|
-
"@smithy/types": "^4.
|
|
42
|
+
"@smithy/core": "^3.33.3",
|
|
43
|
+
"@smithy/types": "^4.18.0",
|
|
44
44
|
"tslib": "^2.6.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
|
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
120
|
requestInit?: (httpRequest: IHttpRequest) => RequestInit;
|
|
121
|
+
/**
|
|
122
|
+
* An optional custom fetch implementation to use in place of the
|
|
123
|
+
* global fetch function.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```js
|
|
127
|
+
* new Client({
|
|
128
|
+
* requestHandler: {
|
|
129
|
+
* customFetch: (request) => myFetchImplementation(request)
|
|
130
|
+
* }
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
customFetch?: typeof fetch;
|
|
121
135
|
}
|
|
122
136
|
declare global {
|
|
123
137
|
/**
|
|
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
|
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
120
|
requestInit?: (httpRequest: IHttpRequest) => RequestInit;
|
|
121
|
+
/**
|
|
122
|
+
* An optional custom fetch implementation to use in place of the
|
|
123
|
+
* global fetch function.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```js
|
|
127
|
+
* new Client({
|
|
128
|
+
* requestHandler: {
|
|
129
|
+
* customFetch: (request) => myFetchImplementation(request)
|
|
130
|
+
* }
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
customFetch?: typeof fetch;
|
|
121
135
|
}
|
|
122
136
|
declare global {
|
|
123
137
|
/**
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 01 Sep 2026 20:06:05 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -316,11 +316,11 @@ declare module "node:buffer" {
|
|
|
316
316
|
* such `Buffer` instances with zeroes.
|
|
317
317
|
*
|
|
318
318
|
* When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
|
|
319
|
-
* allocations
|
|
320
|
-
*
|
|
321
|
-
* individually allocated `Buffer`
|
|
322
|
-
*
|
|
323
|
-
* many individual `ArrayBuffer` objects.
|
|
319
|
+
* allocations less than `Buffer.poolSize >>> 1` (32KiB when default poolSize is used) are sliced
|
|
320
|
+
* from a single pre-allocated `Buffer`. This allows applications to avoid the
|
|
321
|
+
* garbage collection overhead of creating many individually allocated `Buffer`
|
|
322
|
+
* instances. This approach improves both performance and memory usage by
|
|
323
|
+
* eliminating the need to track and clean up as many individual `ArrayBuffer` objects.
|
|
324
324
|
*
|
|
325
325
|
* However, in the case where a developer may need to retain a small chunk of
|
|
326
326
|
* memory from a pool for an indeterminate amount of time, it may be appropriate
|
|
@@ -463,4 +463,9 @@ declare module "node:buffer" {
|
|
|
463
463
|
*/
|
|
464
464
|
type AllowSharedBuffer = Buffer<ArrayBufferLike>;
|
|
465
465
|
}
|
|
466
|
+
/**
|
|
467
|
+
* @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
|
|
468
|
+
* TypeScript versions earlier than 5.7.
|
|
469
|
+
*/
|
|
470
|
+
type BufferView<T extends NodeJS.ArrayBufferView> = T extends NodeJS.ArrayBufferView<infer B> ? Buffer<B> : never;
|
|
466
471
|
}
|
|
@@ -3475,7 +3475,6 @@ declare module "node:crypto" {
|
|
|
3475
3475
|
* ```
|
|
3476
3476
|
* @since v24.7.0
|
|
3477
3477
|
* @param algorithm Variant of Argon2, one of `"argon2d"`, `"argon2i"` or `"argon2id"`.
|
|
3478
|
-
* @experimental
|
|
3479
3478
|
*/
|
|
3480
3479
|
function argon2(
|
|
3481
3480
|
algorithm: Argon2Algorithm,
|
|
@@ -3515,7 +3514,6 @@ declare module "node:crypto" {
|
|
|
3515
3514
|
* console.log(derivedKey.toString('hex')); // 'af91dad...9520f15'
|
|
3516
3515
|
* ```
|
|
3517
3516
|
* @since v24.7.0
|
|
3518
|
-
* @experimental
|
|
3519
3517
|
*/
|
|
3520
3518
|
function argon2Sync(algorithm: Argon2Algorithm, parameters: Argon2Parameters): NonSharedBuffer;
|
|
3521
3519
|
/**
|
|
@@ -3742,7 +3740,7 @@ declare module "node:crypto" {
|
|
|
3742
3740
|
ciphertext: NodeJS.BufferSource,
|
|
3743
3741
|
sharedKeyAlgorithm: AlgorithmIdentifier | HmacImportParams | AesDerivedKeyParams | KmacImportParams,
|
|
3744
3742
|
extractable: boolean,
|
|
3745
|
-
|
|
3743
|
+
keyUsages: KeyUsage[],
|
|
3746
3744
|
): Promise<CryptoKey>;
|
|
3747
3745
|
decrypt(
|
|
3748
3746
|
algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams,
|
|
@@ -3774,7 +3772,7 @@ declare module "node:crypto" {
|
|
|
3774
3772
|
encapsulationKey: CryptoKey,
|
|
3775
3773
|
sharedKeyAlgorithm: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | KmacImportParams,
|
|
3776
3774
|
extractable: boolean,
|
|
3777
|
-
|
|
3775
|
+
keyUsages: KeyUsage[],
|
|
3778
3776
|
): Promise<EncapsulatedKey>;
|
|
3779
3777
|
encrypt(
|
|
3780
3778
|
algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams,
|
|
@@ -15,6 +15,10 @@ declare module "node:dgram" {
|
|
|
15
15
|
exclusive?: boolean | undefined;
|
|
16
16
|
fd?: number | undefined;
|
|
17
17
|
}
|
|
18
|
+
interface BindSyncOptions {
|
|
19
|
+
port?: number | undefined;
|
|
20
|
+
address?: string | undefined;
|
|
21
|
+
}
|
|
18
22
|
type SocketType = "udp4" | "udp6";
|
|
19
23
|
interface SocketOptions extends Abortable {
|
|
20
24
|
type: SocketType;
|
|
@@ -117,10 +121,12 @@ declare module "node:dgram" {
|
|
|
117
121
|
* messages on a named `port` and optional `address`. If `port` is not
|
|
118
122
|
* specified or is `0`, the operating system will attempt to bind to a
|
|
119
123
|
* random port. If `address` is not specified, the operating system will
|
|
120
|
-
* attempt to listen on all addresses. Once binding is complete, a
|
|
124
|
+
* attempt to listen on all addresses. Once binding is complete, a
|
|
125
|
+
* `'listening'` event is emitted and the optional `callback` function is
|
|
121
126
|
* called.
|
|
122
127
|
*
|
|
123
|
-
* Specifying both a `'listening'` event listener and passing a
|
|
128
|
+
* Specifying both a `'listening'` event listener and passing a
|
|
129
|
+
* `callback` to the `socket.bind()` method is not harmful but not very
|
|
124
130
|
* useful.
|
|
125
131
|
*
|
|
126
132
|
* A bound datagram socket keeps the Node.js process running to receive
|
|
@@ -157,9 +163,82 @@ declare module "node:dgram" {
|
|
|
157
163
|
* @param callback with no parameters. Called when binding is complete.
|
|
158
164
|
*/
|
|
159
165
|
bind(port?: number, address?: string, callback?: () => void): this;
|
|
160
|
-
bind(port
|
|
161
|
-
bind(callback
|
|
166
|
+
bind(port: number, callback: () => void): this;
|
|
167
|
+
bind(callback: () => void): this;
|
|
168
|
+
/**
|
|
169
|
+
* For UDP sockets, causes the `dgram.Socket` to listen for datagram
|
|
170
|
+
* messages on a named `port` and optional `address` that are passed as
|
|
171
|
+
* properties of an `options` object passed as the first argument. If
|
|
172
|
+
* `port` is not specified or is `0`, the operating system will attempt
|
|
173
|
+
* to bind to a random port. If `address` is not specified, the operating
|
|
174
|
+
* system will attempt to listen on all addresses. Once binding is
|
|
175
|
+
* complete, a `'listening'` event is emitted and the optional `callback`
|
|
176
|
+
* function is called.
|
|
177
|
+
*
|
|
178
|
+
* The `options` object may contain a `fd` property. When a `fd` greater
|
|
179
|
+
* than `0` is set, it will wrap around an existing socket with the given
|
|
180
|
+
* file descriptor. In this case, the properties of `port` and `address`
|
|
181
|
+
* will be ignored.
|
|
182
|
+
*
|
|
183
|
+
* Specifying both a `'listening'` event listener and passing a
|
|
184
|
+
* `callback` to the `socket.bind()` method is not harmful but not very
|
|
185
|
+
* useful.
|
|
186
|
+
*
|
|
187
|
+
* The `options` object may contain an additional `exclusive` property that is
|
|
188
|
+
* used when using `dgram.Socket` objects with the [`cluster`](https://nodejs.org/docs/latest-v26.x/api/cluster.html) module. When
|
|
189
|
+
* `exclusive` is set to `false` (the default), cluster workers will use the same
|
|
190
|
+
* underlying socket handle allowing connection handling duties to be shared.
|
|
191
|
+
* When `exclusive` is `true`, however, the handle is not shared and attempted
|
|
192
|
+
* port sharing results in an error. Creating a `dgram.Socket` with the `reusePort`
|
|
193
|
+
* option set to `true` causes `exclusive` to always be `true` when `socket.bind()`
|
|
194
|
+
* is called.
|
|
195
|
+
*
|
|
196
|
+
* A bound datagram socket keeps the Node.js process running to receive
|
|
197
|
+
* datagram messages.
|
|
198
|
+
*
|
|
199
|
+
* If binding fails, an `'error'` event is generated. In rare case (e.g.
|
|
200
|
+
* attempting to bind with a closed socket), an `Error` may be thrown.
|
|
201
|
+
*
|
|
202
|
+
* An example socket listening on an exclusive port is shown below.
|
|
203
|
+
*
|
|
204
|
+
* ```js
|
|
205
|
+
* socket.bind({
|
|
206
|
+
* address: 'localhost',
|
|
207
|
+
* port: 8000,
|
|
208
|
+
* exclusive: true,
|
|
209
|
+
* });
|
|
210
|
+
* ```
|
|
211
|
+
* @since v0.11.14
|
|
212
|
+
* @param options Required. Supports the following properties:
|
|
213
|
+
*/
|
|
162
214
|
bind(options: BindOptions, callback?: () => void): this;
|
|
215
|
+
/**
|
|
216
|
+
* The synchronous counterpart of `socket.bind()`. `bind(2)` is a local,
|
|
217
|
+
* non-blocking system call, so the bind is performed inline and the resolved
|
|
218
|
+
* address is returned immediately, including the operating-system-assigned
|
|
219
|
+
* ephemeral port when `port` is `0`:
|
|
220
|
+
*
|
|
221
|
+
* ```js
|
|
222
|
+
* const dgram = require('node:dgram');
|
|
223
|
+
*
|
|
224
|
+
* const socket = dgram.createSocket('udp4');
|
|
225
|
+
* const address = socket.bindSync({ address: '0.0.0.0', port: 0 });
|
|
226
|
+
* console.log(address); // e.g. { address: '0.0.0.0', family: 'IPv4', port: 53124 }
|
|
227
|
+
* ```
|
|
228
|
+
*
|
|
229
|
+
* A bind failure such as `EADDRINUSE` is thrown synchronously rather than emitted
|
|
230
|
+
* as an `'error'` event. After `bindSync()` returns, `socket.address()` is
|
|
231
|
+
* valid synchronously and the `'listening'` event is emitted on the next tick.
|
|
232
|
+
*
|
|
233
|
+
* `address` must be a numeric IP literal; `bindSync()` never performs DNS
|
|
234
|
+
* resolution (asynchronous name resolution being the only genuinely blocking part
|
|
235
|
+
* of binding). Incoming datagrams continue to be delivered asynchronously via the
|
|
236
|
+
* `'message'` event. `bindSync()` always binds the socket's own handle and
|
|
237
|
+
* does not participate in [`cluster`](https://nodejs.org/docs/latest-v26.x/api/cluster.html) handle sharing.
|
|
238
|
+
* @since v26.4.0
|
|
239
|
+
* @returns The bound address as returned by `socket.address()`.
|
|
240
|
+
*/
|
|
241
|
+
bindSync(options?: BindSyncOptions): AddressInfo;
|
|
163
242
|
/**
|
|
164
243
|
* Close the underlying socket and stop listening for data on it. If a callback is
|
|
165
244
|
* provided, it is added as a listener for the `'close'` event.
|
|
@@ -182,6 +261,42 @@ declare module "node:dgram" {
|
|
|
182
261
|
*/
|
|
183
262
|
connect(port: number, address?: string, callback?: () => void): void;
|
|
184
263
|
connect(port: number, callback: () => void): void;
|
|
264
|
+
/**
|
|
265
|
+
* The synchronous counterpart of `socket.connect()`. For a UDP socket
|
|
266
|
+
* `connect(2)` only records the default peer address and is a local, non-blocking
|
|
267
|
+
* system call, so the association is performed inline. Any error raised by the
|
|
268
|
+
* call itself (for example `EAFNOSUPPORT` for a mismatched address family) is
|
|
269
|
+
* thrown synchronously rather than reported via the `'error'` event. Because
|
|
270
|
+
* `connect(2)` does not probe reachability, errors such as `ECONNREFUSED` are
|
|
271
|
+
* still surfaced asynchronously on a later send or receive, exactly as for
|
|
272
|
+
* `socket.connect()`:
|
|
273
|
+
*
|
|
274
|
+
* ```js
|
|
275
|
+
* const dgram = require('node:dgram');
|
|
276
|
+
*
|
|
277
|
+
* const socket = dgram.createSocket('udp4');
|
|
278
|
+
* socket.connectSync(41234, '127.0.0.1');
|
|
279
|
+
* console.log(socket.remoteAddress()); // { address: '127.0.0.1', family: 'IPv4', port: 41234 }
|
|
280
|
+
* ```
|
|
281
|
+
*
|
|
282
|
+
* If the socket is still unbound it is bound synchronously first. After
|
|
283
|
+
* `connectSync()` returns, `socket.remoteAddress()` is valid synchronously
|
|
284
|
+
* and the `'connect'` event is emitted on the next tick. Trying to call
|
|
285
|
+
* `connectSync()` on an already connected socket throws an
|
|
286
|
+
* `ERR_SOCKET_DGRAM_IS_CONNECTED` exception, and calling it while an
|
|
287
|
+
* asynchronous [`socket.bind()`][] is still in progress throws an
|
|
288
|
+
* `ERR_SOCKET_ALREADY_BOUND` exception.
|
|
289
|
+
*
|
|
290
|
+
* `address` must be a numeric IP literal; `connectSync()` never performs DNS
|
|
291
|
+
* resolution (asynchronous name resolution being the only genuinely blocking part
|
|
292
|
+
* of connecting).
|
|
293
|
+
* @since v26.4.0
|
|
294
|
+
* @param address A numeric IP address to connect to. Unlike
|
|
295
|
+
* `socket.connect()`, no DNS resolution is performed, so a host name is not
|
|
296
|
+
* accepted. If omitted, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for
|
|
297
|
+
* `udp6` sockets) is used.
|
|
298
|
+
*/
|
|
299
|
+
connectSync(port: number, address?: string): void;
|
|
185
300
|
/**
|
|
186
301
|
* A synchronous function that disassociates a connected `dgram.Socket` from
|
|
187
302
|
* its remote address. Trying to call `disconnect()` on an unbound or already
|