@ndlib/ndlib-cdk2 1.0.22 → 1.0.23
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/artifact-bucket.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/.package-lock.json +770 -703
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/README.md +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-cjs/index.js +119 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/CodePipeline.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/commands/RollbackStageCommand.js +24 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/commands/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/models/models_0.js +33 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/protocols/Aws_json1_1.js +49 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/CodePipeline.d.ts +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/CodePipelineClient.d.ts +3 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/CreatePipelineCommand.d.ts +6 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetPipelineCommand.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetPipelineExecutionCommand.d.ts +5 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetPipelineStateCommand.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/ListPipelineExecutionsCommand.d.ts +11 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/RollbackStageCommand.d.ts +86 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/UpdatePipelineCommand.d.ts +6 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/models/models_0.d.ts +168 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/CodePipeline.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/CodePipelineClient.d.ts +6 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/RollbackStageCommand.d.ts +35 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/models/models_0.d.ts +56 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/package.json +42 -42
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/README.md +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +213 -73
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/SSM.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstancePropertiesCommand.js +24 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowTargetsCommand.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/commands/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/models/models_0.js +30 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/models/models_1.js +9 -43
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/models/models_2.js +43 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstancePropertiesPaginator.js +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/pagination/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/protocols/Aws_json1_1.js +78 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/SSM.d.ts +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/SSMClient.d.ts +3 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePropertiesCommand.d.ts +151 -0
- 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 +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTasksCommand.d.ts +1 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartChangeRequestExecutionCommand.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartSessionCommand.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +334 -243
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +219 -234
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/models/models_2.d.ts +246 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstancePropertiesPaginator.d.ts +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/pagination/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSM.d.ts +18 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSMClient.d.ts +6 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePropertiesCommand.d.ts +39 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +2 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTargetsCommand.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTasksCommand.d.ts +4 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartChangeRequestExecutionCommand.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartSessionCommand.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +79 -49
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts +51 -60
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_2.d.ts +62 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstancePropertiesPaginator.d.ts +11 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/package.json +43 -43
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/package.json +39 -40
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +48 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +16 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +24 -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/commands/CreateTokenCommand.d.ts +1 -0
- 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 +23 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +63 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +15 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/package.json +41 -44
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +3 -3
- 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/runtimeConfig.d.ts +3 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +18 -26
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/package.json +41 -43
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/README.md +35 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/client.js +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/index.js +6 -446
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +38 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +226 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +228 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js +6 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +60 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +82 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/coercing-serializers.js +53 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/awsExpectUnion.js +10 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +51 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js +57 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/index.d.ts +22 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/client/emitWarningIfUnsupportedVersion.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +95 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +10 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/coercing-serializers.d.ts +18 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/common.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/awsExpectUnion.d.ts +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/parseXmlBody.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +21 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +55 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +13 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +13 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/httpAuthSchemes.js +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/package.json +45 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/protocols.js +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +2 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +8 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +1 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-http/package.json +11 -11
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +3 -17
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +5 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +1 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -13
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-node/README.md +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +3 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-node/package.json +14 -14
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-sso/package.json +9 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +4 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +1 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/package.json +9 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +1 -0
- 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/dist-cjs/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-logger/package.json +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +1 -0
- 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/dist-cjs/index.js +1 -0
- 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/dist-cjs/index.js +1 -0
- 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/dist-cjs/index.js +15 -20
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/package.json +10 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/types/dist-cjs/index.js +1 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/types/dist-types/logger.d.ts +2 -2
- 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 +6 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +5 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +5 -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-user-agent-browser/dist-cjs/index.js +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-user-agent-node/package.json +6 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/abort-controller/package.json +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/config-resolver/package.json +6 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/core/package.json +10 -10
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/package.json +7 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/fetch-http-handler/README.md +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +21 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +10 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +11 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/fetch-http-handler/package.json +8 -25
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/hash-node/package.json +6 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/invalid-dependency/package.json +2 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/is-array-buffer/package.json +2 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-content-length/package.json +5 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-endpoint/package.json +8 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/package.json +11 -12
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-cjs/index.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/package.json +4 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-stack/dist-cjs/index.js +7 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-stack/package.json +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-config-provider/package.json +6 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/README.md +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/dist-cjs/index.js +46 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +39 -12
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/package.json +7 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/property-provider/package.json +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/protocol-http/package.json +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/querystring-builder/package.json +4 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/querystring-parser/package.json +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/service-error-classification/package.json +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/shared-ini-file-loader/package.json +4 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-cjs/HeaderFormatter.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-cjs/index.js +130 -8
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +125 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +6 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-types/HeaderFormatter.d.ts +24 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-types/ts3.4/HeaderFormatter.d.ts +24 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/package.json +9 -11
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/smithy-client/dist-es/emitWarningIfUnsupportedVersion.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/smithy-client/package.json +8 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/client.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/http.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +5 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +9 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/package.json +2 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/url-parser/package.json +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-base64/package.json +5 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-body-length-browser/package.json +1 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-body-length-node/package.json +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-buffer-from/package.json +4 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-config-provider/package.json +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-defaults-mode-node/package.json +8 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-endpoints/dist-cjs/index.js +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-endpoints/package.json +5 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-hex-encoding/package.json +2 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-middleware/package.json +4 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-retry/dist-cjs/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-retry/package.json +5 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +8 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +8 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.d.ts +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-stream/package.json +13 -29
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-uri-escape/package.json +2 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-utf8/package.json +3 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-waiter/package.json +4 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/README.md +53 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/glob.d.ts +45 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/glob.js +24 -20
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/glob.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/has-magic.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/ignore.d.ts +6 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/ignore.js +37 -26
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/ignore.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/index.d.ts +8 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/index.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/index.js +10 -10
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/index.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/package.json +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/pattern.js +11 -11
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/pattern.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/processor.js +4 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/processor.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/walker.d.ts +7 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/walker.js +44 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/walker.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/bin.mjs +5 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/bin.mjs.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/glob.d.ts +45 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/glob.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/glob.js +23 -19
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/glob.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/has-magic.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/ignore.d.ts +6 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/ignore.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/ignore.js +37 -26
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/ignore.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/index.d.ts +8 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/index.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/index.js +4 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/index.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/package.json +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/pattern.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/pattern.js +11 -11
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/pattern.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/processor.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/processor.js +4 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/processor.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/walker.d.ts +7 -5
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/walker.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/walker.js +44 -15
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/walker.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/package.json +14 -14
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/README.md +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/index.d.ts +26 -20
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/index.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/index.js +204 -92
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/index.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/package.json +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/index.d.ts +26 -20
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/index.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/index.js +204 -92
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/index.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/package.json +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/parse-args.js +2 -2
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/parse-args.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/package.json +5 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/package.json +6 -7
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/ast.js +592 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/escape.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/escape.js +22 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/index.js +1016 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/unescape.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/ast.js +588 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/escape.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/escape.js +18 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/index.d.ts +94 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/index.js +1000 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/package.json +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/unescape.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/unescape.js +20 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/package.json +21 -25
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/commonjs/index.d.ts +4 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/commonjs/index.js +9 -9
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/commonjs/index.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/commonjs/package.json +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/esm/index.d.ts +4 -4
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/esm/index.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/esm/index.js +3 -3
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/esm/index.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/esm/package.json +3 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/package.json +6 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/README.md +34 -29
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.d.ts +15 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.js +59 -65
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.d.ts +15 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.js +54 -60
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.js.map +1 -1
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/package.json +10 -6
- package/lib/internal-lambdas/sourceWatcherLambda/src/package-lock.json +766 -699
- package/lib/internal-lambdas/sourceWatcherLambda/src/package.json +3 -3
- package/package.json +6 -7
package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/index.js
CHANGED
|
@@ -15,50 +15,40 @@ const toEnvKey = (pref, key) => {
|
|
|
15
15
|
.replace(/ /g, '_');
|
|
16
16
|
};
|
|
17
17
|
const toEnvVal = (value, delim = '\n') => {
|
|
18
|
-
const str = typeof value === 'string'
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
? value
|
|
22
|
-
? '1'
|
|
18
|
+
const str = typeof value === 'string' ? value
|
|
19
|
+
: typeof value === 'boolean' ?
|
|
20
|
+
value ? '1'
|
|
23
21
|
: '0'
|
|
24
|
-
: typeof value === 'number'
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
.map((v) => toEnvVal(v))
|
|
29
|
-
.join(delim)
|
|
30
|
-
: /* c8 ignore start */
|
|
31
|
-
undefined;
|
|
22
|
+
: typeof value === 'number' ? String(value)
|
|
23
|
+
: Array.isArray(value) ?
|
|
24
|
+
value.map((v) => toEnvVal(v)).join(delim)
|
|
25
|
+
: /* c8 ignore start */ undefined;
|
|
32
26
|
if (typeof str !== 'string') {
|
|
33
27
|
throw new Error(`could not serialize value to environment: ${JSON.stringify(value)}`);
|
|
34
28
|
}
|
|
35
29
|
/* c8 ignore stop */
|
|
36
30
|
return str;
|
|
37
31
|
};
|
|
38
|
-
const fromEnvVal = (env, type, multiple, delim = '\n') => (multiple
|
|
39
|
-
? env
|
|
40
|
-
? env.split(delim).map(v => fromEnvVal(v, type, false))
|
|
32
|
+
const fromEnvVal = (env, type, multiple, delim = '\n') => (multiple ?
|
|
33
|
+
env ? env.split(delim).map(v => fromEnvVal(v, type, false))
|
|
41
34
|
: []
|
|
42
|
-
: type === 'string'
|
|
43
|
-
? env
|
|
44
|
-
: type === 'boolean'
|
|
45
|
-
? env === '1'
|
|
35
|
+
: type === 'string' ? env
|
|
36
|
+
: type === 'boolean' ? env === '1'
|
|
46
37
|
: +env.trim());
|
|
47
38
|
export const isConfigType = (t) => typeof t === 'string' &&
|
|
48
39
|
(t === 'string' || t === 'number' || t === 'boolean');
|
|
49
40
|
const undefOrType = (v, t) => v === undefined || typeof v === t;
|
|
41
|
+
const undefOrTypeArray = (v, t) => v === undefined || (Array.isArray(v) && v.every(x => typeof x === t));
|
|
42
|
+
const isValidOption = (v, vo) => Array.isArray(v) ? v.every(x => isValidOption(x, vo)) : vo.includes(v);
|
|
50
43
|
// print the value type, for error message reporting
|
|
51
|
-
const valueType = (v) => typeof v === 'string'
|
|
52
|
-
? '
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
? 'number'
|
|
57
|
-
: Array.isArray(v)
|
|
58
|
-
? joinTypes([...new Set(v.map(v => valueType(v)))]) + '[]'
|
|
44
|
+
const valueType = (v) => typeof v === 'string' ? 'string'
|
|
45
|
+
: typeof v === 'boolean' ? 'boolean'
|
|
46
|
+
: typeof v === 'number' ? 'number'
|
|
47
|
+
: Array.isArray(v) ?
|
|
48
|
+
joinTypes([...new Set(v.map(v => valueType(v)))]) + '[]'
|
|
59
49
|
: `${v.type}${v.multiple ? '[]' : ''}`;
|
|
60
|
-
const joinTypes = (types) => types.length === 1 && typeof types[0] === 'string'
|
|
61
|
-
|
|
50
|
+
const joinTypes = (types) => types.length === 1 && typeof types[0] === 'string' ?
|
|
51
|
+
types[0]
|
|
62
52
|
: `(${types.join('|')})`;
|
|
63
53
|
const isValidValue = (v, type, multi) => {
|
|
64
54
|
if (multi) {
|
|
@@ -78,79 +68,139 @@ export const isConfigOption = (o, type, multi) => !!o &&
|
|
|
78
68
|
undefOrType(o.description, 'string') &&
|
|
79
69
|
undefOrType(o.hint, 'string') &&
|
|
80
70
|
undefOrType(o.validate, 'function') &&
|
|
71
|
+
(o.type === 'boolean' ?
|
|
72
|
+
o.validOptions === undefined
|
|
73
|
+
: undefOrTypeArray(o.validOptions, o.type)) &&
|
|
81
74
|
(o.default === undefined || isValidValue(o.default, type, multi)) &&
|
|
82
75
|
!!o.multiple === multi;
|
|
83
76
|
function num(o = {}) {
|
|
84
|
-
const { default: def, validate: val, ...rest } = o;
|
|
77
|
+
const { default: def, validate: val, validOptions, ...rest } = o;
|
|
85
78
|
if (def !== undefined && !isValidValue(def, 'number', false)) {
|
|
86
|
-
throw new TypeError('invalid default value'
|
|
79
|
+
throw new TypeError('invalid default value', {
|
|
80
|
+
cause: {
|
|
81
|
+
found: def,
|
|
82
|
+
wanted: 'number',
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
if (!undefOrTypeArray(validOptions, 'number')) {
|
|
87
|
+
throw new TypeError('invalid validOptions', {
|
|
88
|
+
cause: {
|
|
89
|
+
found: validOptions,
|
|
90
|
+
wanted: 'number[]',
|
|
91
|
+
},
|
|
92
|
+
});
|
|
87
93
|
}
|
|
88
|
-
const validate = val
|
|
89
|
-
|
|
94
|
+
const validate = val ?
|
|
95
|
+
val
|
|
90
96
|
: undefined;
|
|
91
97
|
return {
|
|
92
98
|
...rest,
|
|
93
99
|
default: def,
|
|
94
100
|
validate,
|
|
101
|
+
validOptions,
|
|
95
102
|
type: 'number',
|
|
96
103
|
multiple: false,
|
|
97
104
|
};
|
|
98
105
|
}
|
|
99
106
|
function numList(o = {}) {
|
|
100
|
-
const { default: def, validate: val, ...rest } = o;
|
|
107
|
+
const { default: def, validate: val, validOptions, ...rest } = o;
|
|
101
108
|
if (def !== undefined && !isValidValue(def, 'number', true)) {
|
|
102
|
-
throw new TypeError('invalid default value'
|
|
109
|
+
throw new TypeError('invalid default value', {
|
|
110
|
+
cause: {
|
|
111
|
+
found: def,
|
|
112
|
+
wanted: 'number[]',
|
|
113
|
+
},
|
|
114
|
+
});
|
|
103
115
|
}
|
|
104
|
-
|
|
105
|
-
|
|
116
|
+
if (!undefOrTypeArray(validOptions, 'number')) {
|
|
117
|
+
throw new TypeError('invalid validOptions', {
|
|
118
|
+
cause: {
|
|
119
|
+
found: validOptions,
|
|
120
|
+
wanted: 'number[]',
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
const validate = val ?
|
|
125
|
+
val
|
|
106
126
|
: undefined;
|
|
107
127
|
return {
|
|
108
128
|
...rest,
|
|
109
129
|
default: def,
|
|
110
130
|
validate,
|
|
131
|
+
validOptions,
|
|
111
132
|
type: 'number',
|
|
112
133
|
multiple: true,
|
|
113
134
|
};
|
|
114
135
|
}
|
|
115
136
|
function opt(o = {}) {
|
|
116
|
-
const { default: def, validate: val, ...rest } = o;
|
|
137
|
+
const { default: def, validate: val, validOptions, ...rest } = o;
|
|
117
138
|
if (def !== undefined && !isValidValue(def, 'string', false)) {
|
|
118
|
-
throw new TypeError('invalid default value'
|
|
139
|
+
throw new TypeError('invalid default value', {
|
|
140
|
+
cause: {
|
|
141
|
+
found: def,
|
|
142
|
+
wanted: 'string',
|
|
143
|
+
},
|
|
144
|
+
});
|
|
119
145
|
}
|
|
120
|
-
|
|
121
|
-
|
|
146
|
+
if (!undefOrTypeArray(validOptions, 'string')) {
|
|
147
|
+
throw new TypeError('invalid validOptions', {
|
|
148
|
+
cause: {
|
|
149
|
+
found: validOptions,
|
|
150
|
+
wanted: 'string[]',
|
|
151
|
+
},
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
const validate = val ?
|
|
155
|
+
val
|
|
122
156
|
: undefined;
|
|
123
157
|
return {
|
|
124
158
|
...rest,
|
|
125
159
|
default: def,
|
|
126
160
|
validate,
|
|
161
|
+
validOptions,
|
|
127
162
|
type: 'string',
|
|
128
163
|
multiple: false,
|
|
129
164
|
};
|
|
130
165
|
}
|
|
131
166
|
function optList(o = {}) {
|
|
132
|
-
const { default: def, validate: val, ...rest } = o;
|
|
167
|
+
const { default: def, validate: val, validOptions, ...rest } = o;
|
|
133
168
|
if (def !== undefined && !isValidValue(def, 'string', true)) {
|
|
134
|
-
throw new TypeError('invalid default value'
|
|
169
|
+
throw new TypeError('invalid default value', {
|
|
170
|
+
cause: {
|
|
171
|
+
found: def,
|
|
172
|
+
wanted: 'string[]',
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
if (!undefOrTypeArray(validOptions, 'string')) {
|
|
177
|
+
throw new TypeError('invalid validOptions', {
|
|
178
|
+
cause: {
|
|
179
|
+
found: validOptions,
|
|
180
|
+
wanted: 'string[]',
|
|
181
|
+
},
|
|
182
|
+
});
|
|
135
183
|
}
|
|
136
|
-
const validate = val
|
|
137
|
-
|
|
184
|
+
const validate = val ?
|
|
185
|
+
val
|
|
138
186
|
: undefined;
|
|
139
187
|
return {
|
|
140
188
|
...rest,
|
|
141
189
|
default: def,
|
|
142
190
|
validate,
|
|
191
|
+
validOptions,
|
|
143
192
|
type: 'string',
|
|
144
193
|
multiple: true,
|
|
145
194
|
};
|
|
146
195
|
}
|
|
147
196
|
function flag(o = {}) {
|
|
148
197
|
const { hint, default: def, validate: val, ...rest } = o;
|
|
198
|
+
delete rest.validOptions;
|
|
149
199
|
if (def !== undefined && !isValidValue(def, 'boolean', false)) {
|
|
150
200
|
throw new TypeError('invalid default value');
|
|
151
201
|
}
|
|
152
|
-
const validate = val
|
|
153
|
-
|
|
202
|
+
const validate = val ?
|
|
203
|
+
val
|
|
154
204
|
: undefined;
|
|
155
205
|
if (hint !== undefined) {
|
|
156
206
|
throw new TypeError('cannot provide hint for flag');
|
|
@@ -165,11 +215,12 @@ function flag(o = {}) {
|
|
|
165
215
|
}
|
|
166
216
|
function flagList(o = {}) {
|
|
167
217
|
const { hint, default: def, validate: val, ...rest } = o;
|
|
218
|
+
delete rest.validOptions;
|
|
168
219
|
if (def !== undefined && !isValidValue(def, 'boolean', true)) {
|
|
169
220
|
throw new TypeError('invalid default value');
|
|
170
221
|
}
|
|
171
|
-
const validate = val
|
|
172
|
-
|
|
222
|
+
const validate = val ?
|
|
223
|
+
val
|
|
173
224
|
: undefined;
|
|
174
225
|
if (hint !== undefined) {
|
|
175
226
|
throw new TypeError('cannot provide hint for flag list');
|
|
@@ -202,8 +253,8 @@ const toParseArgsOptionsConfig = (options) => {
|
|
|
202
253
|
c[longOption] = {
|
|
203
254
|
type: 'string',
|
|
204
255
|
multiple: false,
|
|
205
|
-
default: config.default === undefined
|
|
206
|
-
|
|
256
|
+
default: config.default === undefined ?
|
|
257
|
+
undefined
|
|
207
258
|
: String(config.default),
|
|
208
259
|
};
|
|
209
260
|
}
|
|
@@ -211,7 +262,7 @@ const toParseArgsOptionsConfig = (options) => {
|
|
|
211
262
|
const conf = config;
|
|
212
263
|
c[longOption] = {
|
|
213
264
|
type: conf.type,
|
|
214
|
-
multiple: conf.multiple,
|
|
265
|
+
multiple: !!conf.multiple,
|
|
215
266
|
default: conf.default,
|
|
216
267
|
};
|
|
217
268
|
}
|
|
@@ -269,14 +320,25 @@ export class Jack {
|
|
|
269
320
|
this.validate(values);
|
|
270
321
|
}
|
|
271
322
|
catch (er) {
|
|
272
|
-
|
|
323
|
+
const e = er;
|
|
324
|
+
if (source && e && typeof e === 'object') {
|
|
325
|
+
if (e.cause && typeof e.cause === 'object') {
|
|
326
|
+
Object.assign(e.cause, { path: source });
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
e.cause = { path: source };
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
throw e;
|
|
273
333
|
}
|
|
274
334
|
for (const [field, value] of Object.entries(values)) {
|
|
275
335
|
const my = this.#configSet[field];
|
|
276
336
|
// already validated, just for TS's benefit
|
|
277
337
|
/* c8 ignore start */
|
|
278
338
|
if (!my) {
|
|
279
|
-
throw new Error('unexpected field in config set: ' + field
|
|
339
|
+
throw new Error('unexpected field in config set: ' + field, {
|
|
340
|
+
cause: { found: field },
|
|
341
|
+
});
|
|
280
342
|
}
|
|
281
343
|
/* c8 ignore stop */
|
|
282
344
|
my.default = value;
|
|
@@ -347,18 +409,27 @@ export class Jack {
|
|
|
347
409
|
throw new Error(`Unknown option '${token.rawName}'. ` +
|
|
348
410
|
`To specify a positional argument starting with a '-', ` +
|
|
349
411
|
`place it at the end of the command after '--', as in ` +
|
|
350
|
-
`'-- ${token.rawName}'
|
|
412
|
+
`'-- ${token.rawName}'`, {
|
|
413
|
+
cause: {
|
|
414
|
+
found: token.rawName + (token.value ? `=${token.value}` : ''),
|
|
415
|
+
},
|
|
416
|
+
});
|
|
351
417
|
}
|
|
352
418
|
if (value === undefined) {
|
|
353
419
|
if (token.value === undefined) {
|
|
354
420
|
if (my.type !== 'boolean') {
|
|
355
|
-
throw new Error(`No value provided for ${token.rawName}, expected ${my.type}
|
|
421
|
+
throw new Error(`No value provided for ${token.rawName}, expected ${my.type}`, {
|
|
422
|
+
cause: {
|
|
423
|
+
name: token.rawName,
|
|
424
|
+
wanted: valueType(my),
|
|
425
|
+
},
|
|
426
|
+
});
|
|
356
427
|
}
|
|
357
428
|
value = true;
|
|
358
429
|
}
|
|
359
430
|
else {
|
|
360
431
|
if (my.type === 'boolean') {
|
|
361
|
-
throw new Error(`Flag ${token.rawName} does not take a value, received '${token.value}'
|
|
432
|
+
throw new Error(`Flag ${token.rawName} does not take a value, received '${token.value}'`, { cause: { found: token } });
|
|
362
433
|
}
|
|
363
434
|
if (my.type === 'string') {
|
|
364
435
|
value = token.value;
|
|
@@ -367,7 +438,13 @@ export class Jack {
|
|
|
367
438
|
value = +token.value;
|
|
368
439
|
if (value !== value) {
|
|
369
440
|
throw new Error(`Invalid value '${token.value}' provided for ` +
|
|
370
|
-
`'${token.rawName}' option, expected number
|
|
441
|
+
`'${token.rawName}' option, expected number`, {
|
|
442
|
+
cause: {
|
|
443
|
+
name: token.rawName,
|
|
444
|
+
found: token.value,
|
|
445
|
+
wanted: 'number',
|
|
446
|
+
},
|
|
447
|
+
});
|
|
371
448
|
}
|
|
372
449
|
}
|
|
373
450
|
}
|
|
@@ -392,8 +469,16 @@ export class Jack {
|
|
|
392
469
|
}
|
|
393
470
|
for (const [field, value] of Object.entries(p.values)) {
|
|
394
471
|
const valid = this.#configSet[field]?.validate;
|
|
472
|
+
const validOptions = this.#configSet[field]?.validOptions;
|
|
473
|
+
let cause;
|
|
474
|
+
if (validOptions && !isValidOption(value, validOptions)) {
|
|
475
|
+
cause = { name: field, found: value, validOptions: validOptions };
|
|
476
|
+
}
|
|
395
477
|
if (valid && !valid(value)) {
|
|
396
|
-
|
|
478
|
+
cause ??= { name: field, found: value };
|
|
479
|
+
}
|
|
480
|
+
if (cause) {
|
|
481
|
+
throw new Error(`Invalid value provided for --${field}: ${JSON.stringify(value)}`, { cause });
|
|
397
482
|
}
|
|
398
483
|
}
|
|
399
484
|
this.#writeEnv(p);
|
|
@@ -410,7 +495,7 @@ export class Jack {
|
|
|
410
495
|
// recurse so we get the core config key we care about.
|
|
411
496
|
this.#noNoFields(yes, val, s);
|
|
412
497
|
if (this.#configSet[yes]?.type === 'boolean') {
|
|
413
|
-
throw new Error(`do not set '${s}', instead set '${yes}' as desired
|
|
498
|
+
throw new Error(`do not set '${s}', instead set '${yes}' as desired.`, { cause: { found: s, wanted: yes } });
|
|
414
499
|
}
|
|
415
500
|
}
|
|
416
501
|
/**
|
|
@@ -419,22 +504,48 @@ export class Jack {
|
|
|
419
504
|
*/
|
|
420
505
|
validate(o) {
|
|
421
506
|
if (!o || typeof o !== 'object') {
|
|
422
|
-
throw new Error('Invalid config: not an object'
|
|
507
|
+
throw new Error('Invalid config: not an object', {
|
|
508
|
+
cause: { found: o },
|
|
509
|
+
});
|
|
423
510
|
}
|
|
511
|
+
const opts = o;
|
|
424
512
|
for (const field in o) {
|
|
425
|
-
|
|
513
|
+
const value = opts[field];
|
|
514
|
+
/* c8 ignore next - for TS */
|
|
515
|
+
if (value === undefined)
|
|
516
|
+
continue;
|
|
517
|
+
this.#noNoFields(field, value);
|
|
426
518
|
const config = this.#configSet[field];
|
|
427
519
|
if (!config) {
|
|
428
|
-
throw new Error(`Unknown config option: ${field}
|
|
520
|
+
throw new Error(`Unknown config option: ${field}`, {
|
|
521
|
+
cause: { found: field },
|
|
522
|
+
});
|
|
429
523
|
}
|
|
430
|
-
if (!isValidValue(
|
|
431
|
-
throw
|
|
432
|
-
|
|
433
|
-
|
|
524
|
+
if (!isValidValue(value, config.type, !!config.multiple)) {
|
|
525
|
+
throw new Error(`Invalid value ${valueType(value)} for ${field}, expected ${valueType(config)}`, {
|
|
526
|
+
cause: {
|
|
527
|
+
name: field,
|
|
528
|
+
found: value,
|
|
529
|
+
wanted: valueType(config),
|
|
530
|
+
},
|
|
434
531
|
});
|
|
435
532
|
}
|
|
436
|
-
|
|
437
|
-
|
|
533
|
+
let cause;
|
|
534
|
+
if (config.validOptions &&
|
|
535
|
+
!isValidOption(value, config.validOptions)) {
|
|
536
|
+
cause = {
|
|
537
|
+
name: field,
|
|
538
|
+
found: value,
|
|
539
|
+
validOptions: config.validOptions,
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
if (config.validate && !config.validate(value)) {
|
|
543
|
+
cause ??= { name: field, found: value };
|
|
544
|
+
}
|
|
545
|
+
if (cause) {
|
|
546
|
+
throw new Error(`Invalid config value for ${field}: ${value}`, {
|
|
547
|
+
cause,
|
|
548
|
+
});
|
|
438
549
|
}
|
|
439
550
|
}
|
|
440
551
|
}
|
|
@@ -745,21 +856,21 @@ export class Jack {
|
|
|
745
856
|
const { value } = field;
|
|
746
857
|
const desc = value.description || '';
|
|
747
858
|
const mult = value.multiple ? 'Can be set multiple times' : '';
|
|
748
|
-
const
|
|
749
|
-
|
|
859
|
+
const opts = value.validOptions?.length ?
|
|
860
|
+
`Valid options:${value.validOptions.map(v => ` ${JSON.stringify(v)}`)}`
|
|
861
|
+
: '';
|
|
862
|
+
const dmDelim = desc.includes('\n') ? '\n\n' : '\n';
|
|
863
|
+
const extra = [opts, mult].join(dmDelim).trim();
|
|
864
|
+
const text = (normalize(desc) + dmDelim + extra).trim();
|
|
750
865
|
const hint = value.hint ||
|
|
751
|
-
(value.type === 'number'
|
|
752
|
-
|
|
753
|
-
: value.type === 'string'
|
|
754
|
-
? field.name
|
|
866
|
+
(value.type === 'number' ? 'n'
|
|
867
|
+
: value.type === 'string' ? field.name
|
|
755
868
|
: undefined);
|
|
756
|
-
const short = !value.short
|
|
757
|
-
|
|
758
|
-
: value.type === 'boolean'
|
|
759
|
-
? `-${value.short} `
|
|
869
|
+
const short = !value.short ? ''
|
|
870
|
+
: value.type === 'boolean' ? `-${value.short} `
|
|
760
871
|
: `-${value.short}<${hint}> `;
|
|
761
|
-
const left = value.type === 'boolean'
|
|
762
|
-
|
|
872
|
+
const left = value.type === 'boolean' ?
|
|
873
|
+
`${short}--${field.name}`
|
|
763
874
|
: `${short}--${field.name}=<${hint}>`;
|
|
764
875
|
const row = { text, left, type: 'config' };
|
|
765
876
|
if (text.length > width - maxMax) {
|
|
@@ -787,10 +898,11 @@ export class Jack {
|
|
|
787
898
|
...(def.multiple ? { multiple: true } : {}),
|
|
788
899
|
...(def.delim ? { delim: def.delim } : {}),
|
|
789
900
|
...(def.short ? { short: def.short } : {}),
|
|
790
|
-
...(def.description
|
|
791
|
-
|
|
901
|
+
...(def.description ?
|
|
902
|
+
{ description: normalize(def.description) }
|
|
792
903
|
: {}),
|
|
793
904
|
...(def.validate ? { validate: def.validate } : {}),
|
|
905
|
+
...(def.validOptions ? { validOptions: def.validOptions } : {}),
|
|
794
906
|
...(def.default !== undefined ? { default: def.default } : {}),
|
|
795
907
|
},
|
|
796
908
|
]));
|
|
@@ -804,12 +916,12 @@ export class Jack {
|
|
|
804
916
|
}
|
|
805
917
|
// Unwrap and un-indent, so we can wrap description
|
|
806
918
|
// strings however makes them look nice in the code.
|
|
807
|
-
const normalize = (s, pre = false) => pre
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
919
|
+
const normalize = (s, pre = false) => pre ?
|
|
920
|
+
// prepend a ZWSP to each line so cliui doesn't strip it.
|
|
921
|
+
s
|
|
922
|
+
.split('\n')
|
|
923
|
+
.map(l => `\u200b${l}`)
|
|
924
|
+
.join('\n')
|
|
813
925
|
: s
|
|
814
926
|
// remove single line breaks, except for lists
|
|
815
927
|
.replace(/([^\n])\n[ \t]*([^\n])/g, (_, $1, $2) => !/^[-*]/.test($2) ? `${$1} ${$2}` : `${$1}\n${$2}`)
|
|
@@ -823,8 +935,8 @@ const normalize = (s, pre = false) => pre
|
|
|
823
935
|
// normalize for markdown printing, remove leading spaces on lines
|
|
824
936
|
const normalizeMarkdown = (s, pre = false) => {
|
|
825
937
|
const n = normalize(s, pre).replace(/\\/g, '\\\\');
|
|
826
|
-
return pre
|
|
827
|
-
|
|
938
|
+
return pre ?
|
|
939
|
+
`\`\`\`\n${n.replace(/\u200b/g, '')}\n\`\`\``
|
|
828
940
|
: n.replace(/\n +/g, '\n').trim();
|
|
829
941
|
};
|
|
830
942
|
const normalizeOneLine = (s, pre = false) => {
|