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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1127.0",
|
|
4
4
|
"description": "A collection of credential providers, without requiring service clients like STS, Cognito",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -54,21 +54,21 @@
|
|
|
54
54
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@aws-sdk/core": "^3.977.
|
|
58
|
-
"@aws-sdk/credential-provider-cognito-identity": "^3.972.
|
|
59
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
60
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
61
|
-
"@aws-sdk/credential-provider-ini": "^3.973.
|
|
62
|
-
"@aws-sdk/credential-provider-login": "^3.972.
|
|
63
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
64
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
65
|
-
"@aws-sdk/credential-provider-sso": "^3.973.
|
|
66
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
67
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
68
|
-
"@aws-sdk/types": "^3.974.
|
|
69
|
-
"@smithy/core": "^3.
|
|
57
|
+
"@aws-sdk/core": "^3.977.9",
|
|
58
|
+
"@aws-sdk/credential-provider-cognito-identity": "^3.972.69",
|
|
59
|
+
"@aws-sdk/credential-provider-env": "^3.972.70",
|
|
60
|
+
"@aws-sdk/credential-provider-http": "^3.972.72",
|
|
61
|
+
"@aws-sdk/credential-provider-ini": "^3.973.15",
|
|
62
|
+
"@aws-sdk/credential-provider-login": "^3.972.77",
|
|
63
|
+
"@aws-sdk/credential-provider-node": "^3.972.82",
|
|
64
|
+
"@aws-sdk/credential-provider-process": "^3.972.70",
|
|
65
|
+
"@aws-sdk/credential-provider-sso": "^3.973.14",
|
|
66
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.76",
|
|
67
|
+
"@aws-sdk/nested-clients": "^3.997.44",
|
|
68
|
+
"@aws-sdk/types": "^3.974.5",
|
|
69
|
+
"@smithy/core": "^3.33.3",
|
|
70
70
|
"@smithy/credential-provider-imds": "^4.4.16",
|
|
71
|
-
"@smithy/types": "^4.
|
|
71
|
+
"@smithy/types": "^4.17.2",
|
|
72
72
|
"tslib": "^2.6.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-s3",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.75",
|
|
4
4
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-sdk-s3",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
"test:types": "tsc -p tsconfig.test.json"
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@aws-sdk/core": "^3.977.
|
|
98
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
99
|
-
"@aws-sdk/types": "^3.974.
|
|
100
|
-
"@smithy/core": "^3.
|
|
101
|
-
"@smithy/types": "^4.
|
|
97
|
+
"@aws-sdk/core": "^3.977.9",
|
|
98
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.46",
|
|
99
|
+
"@aws-sdk/types": "^3.974.5",
|
|
100
|
+
"@smithy/core": "^3.33.3",
|
|
101
|
+
"@smithy/types": "^4.17.2",
|
|
102
102
|
"tslib": "^2.6.2"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.997.
|
|
3
|
+
"version": "3.997.44",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
"test:watch": "yarn g:vitest watch"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@aws-sdk/core": "^3.977.
|
|
104
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
105
|
-
"@aws-sdk/types": "^3.974.
|
|
106
|
-
"@smithy/core": "^3.
|
|
107
|
-
"@smithy/fetch-http-handler": "^5.
|
|
108
|
-
"@smithy/node-http-handler": "^4.
|
|
109
|
-
"@smithy/types": "^4.
|
|
103
|
+
"@aws-sdk/core": "^3.977.9",
|
|
104
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.46",
|
|
105
|
+
"@aws-sdk/types": "^3.974.5",
|
|
106
|
+
"@smithy/core": "^3.33.3",
|
|
107
|
+
"@smithy/fetch-http-handler": "^5.7.2",
|
|
108
|
+
"@smithy/node-http-handler": "^4.11.3",
|
|
109
|
+
"@smithy/types": "^4.17.2",
|
|
110
110
|
"tslib": "^2.6.2"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4-multi-region",
|
|
3
|
-
"version": "3.996.
|
|
3
|
+
"version": "3.996.46",
|
|
4
4
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/signature-v4-multi-region",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"test:browser": "yarn build:browser && yarn g:vitest run -c vitest.config.browser.mts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@aws-sdk/types": "^3.974.
|
|
45
|
+
"@aws-sdk/types": "^3.974.5",
|
|
46
46
|
"@smithy/signature-v4": "^5.6.12",
|
|
47
|
-
"@smithy/types": "^4.
|
|
47
|
+
"@smithy/types": "^4.17.2",
|
|
48
48
|
"tslib": "^2.6.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -61,7 +61,7 @@ const writeSSOTokenToFile = (id, ssoToken) => {
|
|
|
61
61
|
return writeFile(tokenFilepath, tokenString);
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
const
|
|
64
|
+
const lastRefreshAttemptTimes = new Map();
|
|
65
65
|
const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
66
66
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
67
67
|
const profiles = await parseKnownFiles(init);
|
|
@@ -98,11 +98,15 @@ const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
98
98
|
validateTokenKey("accessToken", ssoToken.accessToken);
|
|
99
99
|
validateTokenKey("expiresAt", ssoToken.expiresAt);
|
|
100
100
|
const { accessToken, expiresAt } = ssoToken;
|
|
101
|
-
const existingToken = {
|
|
101
|
+
const existingToken = {
|
|
102
|
+
token: accessToken,
|
|
103
|
+
expiration: new Date(expiresAt),
|
|
104
|
+
};
|
|
102
105
|
if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
|
|
103
106
|
return existingToken;
|
|
104
107
|
}
|
|
105
|
-
|
|
108
|
+
const lastRefreshAttemptTime = lastRefreshAttemptTimes.get(ssoSessionName) ?? 0;
|
|
109
|
+
if (Date.now() - lastRefreshAttemptTime < 30 * 1000) {
|
|
106
110
|
validateTokenExpiry(existingToken);
|
|
107
111
|
return existingToken;
|
|
108
112
|
}
|
|
@@ -110,7 +114,7 @@ const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
110
114
|
validateTokenKey("clientSecret", ssoToken.clientSecret, true);
|
|
111
115
|
validateTokenKey("refreshToken", ssoToken.refreshToken, true);
|
|
112
116
|
try {
|
|
113
|
-
|
|
117
|
+
lastRefreshAttemptTimes.set(ssoSessionName, Date.now());
|
|
114
118
|
const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
|
|
115
119
|
validateTokenKey("accessToken", newSsoOidcToken.accessToken);
|
|
116
120
|
validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
|
|
@@ -4,7 +4,7 @@ import { getNewSsoOidcToken } from "./getNewSsoOidcToken";
|
|
|
4
4
|
import { validateTokenExpiry } from "./validateTokenExpiry";
|
|
5
5
|
import { validateTokenKey } from "./validateTokenKey";
|
|
6
6
|
import { writeSSOTokenToFile } from "./writeSSOTokenToFile";
|
|
7
|
-
const
|
|
7
|
+
const lastRefreshAttemptTimes = new Map();
|
|
8
8
|
export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
9
9
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
10
10
|
const profiles = await parseKnownFiles(init);
|
|
@@ -41,11 +41,15 @@ export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
41
41
|
validateTokenKey("accessToken", ssoToken.accessToken);
|
|
42
42
|
validateTokenKey("expiresAt", ssoToken.expiresAt);
|
|
43
43
|
const { accessToken, expiresAt } = ssoToken;
|
|
44
|
-
const existingToken = {
|
|
44
|
+
const existingToken = {
|
|
45
|
+
token: accessToken,
|
|
46
|
+
expiration: new Date(expiresAt),
|
|
47
|
+
};
|
|
45
48
|
if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
|
|
46
49
|
return existingToken;
|
|
47
50
|
}
|
|
48
|
-
|
|
51
|
+
const lastRefreshAttemptTime = lastRefreshAttemptTimes.get(ssoSessionName) ?? 0;
|
|
52
|
+
if (Date.now() - lastRefreshAttemptTime < 30 * 1000) {
|
|
49
53
|
validateTokenExpiry(existingToken);
|
|
50
54
|
return existingToken;
|
|
51
55
|
}
|
|
@@ -53,7 +57,7 @@ export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
53
57
|
validateTokenKey("clientSecret", ssoToken.clientSecret, true);
|
|
54
58
|
validateTokenKey("refreshToken", ssoToken.refreshToken, true);
|
|
55
59
|
try {
|
|
56
|
-
|
|
60
|
+
lastRefreshAttemptTimes.set(ssoSessionName, Date.now());
|
|
57
61
|
const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
|
|
58
62
|
validateTokenKey("accessToken", newSsoOidcToken.accessToken);
|
|
59
63
|
validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1116.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@aws-sdk/core": "^3.977.
|
|
52
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
53
|
-
"@aws-sdk/types": "^3.974.
|
|
54
|
-
"@smithy/core": "^3.
|
|
55
|
-
"@smithy/types": "^4.
|
|
51
|
+
"@aws-sdk/core": "^3.977.9",
|
|
52
|
+
"@aws-sdk/nested-clients": "^3.997.44",
|
|
53
|
+
"@aws-sdk/types": "^3.974.5",
|
|
54
|
+
"@smithy/core": "^3.33.3",
|
|
55
|
+
"@smithy/types": "^4.17.2",
|
|
56
56
|
"tslib": "^2.6.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/types",
|
|
3
|
-
"version": "3.974.
|
|
3
|
+
"version": "3.974.5",
|
|
4
4
|
"description": "Types for the AWS SDK",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/types",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"test": "tsc -p tsconfig.test.json"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@smithy/types": "^4.
|
|
44
|
+
"@smithy/types": "^4.17.2",
|
|
45
45
|
"tslib": "^2.6.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/xml-builder",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.40",
|
|
4
4
|
"description": "XML utilities for the AWS SDK",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/xml-builder",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"test:fuzz": "jazzer tests/xml-parser.fuzz.js corpus --sync -i xml-parser -- -max_total_time=300"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@smithy/types": "^4.
|
|
50
|
+
"@smithy/types": "^4.17.2",
|
|
51
51
|
"tslib": "^2.6.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/ansi",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"ansi",
|
|
6
6
|
"answer",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"tsc": "tsc"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
+
"@repo/tsconfig": "0.0.0",
|
|
70
71
|
"typescript": "^6.0.2"
|
|
71
72
|
},
|
|
72
73
|
"engines": {
|
|
@@ -74,5 +75,5 @@
|
|
|
74
75
|
},
|
|
75
76
|
"main": "./dist/index.js",
|
|
76
77
|
"types": "./dist/index.d.ts",
|
|
77
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
|
|
78
79
|
}
|
|
@@ -41,6 +41,17 @@ type NormalizedChoice<Value> = {
|
|
|
41
41
|
disabled: boolean | string;
|
|
42
42
|
checked: boolean;
|
|
43
43
|
};
|
|
44
|
+
type CheckboxConfig<Value = string> = {
|
|
45
|
+
message: string;
|
|
46
|
+
prefix?: string;
|
|
47
|
+
pageSize?: number;
|
|
48
|
+
choices: ReadonlyArray<Value | Choice<Value> | Separator>;
|
|
49
|
+
loop?: boolean;
|
|
50
|
+
required?: boolean;
|
|
51
|
+
validate?: (choices: readonly NormalizedChoice<Value>[]) => boolean | string | Promise<string | boolean>;
|
|
52
|
+
theme?: PartialDeep<Theme<CheckboxTheme>>;
|
|
53
|
+
shortcuts?: CheckboxShortcuts;
|
|
54
|
+
};
|
|
44
55
|
declare const _default: <const Value>(config: {
|
|
45
56
|
message: string;
|
|
46
57
|
prefix?: string | undefined;
|
|
@@ -51,6 +62,6 @@ declare const _default: <const Value>(config: {
|
|
|
51
62
|
validate?: ((choices: readonly NormalizedChoice<Value>[]) => boolean | string | Promise<string | boolean>) | undefined;
|
|
52
63
|
theme?: PartialDeep<Theme<CheckboxTheme>> | undefined;
|
|
53
64
|
shortcuts?: CheckboxShortcuts | undefined;
|
|
54
|
-
}
|
|
65
|
+
} & CheckboxConfig<Value>, context?: import("@inquirer/type").Context) => Promise<Value[]>;
|
|
55
66
|
export default _default;
|
|
56
67
|
export { Separator } from '@inquirer/core';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/checkbox",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.4",
|
|
4
4
|
"description": "Inquirer checkbox prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -67,12 +67,13 @@
|
|
|
67
67
|
"tsc": "tsc"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@inquirer/ansi": "^2.0.
|
|
71
|
-
"@inquirer/core": "^
|
|
72
|
-
"@inquirer/figures": "^2.0.
|
|
73
|
-
"@inquirer/type": "
|
|
70
|
+
"@inquirer/ansi": "^2.0.8",
|
|
71
|
+
"@inquirer/core": "^12.0.2",
|
|
72
|
+
"@inquirer/figures": "^2.0.9",
|
|
73
|
+
"@inquirer/type": "4.1.1"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
+
"@repo/tsconfig": "0.0.0",
|
|
76
77
|
"typescript": "^6.0.2"
|
|
77
78
|
},
|
|
78
79
|
"peerDependencies": {
|
|
@@ -88,5 +89,5 @@
|
|
|
88
89
|
},
|
|
89
90
|
"main": "./dist/index.js",
|
|
90
91
|
"types": "./dist/index.d.ts",
|
|
91
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
|
|
92
93
|
}
|
|
@@ -78,14 +78,37 @@ type Theme = {
|
|
|
78
78
|
interval: number;
|
|
79
79
|
frames: string[];
|
|
80
80
|
};
|
|
81
|
+
keywords: {
|
|
82
|
+
yes: string;
|
|
83
|
+
no: string;
|
|
84
|
+
};
|
|
81
85
|
style: {
|
|
82
86
|
answer: (text: string) => string;
|
|
83
87
|
message: (text: string, status: 'idle' | 'done' | 'loading') => string;
|
|
84
88
|
defaultAnswer: (text: string) => string;
|
|
89
|
+
confirmDefault: (text: string) => string;
|
|
85
90
|
};
|
|
86
91
|
};
|
|
87
92
|
```
|
|
88
93
|
|
|
94
|
+
The `keywords` property defines the words accepted as "yes" and "no". Matching is
|
|
95
|
+
prefix-based and case-insensitive, and the first character of each word is shown in
|
|
96
|
+
the hint (e.g. `Y/n`). The matched word is also displayed once the prompt is answered.
|
|
97
|
+
Overriding `keywords` is how `@inquirer/i18n` localizes the prompt:
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
confirm({
|
|
101
|
+
message: '¿Continuar?',
|
|
102
|
+
theme: {
|
|
103
|
+
keywords: { yes: 'Sí', no: 'No' },
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
The `confirmDefault` style marks the character representing the default answer in the
|
|
109
|
+
hint. By default it uppercases the character (`Y/n`); for scripts without case
|
|
110
|
+
(e.g. Chinese) it highlights the character with a color instead.
|
|
111
|
+
|
|
89
112
|
# License
|
|
90
113
|
|
|
91
114
|
Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))<br/>
|
|
@@ -2,9 +2,33 @@ import { type Theme } from '@inquirer/core';
|
|
|
2
2
|
import type { PartialDeep } from '@inquirer/type';
|
|
3
3
|
type ConfirmConfig = {
|
|
4
4
|
message: string;
|
|
5
|
-
default?: boolean;
|
|
5
|
+
default?: boolean | undefined;
|
|
6
6
|
transformer?: (value: boolean) => string;
|
|
7
|
-
theme?: PartialDeep<Theme
|
|
7
|
+
theme?: PartialDeep<Theme<ConfirmTheme>>;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type ConfirmTheme = {
|
|
10
|
+
/**
|
|
11
|
+
* Words accepted as "yes" and "no" answers. Matching is prefix-based and
|
|
12
|
+
* case-insensitive, and the first character of each word is shown in the
|
|
13
|
+
* hint. These words are also displayed once the prompt is answered.
|
|
14
|
+
*/
|
|
15
|
+
keywords: {
|
|
16
|
+
yes: string;
|
|
17
|
+
no: string;
|
|
18
|
+
};
|
|
19
|
+
style: {
|
|
20
|
+
/**
|
|
21
|
+
* Style the character representing the default answer in the hint (e.g.
|
|
22
|
+
* "Y/n"). Uppercases it by default; scripts without case (e.g. Chinese)
|
|
23
|
+
* are highlighted with a color instead.
|
|
24
|
+
*/
|
|
25
|
+
confirmDefault: (text: string) => string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
declare const _default: import("@inquirer/type").Prompt<boolean, {
|
|
29
|
+
message: string;
|
|
30
|
+
default?: boolean | undefined | undefined;
|
|
31
|
+
transformer?: ((value: boolean) => string) | undefined;
|
|
32
|
+
theme?: PartialDeep<Theme<ConfirmTheme>> | undefined;
|
|
33
|
+
} & ConfirmConfig>;
|
|
10
34
|
export default _default;
|
|
@@ -1,21 +1,47 @@
|
|
|
1
1
|
import { createPrompt, useState, useKeypress, isEnterKey, isTabKey, usePrefix, makeTheme, } from '@inquirer/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import { styleText } from 'node:util';
|
|
3
|
+
const confirmTheme = {
|
|
4
|
+
keywords: {
|
|
5
|
+
yes: 'Yes',
|
|
6
|
+
no: 'No',
|
|
7
|
+
},
|
|
8
|
+
style: {
|
|
9
|
+
confirmDefault: (text) => {
|
|
10
|
+
const first = text[0] ?? '';
|
|
11
|
+
if (first.toLowerCase() === first.toUpperCase()) {
|
|
12
|
+
return styleText('cyan', text);
|
|
13
|
+
}
|
|
14
|
+
return first.toUpperCase() + text.slice(1);
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
13
18
|
export default createPrompt((config, done) => {
|
|
14
|
-
const { transformer = boolToString } = config;
|
|
15
19
|
const [status, setStatus] = useState('idle');
|
|
16
20
|
const [value, setValue] = useState('');
|
|
17
|
-
const theme = makeTheme(config.theme);
|
|
21
|
+
const theme = makeTheme(confirmTheme, config.theme);
|
|
18
22
|
const prefix = usePrefix({ status, theme });
|
|
23
|
+
const { yes, no } = theme.keywords;
|
|
24
|
+
// The hint shows the first character of each label, lowercased; the default
|
|
25
|
+
// side is then uppercased (or colored) by `confirmDefault`.
|
|
26
|
+
const yesHint = (yes[0] ?? '').toLowerCase();
|
|
27
|
+
const noHint = (no[0] ?? '').toLowerCase();
|
|
28
|
+
const hint = config.default === false
|
|
29
|
+
? `${yesHint}/${theme.style.confirmDefault(noHint)}`
|
|
30
|
+
: `${theme.style.confirmDefault(yesHint)}/${noHint}`;
|
|
31
|
+
function boolToString(value) {
|
|
32
|
+
return value ? yes : no;
|
|
33
|
+
}
|
|
34
|
+
const { transformer = boolToString } = config;
|
|
35
|
+
function getBooleanValue(value, defaultValue) {
|
|
36
|
+
const v = value.toLowerCase();
|
|
37
|
+
if (v === '')
|
|
38
|
+
return defaultValue !== false;
|
|
39
|
+
if (yes.toLowerCase().startsWith(v))
|
|
40
|
+
return true;
|
|
41
|
+
if (no.toLowerCase().startsWith(v))
|
|
42
|
+
return false;
|
|
43
|
+
return defaultValue !== false;
|
|
44
|
+
}
|
|
19
45
|
useKeypress((key, rl) => {
|
|
20
46
|
if (status !== 'idle')
|
|
21
47
|
return;
|
|
@@ -41,7 +67,7 @@ export default createPrompt((config, done) => {
|
|
|
41
67
|
formattedValue = theme.style.answer(value);
|
|
42
68
|
}
|
|
43
69
|
else {
|
|
44
|
-
defaultValue = ` ${theme.style.defaultAnswer(
|
|
70
|
+
defaultValue = ` ${theme.style.defaultAnswer(hint)}`;
|
|
45
71
|
}
|
|
46
72
|
const message = theme.style.message(config.message, status);
|
|
47
73
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/confirm",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.1",
|
|
4
4
|
"description": "Inquirer confirm prompt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -67,10 +67,11 @@
|
|
|
67
67
|
"tsc": "tsc"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@inquirer/core": "^
|
|
71
|
-
"@inquirer/type": "
|
|
70
|
+
"@inquirer/core": "^12.0.2",
|
|
71
|
+
"@inquirer/type": "4.1.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
+
"@repo/tsconfig": "0.0.0",
|
|
74
75
|
"typescript": "^6.0.2"
|
|
75
76
|
},
|
|
76
77
|
"peerDependencies": {
|
|
@@ -86,5 +87,5 @@
|
|
|
86
87
|
},
|
|
87
88
|
"main": "./dist/index.js",
|
|
88
89
|
"types": "./dist/index.d.ts",
|
|
89
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "5748bd9966b5e175ddf5995ee4cdce6f60c4272e"
|
|
90
91
|
}
|
|
@@ -49,9 +49,7 @@ const input = createPrompt((config, done) => {
|
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
// And it is then called as
|
|
52
|
-
const answer = await input({
|
|
53
|
-
/* config */
|
|
54
|
-
});
|
|
52
|
+
const answer = await input({/* config */});
|
|
55
53
|
```
|
|
56
54
|
|
|
57
55
|
## Hooks
|
|
@@ -64,6 +62,14 @@ State lets a component “remember” information like user input. For example,
|
|
|
64
62
|
|
|
65
63
|
`useState` declares a state variable that you can update directly.
|
|
66
64
|
|
|
65
|
+
The setter also accepts an updater function to compute the next state from the current one (mirroring React):
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
const [index, setIndex] = useState(0);
|
|
69
|
+
|
|
70
|
+
setIndex((current) => current + 1);
|
|
71
|
+
```
|
|
72
|
+
|
|
67
73
|
```ts
|
|
68
74
|
import { createPrompt, useState } from '@inquirer/core';
|
|
69
75
|
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { type Prompt
|
|
2
|
-
type ViewFunction<Value, Config> = (config:
|
|
3
|
-
|
|
1
|
+
import { type Prompt } from '@inquirer/type';
|
|
2
|
+
type ViewFunction<Value, Config> = (config: Config, done: (value: Value) => void) => string | [string, string | undefined];
|
|
3
|
+
/**
|
|
4
|
+
* Expand the top-level keys of a type for better IDE display, without
|
|
5
|
+
* recursing into nested fields (so generic values stay compatible).
|
|
6
|
+
*/
|
|
7
|
+
type ShallowPrettify<T> = {
|
|
8
|
+
[K in keyof T]: T[K];
|
|
9
|
+
} & {};
|
|
10
|
+
export declare function createPrompt<Value, Config>(view: ViewFunction<Value, Config>): Prompt<Value, ShallowPrettify<Config> & Config>;
|
|
4
11
|
export {};
|
|
@@ -2,17 +2,11 @@ import type { InquirerReadline } from '@inquirer/type';
|
|
|
2
2
|
export declare function withHooks<T>(rl: InquirerReadline, cb: (cycle: (render: () => void) => void) => T): T;
|
|
3
3
|
export declare function readline(): InquirerReadline;
|
|
4
4
|
export declare function withUpdates<Args extends unknown[], R>(fn: (...args: Args) => R): (...args: Args) => R;
|
|
5
|
-
type
|
|
5
|
+
type Pointer<Value> = {
|
|
6
6
|
get(): Value;
|
|
7
7
|
set(value: Value): void;
|
|
8
|
-
initialized:
|
|
8
|
+
initialized: boolean;
|
|
9
9
|
};
|
|
10
|
-
type UnsetPointer<Value> = {
|
|
11
|
-
get(): void;
|
|
12
|
-
set(value: Value): void;
|
|
13
|
-
initialized: false;
|
|
14
|
-
};
|
|
15
|
-
type Pointer<Value> = SetPointer<Value> | UnsetPointer<Value>;
|
|
16
10
|
export declare function withPointer<Value, ReturnValue>(cb: (pointer: Pointer<Value>) => ReturnValue): ReturnValue;
|
|
17
11
|
export declare function handleChange(): void;
|
|
18
12
|
export declare const effectScheduler: {
|