@ndlib/ndlib-cdk2 1.0.21 → 1.0.22
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/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/.package-lock.json +637 -636
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-cjs/endpoint/endpointResolver.js +4 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-cjs/index.js +33 -76
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-cjs/runtimeConfig.browser.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-cjs/runtimeConfig.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/endpoint/endpointResolver.js +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/index.js +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/protocols/Aws_json1_1.js +1 -40
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/runtimeConfig.browser.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/runtimeConfig.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/CodePipeline.d.ts +6 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/CodePipelineClient.d.ts +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/AcknowledgeJobCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/AcknowledgeThirdPartyJobCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/CreateCustomActionTypeCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/CreatePipelineCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/DeleteCustomActionTypeCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/DeletePipelineCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/DeleteWebhookCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/DeregisterWebhookWithThirdPartyCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/DisableStageTransitionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/EnableStageTransitionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetActionTypeCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetJobDetailsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetPipelineCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetPipelineExecutionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetPipelineStateCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetThirdPartyJobDetailsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/ListActionExecutionsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/ListActionTypesCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/ListPipelineExecutionsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/ListPipelinesCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/ListWebhooksCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/PollForJobsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/PollForThirdPartyJobsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/PutActionRevisionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/PutApprovalResultCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/PutJobFailureResultCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/PutJobSuccessResultCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/PutThirdPartyJobFailureResultCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/PutThirdPartyJobSuccessResultCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/PutWebhookCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/RegisterWebhookWithThirdPartyCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/RetryStageExecutionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/StartPipelineExecutionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/StopPipelineExecutionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/UpdateActionTypeCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/UpdatePipelineCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/index.d.ts +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/models/models_0.d.ts +607 -607
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/runtimeConfig.browser.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/runtimeConfig.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/runtimeConfig.native.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/CodePipeline.d.ts +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/CodePipelineClient.d.ts +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/AcknowledgeJobCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/AcknowledgeThirdPartyJobCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/CreateCustomActionTypeCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/CreatePipelineCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/DeleteCustomActionTypeCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/DeletePipelineCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/DeleteWebhookCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/DeregisterWebhookWithThirdPartyCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/DisableStageTransitionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/EnableStageTransitionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/GetActionTypeCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/GetJobDetailsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/GetPipelineCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/GetPipelineExecutionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/GetPipelineStateCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/GetThirdPartyJobDetailsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/ListActionExecutionsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/ListActionTypesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/ListPipelineExecutionsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/ListPipelinesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/ListWebhooksCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/PollForJobsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/PollForThirdPartyJobsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/PutActionRevisionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/PutApprovalResultCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/PutJobFailureResultCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/PutJobSuccessResultCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/PutThirdPartyJobFailureResultCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/PutThirdPartyJobSuccessResultCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/PutWebhookCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/RegisterWebhookWithThirdPartyCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/RetryStageExecutionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/StartPipelineExecutionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/StopPipelineExecutionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/TagResourceCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/UpdateActionTypeCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/UpdatePipelineCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/index.d.ts +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/runtimeConfig.d.ts +4 -16
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/runtimeConfig.native.d.ts +6 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/package.json +40 -40
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/endpointResolver.js +4 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +249 -195
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.browser.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/endpointResolver.js +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/index.js +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/models/models_0.js +39 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/models/models_1.js +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/protocols/Aws_json1_1.js +39 -41
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.browser.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/SSM.d.ts +29 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/SSMClient.d.ts +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/AddTagsToResourceCommand.d.ts +3 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/AssociateOpsItemRelatedItemCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/CancelCommandCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/CancelMaintenanceWindowExecutionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateActivationCommand.d.ts +4 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateAssociationBatchCommand.d.ts +5 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateAssociationCommand.d.ts +5 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateDocumentCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateMaintenanceWindowCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateOpsItemCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateOpsMetadataCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreatePatchBaselineCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateResourceDataSyncCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteActivationCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteAssociationCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteDocumentCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteInventoryCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteMaintenanceWindowCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteOpsItemCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteOpsMetadataCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteParameterCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteParametersCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeletePatchBaselineCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteResourceDataSyncCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteResourcePolicyCommand.d.ts +28 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterManagedInstanceCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterPatchBaselineForPatchGroupCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterTargetFromMaintenanceWindowCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterTaskFromMaintenanceWindowCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeActivationsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationExecutionTargetsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationExecutionsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationExecutionsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationStepExecutionsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAvailablePatchesCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentPermissionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeEffectiveInstanceAssociationsCommand.d.ts +5 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeEffectivePatchesForPatchBaselineCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstanceAssociationsStatusCommand.d.ts +5 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstanceInformationCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchesCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInventoryDeletionsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionTasksCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTargetsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTasksCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeOpsItemsCommand.d.ts +3 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeParametersCommand.d.ts +8 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchBaselinesCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchGroupStateCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchGroupsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchPropertiesCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeSessionsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DisassociateOpsItemRelatedItemCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetAutomationExecutionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetCalendarStateCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetCommandInvocationCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetConnectionStatusCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDefaultPatchBaselineCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts +3 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDocumentCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetInventoryCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetInventorySchemaCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionTaskCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowTaskCommand.d.ts +3 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsItemCommand.d.ts +3 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsMetadataCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsSummaryCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParameterCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParameterHistoryCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParametersByPathCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParametersCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetPatchBaselineCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetPatchBaselineForPatchGroupCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetResourcePoliciesCommand.d.ts +5 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetServiceSettingCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/LabelParameterVersionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListAssociationVersionsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListAssociationsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListCommandInvocationsCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListCommandsCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceItemsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceSummariesCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentMetadataHistoryCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentVersionsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListInventoryEntriesCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsItemEventsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsItemRelatedItemsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsMetadataCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListResourceComplianceSummariesCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListResourceDataSyncCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ModifyDocumentPermissionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutComplianceItemsCommand.d.ts +5 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutInventoryCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutParameterCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutResourcePolicyCommand.d.ts +42 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterDefaultPatchBaselineCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterPatchBaselineForPatchGroupCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts +3 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResetServiceSettingCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResumeSessionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendAutomationSignalCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendCommandCommand.d.ts +7 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAssociationsOnceCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAutomationExecutionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartChangeRequestExecutionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartSessionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/StopAutomationExecutionCommand.d.ts +3 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/TerminateSessionCommand.d.ts +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UnlabelParameterVersionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateAssociationCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateAssociationStatusCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentDefaultVersionCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentMetadataCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowTargetCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowTaskCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateManagedInstanceRoleCommand.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateOpsItemCommand.d.ts +3 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateOpsMetadataCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdatePatchBaselineCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateResourceDataSyncCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateServiceSettingCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/index.d.ts +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +973 -979
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +1205 -1152
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/models/models_2.d.ts +256 -235
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSM.d.ts +28 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSMClient.d.ts +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/AddTagsToResourceCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/AssociateOpsItemRelatedItemCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CancelCommandCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CancelMaintenanceWindowExecutionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateActivationCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateAssociationBatchCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateAssociationCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateDocumentCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateMaintenanceWindowCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateOpsItemCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateOpsMetadataCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreatePatchBaselineCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateResourceDataSyncCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteActivationCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteAssociationCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteDocumentCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteInventoryCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteMaintenanceWindowCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteOpsItemCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteOpsMetadataCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteParameterCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteParametersCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeletePatchBaselineCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteResourceDataSyncCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterManagedInstanceCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterPatchBaselineForPatchGroupCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterTargetFromMaintenanceWindowCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterTaskFromMaintenanceWindowCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeActivationsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationExecutionTargetsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationExecutionsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAutomationExecutionsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAutomationStepExecutionsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAvailablePatchesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeDocumentCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeDocumentPermissionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeEffectiveInstanceAssociationsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeEffectivePatchesForPatchBaselineCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstanceAssociationsStatusCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstanceInformationCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchStatesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInventoryDeletionsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionTasksCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTargetsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTasksCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeOpsItemsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeParametersCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchBaselinesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchGroupStateCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchGroupsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchPropertiesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeSessionsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DisassociateOpsItemRelatedItemCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetAutomationExecutionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetCalendarStateCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetCommandInvocationCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetConnectionStatusCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDefaultPatchBaselineCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDocumentCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetInventoryCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetInventorySchemaCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionTaskCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowTaskCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsItemCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsMetadataCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsSummaryCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParameterCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParameterHistoryCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParametersByPathCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParametersCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetPatchBaselineCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetPatchBaselineForPatchGroupCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetServiceSettingCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/LabelParameterVersionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListAssociationVersionsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListAssociationsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListCommandInvocationsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListCommandsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListComplianceItemsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListComplianceSummariesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentMetadataHistoryCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentVersionsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListInventoryEntriesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsItemEventsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsItemRelatedItemsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsMetadataCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListResourceComplianceSummariesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListResourceDataSyncCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ModifyDocumentPermissionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutComplianceItemsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutInventoryCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutParameterCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterDefaultPatchBaselineCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterPatchBaselineForPatchGroupCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RemoveTagsFromResourceCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ResetServiceSettingCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ResumeSessionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/SendAutomationSignalCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/SendCommandCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartAssociationsOnceCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartAutomationExecutionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartChangeRequestExecutionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartSessionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StopAutomationExecutionCommand.d.ts +10 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +13 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UnlabelParameterVersionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateAssociationCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateAssociationStatusCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentDefaultVersionCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentMetadataCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowTargetCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowTaskCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateManagedInstanceRoleCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateOpsItemCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateOpsMetadataCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdatePatchBaselineCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateResourceDataSyncCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateServiceSettingCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/index.d.ts +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +30 -17
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts +19 -11
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_2.d.ts +12 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +4 -16
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +6 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/package.json +41 -41
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js +4 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +6 -49
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.browser.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-es/index.js +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +1 -40
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.browser.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +32 -32
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +4 -16
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +6 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/package.json +38 -38
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +4 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +7 -50
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +1 -40
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +89 -89
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +4 -16
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +6 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/package.json +40 -40
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +4 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +10 -44
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-es/index.js +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +2 -34
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +98 -98
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +3 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +0 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +4 -16
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +6 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/package.json +39 -40
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/CHANGELOG.md +65 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/index.js +133 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/protocols/common.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/protocols/json/parseJsonBody.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/protocols/xml/parseXmlBody.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/protocols/common.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/protocols/index.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/protocols/json/parseJsonBody.js +51 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/protocols/xml/parseXmlBody.js +57 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/protocols/common.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/protocols/json/parseJsonBody.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/protocols/xml/parseXmlBody.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/common.d.ts +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/parseJsonBody.d.ts +13 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/xml/parseXmlBody.d.ts +13 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/integ/request-handlers/request-handlers.integ.spec.ts +158 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/jest.config.integ.js +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/package.json +10 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.spec.ts +30 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts +10 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/common.ts +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/index.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/json/parseJsonBody.ts +60 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/xml/parseXmlBody.ts +64 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-host-header/package.json +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-logger/package.json +4 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-user-agent/package.json +6 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/region-config-resolver/package.json +7 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/types/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +39 -11
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-locate-window/package.json +5 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/abort-controller/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/config-resolver/package.json +6 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/core/package.json +9 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +11 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/dist-es/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/package.json +6 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/package.json +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/fetch-http-handler/package.json +9 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/hash-node/package.json +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/invalid-dependency/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/is-array-buffer/package.json +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-content-length/package.json +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/dist-cjs/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts +7 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/dist-types/ts3.4/configurations.d.ts +7 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryDecider.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/package.json +10 -10
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-cjs/index.js +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +5 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +6 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +5 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +5 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +6 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +5 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/package.json +4 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-stack/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-config-provider/package.json +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/dist-cjs/index.js +14 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +30 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +16 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/package.json +6 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/property-provider/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/protocol-http/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/querystring-builder/package.json +4 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/querystring-parser/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/service-error-classification/dist-cjs/index.js +7 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/service-error-classification/dist-es/index.js +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/service-error-classification/dist-types/ts3.4/index.d.ts +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/package.json +10 -10
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/smithy-client/dist-cjs/index.js +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/smithy-client/dist-es/command.js +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/smithy-client/dist-types/command.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/smithy-client/package.json +7 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/client.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/retry.d.ts +6 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/serde.d.ts +10 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/shapes.d.ts +10 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +2 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +6 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +10 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +10 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +27 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/util.d.ts +22 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/package.json +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/url-parser/package.json +4 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +16 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +14 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-base64/dist-es/toBase64.browser.js +16 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-base64/dist-es/toBase64.js +14 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-base64/dist-types/toBase64.browser.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-base64/dist-types/toBase64.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.browser.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.d.ts +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-base64/package.json +4 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-body-length-browser/package.json +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-body-length-node/package.json +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-buffer-from/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-config-provider/dist-cjs/index.js +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-config-provider/package.json +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-endpoints/package.json +4 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-hex-encoding/package.json +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-middleware/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-retry/package.json +4 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-stream/package.json +12 -12
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-uri-escape/package.json +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-utf8/dist-cjs/index.js +9 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +9 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +9 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +7 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +7 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +7 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +7 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-utf8/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-waiter/package.json +4 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/commonjs/index.d.ts +9 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/commonjs/index.js +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/esm/index.d.ts +9 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/esm/index.js +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/esm/index.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/package.json +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.d.ts +1107 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.js +2020 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.d.ts +1107 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.js +1985 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/package.json +26 -28
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/tslib/README.md +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/tslib/modules/index.js +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/tslib/package.json +12 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/tslib/tslib.d.ts +23 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/tslib/tslib.es6.js +80 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/tslib/tslib.es6.mjs +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/tslib/tslib.js +54 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/package-lock.json +640 -2033
- package/lib/internal-lambdas/sourceWatcherLambda/src/package.json +2 -2
- package/package.json +10 -10
package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.js
ADDED
|
@@ -0,0 +1,2020 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.PathScurry = exports.Path = exports.PathScurryDarwin = exports.PathScurryPosix = exports.PathScurryWin32 = exports.PathScurryBase = exports.PathPosix = exports.PathWin32 = exports.PathBase = exports.ChildrenCache = exports.ResolveCache = void 0;
|
|
27
|
+
const lru_cache_1 = require("lru-cache");
|
|
28
|
+
const path_1 = require("path");
|
|
29
|
+
const url_1 = require("url");
|
|
30
|
+
const actualFS = __importStar(require("fs"));
|
|
31
|
+
const fs_1 = require("fs");
|
|
32
|
+
const realpathSync = fs_1.realpathSync.native;
|
|
33
|
+
// TODO: test perf of fs/promises realpath vs realpathCB,
|
|
34
|
+
// since the promises one uses realpath.native
|
|
35
|
+
const promises_1 = require("fs/promises");
|
|
36
|
+
const minipass_1 = require("minipass");
|
|
37
|
+
const defaultFS = {
|
|
38
|
+
lstatSync: fs_1.lstatSync,
|
|
39
|
+
readdir: fs_1.readdir,
|
|
40
|
+
readdirSync: fs_1.readdirSync,
|
|
41
|
+
readlinkSync: fs_1.readlinkSync,
|
|
42
|
+
realpathSync,
|
|
43
|
+
promises: {
|
|
44
|
+
lstat: promises_1.lstat,
|
|
45
|
+
readdir: promises_1.readdir,
|
|
46
|
+
readlink: promises_1.readlink,
|
|
47
|
+
realpath: promises_1.realpath,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
// if they just gave us require('fs') then use our default
|
|
51
|
+
const fsFromOption = (fsOption) => !fsOption || fsOption === defaultFS || fsOption === actualFS
|
|
52
|
+
? defaultFS
|
|
53
|
+
: {
|
|
54
|
+
...defaultFS,
|
|
55
|
+
...fsOption,
|
|
56
|
+
promises: {
|
|
57
|
+
...defaultFS.promises,
|
|
58
|
+
...(fsOption.promises || {}),
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
// turn something like //?/c:/ into c:\
|
|
62
|
+
const uncDriveRegexp = /^\\\\\?\\([a-z]:)\\?$/i;
|
|
63
|
+
const uncToDrive = (rootPath) => rootPath.replace(/\//g, '\\').replace(uncDriveRegexp, '$1\\');
|
|
64
|
+
// windows paths are separated by either / or \
|
|
65
|
+
const eitherSep = /[\\\/]/;
|
|
66
|
+
const UNKNOWN = 0; // may not even exist, for all we know
|
|
67
|
+
const IFIFO = 0b0001;
|
|
68
|
+
const IFCHR = 0b0010;
|
|
69
|
+
const IFDIR = 0b0100;
|
|
70
|
+
const IFBLK = 0b0110;
|
|
71
|
+
const IFREG = 0b1000;
|
|
72
|
+
const IFLNK = 0b1010;
|
|
73
|
+
const IFSOCK = 0b1100;
|
|
74
|
+
const IFMT = 0b1111;
|
|
75
|
+
// mask to unset low 4 bits
|
|
76
|
+
const IFMT_UNKNOWN = ~IFMT;
|
|
77
|
+
// set after successfully calling readdir() and getting entries.
|
|
78
|
+
const READDIR_CALLED = 0b0000_0001_0000;
|
|
79
|
+
// set after a successful lstat()
|
|
80
|
+
const LSTAT_CALLED = 0b0000_0010_0000;
|
|
81
|
+
// set if an entry (or one of its parents) is definitely not a dir
|
|
82
|
+
const ENOTDIR = 0b0000_0100_0000;
|
|
83
|
+
// set if an entry (or one of its parents) does not exist
|
|
84
|
+
// (can also be set on lstat errors like EACCES or ENAMETOOLONG)
|
|
85
|
+
const ENOENT = 0b0000_1000_0000;
|
|
86
|
+
// cannot have child entries -- also verify &IFMT is either IFDIR or IFLNK
|
|
87
|
+
// set if we fail to readlink
|
|
88
|
+
const ENOREADLINK = 0b0001_0000_0000;
|
|
89
|
+
// set if we know realpath() will fail
|
|
90
|
+
const ENOREALPATH = 0b0010_0000_0000;
|
|
91
|
+
const ENOCHILD = ENOTDIR | ENOENT | ENOREALPATH;
|
|
92
|
+
const TYPEMASK = 0b0011_1111_1111;
|
|
93
|
+
const entToType = (s) => s.isFile()
|
|
94
|
+
? IFREG
|
|
95
|
+
: s.isDirectory()
|
|
96
|
+
? IFDIR
|
|
97
|
+
: s.isSymbolicLink()
|
|
98
|
+
? IFLNK
|
|
99
|
+
: s.isCharacterDevice()
|
|
100
|
+
? IFCHR
|
|
101
|
+
: s.isBlockDevice()
|
|
102
|
+
? IFBLK
|
|
103
|
+
: s.isSocket()
|
|
104
|
+
? IFSOCK
|
|
105
|
+
: s.isFIFO()
|
|
106
|
+
? IFIFO
|
|
107
|
+
: UNKNOWN;
|
|
108
|
+
// normalize unicode path names
|
|
109
|
+
const normalizeCache = new Map();
|
|
110
|
+
const normalize = (s) => {
|
|
111
|
+
const c = normalizeCache.get(s);
|
|
112
|
+
if (c)
|
|
113
|
+
return c;
|
|
114
|
+
const n = s.normalize('NFKD');
|
|
115
|
+
normalizeCache.set(s, n);
|
|
116
|
+
return n;
|
|
117
|
+
};
|
|
118
|
+
const normalizeNocaseCache = new Map();
|
|
119
|
+
const normalizeNocase = (s) => {
|
|
120
|
+
const c = normalizeNocaseCache.get(s);
|
|
121
|
+
if (c)
|
|
122
|
+
return c;
|
|
123
|
+
const n = normalize(s.toLowerCase());
|
|
124
|
+
normalizeNocaseCache.set(s, n);
|
|
125
|
+
return n;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* An LRUCache for storing resolved path strings or Path objects.
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
class ResolveCache extends lru_cache_1.LRUCache {
|
|
132
|
+
constructor() {
|
|
133
|
+
super({ max: 256 });
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exports.ResolveCache = ResolveCache;
|
|
137
|
+
// In order to prevent blowing out the js heap by allocating hundreds of
|
|
138
|
+
// thousands of Path entries when walking extremely large trees, the "children"
|
|
139
|
+
// in this tree are represented by storing an array of Path entries in an
|
|
140
|
+
// LRUCache, indexed by the parent. At any time, Path.children() may return an
|
|
141
|
+
// empty array, indicating that it doesn't know about any of its children, and
|
|
142
|
+
// thus has to rebuild that cache. This is fine, it just means that we don't
|
|
143
|
+
// benefit as much from having the cached entries, but huge directory walks
|
|
144
|
+
// don't blow out the stack, and smaller ones are still as fast as possible.
|
|
145
|
+
//
|
|
146
|
+
//It does impose some complexity when building up the readdir data, because we
|
|
147
|
+
//need to pass a reference to the children array that we started with.
|
|
148
|
+
/**
|
|
149
|
+
* an LRUCache for storing child entries.
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
class ChildrenCache extends lru_cache_1.LRUCache {
|
|
153
|
+
constructor(maxSize = 16 * 1024) {
|
|
154
|
+
super({
|
|
155
|
+
maxSize,
|
|
156
|
+
// parent + children
|
|
157
|
+
sizeCalculation: a => a.length + 1,
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
exports.ChildrenCache = ChildrenCache;
|
|
162
|
+
const setAsCwd = Symbol('PathScurry setAsCwd');
|
|
163
|
+
/**
|
|
164
|
+
* Path objects are sort of like a super-powered
|
|
165
|
+
* {@link https://nodejs.org/docs/latest/api/fs.html#class-fsdirent fs.Dirent}
|
|
166
|
+
*
|
|
167
|
+
* Each one represents a single filesystem entry on disk, which may or may not
|
|
168
|
+
* exist. It includes methods for reading various types of information via
|
|
169
|
+
* lstat, readlink, and readdir, and caches all information to the greatest
|
|
170
|
+
* degree possible.
|
|
171
|
+
*
|
|
172
|
+
* Note that fs operations that would normally throw will instead return an
|
|
173
|
+
* "empty" value. This is in order to prevent excessive overhead from error
|
|
174
|
+
* stack traces.
|
|
175
|
+
*/
|
|
176
|
+
class PathBase {
|
|
177
|
+
/**
|
|
178
|
+
* the basename of this path
|
|
179
|
+
*
|
|
180
|
+
* **Important**: *always* test the path name against any test string
|
|
181
|
+
* usingthe {@link isNamed} method, and not by directly comparing this
|
|
182
|
+
* string. Otherwise, unicode path strings that the system sees as identical
|
|
183
|
+
* will not be properly treated as the same path, leading to incorrect
|
|
184
|
+
* behavior and possible security issues.
|
|
185
|
+
*/
|
|
186
|
+
name;
|
|
187
|
+
/**
|
|
188
|
+
* the Path entry corresponding to the path root.
|
|
189
|
+
*
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
root;
|
|
193
|
+
/**
|
|
194
|
+
* All roots found within the current PathScurry family
|
|
195
|
+
*
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
roots;
|
|
199
|
+
/**
|
|
200
|
+
* a reference to the parent path, or undefined in the case of root entries
|
|
201
|
+
*
|
|
202
|
+
* @internal
|
|
203
|
+
*/
|
|
204
|
+
parent;
|
|
205
|
+
/**
|
|
206
|
+
* boolean indicating whether paths are compared case-insensitively
|
|
207
|
+
* @internal
|
|
208
|
+
*/
|
|
209
|
+
nocase;
|
|
210
|
+
// potential default fs override
|
|
211
|
+
#fs;
|
|
212
|
+
// Stats fields
|
|
213
|
+
#dev;
|
|
214
|
+
get dev() {
|
|
215
|
+
return this.#dev;
|
|
216
|
+
}
|
|
217
|
+
#mode;
|
|
218
|
+
get mode() {
|
|
219
|
+
return this.#mode;
|
|
220
|
+
}
|
|
221
|
+
#nlink;
|
|
222
|
+
get nlink() {
|
|
223
|
+
return this.#nlink;
|
|
224
|
+
}
|
|
225
|
+
#uid;
|
|
226
|
+
get uid() {
|
|
227
|
+
return this.#uid;
|
|
228
|
+
}
|
|
229
|
+
#gid;
|
|
230
|
+
get gid() {
|
|
231
|
+
return this.#gid;
|
|
232
|
+
}
|
|
233
|
+
#rdev;
|
|
234
|
+
get rdev() {
|
|
235
|
+
return this.#rdev;
|
|
236
|
+
}
|
|
237
|
+
#blksize;
|
|
238
|
+
get blksize() {
|
|
239
|
+
return this.#blksize;
|
|
240
|
+
}
|
|
241
|
+
#ino;
|
|
242
|
+
get ino() {
|
|
243
|
+
return this.#ino;
|
|
244
|
+
}
|
|
245
|
+
#size;
|
|
246
|
+
get size() {
|
|
247
|
+
return this.#size;
|
|
248
|
+
}
|
|
249
|
+
#blocks;
|
|
250
|
+
get blocks() {
|
|
251
|
+
return this.#blocks;
|
|
252
|
+
}
|
|
253
|
+
#atimeMs;
|
|
254
|
+
get atimeMs() {
|
|
255
|
+
return this.#atimeMs;
|
|
256
|
+
}
|
|
257
|
+
#mtimeMs;
|
|
258
|
+
get mtimeMs() {
|
|
259
|
+
return this.#mtimeMs;
|
|
260
|
+
}
|
|
261
|
+
#ctimeMs;
|
|
262
|
+
get ctimeMs() {
|
|
263
|
+
return this.#ctimeMs;
|
|
264
|
+
}
|
|
265
|
+
#birthtimeMs;
|
|
266
|
+
get birthtimeMs() {
|
|
267
|
+
return this.#birthtimeMs;
|
|
268
|
+
}
|
|
269
|
+
#atime;
|
|
270
|
+
get atime() {
|
|
271
|
+
return this.#atime;
|
|
272
|
+
}
|
|
273
|
+
#mtime;
|
|
274
|
+
get mtime() {
|
|
275
|
+
return this.#mtime;
|
|
276
|
+
}
|
|
277
|
+
#ctime;
|
|
278
|
+
get ctime() {
|
|
279
|
+
return this.#ctime;
|
|
280
|
+
}
|
|
281
|
+
#birthtime;
|
|
282
|
+
get birthtime() {
|
|
283
|
+
return this.#birthtime;
|
|
284
|
+
}
|
|
285
|
+
#matchName;
|
|
286
|
+
#depth;
|
|
287
|
+
#fullpath;
|
|
288
|
+
#fullpathPosix;
|
|
289
|
+
#relative;
|
|
290
|
+
#relativePosix;
|
|
291
|
+
#type;
|
|
292
|
+
#children;
|
|
293
|
+
#linkTarget;
|
|
294
|
+
#realpath;
|
|
295
|
+
/**
|
|
296
|
+
* This property is for compatibility with the Dirent class as of
|
|
297
|
+
* Node v20, where Dirent['path'] refers to the path of the directory
|
|
298
|
+
* that was passed to readdir. So, somewhat counterintuitively, this
|
|
299
|
+
* property refers to the *parent* path, not the path object itself.
|
|
300
|
+
* For root entries, it's the path to the entry itself.
|
|
301
|
+
*/
|
|
302
|
+
get path() {
|
|
303
|
+
return (this.parent || this).fullpath();
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Do not create new Path objects directly. They should always be accessed
|
|
307
|
+
* via the PathScurry class or other methods on the Path class.
|
|
308
|
+
*
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
|
|
312
|
+
this.name = name;
|
|
313
|
+
this.#matchName = nocase ? normalizeNocase(name) : normalize(name);
|
|
314
|
+
this.#type = type & TYPEMASK;
|
|
315
|
+
this.nocase = nocase;
|
|
316
|
+
this.roots = roots;
|
|
317
|
+
this.root = root || this;
|
|
318
|
+
this.#children = children;
|
|
319
|
+
this.#fullpath = opts.fullpath;
|
|
320
|
+
this.#relative = opts.relative;
|
|
321
|
+
this.#relativePosix = opts.relativePosix;
|
|
322
|
+
this.parent = opts.parent;
|
|
323
|
+
if (this.parent) {
|
|
324
|
+
this.#fs = this.parent.#fs;
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
this.#fs = fsFromOption(opts.fs);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Returns the depth of the Path object from its root.
|
|
332
|
+
*
|
|
333
|
+
* For example, a path at `/foo/bar` would have a depth of 2.
|
|
334
|
+
*/
|
|
335
|
+
depth() {
|
|
336
|
+
if (this.#depth !== undefined)
|
|
337
|
+
return this.#depth;
|
|
338
|
+
if (!this.parent)
|
|
339
|
+
return (this.#depth = 0);
|
|
340
|
+
return (this.#depth = this.parent.depth() + 1);
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* @internal
|
|
344
|
+
*/
|
|
345
|
+
childrenCache() {
|
|
346
|
+
return this.#children;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Get the Path object referenced by the string path, resolved from this Path
|
|
350
|
+
*/
|
|
351
|
+
resolve(path) {
|
|
352
|
+
if (!path) {
|
|
353
|
+
return this;
|
|
354
|
+
}
|
|
355
|
+
const rootPath = this.getRootString(path);
|
|
356
|
+
const dir = path.substring(rootPath.length);
|
|
357
|
+
const dirParts = dir.split(this.splitSep);
|
|
358
|
+
const result = rootPath
|
|
359
|
+
? this.getRoot(rootPath).#resolveParts(dirParts)
|
|
360
|
+
: this.#resolveParts(dirParts);
|
|
361
|
+
return result;
|
|
362
|
+
}
|
|
363
|
+
#resolveParts(dirParts) {
|
|
364
|
+
let p = this;
|
|
365
|
+
for (const part of dirParts) {
|
|
366
|
+
p = p.child(part);
|
|
367
|
+
}
|
|
368
|
+
return p;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Returns the cached children Path objects, if still available. If they
|
|
372
|
+
* have fallen out of the cache, then returns an empty array, and resets the
|
|
373
|
+
* READDIR_CALLED bit, so that future calls to readdir() will require an fs
|
|
374
|
+
* lookup.
|
|
375
|
+
*
|
|
376
|
+
* @internal
|
|
377
|
+
*/
|
|
378
|
+
children() {
|
|
379
|
+
const cached = this.#children.get(this);
|
|
380
|
+
if (cached) {
|
|
381
|
+
return cached;
|
|
382
|
+
}
|
|
383
|
+
const children = Object.assign([], { provisional: 0 });
|
|
384
|
+
this.#children.set(this, children);
|
|
385
|
+
this.#type &= ~READDIR_CALLED;
|
|
386
|
+
return children;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Resolves a path portion and returns or creates the child Path.
|
|
390
|
+
*
|
|
391
|
+
* Returns `this` if pathPart is `''` or `'.'`, or `parent` if pathPart is
|
|
392
|
+
* `'..'`.
|
|
393
|
+
*
|
|
394
|
+
* This should not be called directly. If `pathPart` contains any path
|
|
395
|
+
* separators, it will lead to unsafe undefined behavior.
|
|
396
|
+
*
|
|
397
|
+
* Use `Path.resolve()` instead.
|
|
398
|
+
*
|
|
399
|
+
* @internal
|
|
400
|
+
*/
|
|
401
|
+
child(pathPart, opts) {
|
|
402
|
+
if (pathPart === '' || pathPart === '.') {
|
|
403
|
+
return this;
|
|
404
|
+
}
|
|
405
|
+
if (pathPart === '..') {
|
|
406
|
+
return this.parent || this;
|
|
407
|
+
}
|
|
408
|
+
// find the child
|
|
409
|
+
const children = this.children();
|
|
410
|
+
const name = this.nocase
|
|
411
|
+
? normalizeNocase(pathPart)
|
|
412
|
+
: normalize(pathPart);
|
|
413
|
+
for (const p of children) {
|
|
414
|
+
if (p.#matchName === name) {
|
|
415
|
+
return p;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
// didn't find it, create provisional child, since it might not
|
|
419
|
+
// actually exist. If we know the parent isn't a dir, then
|
|
420
|
+
// in fact it CAN'T exist.
|
|
421
|
+
const s = this.parent ? this.sep : '';
|
|
422
|
+
const fullpath = this.#fullpath
|
|
423
|
+
? this.#fullpath + s + pathPart
|
|
424
|
+
: undefined;
|
|
425
|
+
const pchild = this.newChild(pathPart, UNKNOWN, {
|
|
426
|
+
...opts,
|
|
427
|
+
parent: this,
|
|
428
|
+
fullpath,
|
|
429
|
+
});
|
|
430
|
+
if (!this.canReaddir()) {
|
|
431
|
+
pchild.#type |= ENOENT;
|
|
432
|
+
}
|
|
433
|
+
// don't have to update provisional, because if we have real children,
|
|
434
|
+
// then provisional is set to children.length, otherwise a lower number
|
|
435
|
+
children.push(pchild);
|
|
436
|
+
return pchild;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* The relative path from the cwd. If it does not share an ancestor with
|
|
440
|
+
* the cwd, then this ends up being equivalent to the fullpath()
|
|
441
|
+
*/
|
|
442
|
+
relative() {
|
|
443
|
+
if (this.#relative !== undefined) {
|
|
444
|
+
return this.#relative;
|
|
445
|
+
}
|
|
446
|
+
const name = this.name;
|
|
447
|
+
const p = this.parent;
|
|
448
|
+
if (!p) {
|
|
449
|
+
return (this.#relative = this.name);
|
|
450
|
+
}
|
|
451
|
+
const pv = p.relative();
|
|
452
|
+
return pv + (!pv || !p.parent ? '' : this.sep) + name;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* The relative path from the cwd, using / as the path separator.
|
|
456
|
+
* If it does not share an ancestor with
|
|
457
|
+
* the cwd, then this ends up being equivalent to the fullpathPosix()
|
|
458
|
+
* On posix systems, this is identical to relative().
|
|
459
|
+
*/
|
|
460
|
+
relativePosix() {
|
|
461
|
+
if (this.sep === '/')
|
|
462
|
+
return this.relative();
|
|
463
|
+
if (this.#relativePosix !== undefined)
|
|
464
|
+
return this.#relativePosix;
|
|
465
|
+
const name = this.name;
|
|
466
|
+
const p = this.parent;
|
|
467
|
+
if (!p) {
|
|
468
|
+
return (this.#relativePosix = this.fullpathPosix());
|
|
469
|
+
}
|
|
470
|
+
const pv = p.relativePosix();
|
|
471
|
+
return pv + (!pv || !p.parent ? '' : '/') + name;
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* The fully resolved path string for this Path entry
|
|
475
|
+
*/
|
|
476
|
+
fullpath() {
|
|
477
|
+
if (this.#fullpath !== undefined) {
|
|
478
|
+
return this.#fullpath;
|
|
479
|
+
}
|
|
480
|
+
const name = this.name;
|
|
481
|
+
const p = this.parent;
|
|
482
|
+
if (!p) {
|
|
483
|
+
return (this.#fullpath = this.name);
|
|
484
|
+
}
|
|
485
|
+
const pv = p.fullpath();
|
|
486
|
+
const fp = pv + (!p.parent ? '' : this.sep) + name;
|
|
487
|
+
return (this.#fullpath = fp);
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* On platforms other than windows, this is identical to fullpath.
|
|
491
|
+
*
|
|
492
|
+
* On windows, this is overridden to return the forward-slash form of the
|
|
493
|
+
* full UNC path.
|
|
494
|
+
*/
|
|
495
|
+
fullpathPosix() {
|
|
496
|
+
if (this.#fullpathPosix !== undefined)
|
|
497
|
+
return this.#fullpathPosix;
|
|
498
|
+
if (this.sep === '/')
|
|
499
|
+
return (this.#fullpathPosix = this.fullpath());
|
|
500
|
+
if (!this.parent) {
|
|
501
|
+
const p = this.fullpath().replace(/\\/g, '/');
|
|
502
|
+
if (/^[a-z]:\//i.test(p)) {
|
|
503
|
+
return (this.#fullpathPosix = `//?/${p}`);
|
|
504
|
+
}
|
|
505
|
+
else {
|
|
506
|
+
return (this.#fullpathPosix = p);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
const p = this.parent;
|
|
510
|
+
const pfpp = p.fullpathPosix();
|
|
511
|
+
const fpp = pfpp + (!pfpp || !p.parent ? '' : '/') + this.name;
|
|
512
|
+
return (this.#fullpathPosix = fpp);
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Is the Path of an unknown type?
|
|
516
|
+
*
|
|
517
|
+
* Note that we might know *something* about it if there has been a previous
|
|
518
|
+
* filesystem operation, for example that it does not exist, or is not a
|
|
519
|
+
* link, or whether it has child entries.
|
|
520
|
+
*/
|
|
521
|
+
isUnknown() {
|
|
522
|
+
return (this.#type & IFMT) === UNKNOWN;
|
|
523
|
+
}
|
|
524
|
+
isType(type) {
|
|
525
|
+
return this[`is${type}`]();
|
|
526
|
+
}
|
|
527
|
+
getType() {
|
|
528
|
+
return this.isUnknown()
|
|
529
|
+
? 'Unknown'
|
|
530
|
+
: this.isDirectory()
|
|
531
|
+
? 'Directory'
|
|
532
|
+
: this.isFile()
|
|
533
|
+
? 'File'
|
|
534
|
+
: this.isSymbolicLink()
|
|
535
|
+
? 'SymbolicLink'
|
|
536
|
+
: this.isFIFO()
|
|
537
|
+
? 'FIFO'
|
|
538
|
+
: this.isCharacterDevice()
|
|
539
|
+
? 'CharacterDevice'
|
|
540
|
+
: this.isBlockDevice()
|
|
541
|
+
? 'BlockDevice'
|
|
542
|
+
: /* c8 ignore start */ this.isSocket()
|
|
543
|
+
? 'Socket'
|
|
544
|
+
: 'Unknown';
|
|
545
|
+
/* c8 ignore stop */
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Is the Path a regular file?
|
|
549
|
+
*/
|
|
550
|
+
isFile() {
|
|
551
|
+
return (this.#type & IFMT) === IFREG;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Is the Path a directory?
|
|
555
|
+
*/
|
|
556
|
+
isDirectory() {
|
|
557
|
+
return (this.#type & IFMT) === IFDIR;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Is the path a character device?
|
|
561
|
+
*/
|
|
562
|
+
isCharacterDevice() {
|
|
563
|
+
return (this.#type & IFMT) === IFCHR;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Is the path a block device?
|
|
567
|
+
*/
|
|
568
|
+
isBlockDevice() {
|
|
569
|
+
return (this.#type & IFMT) === IFBLK;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Is the path a FIFO pipe?
|
|
573
|
+
*/
|
|
574
|
+
isFIFO() {
|
|
575
|
+
return (this.#type & IFMT) === IFIFO;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Is the path a socket?
|
|
579
|
+
*/
|
|
580
|
+
isSocket() {
|
|
581
|
+
return (this.#type & IFMT) === IFSOCK;
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* Is the path a symbolic link?
|
|
585
|
+
*/
|
|
586
|
+
isSymbolicLink() {
|
|
587
|
+
return (this.#type & IFLNK) === IFLNK;
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* Return the entry if it has been subject of a successful lstat, or
|
|
591
|
+
* undefined otherwise.
|
|
592
|
+
*
|
|
593
|
+
* Does not read the filesystem, so an undefined result *could* simply
|
|
594
|
+
* mean that we haven't called lstat on it.
|
|
595
|
+
*/
|
|
596
|
+
lstatCached() {
|
|
597
|
+
return this.#type & LSTAT_CALLED ? this : undefined;
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Return the cached link target if the entry has been the subject of a
|
|
601
|
+
* successful readlink, or undefined otherwise.
|
|
602
|
+
*
|
|
603
|
+
* Does not read the filesystem, so an undefined result *could* just mean we
|
|
604
|
+
* don't have any cached data. Only use it if you are very sure that a
|
|
605
|
+
* readlink() has been called at some point.
|
|
606
|
+
*/
|
|
607
|
+
readlinkCached() {
|
|
608
|
+
return this.#linkTarget;
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* Returns the cached realpath target if the entry has been the subject
|
|
612
|
+
* of a successful realpath, or undefined otherwise.
|
|
613
|
+
*
|
|
614
|
+
* Does not read the filesystem, so an undefined result *could* just mean we
|
|
615
|
+
* don't have any cached data. Only use it if you are very sure that a
|
|
616
|
+
* realpath() has been called at some point.
|
|
617
|
+
*/
|
|
618
|
+
realpathCached() {
|
|
619
|
+
return this.#realpath;
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Returns the cached child Path entries array if the entry has been the
|
|
623
|
+
* subject of a successful readdir(), or [] otherwise.
|
|
624
|
+
*
|
|
625
|
+
* Does not read the filesystem, so an empty array *could* just mean we
|
|
626
|
+
* don't have any cached data. Only use it if you are very sure that a
|
|
627
|
+
* readdir() has been called recently enough to still be valid.
|
|
628
|
+
*/
|
|
629
|
+
readdirCached() {
|
|
630
|
+
const children = this.children();
|
|
631
|
+
return children.slice(0, children.provisional);
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Return true if it's worth trying to readlink. Ie, we don't (yet) have
|
|
635
|
+
* any indication that readlink will definitely fail.
|
|
636
|
+
*
|
|
637
|
+
* Returns false if the path is known to not be a symlink, if a previous
|
|
638
|
+
* readlink failed, or if the entry does not exist.
|
|
639
|
+
*/
|
|
640
|
+
canReadlink() {
|
|
641
|
+
if (this.#linkTarget)
|
|
642
|
+
return true;
|
|
643
|
+
if (!this.parent)
|
|
644
|
+
return false;
|
|
645
|
+
// cases where it cannot possibly succeed
|
|
646
|
+
const ifmt = this.#type & IFMT;
|
|
647
|
+
return !((ifmt !== UNKNOWN && ifmt !== IFLNK) ||
|
|
648
|
+
this.#type & ENOREADLINK ||
|
|
649
|
+
this.#type & ENOENT);
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Return true if readdir has previously been successfully called on this
|
|
653
|
+
* path, indicating that cachedReaddir() is likely valid.
|
|
654
|
+
*/
|
|
655
|
+
calledReaddir() {
|
|
656
|
+
return !!(this.#type & READDIR_CALLED);
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Returns true if the path is known to not exist. That is, a previous lstat
|
|
660
|
+
* or readdir failed to verify its existence when that would have been
|
|
661
|
+
* expected, or a parent entry was marked either enoent or enotdir.
|
|
662
|
+
*/
|
|
663
|
+
isENOENT() {
|
|
664
|
+
return !!(this.#type & ENOENT);
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* Return true if the path is a match for the given path name. This handles
|
|
668
|
+
* case sensitivity and unicode normalization.
|
|
669
|
+
*
|
|
670
|
+
* Note: even on case-sensitive systems, it is **not** safe to test the
|
|
671
|
+
* equality of the `.name` property to determine whether a given pathname
|
|
672
|
+
* matches, due to unicode normalization mismatches.
|
|
673
|
+
*
|
|
674
|
+
* Always use this method instead of testing the `path.name` property
|
|
675
|
+
* directly.
|
|
676
|
+
*/
|
|
677
|
+
isNamed(n) {
|
|
678
|
+
return !this.nocase
|
|
679
|
+
? this.#matchName === normalize(n)
|
|
680
|
+
: this.#matchName === normalizeNocase(n);
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* Return the Path object corresponding to the target of a symbolic link.
|
|
684
|
+
*
|
|
685
|
+
* If the Path is not a symbolic link, or if the readlink call fails for any
|
|
686
|
+
* reason, `undefined` is returned.
|
|
687
|
+
*
|
|
688
|
+
* Result is cached, and thus may be outdated if the filesystem is mutated.
|
|
689
|
+
*/
|
|
690
|
+
async readlink() {
|
|
691
|
+
const target = this.#linkTarget;
|
|
692
|
+
if (target) {
|
|
693
|
+
return target;
|
|
694
|
+
}
|
|
695
|
+
if (!this.canReadlink()) {
|
|
696
|
+
return undefined;
|
|
697
|
+
}
|
|
698
|
+
/* c8 ignore start */
|
|
699
|
+
// already covered by the canReadlink test, here for ts grumples
|
|
700
|
+
if (!this.parent) {
|
|
701
|
+
return undefined;
|
|
702
|
+
}
|
|
703
|
+
/* c8 ignore stop */
|
|
704
|
+
try {
|
|
705
|
+
const read = await this.#fs.promises.readlink(this.fullpath());
|
|
706
|
+
const linkTarget = (await this.parent.realpath())?.resolve(read);
|
|
707
|
+
if (linkTarget) {
|
|
708
|
+
return (this.#linkTarget = linkTarget);
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
catch (er) {
|
|
712
|
+
this.#readlinkFail(er.code);
|
|
713
|
+
return undefined;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Synchronous {@link PathBase.readlink}
|
|
718
|
+
*/
|
|
719
|
+
readlinkSync() {
|
|
720
|
+
const target = this.#linkTarget;
|
|
721
|
+
if (target) {
|
|
722
|
+
return target;
|
|
723
|
+
}
|
|
724
|
+
if (!this.canReadlink()) {
|
|
725
|
+
return undefined;
|
|
726
|
+
}
|
|
727
|
+
/* c8 ignore start */
|
|
728
|
+
// already covered by the canReadlink test, here for ts grumples
|
|
729
|
+
if (!this.parent) {
|
|
730
|
+
return undefined;
|
|
731
|
+
}
|
|
732
|
+
/* c8 ignore stop */
|
|
733
|
+
try {
|
|
734
|
+
const read = this.#fs.readlinkSync(this.fullpath());
|
|
735
|
+
const linkTarget = (this.parent.realpathSync())?.resolve(read);
|
|
736
|
+
if (linkTarget) {
|
|
737
|
+
return (this.#linkTarget = linkTarget);
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
catch (er) {
|
|
741
|
+
this.#readlinkFail(er.code);
|
|
742
|
+
return undefined;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
#readdirSuccess(children) {
|
|
746
|
+
// succeeded, mark readdir called bit
|
|
747
|
+
this.#type |= READDIR_CALLED;
|
|
748
|
+
// mark all remaining provisional children as ENOENT
|
|
749
|
+
for (let p = children.provisional; p < children.length; p++) {
|
|
750
|
+
const c = children[p];
|
|
751
|
+
if (c)
|
|
752
|
+
c.#markENOENT();
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
#markENOENT() {
|
|
756
|
+
// mark as UNKNOWN and ENOENT
|
|
757
|
+
if (this.#type & ENOENT)
|
|
758
|
+
return;
|
|
759
|
+
this.#type = (this.#type | ENOENT) & IFMT_UNKNOWN;
|
|
760
|
+
this.#markChildrenENOENT();
|
|
761
|
+
}
|
|
762
|
+
#markChildrenENOENT() {
|
|
763
|
+
// all children are provisional and do not exist
|
|
764
|
+
const children = this.children();
|
|
765
|
+
children.provisional = 0;
|
|
766
|
+
for (const p of children) {
|
|
767
|
+
p.#markENOENT();
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
#markENOREALPATH() {
|
|
771
|
+
this.#type |= ENOREALPATH;
|
|
772
|
+
this.#markENOTDIR();
|
|
773
|
+
}
|
|
774
|
+
// save the information when we know the entry is not a dir
|
|
775
|
+
#markENOTDIR() {
|
|
776
|
+
// entry is not a directory, so any children can't exist.
|
|
777
|
+
// this *should* be impossible, since any children created
|
|
778
|
+
// after it's been marked ENOTDIR should be marked ENOENT,
|
|
779
|
+
// so it won't even get to this point.
|
|
780
|
+
/* c8 ignore start */
|
|
781
|
+
if (this.#type & ENOTDIR)
|
|
782
|
+
return;
|
|
783
|
+
/* c8 ignore stop */
|
|
784
|
+
let t = this.#type;
|
|
785
|
+
// this could happen if we stat a dir, then delete it,
|
|
786
|
+
// then try to read it or one of its children.
|
|
787
|
+
if ((t & IFMT) === IFDIR)
|
|
788
|
+
t &= IFMT_UNKNOWN;
|
|
789
|
+
this.#type = t | ENOTDIR;
|
|
790
|
+
this.#markChildrenENOENT();
|
|
791
|
+
}
|
|
792
|
+
#readdirFail(code = '') {
|
|
793
|
+
// markENOTDIR and markENOENT also set provisional=0
|
|
794
|
+
if (code === 'ENOTDIR' || code === 'EPERM') {
|
|
795
|
+
this.#markENOTDIR();
|
|
796
|
+
}
|
|
797
|
+
else if (code === 'ENOENT') {
|
|
798
|
+
this.#markENOENT();
|
|
799
|
+
}
|
|
800
|
+
else {
|
|
801
|
+
this.children().provisional = 0;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
#lstatFail(code = '') {
|
|
805
|
+
// Windows just raises ENOENT in this case, disable for win CI
|
|
806
|
+
/* c8 ignore start */
|
|
807
|
+
if (code === 'ENOTDIR') {
|
|
808
|
+
// already know it has a parent by this point
|
|
809
|
+
const p = this.parent;
|
|
810
|
+
p.#markENOTDIR();
|
|
811
|
+
}
|
|
812
|
+
else if (code === 'ENOENT') {
|
|
813
|
+
/* c8 ignore stop */
|
|
814
|
+
this.#markENOENT();
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
#readlinkFail(code = '') {
|
|
818
|
+
let ter = this.#type;
|
|
819
|
+
ter |= ENOREADLINK;
|
|
820
|
+
if (code === 'ENOENT')
|
|
821
|
+
ter |= ENOENT;
|
|
822
|
+
// windows gets a weird error when you try to readlink a file
|
|
823
|
+
if (code === 'EINVAL' || code === 'UNKNOWN') {
|
|
824
|
+
// exists, but not a symlink, we don't know WHAT it is, so remove
|
|
825
|
+
// all IFMT bits.
|
|
826
|
+
ter &= IFMT_UNKNOWN;
|
|
827
|
+
}
|
|
828
|
+
this.#type = ter;
|
|
829
|
+
// windows just gets ENOENT in this case. We do cover the case,
|
|
830
|
+
// just disabled because it's impossible on Windows CI
|
|
831
|
+
/* c8 ignore start */
|
|
832
|
+
if (code === 'ENOTDIR' && this.parent) {
|
|
833
|
+
this.parent.#markENOTDIR();
|
|
834
|
+
}
|
|
835
|
+
/* c8 ignore stop */
|
|
836
|
+
}
|
|
837
|
+
#readdirAddChild(e, c) {
|
|
838
|
+
return (this.#readdirMaybePromoteChild(e, c) ||
|
|
839
|
+
this.#readdirAddNewChild(e, c));
|
|
840
|
+
}
|
|
841
|
+
#readdirAddNewChild(e, c) {
|
|
842
|
+
// alloc new entry at head, so it's never provisional
|
|
843
|
+
const type = entToType(e);
|
|
844
|
+
const child = this.newChild(e.name, type, { parent: this });
|
|
845
|
+
const ifmt = child.#type & IFMT;
|
|
846
|
+
if (ifmt !== IFDIR && ifmt !== IFLNK && ifmt !== UNKNOWN) {
|
|
847
|
+
child.#type |= ENOTDIR;
|
|
848
|
+
}
|
|
849
|
+
c.unshift(child);
|
|
850
|
+
c.provisional++;
|
|
851
|
+
return child;
|
|
852
|
+
}
|
|
853
|
+
#readdirMaybePromoteChild(e, c) {
|
|
854
|
+
for (let p = c.provisional; p < c.length; p++) {
|
|
855
|
+
const pchild = c[p];
|
|
856
|
+
const name = this.nocase
|
|
857
|
+
? normalizeNocase(e.name)
|
|
858
|
+
: normalize(e.name);
|
|
859
|
+
if (name !== pchild.#matchName) {
|
|
860
|
+
continue;
|
|
861
|
+
}
|
|
862
|
+
return this.#readdirPromoteChild(e, pchild, p, c);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
#readdirPromoteChild(e, p, index, c) {
|
|
866
|
+
const v = p.name;
|
|
867
|
+
// retain any other flags, but set ifmt from dirent
|
|
868
|
+
p.#type = (p.#type & IFMT_UNKNOWN) | entToType(e);
|
|
869
|
+
// case sensitivity fixing when we learn the true name.
|
|
870
|
+
if (v !== e.name)
|
|
871
|
+
p.name = e.name;
|
|
872
|
+
// just advance provisional index (potentially off the list),
|
|
873
|
+
// otherwise we have to splice/pop it out and re-insert at head
|
|
874
|
+
if (index !== c.provisional) {
|
|
875
|
+
if (index === c.length - 1)
|
|
876
|
+
c.pop();
|
|
877
|
+
else
|
|
878
|
+
c.splice(index, 1);
|
|
879
|
+
c.unshift(p);
|
|
880
|
+
}
|
|
881
|
+
c.provisional++;
|
|
882
|
+
return p;
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Call lstat() on this Path, and update all known information that can be
|
|
886
|
+
* determined.
|
|
887
|
+
*
|
|
888
|
+
* Note that unlike `fs.lstat()`, the returned value does not contain some
|
|
889
|
+
* information, such as `mode`, `dev`, `nlink`, and `ino`. If that
|
|
890
|
+
* information is required, you will need to call `fs.lstat` yourself.
|
|
891
|
+
*
|
|
892
|
+
* If the Path refers to a nonexistent file, or if the lstat call fails for
|
|
893
|
+
* any reason, `undefined` is returned. Otherwise the updated Path object is
|
|
894
|
+
* returned.
|
|
895
|
+
*
|
|
896
|
+
* Results are cached, and thus may be out of date if the filesystem is
|
|
897
|
+
* mutated.
|
|
898
|
+
*/
|
|
899
|
+
async lstat() {
|
|
900
|
+
if ((this.#type & ENOENT) === 0) {
|
|
901
|
+
try {
|
|
902
|
+
this.#applyStat(await this.#fs.promises.lstat(this.fullpath()));
|
|
903
|
+
return this;
|
|
904
|
+
}
|
|
905
|
+
catch (er) {
|
|
906
|
+
this.#lstatFail(er.code);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* synchronous {@link PathBase.lstat}
|
|
912
|
+
*/
|
|
913
|
+
lstatSync() {
|
|
914
|
+
if ((this.#type & ENOENT) === 0) {
|
|
915
|
+
try {
|
|
916
|
+
this.#applyStat(this.#fs.lstatSync(this.fullpath()));
|
|
917
|
+
return this;
|
|
918
|
+
}
|
|
919
|
+
catch (er) {
|
|
920
|
+
this.#lstatFail(er.code);
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
#applyStat(st) {
|
|
925
|
+
const { atime, atimeMs, birthtime, birthtimeMs, blksize, blocks, ctime, ctimeMs, dev, gid, ino, mode, mtime, mtimeMs, nlink, rdev, size, uid, } = st;
|
|
926
|
+
this.#atime = atime;
|
|
927
|
+
this.#atimeMs = atimeMs;
|
|
928
|
+
this.#birthtime = birthtime;
|
|
929
|
+
this.#birthtimeMs = birthtimeMs;
|
|
930
|
+
this.#blksize = blksize;
|
|
931
|
+
this.#blocks = blocks;
|
|
932
|
+
this.#ctime = ctime;
|
|
933
|
+
this.#ctimeMs = ctimeMs;
|
|
934
|
+
this.#dev = dev;
|
|
935
|
+
this.#gid = gid;
|
|
936
|
+
this.#ino = ino;
|
|
937
|
+
this.#mode = mode;
|
|
938
|
+
this.#mtime = mtime;
|
|
939
|
+
this.#mtimeMs = mtimeMs;
|
|
940
|
+
this.#nlink = nlink;
|
|
941
|
+
this.#rdev = rdev;
|
|
942
|
+
this.#size = size;
|
|
943
|
+
this.#uid = uid;
|
|
944
|
+
const ifmt = entToType(st);
|
|
945
|
+
// retain any other flags, but set the ifmt
|
|
946
|
+
this.#type = (this.#type & IFMT_UNKNOWN) | ifmt | LSTAT_CALLED;
|
|
947
|
+
if (ifmt !== UNKNOWN && ifmt !== IFDIR && ifmt !== IFLNK) {
|
|
948
|
+
this.#type |= ENOTDIR;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
#onReaddirCB = [];
|
|
952
|
+
#readdirCBInFlight = false;
|
|
953
|
+
#callOnReaddirCB(children) {
|
|
954
|
+
this.#readdirCBInFlight = false;
|
|
955
|
+
const cbs = this.#onReaddirCB.slice();
|
|
956
|
+
this.#onReaddirCB.length = 0;
|
|
957
|
+
cbs.forEach(cb => cb(null, children));
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Standard node-style callback interface to get list of directory entries.
|
|
961
|
+
*
|
|
962
|
+
* If the Path cannot or does not contain any children, then an empty array
|
|
963
|
+
* is returned.
|
|
964
|
+
*
|
|
965
|
+
* Results are cached, and thus may be out of date if the filesystem is
|
|
966
|
+
* mutated.
|
|
967
|
+
*
|
|
968
|
+
* @param cb The callback called with (er, entries). Note that the `er`
|
|
969
|
+
* param is somewhat extraneous, as all readdir() errors are handled and
|
|
970
|
+
* simply result in an empty set of entries being returned.
|
|
971
|
+
* @param allowZalgo Boolean indicating that immediately known results should
|
|
972
|
+
* *not* be deferred with `queueMicrotask`. Defaults to `false`. Release
|
|
973
|
+
* zalgo at your peril, the dark pony lord is devious and unforgiving.
|
|
974
|
+
*/
|
|
975
|
+
readdirCB(cb, allowZalgo = false) {
|
|
976
|
+
if (!this.canReaddir()) {
|
|
977
|
+
if (allowZalgo)
|
|
978
|
+
cb(null, []);
|
|
979
|
+
else
|
|
980
|
+
queueMicrotask(() => cb(null, []));
|
|
981
|
+
return;
|
|
982
|
+
}
|
|
983
|
+
const children = this.children();
|
|
984
|
+
if (this.calledReaddir()) {
|
|
985
|
+
const c = children.slice(0, children.provisional);
|
|
986
|
+
if (allowZalgo)
|
|
987
|
+
cb(null, c);
|
|
988
|
+
else
|
|
989
|
+
queueMicrotask(() => cb(null, c));
|
|
990
|
+
return;
|
|
991
|
+
}
|
|
992
|
+
// don't have to worry about zalgo at this point.
|
|
993
|
+
this.#onReaddirCB.push(cb);
|
|
994
|
+
if (this.#readdirCBInFlight) {
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
this.#readdirCBInFlight = true;
|
|
998
|
+
// else read the directory, fill up children
|
|
999
|
+
// de-provisionalize any provisional children.
|
|
1000
|
+
const fullpath = this.fullpath();
|
|
1001
|
+
this.#fs.readdir(fullpath, { withFileTypes: true }, (er, entries) => {
|
|
1002
|
+
if (er) {
|
|
1003
|
+
this.#readdirFail(er.code);
|
|
1004
|
+
children.provisional = 0;
|
|
1005
|
+
}
|
|
1006
|
+
else {
|
|
1007
|
+
// if we didn't get an error, we always get entries.
|
|
1008
|
+
//@ts-ignore
|
|
1009
|
+
for (const e of entries) {
|
|
1010
|
+
this.#readdirAddChild(e, children);
|
|
1011
|
+
}
|
|
1012
|
+
this.#readdirSuccess(children);
|
|
1013
|
+
}
|
|
1014
|
+
this.#callOnReaddirCB(children.slice(0, children.provisional));
|
|
1015
|
+
return;
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
#asyncReaddirInFlight;
|
|
1019
|
+
/**
|
|
1020
|
+
* Return an array of known child entries.
|
|
1021
|
+
*
|
|
1022
|
+
* If the Path cannot or does not contain any children, then an empty array
|
|
1023
|
+
* is returned.
|
|
1024
|
+
*
|
|
1025
|
+
* Results are cached, and thus may be out of date if the filesystem is
|
|
1026
|
+
* mutated.
|
|
1027
|
+
*/
|
|
1028
|
+
async readdir() {
|
|
1029
|
+
if (!this.canReaddir()) {
|
|
1030
|
+
return [];
|
|
1031
|
+
}
|
|
1032
|
+
const children = this.children();
|
|
1033
|
+
if (this.calledReaddir()) {
|
|
1034
|
+
return children.slice(0, children.provisional);
|
|
1035
|
+
}
|
|
1036
|
+
// else read the directory, fill up children
|
|
1037
|
+
// de-provisionalize any provisional children.
|
|
1038
|
+
const fullpath = this.fullpath();
|
|
1039
|
+
if (this.#asyncReaddirInFlight) {
|
|
1040
|
+
await this.#asyncReaddirInFlight;
|
|
1041
|
+
}
|
|
1042
|
+
else {
|
|
1043
|
+
/* c8 ignore start */
|
|
1044
|
+
let resolve = () => { };
|
|
1045
|
+
/* c8 ignore stop */
|
|
1046
|
+
this.#asyncReaddirInFlight = new Promise(res => (resolve = res));
|
|
1047
|
+
try {
|
|
1048
|
+
for (const e of await this.#fs.promises.readdir(fullpath, {
|
|
1049
|
+
withFileTypes: true,
|
|
1050
|
+
})) {
|
|
1051
|
+
this.#readdirAddChild(e, children);
|
|
1052
|
+
}
|
|
1053
|
+
this.#readdirSuccess(children);
|
|
1054
|
+
}
|
|
1055
|
+
catch (er) {
|
|
1056
|
+
this.#readdirFail(er.code);
|
|
1057
|
+
children.provisional = 0;
|
|
1058
|
+
}
|
|
1059
|
+
this.#asyncReaddirInFlight = undefined;
|
|
1060
|
+
resolve();
|
|
1061
|
+
}
|
|
1062
|
+
return children.slice(0, children.provisional);
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* synchronous {@link PathBase.readdir}
|
|
1066
|
+
*/
|
|
1067
|
+
readdirSync() {
|
|
1068
|
+
if (!this.canReaddir()) {
|
|
1069
|
+
return [];
|
|
1070
|
+
}
|
|
1071
|
+
const children = this.children();
|
|
1072
|
+
if (this.calledReaddir()) {
|
|
1073
|
+
return children.slice(0, children.provisional);
|
|
1074
|
+
}
|
|
1075
|
+
// else read the directory, fill up children
|
|
1076
|
+
// de-provisionalize any provisional children.
|
|
1077
|
+
const fullpath = this.fullpath();
|
|
1078
|
+
try {
|
|
1079
|
+
for (const e of this.#fs.readdirSync(fullpath, {
|
|
1080
|
+
withFileTypes: true,
|
|
1081
|
+
})) {
|
|
1082
|
+
this.#readdirAddChild(e, children);
|
|
1083
|
+
}
|
|
1084
|
+
this.#readdirSuccess(children);
|
|
1085
|
+
}
|
|
1086
|
+
catch (er) {
|
|
1087
|
+
this.#readdirFail(er.code);
|
|
1088
|
+
children.provisional = 0;
|
|
1089
|
+
}
|
|
1090
|
+
return children.slice(0, children.provisional);
|
|
1091
|
+
}
|
|
1092
|
+
canReaddir() {
|
|
1093
|
+
if (this.#type & ENOCHILD)
|
|
1094
|
+
return false;
|
|
1095
|
+
const ifmt = IFMT & this.#type;
|
|
1096
|
+
// we always set ENOTDIR when setting IFMT, so should be impossible
|
|
1097
|
+
/* c8 ignore start */
|
|
1098
|
+
if (!(ifmt === UNKNOWN || ifmt === IFDIR || ifmt === IFLNK)) {
|
|
1099
|
+
return false;
|
|
1100
|
+
}
|
|
1101
|
+
/* c8 ignore stop */
|
|
1102
|
+
return true;
|
|
1103
|
+
}
|
|
1104
|
+
shouldWalk(dirs, walkFilter) {
|
|
1105
|
+
return ((this.#type & IFDIR) === IFDIR &&
|
|
1106
|
+
!(this.#type & ENOCHILD) &&
|
|
1107
|
+
!dirs.has(this) &&
|
|
1108
|
+
(!walkFilter || walkFilter(this)));
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Return the Path object corresponding to path as resolved
|
|
1112
|
+
* by realpath(3).
|
|
1113
|
+
*
|
|
1114
|
+
* If the realpath call fails for any reason, `undefined` is returned.
|
|
1115
|
+
*
|
|
1116
|
+
* Result is cached, and thus may be outdated if the filesystem is mutated.
|
|
1117
|
+
* On success, returns a Path object.
|
|
1118
|
+
*/
|
|
1119
|
+
async realpath() {
|
|
1120
|
+
if (this.#realpath)
|
|
1121
|
+
return this.#realpath;
|
|
1122
|
+
if ((ENOREALPATH | ENOREADLINK | ENOENT) & this.#type)
|
|
1123
|
+
return undefined;
|
|
1124
|
+
try {
|
|
1125
|
+
const rp = await this.#fs.promises.realpath(this.fullpath());
|
|
1126
|
+
return (this.#realpath = this.resolve(rp));
|
|
1127
|
+
}
|
|
1128
|
+
catch (_) {
|
|
1129
|
+
this.#markENOREALPATH();
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* Synchronous {@link realpath}
|
|
1134
|
+
*/
|
|
1135
|
+
realpathSync() {
|
|
1136
|
+
if (this.#realpath)
|
|
1137
|
+
return this.#realpath;
|
|
1138
|
+
if ((ENOREALPATH | ENOREADLINK | ENOENT) & this.#type)
|
|
1139
|
+
return undefined;
|
|
1140
|
+
try {
|
|
1141
|
+
const rp = this.#fs.realpathSync(this.fullpath());
|
|
1142
|
+
return (this.#realpath = this.resolve(rp));
|
|
1143
|
+
}
|
|
1144
|
+
catch (_) {
|
|
1145
|
+
this.#markENOREALPATH();
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* Internal method to mark this Path object as the scurry cwd,
|
|
1150
|
+
* called by {@link PathScurry#chdir}
|
|
1151
|
+
*
|
|
1152
|
+
* @internal
|
|
1153
|
+
*/
|
|
1154
|
+
[setAsCwd](oldCwd) {
|
|
1155
|
+
if (oldCwd === this)
|
|
1156
|
+
return;
|
|
1157
|
+
const changed = new Set([]);
|
|
1158
|
+
let rp = [];
|
|
1159
|
+
let p = this;
|
|
1160
|
+
while (p && p.parent) {
|
|
1161
|
+
changed.add(p);
|
|
1162
|
+
p.#relative = rp.join(this.sep);
|
|
1163
|
+
p.#relativePosix = rp.join('/');
|
|
1164
|
+
p = p.parent;
|
|
1165
|
+
rp.push('..');
|
|
1166
|
+
}
|
|
1167
|
+
// now un-memoize parents of old cwd
|
|
1168
|
+
p = oldCwd;
|
|
1169
|
+
while (p && p.parent && !changed.has(p)) {
|
|
1170
|
+
p.#relative = undefined;
|
|
1171
|
+
p.#relativePosix = undefined;
|
|
1172
|
+
p = p.parent;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
exports.PathBase = PathBase;
|
|
1177
|
+
/**
|
|
1178
|
+
* Path class used on win32 systems
|
|
1179
|
+
*
|
|
1180
|
+
* Uses `'\\'` as the path separator for returned paths, either `'\\'` or `'/'`
|
|
1181
|
+
* as the path separator for parsing paths.
|
|
1182
|
+
*/
|
|
1183
|
+
class PathWin32 extends PathBase {
|
|
1184
|
+
/**
|
|
1185
|
+
* Separator for generating path strings.
|
|
1186
|
+
*/
|
|
1187
|
+
sep = '\\';
|
|
1188
|
+
/**
|
|
1189
|
+
* Separator for parsing path strings.
|
|
1190
|
+
*/
|
|
1191
|
+
splitSep = eitherSep;
|
|
1192
|
+
/**
|
|
1193
|
+
* Do not create new Path objects directly. They should always be accessed
|
|
1194
|
+
* via the PathScurry class or other methods on the Path class.
|
|
1195
|
+
*
|
|
1196
|
+
* @internal
|
|
1197
|
+
*/
|
|
1198
|
+
constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
|
|
1199
|
+
super(name, type, root, roots, nocase, children, opts);
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
* @internal
|
|
1203
|
+
*/
|
|
1204
|
+
newChild(name, type = UNKNOWN, opts = {}) {
|
|
1205
|
+
return new PathWin32(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* @internal
|
|
1209
|
+
*/
|
|
1210
|
+
getRootString(path) {
|
|
1211
|
+
return path_1.win32.parse(path).root;
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* @internal
|
|
1215
|
+
*/
|
|
1216
|
+
getRoot(rootPath) {
|
|
1217
|
+
rootPath = uncToDrive(rootPath.toUpperCase());
|
|
1218
|
+
if (rootPath === this.root.name) {
|
|
1219
|
+
return this.root;
|
|
1220
|
+
}
|
|
1221
|
+
// ok, not that one, check if it matches another we know about
|
|
1222
|
+
for (const [compare, root] of Object.entries(this.roots)) {
|
|
1223
|
+
if (this.sameRoot(rootPath, compare)) {
|
|
1224
|
+
return (this.roots[rootPath] = root);
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
// otherwise, have to create a new one.
|
|
1228
|
+
return (this.roots[rootPath] = new PathScurryWin32(rootPath, this).root);
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* @internal
|
|
1232
|
+
*/
|
|
1233
|
+
sameRoot(rootPath, compare = this.root.name) {
|
|
1234
|
+
// windows can (rarely) have case-sensitive filesystem, but
|
|
1235
|
+
// UNC and drive letters are always case-insensitive, and canonically
|
|
1236
|
+
// represented uppercase.
|
|
1237
|
+
rootPath = rootPath
|
|
1238
|
+
.toUpperCase()
|
|
1239
|
+
.replace(/\//g, '\\')
|
|
1240
|
+
.replace(uncDriveRegexp, '$1\\');
|
|
1241
|
+
return rootPath === compare;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
exports.PathWin32 = PathWin32;
|
|
1245
|
+
/**
|
|
1246
|
+
* Path class used on all posix systems.
|
|
1247
|
+
*
|
|
1248
|
+
* Uses `'/'` as the path separator.
|
|
1249
|
+
*/
|
|
1250
|
+
class PathPosix extends PathBase {
|
|
1251
|
+
/**
|
|
1252
|
+
* separator for parsing path strings
|
|
1253
|
+
*/
|
|
1254
|
+
splitSep = '/';
|
|
1255
|
+
/**
|
|
1256
|
+
* separator for generating path strings
|
|
1257
|
+
*/
|
|
1258
|
+
sep = '/';
|
|
1259
|
+
/**
|
|
1260
|
+
* Do not create new Path objects directly. They should always be accessed
|
|
1261
|
+
* via the PathScurry class or other methods on the Path class.
|
|
1262
|
+
*
|
|
1263
|
+
* @internal
|
|
1264
|
+
*/
|
|
1265
|
+
constructor(name, type = UNKNOWN, root, roots, nocase, children, opts) {
|
|
1266
|
+
super(name, type, root, roots, nocase, children, opts);
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* @internal
|
|
1270
|
+
*/
|
|
1271
|
+
getRootString(path) {
|
|
1272
|
+
return path.startsWith('/') ? '/' : '';
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* @internal
|
|
1276
|
+
*/
|
|
1277
|
+
getRoot(_rootPath) {
|
|
1278
|
+
return this.root;
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
* @internal
|
|
1282
|
+
*/
|
|
1283
|
+
newChild(name, type = UNKNOWN, opts = {}) {
|
|
1284
|
+
return new PathPosix(name, type, this.root, this.roots, this.nocase, this.childrenCache(), opts);
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
exports.PathPosix = PathPosix;
|
|
1288
|
+
/**
|
|
1289
|
+
* The base class for all PathScurry classes, providing the interface for path
|
|
1290
|
+
* resolution and filesystem operations.
|
|
1291
|
+
*
|
|
1292
|
+
* Typically, you should *not* instantiate this class directly, but rather one
|
|
1293
|
+
* of the platform-specific classes, or the exported {@link PathScurry} which
|
|
1294
|
+
* defaults to the current platform.
|
|
1295
|
+
*/
|
|
1296
|
+
class PathScurryBase {
|
|
1297
|
+
/**
|
|
1298
|
+
* The root Path entry for the current working directory of this Scurry
|
|
1299
|
+
*/
|
|
1300
|
+
root;
|
|
1301
|
+
/**
|
|
1302
|
+
* The string path for the root of this Scurry's current working directory
|
|
1303
|
+
*/
|
|
1304
|
+
rootPath;
|
|
1305
|
+
/**
|
|
1306
|
+
* A collection of all roots encountered, referenced by rootPath
|
|
1307
|
+
*/
|
|
1308
|
+
roots;
|
|
1309
|
+
/**
|
|
1310
|
+
* The Path entry corresponding to this PathScurry's current working directory.
|
|
1311
|
+
*/
|
|
1312
|
+
cwd;
|
|
1313
|
+
#resolveCache;
|
|
1314
|
+
#resolvePosixCache;
|
|
1315
|
+
#children;
|
|
1316
|
+
/**
|
|
1317
|
+
* Perform path comparisons case-insensitively.
|
|
1318
|
+
*
|
|
1319
|
+
* Defaults true on Darwin and Windows systems, false elsewhere.
|
|
1320
|
+
*/
|
|
1321
|
+
nocase;
|
|
1322
|
+
#fs;
|
|
1323
|
+
/**
|
|
1324
|
+
* This class should not be instantiated directly.
|
|
1325
|
+
*
|
|
1326
|
+
* Use PathScurryWin32, PathScurryDarwin, PathScurryPosix, or PathScurry
|
|
1327
|
+
*
|
|
1328
|
+
* @internal
|
|
1329
|
+
*/
|
|
1330
|
+
constructor(cwd = process.cwd(), pathImpl, sep, { nocase, childrenCacheSize = 16 * 1024, fs = defaultFS, } = {}) {
|
|
1331
|
+
this.#fs = fsFromOption(fs);
|
|
1332
|
+
if (cwd instanceof URL || cwd.startsWith('file://')) {
|
|
1333
|
+
cwd = (0, url_1.fileURLToPath)(cwd);
|
|
1334
|
+
}
|
|
1335
|
+
// resolve and split root, and then add to the store.
|
|
1336
|
+
// this is the only time we call path.resolve()
|
|
1337
|
+
const cwdPath = pathImpl.resolve(cwd);
|
|
1338
|
+
this.roots = Object.create(null);
|
|
1339
|
+
this.rootPath = this.parseRootPath(cwdPath);
|
|
1340
|
+
this.#resolveCache = new ResolveCache();
|
|
1341
|
+
this.#resolvePosixCache = new ResolveCache();
|
|
1342
|
+
this.#children = new ChildrenCache(childrenCacheSize);
|
|
1343
|
+
const split = cwdPath.substring(this.rootPath.length).split(sep);
|
|
1344
|
+
// resolve('/') leaves '', splits to [''], we don't want that.
|
|
1345
|
+
if (split.length === 1 && !split[0]) {
|
|
1346
|
+
split.pop();
|
|
1347
|
+
}
|
|
1348
|
+
/* c8 ignore start */
|
|
1349
|
+
if (nocase === undefined) {
|
|
1350
|
+
throw new TypeError('must provide nocase setting to PathScurryBase ctor');
|
|
1351
|
+
}
|
|
1352
|
+
/* c8 ignore stop */
|
|
1353
|
+
this.nocase = nocase;
|
|
1354
|
+
this.root = this.newRoot(this.#fs);
|
|
1355
|
+
this.roots[this.rootPath] = this.root;
|
|
1356
|
+
let prev = this.root;
|
|
1357
|
+
let len = split.length - 1;
|
|
1358
|
+
const joinSep = pathImpl.sep;
|
|
1359
|
+
let abs = this.rootPath;
|
|
1360
|
+
let sawFirst = false;
|
|
1361
|
+
for (const part of split) {
|
|
1362
|
+
const l = len--;
|
|
1363
|
+
prev = prev.child(part, {
|
|
1364
|
+
relative: new Array(l).fill('..').join(joinSep),
|
|
1365
|
+
relativePosix: new Array(l).fill('..').join('/'),
|
|
1366
|
+
fullpath: (abs += (sawFirst ? '' : joinSep) + part),
|
|
1367
|
+
});
|
|
1368
|
+
sawFirst = true;
|
|
1369
|
+
}
|
|
1370
|
+
this.cwd = prev;
|
|
1371
|
+
}
|
|
1372
|
+
/**
|
|
1373
|
+
* Get the depth of a provided path, string, or the cwd
|
|
1374
|
+
*/
|
|
1375
|
+
depth(path = this.cwd) {
|
|
1376
|
+
if (typeof path === 'string') {
|
|
1377
|
+
path = this.cwd.resolve(path);
|
|
1378
|
+
}
|
|
1379
|
+
return path.depth();
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
* Return the cache of child entries. Exposed so subclasses can create
|
|
1383
|
+
* child Path objects in a platform-specific way.
|
|
1384
|
+
*
|
|
1385
|
+
* @internal
|
|
1386
|
+
*/
|
|
1387
|
+
childrenCache() {
|
|
1388
|
+
return this.#children;
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* Resolve one or more path strings to a resolved string
|
|
1392
|
+
*
|
|
1393
|
+
* Same interface as require('path').resolve.
|
|
1394
|
+
*
|
|
1395
|
+
* Much faster than path.resolve() when called multiple times for the same
|
|
1396
|
+
* path, because the resolved Path objects are cached. Much slower
|
|
1397
|
+
* otherwise.
|
|
1398
|
+
*/
|
|
1399
|
+
resolve(...paths) {
|
|
1400
|
+
// first figure out the minimum number of paths we have to test
|
|
1401
|
+
// we always start at cwd, but any absolutes will bump the start
|
|
1402
|
+
let r = '';
|
|
1403
|
+
for (let i = paths.length - 1; i >= 0; i--) {
|
|
1404
|
+
const p = paths[i];
|
|
1405
|
+
if (!p || p === '.')
|
|
1406
|
+
continue;
|
|
1407
|
+
r = r ? `${p}/${r}` : p;
|
|
1408
|
+
if (this.isAbsolute(p)) {
|
|
1409
|
+
break;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
const cached = this.#resolveCache.get(r);
|
|
1413
|
+
if (cached !== undefined) {
|
|
1414
|
+
return cached;
|
|
1415
|
+
}
|
|
1416
|
+
const result = this.cwd.resolve(r).fullpath();
|
|
1417
|
+
this.#resolveCache.set(r, result);
|
|
1418
|
+
return result;
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Resolve one or more path strings to a resolved string, returning
|
|
1422
|
+
* the posix path. Identical to .resolve() on posix systems, but on
|
|
1423
|
+
* windows will return a forward-slash separated UNC path.
|
|
1424
|
+
*
|
|
1425
|
+
* Same interface as require('path').resolve.
|
|
1426
|
+
*
|
|
1427
|
+
* Much faster than path.resolve() when called multiple times for the same
|
|
1428
|
+
* path, because the resolved Path objects are cached. Much slower
|
|
1429
|
+
* otherwise.
|
|
1430
|
+
*/
|
|
1431
|
+
resolvePosix(...paths) {
|
|
1432
|
+
// first figure out the minimum number of paths we have to test
|
|
1433
|
+
// we always start at cwd, but any absolutes will bump the start
|
|
1434
|
+
let r = '';
|
|
1435
|
+
for (let i = paths.length - 1; i >= 0; i--) {
|
|
1436
|
+
const p = paths[i];
|
|
1437
|
+
if (!p || p === '.')
|
|
1438
|
+
continue;
|
|
1439
|
+
r = r ? `${p}/${r}` : p;
|
|
1440
|
+
if (this.isAbsolute(p)) {
|
|
1441
|
+
break;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
const cached = this.#resolvePosixCache.get(r);
|
|
1445
|
+
if (cached !== undefined) {
|
|
1446
|
+
return cached;
|
|
1447
|
+
}
|
|
1448
|
+
const result = this.cwd.resolve(r).fullpathPosix();
|
|
1449
|
+
this.#resolvePosixCache.set(r, result);
|
|
1450
|
+
return result;
|
|
1451
|
+
}
|
|
1452
|
+
/**
|
|
1453
|
+
* find the relative path from the cwd to the supplied path string or entry
|
|
1454
|
+
*/
|
|
1455
|
+
relative(entry = this.cwd) {
|
|
1456
|
+
if (typeof entry === 'string') {
|
|
1457
|
+
entry = this.cwd.resolve(entry);
|
|
1458
|
+
}
|
|
1459
|
+
return entry.relative();
|
|
1460
|
+
}
|
|
1461
|
+
/**
|
|
1462
|
+
* find the relative path from the cwd to the supplied path string or
|
|
1463
|
+
* entry, using / as the path delimiter, even on Windows.
|
|
1464
|
+
*/
|
|
1465
|
+
relativePosix(entry = this.cwd) {
|
|
1466
|
+
if (typeof entry === 'string') {
|
|
1467
|
+
entry = this.cwd.resolve(entry);
|
|
1468
|
+
}
|
|
1469
|
+
return entry.relativePosix();
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* Return the basename for the provided string or Path object
|
|
1473
|
+
*/
|
|
1474
|
+
basename(entry = this.cwd) {
|
|
1475
|
+
if (typeof entry === 'string') {
|
|
1476
|
+
entry = this.cwd.resolve(entry);
|
|
1477
|
+
}
|
|
1478
|
+
return entry.name;
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* Return the dirname for the provided string or Path object
|
|
1482
|
+
*/
|
|
1483
|
+
dirname(entry = this.cwd) {
|
|
1484
|
+
if (typeof entry === 'string') {
|
|
1485
|
+
entry = this.cwd.resolve(entry);
|
|
1486
|
+
}
|
|
1487
|
+
return (entry.parent || entry).fullpath();
|
|
1488
|
+
}
|
|
1489
|
+
async readdir(entry = this.cwd, opts = {
|
|
1490
|
+
withFileTypes: true,
|
|
1491
|
+
}) {
|
|
1492
|
+
if (typeof entry === 'string') {
|
|
1493
|
+
entry = this.cwd.resolve(entry);
|
|
1494
|
+
}
|
|
1495
|
+
else if (!(entry instanceof PathBase)) {
|
|
1496
|
+
opts = entry;
|
|
1497
|
+
entry = this.cwd;
|
|
1498
|
+
}
|
|
1499
|
+
const { withFileTypes } = opts;
|
|
1500
|
+
if (!entry.canReaddir()) {
|
|
1501
|
+
return [];
|
|
1502
|
+
}
|
|
1503
|
+
else {
|
|
1504
|
+
const p = await entry.readdir();
|
|
1505
|
+
return withFileTypes ? p : p.map(e => e.name);
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
readdirSync(entry = this.cwd, opts = {
|
|
1509
|
+
withFileTypes: true,
|
|
1510
|
+
}) {
|
|
1511
|
+
if (typeof entry === 'string') {
|
|
1512
|
+
entry = this.cwd.resolve(entry);
|
|
1513
|
+
}
|
|
1514
|
+
else if (!(entry instanceof PathBase)) {
|
|
1515
|
+
opts = entry;
|
|
1516
|
+
entry = this.cwd;
|
|
1517
|
+
}
|
|
1518
|
+
const { withFileTypes = true } = opts;
|
|
1519
|
+
if (!entry.canReaddir()) {
|
|
1520
|
+
return [];
|
|
1521
|
+
}
|
|
1522
|
+
else if (withFileTypes) {
|
|
1523
|
+
return entry.readdirSync();
|
|
1524
|
+
}
|
|
1525
|
+
else {
|
|
1526
|
+
return entry.readdirSync().map(e => e.name);
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* Call lstat() on the string or Path object, and update all known
|
|
1531
|
+
* information that can be determined.
|
|
1532
|
+
*
|
|
1533
|
+
* Note that unlike `fs.lstat()`, the returned value does not contain some
|
|
1534
|
+
* information, such as `mode`, `dev`, `nlink`, and `ino`. If that
|
|
1535
|
+
* information is required, you will need to call `fs.lstat` yourself.
|
|
1536
|
+
*
|
|
1537
|
+
* If the Path refers to a nonexistent file, or if the lstat call fails for
|
|
1538
|
+
* any reason, `undefined` is returned. Otherwise the updated Path object is
|
|
1539
|
+
* returned.
|
|
1540
|
+
*
|
|
1541
|
+
* Results are cached, and thus may be out of date if the filesystem is
|
|
1542
|
+
* mutated.
|
|
1543
|
+
*/
|
|
1544
|
+
async lstat(entry = this.cwd) {
|
|
1545
|
+
if (typeof entry === 'string') {
|
|
1546
|
+
entry = this.cwd.resolve(entry);
|
|
1547
|
+
}
|
|
1548
|
+
return entry.lstat();
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* synchronous {@link PathScurryBase.lstat}
|
|
1552
|
+
*/
|
|
1553
|
+
lstatSync(entry = this.cwd) {
|
|
1554
|
+
if (typeof entry === 'string') {
|
|
1555
|
+
entry = this.cwd.resolve(entry);
|
|
1556
|
+
}
|
|
1557
|
+
return entry.lstatSync();
|
|
1558
|
+
}
|
|
1559
|
+
async readlink(entry = this.cwd, { withFileTypes } = {
|
|
1560
|
+
withFileTypes: false,
|
|
1561
|
+
}) {
|
|
1562
|
+
if (typeof entry === 'string') {
|
|
1563
|
+
entry = this.cwd.resolve(entry);
|
|
1564
|
+
}
|
|
1565
|
+
else if (!(entry instanceof PathBase)) {
|
|
1566
|
+
withFileTypes = entry.withFileTypes;
|
|
1567
|
+
entry = this.cwd;
|
|
1568
|
+
}
|
|
1569
|
+
const e = await entry.readlink();
|
|
1570
|
+
return withFileTypes ? e : e?.fullpath();
|
|
1571
|
+
}
|
|
1572
|
+
readlinkSync(entry = this.cwd, { withFileTypes } = {
|
|
1573
|
+
withFileTypes: false,
|
|
1574
|
+
}) {
|
|
1575
|
+
if (typeof entry === 'string') {
|
|
1576
|
+
entry = this.cwd.resolve(entry);
|
|
1577
|
+
}
|
|
1578
|
+
else if (!(entry instanceof PathBase)) {
|
|
1579
|
+
withFileTypes = entry.withFileTypes;
|
|
1580
|
+
entry = this.cwd;
|
|
1581
|
+
}
|
|
1582
|
+
const e = entry.readlinkSync();
|
|
1583
|
+
return withFileTypes ? e : e?.fullpath();
|
|
1584
|
+
}
|
|
1585
|
+
async realpath(entry = this.cwd, { withFileTypes } = {
|
|
1586
|
+
withFileTypes: false,
|
|
1587
|
+
}) {
|
|
1588
|
+
if (typeof entry === 'string') {
|
|
1589
|
+
entry = this.cwd.resolve(entry);
|
|
1590
|
+
}
|
|
1591
|
+
else if (!(entry instanceof PathBase)) {
|
|
1592
|
+
withFileTypes = entry.withFileTypes;
|
|
1593
|
+
entry = this.cwd;
|
|
1594
|
+
}
|
|
1595
|
+
const e = await entry.realpath();
|
|
1596
|
+
return withFileTypes ? e : e?.fullpath();
|
|
1597
|
+
}
|
|
1598
|
+
realpathSync(entry = this.cwd, { withFileTypes } = {
|
|
1599
|
+
withFileTypes: false,
|
|
1600
|
+
}) {
|
|
1601
|
+
if (typeof entry === 'string') {
|
|
1602
|
+
entry = this.cwd.resolve(entry);
|
|
1603
|
+
}
|
|
1604
|
+
else if (!(entry instanceof PathBase)) {
|
|
1605
|
+
withFileTypes = entry.withFileTypes;
|
|
1606
|
+
entry = this.cwd;
|
|
1607
|
+
}
|
|
1608
|
+
const e = entry.realpathSync();
|
|
1609
|
+
return withFileTypes ? e : e?.fullpath();
|
|
1610
|
+
}
|
|
1611
|
+
async walk(entry = this.cwd, opts = {}) {
|
|
1612
|
+
if (typeof entry === 'string') {
|
|
1613
|
+
entry = this.cwd.resolve(entry);
|
|
1614
|
+
}
|
|
1615
|
+
else if (!(entry instanceof PathBase)) {
|
|
1616
|
+
opts = entry;
|
|
1617
|
+
entry = this.cwd;
|
|
1618
|
+
}
|
|
1619
|
+
const { withFileTypes = true, follow = false, filter, walkFilter, } = opts;
|
|
1620
|
+
const results = [];
|
|
1621
|
+
if (!filter || filter(entry)) {
|
|
1622
|
+
results.push(withFileTypes ? entry : entry.fullpath());
|
|
1623
|
+
}
|
|
1624
|
+
const dirs = new Set();
|
|
1625
|
+
const walk = (dir, cb) => {
|
|
1626
|
+
dirs.add(dir);
|
|
1627
|
+
dir.readdirCB((er, entries) => {
|
|
1628
|
+
/* c8 ignore start */
|
|
1629
|
+
if (er) {
|
|
1630
|
+
return cb(er);
|
|
1631
|
+
}
|
|
1632
|
+
/* c8 ignore stop */
|
|
1633
|
+
let len = entries.length;
|
|
1634
|
+
if (!len)
|
|
1635
|
+
return cb();
|
|
1636
|
+
const next = () => {
|
|
1637
|
+
if (--len === 0) {
|
|
1638
|
+
cb();
|
|
1639
|
+
}
|
|
1640
|
+
};
|
|
1641
|
+
for (const e of entries) {
|
|
1642
|
+
if (!filter || filter(e)) {
|
|
1643
|
+
results.push(withFileTypes ? e : e.fullpath());
|
|
1644
|
+
}
|
|
1645
|
+
if (follow && e.isSymbolicLink()) {
|
|
1646
|
+
e.realpath()
|
|
1647
|
+
.then(r => (r?.isUnknown() ? r.lstat() : r))
|
|
1648
|
+
.then(r => r?.shouldWalk(dirs, walkFilter) ? walk(r, next) : next());
|
|
1649
|
+
}
|
|
1650
|
+
else {
|
|
1651
|
+
if (e.shouldWalk(dirs, walkFilter)) {
|
|
1652
|
+
walk(e, next);
|
|
1653
|
+
}
|
|
1654
|
+
else {
|
|
1655
|
+
next();
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
}, true); // zalgooooooo
|
|
1660
|
+
};
|
|
1661
|
+
const start = entry;
|
|
1662
|
+
return new Promise((res, rej) => {
|
|
1663
|
+
walk(start, er => {
|
|
1664
|
+
/* c8 ignore start */
|
|
1665
|
+
if (er)
|
|
1666
|
+
return rej(er);
|
|
1667
|
+
/* c8 ignore stop */
|
|
1668
|
+
res(results);
|
|
1669
|
+
});
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
walkSync(entry = this.cwd, opts = {}) {
|
|
1673
|
+
if (typeof entry === 'string') {
|
|
1674
|
+
entry = this.cwd.resolve(entry);
|
|
1675
|
+
}
|
|
1676
|
+
else if (!(entry instanceof PathBase)) {
|
|
1677
|
+
opts = entry;
|
|
1678
|
+
entry = this.cwd;
|
|
1679
|
+
}
|
|
1680
|
+
const { withFileTypes = true, follow = false, filter, walkFilter, } = opts;
|
|
1681
|
+
const results = [];
|
|
1682
|
+
if (!filter || filter(entry)) {
|
|
1683
|
+
results.push(withFileTypes ? entry : entry.fullpath());
|
|
1684
|
+
}
|
|
1685
|
+
const dirs = new Set([entry]);
|
|
1686
|
+
for (const dir of dirs) {
|
|
1687
|
+
const entries = dir.readdirSync();
|
|
1688
|
+
for (const e of entries) {
|
|
1689
|
+
if (!filter || filter(e)) {
|
|
1690
|
+
results.push(withFileTypes ? e : e.fullpath());
|
|
1691
|
+
}
|
|
1692
|
+
let r = e;
|
|
1693
|
+
if (e.isSymbolicLink()) {
|
|
1694
|
+
if (!(follow && (r = e.realpathSync())))
|
|
1695
|
+
continue;
|
|
1696
|
+
if (r.isUnknown())
|
|
1697
|
+
r.lstatSync();
|
|
1698
|
+
}
|
|
1699
|
+
if (r.shouldWalk(dirs, walkFilter)) {
|
|
1700
|
+
dirs.add(r);
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
return results;
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
* Support for `for await`
|
|
1708
|
+
*
|
|
1709
|
+
* Alias for {@link PathScurryBase.iterate}
|
|
1710
|
+
*
|
|
1711
|
+
* Note: As of Node 19, this is very slow, compared to other methods of
|
|
1712
|
+
* walking. Consider using {@link PathScurryBase.stream} if memory overhead
|
|
1713
|
+
* and backpressure are concerns, or {@link PathScurryBase.walk} if not.
|
|
1714
|
+
*/
|
|
1715
|
+
[Symbol.asyncIterator]() {
|
|
1716
|
+
return this.iterate();
|
|
1717
|
+
}
|
|
1718
|
+
iterate(entry = this.cwd, options = {}) {
|
|
1719
|
+
// iterating async over the stream is significantly more performant,
|
|
1720
|
+
// especially in the warm-cache scenario, because it buffers up directory
|
|
1721
|
+
// entries in the background instead of waiting for a yield for each one.
|
|
1722
|
+
if (typeof entry === 'string') {
|
|
1723
|
+
entry = this.cwd.resolve(entry);
|
|
1724
|
+
}
|
|
1725
|
+
else if (!(entry instanceof PathBase)) {
|
|
1726
|
+
options = entry;
|
|
1727
|
+
entry = this.cwd;
|
|
1728
|
+
}
|
|
1729
|
+
return this.stream(entry, options)[Symbol.asyncIterator]();
|
|
1730
|
+
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Iterating over a PathScurry performs a synchronous walk.
|
|
1733
|
+
*
|
|
1734
|
+
* Alias for {@link PathScurryBase.iterateSync}
|
|
1735
|
+
*/
|
|
1736
|
+
[Symbol.iterator]() {
|
|
1737
|
+
return this.iterateSync();
|
|
1738
|
+
}
|
|
1739
|
+
*iterateSync(entry = this.cwd, opts = {}) {
|
|
1740
|
+
if (typeof entry === 'string') {
|
|
1741
|
+
entry = this.cwd.resolve(entry);
|
|
1742
|
+
}
|
|
1743
|
+
else if (!(entry instanceof PathBase)) {
|
|
1744
|
+
opts = entry;
|
|
1745
|
+
entry = this.cwd;
|
|
1746
|
+
}
|
|
1747
|
+
const { withFileTypes = true, follow = false, filter, walkFilter, } = opts;
|
|
1748
|
+
if (!filter || filter(entry)) {
|
|
1749
|
+
yield withFileTypes ? entry : entry.fullpath();
|
|
1750
|
+
}
|
|
1751
|
+
const dirs = new Set([entry]);
|
|
1752
|
+
for (const dir of dirs) {
|
|
1753
|
+
const entries = dir.readdirSync();
|
|
1754
|
+
for (const e of entries) {
|
|
1755
|
+
if (!filter || filter(e)) {
|
|
1756
|
+
yield withFileTypes ? e : e.fullpath();
|
|
1757
|
+
}
|
|
1758
|
+
let r = e;
|
|
1759
|
+
if (e.isSymbolicLink()) {
|
|
1760
|
+
if (!(follow && (r = e.realpathSync())))
|
|
1761
|
+
continue;
|
|
1762
|
+
if (r.isUnknown())
|
|
1763
|
+
r.lstatSync();
|
|
1764
|
+
}
|
|
1765
|
+
if (r.shouldWalk(dirs, walkFilter)) {
|
|
1766
|
+
dirs.add(r);
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
stream(entry = this.cwd, opts = {}) {
|
|
1772
|
+
if (typeof entry === 'string') {
|
|
1773
|
+
entry = this.cwd.resolve(entry);
|
|
1774
|
+
}
|
|
1775
|
+
else if (!(entry instanceof PathBase)) {
|
|
1776
|
+
opts = entry;
|
|
1777
|
+
entry = this.cwd;
|
|
1778
|
+
}
|
|
1779
|
+
const { withFileTypes = true, follow = false, filter, walkFilter, } = opts;
|
|
1780
|
+
const results = new minipass_1.Minipass({ objectMode: true });
|
|
1781
|
+
if (!filter || filter(entry)) {
|
|
1782
|
+
results.write(withFileTypes ? entry : entry.fullpath());
|
|
1783
|
+
}
|
|
1784
|
+
const dirs = new Set();
|
|
1785
|
+
const queue = [entry];
|
|
1786
|
+
let processing = 0;
|
|
1787
|
+
const process = () => {
|
|
1788
|
+
let paused = false;
|
|
1789
|
+
while (!paused) {
|
|
1790
|
+
const dir = queue.shift();
|
|
1791
|
+
if (!dir) {
|
|
1792
|
+
if (processing === 0)
|
|
1793
|
+
results.end();
|
|
1794
|
+
return;
|
|
1795
|
+
}
|
|
1796
|
+
processing++;
|
|
1797
|
+
dirs.add(dir);
|
|
1798
|
+
const onReaddir = (er, entries, didRealpaths = false) => {
|
|
1799
|
+
/* c8 ignore start */
|
|
1800
|
+
if (er)
|
|
1801
|
+
return results.emit('error', er);
|
|
1802
|
+
/* c8 ignore stop */
|
|
1803
|
+
if (follow && !didRealpaths) {
|
|
1804
|
+
const promises = [];
|
|
1805
|
+
for (const e of entries) {
|
|
1806
|
+
if (e.isSymbolicLink()) {
|
|
1807
|
+
promises.push(e
|
|
1808
|
+
.realpath()
|
|
1809
|
+
.then((r) => r?.isUnknown() ? r.lstat() : r));
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
if (promises.length) {
|
|
1813
|
+
Promise.all(promises).then(() => onReaddir(null, entries, true));
|
|
1814
|
+
return;
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
for (const e of entries) {
|
|
1818
|
+
if (e && (!filter || filter(e))) {
|
|
1819
|
+
if (!results.write(withFileTypes ? e : e.fullpath())) {
|
|
1820
|
+
paused = true;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
processing--;
|
|
1825
|
+
for (const e of entries) {
|
|
1826
|
+
const r = e.realpathCached() || e;
|
|
1827
|
+
if (r.shouldWalk(dirs, walkFilter)) {
|
|
1828
|
+
queue.push(r);
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
if (paused && !results.flowing) {
|
|
1832
|
+
results.once('drain', process);
|
|
1833
|
+
}
|
|
1834
|
+
else if (!sync) {
|
|
1835
|
+
process();
|
|
1836
|
+
}
|
|
1837
|
+
};
|
|
1838
|
+
// zalgo containment
|
|
1839
|
+
let sync = true;
|
|
1840
|
+
dir.readdirCB(onReaddir, true);
|
|
1841
|
+
sync = false;
|
|
1842
|
+
}
|
|
1843
|
+
};
|
|
1844
|
+
process();
|
|
1845
|
+
return results;
|
|
1846
|
+
}
|
|
1847
|
+
streamSync(entry = this.cwd, opts = {}) {
|
|
1848
|
+
if (typeof entry === 'string') {
|
|
1849
|
+
entry = this.cwd.resolve(entry);
|
|
1850
|
+
}
|
|
1851
|
+
else if (!(entry instanceof PathBase)) {
|
|
1852
|
+
opts = entry;
|
|
1853
|
+
entry = this.cwd;
|
|
1854
|
+
}
|
|
1855
|
+
const { withFileTypes = true, follow = false, filter, walkFilter, } = opts;
|
|
1856
|
+
const results = new minipass_1.Minipass({ objectMode: true });
|
|
1857
|
+
const dirs = new Set();
|
|
1858
|
+
if (!filter || filter(entry)) {
|
|
1859
|
+
results.write(withFileTypes ? entry : entry.fullpath());
|
|
1860
|
+
}
|
|
1861
|
+
const queue = [entry];
|
|
1862
|
+
let processing = 0;
|
|
1863
|
+
const process = () => {
|
|
1864
|
+
let paused = false;
|
|
1865
|
+
while (!paused) {
|
|
1866
|
+
const dir = queue.shift();
|
|
1867
|
+
if (!dir) {
|
|
1868
|
+
if (processing === 0)
|
|
1869
|
+
results.end();
|
|
1870
|
+
return;
|
|
1871
|
+
}
|
|
1872
|
+
processing++;
|
|
1873
|
+
dirs.add(dir);
|
|
1874
|
+
const entries = dir.readdirSync();
|
|
1875
|
+
for (const e of entries) {
|
|
1876
|
+
if (!filter || filter(e)) {
|
|
1877
|
+
if (!results.write(withFileTypes ? e : e.fullpath())) {
|
|
1878
|
+
paused = true;
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
processing--;
|
|
1883
|
+
for (const e of entries) {
|
|
1884
|
+
let r = e;
|
|
1885
|
+
if (e.isSymbolicLink()) {
|
|
1886
|
+
if (!(follow && (r = e.realpathSync())))
|
|
1887
|
+
continue;
|
|
1888
|
+
if (r.isUnknown())
|
|
1889
|
+
r.lstatSync();
|
|
1890
|
+
}
|
|
1891
|
+
if (r.shouldWalk(dirs, walkFilter)) {
|
|
1892
|
+
queue.push(r);
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
if (paused && !results.flowing)
|
|
1897
|
+
results.once('drain', process);
|
|
1898
|
+
};
|
|
1899
|
+
process();
|
|
1900
|
+
return results;
|
|
1901
|
+
}
|
|
1902
|
+
chdir(path = this.cwd) {
|
|
1903
|
+
const oldCwd = this.cwd;
|
|
1904
|
+
this.cwd = typeof path === 'string' ? this.cwd.resolve(path) : path;
|
|
1905
|
+
this.cwd[setAsCwd](oldCwd);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
exports.PathScurryBase = PathScurryBase;
|
|
1909
|
+
/**
|
|
1910
|
+
* Windows implementation of {@link PathScurryBase}
|
|
1911
|
+
*
|
|
1912
|
+
* Defaults to case insensitve, uses `'\\'` to generate path strings. Uses
|
|
1913
|
+
* {@link PathWin32} for Path objects.
|
|
1914
|
+
*/
|
|
1915
|
+
class PathScurryWin32 extends PathScurryBase {
|
|
1916
|
+
/**
|
|
1917
|
+
* separator for generating path strings
|
|
1918
|
+
*/
|
|
1919
|
+
sep = '\\';
|
|
1920
|
+
constructor(cwd = process.cwd(), opts = {}) {
|
|
1921
|
+
const { nocase = true } = opts;
|
|
1922
|
+
super(cwd, path_1.win32, '\\', { ...opts, nocase });
|
|
1923
|
+
this.nocase = nocase;
|
|
1924
|
+
for (let p = this.cwd; p; p = p.parent) {
|
|
1925
|
+
p.nocase = this.nocase;
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1928
|
+
/**
|
|
1929
|
+
* @internal
|
|
1930
|
+
*/
|
|
1931
|
+
parseRootPath(dir) {
|
|
1932
|
+
// if the path starts with a single separator, it's not a UNC, and we'll
|
|
1933
|
+
// just get separator as the root, and driveFromUNC will return \
|
|
1934
|
+
// In that case, mount \ on the root from the cwd.
|
|
1935
|
+
return path_1.win32.parse(dir).root.toUpperCase();
|
|
1936
|
+
}
|
|
1937
|
+
/**
|
|
1938
|
+
* @internal
|
|
1939
|
+
*/
|
|
1940
|
+
newRoot(fs) {
|
|
1941
|
+
return new PathWin32(this.rootPath, IFDIR, undefined, this.roots, this.nocase, this.childrenCache(), { fs });
|
|
1942
|
+
}
|
|
1943
|
+
/**
|
|
1944
|
+
* Return true if the provided path string is an absolute path
|
|
1945
|
+
*/
|
|
1946
|
+
isAbsolute(p) {
|
|
1947
|
+
return (p.startsWith('/') || p.startsWith('\\') || /^[a-z]:(\/|\\)/i.test(p));
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
exports.PathScurryWin32 = PathScurryWin32;
|
|
1951
|
+
/**
|
|
1952
|
+
* {@link PathScurryBase} implementation for all posix systems other than Darwin.
|
|
1953
|
+
*
|
|
1954
|
+
* Defaults to case-sensitive matching, uses `'/'` to generate path strings.
|
|
1955
|
+
*
|
|
1956
|
+
* Uses {@link PathPosix} for Path objects.
|
|
1957
|
+
*/
|
|
1958
|
+
class PathScurryPosix extends PathScurryBase {
|
|
1959
|
+
/**
|
|
1960
|
+
* separator for generating path strings
|
|
1961
|
+
*/
|
|
1962
|
+
sep = '/';
|
|
1963
|
+
constructor(cwd = process.cwd(), opts = {}) {
|
|
1964
|
+
const { nocase = false } = opts;
|
|
1965
|
+
super(cwd, path_1.posix, '/', { ...opts, nocase });
|
|
1966
|
+
this.nocase = nocase;
|
|
1967
|
+
}
|
|
1968
|
+
/**
|
|
1969
|
+
* @internal
|
|
1970
|
+
*/
|
|
1971
|
+
parseRootPath(_dir) {
|
|
1972
|
+
return '/';
|
|
1973
|
+
}
|
|
1974
|
+
/**
|
|
1975
|
+
* @internal
|
|
1976
|
+
*/
|
|
1977
|
+
newRoot(fs) {
|
|
1978
|
+
return new PathPosix(this.rootPath, IFDIR, undefined, this.roots, this.nocase, this.childrenCache(), { fs });
|
|
1979
|
+
}
|
|
1980
|
+
/**
|
|
1981
|
+
* Return true if the provided path string is an absolute path
|
|
1982
|
+
*/
|
|
1983
|
+
isAbsolute(p) {
|
|
1984
|
+
return p.startsWith('/');
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
exports.PathScurryPosix = PathScurryPosix;
|
|
1988
|
+
/**
|
|
1989
|
+
* {@link PathScurryBase} implementation for Darwin (macOS) systems.
|
|
1990
|
+
*
|
|
1991
|
+
* Defaults to case-insensitive matching, uses `'/'` for generating path
|
|
1992
|
+
* strings.
|
|
1993
|
+
*
|
|
1994
|
+
* Uses {@link PathPosix} for Path objects.
|
|
1995
|
+
*/
|
|
1996
|
+
class PathScurryDarwin extends PathScurryPosix {
|
|
1997
|
+
constructor(cwd = process.cwd(), opts = {}) {
|
|
1998
|
+
const { nocase = true } = opts;
|
|
1999
|
+
super(cwd, { ...opts, nocase });
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
exports.PathScurryDarwin = PathScurryDarwin;
|
|
2003
|
+
/**
|
|
2004
|
+
* Default {@link PathBase} implementation for the current platform.
|
|
2005
|
+
*
|
|
2006
|
+
* {@link PathWin32} on Windows systems, {@link PathPosix} on all others.
|
|
2007
|
+
*/
|
|
2008
|
+
exports.Path = process.platform === 'win32' ? PathWin32 : PathPosix;
|
|
2009
|
+
/**
|
|
2010
|
+
* Default {@link PathScurryBase} implementation for the current platform.
|
|
2011
|
+
*
|
|
2012
|
+
* {@link PathScurryWin32} on Windows systems, {@link PathScurryDarwin} on
|
|
2013
|
+
* Darwin (macOS) systems, {@link PathScurryPosix} on all others.
|
|
2014
|
+
*/
|
|
2015
|
+
exports.PathScurry = process.platform === 'win32'
|
|
2016
|
+
? PathScurryWin32
|
|
2017
|
+
: process.platform === 'darwin'
|
|
2018
|
+
? PathScurryDarwin
|
|
2019
|
+
: PathScurryPosix;
|
|
2020
|
+
//# sourceMappingURL=index.js.map
|