@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.
Files changed (434) hide show
  1. package/lib/artifact-bucket.js +1 -0
  2. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/.package-lock.json +770 -703
  3. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/README.md +8 -0
  4. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-cjs/index.js +119 -0
  5. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/CodePipeline.js +2 -0
  6. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/commands/RollbackStageCommand.js +24 -0
  7. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/commands/index.js +1 -0
  8. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/models/models_0.js +33 -0
  9. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-es/protocols/Aws_json1_1.js +49 -1
  10. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/CodePipeline.d.ts +7 -0
  11. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/CodePipelineClient.d.ts +3 -2
  12. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/CreatePipelineCommand.d.ts +6 -0
  13. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetPipelineCommand.d.ts +3 -0
  14. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetPipelineExecutionCommand.d.ts +5 -1
  15. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/GetPipelineStateCommand.d.ts +3 -0
  16. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/ListPipelineExecutionsCommand.d.ts +11 -1
  17. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/RollbackStageCommand.d.ts +86 -0
  18. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/UpdatePipelineCommand.d.ts +6 -0
  19. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/commands/index.d.ts +1 -0
  20. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/models/models_0.d.ts +168 -0
  21. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  22. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/CodePipeline.d.ts +17 -0
  23. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/CodePipelineClient.d.ts +6 -0
  24. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/RollbackStageCommand.d.ts +35 -0
  25. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/commands/index.d.ts +1 -0
  26. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/models/models_0.d.ts +56 -0
  27. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  28. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-codepipeline/package.json +42 -42
  29. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/README.md +8 -0
  30. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +213 -73
  31. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/SSM.js +2 -0
  32. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstancePropertiesCommand.js +24 -0
  33. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowTargetsCommand.js +1 -1
  34. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/commands/index.js +1 -0
  35. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/models/models_0.js +30 -9
  36. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/models/models_1.js +9 -43
  37. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/models/models_2.js +43 -0
  38. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstancePropertiesPaginator.js +4 -0
  39. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/pagination/index.js +1 -0
  40. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-es/protocols/Aws_json1_1.js +78 -3
  41. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/SSM.d.ts +8 -0
  42. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/SSMClient.d.ts +3 -2
  43. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePropertiesCommand.d.ts +151 -0
  44. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +2 -1
  45. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTargetsCommand.d.ts +1 -1
  46. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTasksCommand.d.ts +1 -2
  47. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts +1 -1
  48. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartChangeRequestExecutionCommand.d.ts +1 -1
  49. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartSessionCommand.d.ts +1 -1
  50. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/commands/index.d.ts +1 -0
  51. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +334 -243
  52. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +219 -234
  53. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/models/models_2.d.ts +246 -8
  54. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstancePropertiesPaginator.d.ts +7 -0
  55. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/pagination/index.d.ts +1 -0
  56. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  57. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSM.d.ts +18 -0
  58. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSMClient.d.ts +6 -0
  59. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePropertiesCommand.d.ts +39 -0
  60. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +2 -4
  61. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTargetsCommand.d.ts +1 -1
  62. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTasksCommand.d.ts +4 -2
  63. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts +1 -1
  64. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartChangeRequestExecutionCommand.d.ts +1 -1
  65. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartSessionCommand.d.ts +1 -1
  66. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/index.d.ts +1 -0
  67. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +79 -49
  68. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts +51 -60
  69. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_2.d.ts +62 -1
  70. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstancePropertiesPaginator.d.ts +11 -0
  71. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/index.d.ts +1 -0
  72. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  73. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-ssm/package.json +43 -43
  74. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso/package.json +39 -40
  75. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +48 -2
  76. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +2 -2
  77. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +16 -0
  78. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +24 -1
  79. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +1 -1
  80. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +1 -0
  81. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +2 -1
  82. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +23 -0
  83. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +63 -2
  84. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +1 -1
  85. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +15 -0
  86. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
  87. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/package.json +41 -44
  88. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +3 -3
  89. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +1 -1
  90. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +3 -8
  91. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +18 -26
  92. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/package.json +41 -43
  93. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/README.md +35 -1
  94. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/client.js +5 -0
  95. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/index.js +6 -446
  96. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +38 -0
  97. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +226 -0
  98. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +228 -0
  99. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
  100. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js +6 -0
  101. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
  102. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +60 -0
  103. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +2 -0
  104. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +82 -0
  105. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +1 -0
  106. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +2 -0
  107. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js +1 -0
  108. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +8 -0
  109. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js +3 -0
  110. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js +2 -0
  111. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/coercing-serializers.js +53 -0
  112. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js +2 -0
  113. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +4 -0
  114. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/awsExpectUnion.js +10 -0
  115. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +51 -0
  116. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js +57 -0
  117. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/index.d.ts +22 -3
  118. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/client/emitWarningIfUnsupportedVersion.d.ts +9 -0
  119. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
  120. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +17 -0
  121. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -0
  122. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +95 -0
  123. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +1 -0
  124. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
  125. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -0
  126. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +10 -0
  127. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +3 -0
  128. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -0
  129. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/coercing-serializers.d.ts +18 -0
  130. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/common.d.ts +2 -0
  131. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +4 -0
  132. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/awsExpectUnion.d.ts +7 -0
  133. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +4 -0
  134. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/parseXmlBody.d.ts +4 -0
  135. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +3 -3
  136. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +1 -0
  137. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
  138. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +21 -0
  139. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -0
  140. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +55 -0
  141. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +1 -0
  142. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +1 -0
  143. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -0
  144. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +4 -0
  145. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +3 -0
  146. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +4 -0
  147. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +3 -0
  148. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +5 -0
  149. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +4 -0
  150. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +3 -0
  151. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +13 -0
  152. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +13 -0
  153. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/httpAuthSchemes.js +5 -0
  154. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/package.json +45 -8
  155. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/protocols.js +5 -0
  156. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +1 -0
  157. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
  158. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +2 -3
  159. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +8 -9
  160. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +1 -2
  161. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-http/package.json +11 -11
  162. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +3 -17
  163. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -1
  164. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +5 -2
  165. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +1 -2
  166. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -13
  167. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-node/README.md +1 -1
  168. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +3 -2
  169. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +1 -1
  170. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-node/package.json +14 -14
  171. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +1 -0
  172. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
  173. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +2 -0
  174. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-sso/package.json +9 -9
  175. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +4 -5
  176. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +3 -4
  177. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +1 -0
  178. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +1 -1
  179. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +2 -2
  180. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +1 -2
  181. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/package.json +9 -7
  182. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +1 -0
  183. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-host-header/package.json +5 -5
  184. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +1 -0
  185. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-logger/package.json +5 -5
  186. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +1 -0
  187. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
  188. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +1 -0
  189. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/middleware-user-agent/package.json +6 -6
  190. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +1 -0
  191. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/region-config-resolver/package.json +7 -7
  192. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +15 -20
  193. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +1 -1
  194. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +1 -1
  195. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/package.json +10 -8
  196. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/types/dist-cjs/index.js +1 -4
  197. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/types/dist-types/logger.d.ts +2 -2
  198. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/types/package.json +3 -3
  199. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +6 -1
  200. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +5 -1
  201. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +5 -1
  202. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  203. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +3 -4
  204. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  205. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -0
  206. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/util-user-agent-node/package.json +6 -6
  207. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/abort-controller/package.json +3 -4
  208. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/config-resolver/package.json +6 -7
  209. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/core/package.json +10 -10
  210. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -0
  211. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +1 -0
  212. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/credential-provider-imds/package.json +7 -8
  213. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/fetch-http-handler/README.md +7 -0
  214. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +21 -9
  215. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +10 -3
  216. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +11 -6
  217. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/fetch-http-handler/package.json +8 -25
  218. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/hash-node/package.json +6 -7
  219. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/invalid-dependency/package.json +2 -3
  220. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/is-array-buffer/package.json +2 -3
  221. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-content-length/package.json +5 -6
  222. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +3 -3
  223. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js +3 -3
  224. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-endpoint/package.json +8 -9
  225. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/package.json +11 -12
  226. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-cjs/index.js +1 -1
  227. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +1 -1
  228. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-serde/package.json +4 -5
  229. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-stack/dist-cjs/index.js +7 -4
  230. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-stack/package.json +3 -4
  231. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js +2 -1
  232. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-config-provider/package.json +6 -7
  233. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/README.md +5 -0
  234. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/dist-cjs/index.js +46 -15
  235. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -1
  236. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +39 -12
  237. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/node-http-handler/package.json +7 -8
  238. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/property-provider/package.json +3 -4
  239. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/protocol-http/package.json +3 -4
  240. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/querystring-builder/package.json +4 -5
  241. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/querystring-parser/package.json +3 -4
  242. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/service-error-classification/package.json +3 -4
  243. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/shared-ini-file-loader/package.json +4 -5
  244. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-cjs/HeaderFormatter.js +1 -0
  245. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-cjs/index.js +130 -8
  246. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +125 -0
  247. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +6 -5
  248. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-types/HeaderFormatter.d.ts +24 -0
  249. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +1 -1
  250. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-types/ts3.4/HeaderFormatter.d.ts +24 -0
  251. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +1 -1
  252. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/signature-v4/package.json +9 -11
  253. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -1
  254. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/smithy-client/dist-es/emitWarningIfUnsupportedVersion.js +1 -1
  255. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/smithy-client/package.json +8 -9
  256. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/client.d.ts +12 -0
  257. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/http.d.ts +1 -1
  258. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +5 -5
  259. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +12 -0
  260. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -1
  261. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +9 -1
  262. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/types/package.json +2 -3
  263. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/url-parser/package.json +3 -4
  264. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-base64/package.json +5 -6
  265. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-body-length-browser/package.json +1 -2
  266. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-body-length-node/package.json +3 -4
  267. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-buffer-from/package.json +4 -5
  268. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-config-provider/package.json +3 -4
  269. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -6
  270. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-defaults-mode-node/package.json +8 -9
  271. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-endpoints/dist-cjs/index.js +3 -3
  272. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +1 -1
  273. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +1 -1
  274. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +1 -1
  275. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-endpoints/package.json +5 -6
  276. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-hex-encoding/package.json +2 -3
  277. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-middleware/package.json +4 -5
  278. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-retry/dist-cjs/index.js +1 -0
  279. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-retry/package.json +5 -6
  280. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +8 -2
  281. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +8 -2
  282. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts +1 -1
  283. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.d.ts +1 -1
  284. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-stream/package.json +13 -29
  285. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-uri-escape/package.json +2 -3
  286. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-utf8/package.json +3 -4
  287. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/util-waiter/package.json +4 -5
  288. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/README.md +53 -2
  289. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/glob.d.ts +45 -0
  290. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -1
  291. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/glob.js +24 -20
  292. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/glob.js.map +1 -1
  293. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/has-magic.js.map +1 -1
  294. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/ignore.d.ts +6 -1
  295. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -1
  296. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/ignore.js +37 -26
  297. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/ignore.js.map +1 -1
  298. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/index.d.ts +8 -7
  299. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/index.d.ts.map +1 -1
  300. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/index.js +10 -10
  301. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/index.js.map +1 -1
  302. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/package.json +3 -1
  303. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -1
  304. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/pattern.js +11 -11
  305. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/pattern.js.map +1 -1
  306. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -1
  307. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/processor.js +4 -5
  308. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/processor.js.map +1 -1
  309. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/walker.d.ts +7 -5
  310. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -1
  311. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/walker.js +44 -15
  312. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/commonjs/walker.js.map +1 -1
  313. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/bin.mjs +5 -7
  314. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/bin.mjs.map +1 -1
  315. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/glob.d.ts +45 -0
  316. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/glob.d.ts.map +1 -1
  317. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/glob.js +23 -19
  318. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/glob.js.map +1 -1
  319. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/has-magic.js.map +1 -1
  320. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/ignore.d.ts +6 -1
  321. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/ignore.d.ts.map +1 -1
  322. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/ignore.js +37 -26
  323. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/ignore.js.map +1 -1
  324. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/index.d.ts +8 -7
  325. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/index.d.ts.map +1 -1
  326. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/index.js +4 -5
  327. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/index.js.map +1 -1
  328. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/package.json +3 -1
  329. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/pattern.d.ts.map +1 -1
  330. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/pattern.js +11 -11
  331. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/pattern.js.map +1 -1
  332. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/processor.d.ts.map +1 -1
  333. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/processor.js +4 -5
  334. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/processor.js.map +1 -1
  335. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/walker.d.ts +7 -5
  336. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/walker.d.ts.map +1 -1
  337. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/walker.js +44 -15
  338. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/dist/esm/walker.js.map +1 -1
  339. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/glob/package.json +14 -14
  340. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/README.md +3 -0
  341. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/index.d.ts +26 -20
  342. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/index.d.ts.map +1 -1
  343. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/index.js +204 -92
  344. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/index.js.map +1 -1
  345. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/package.json +3 -1
  346. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +1 -1
  347. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/index.d.ts +26 -20
  348. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/index.d.ts.map +1 -1
  349. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/index.js +204 -92
  350. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/index.js.map +1 -1
  351. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/package.json +3 -1
  352. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/parse-args.js +2 -2
  353. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/esm/parse-args.js.map +1 -1
  354. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/package.json +5 -4
  355. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  356. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  357. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  358. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  359. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/lru-cache/package.json +6 -7
  360. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  361. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  362. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  363. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  364. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
  365. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
  366. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/ast.js +592 -0
  367. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
  368. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
  369. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
  370. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
  371. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
  372. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/escape.d.ts +12 -0
  373. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  374. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/escape.js +22 -0
  375. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  376. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
  377. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  378. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/index.js +1016 -0
  379. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  380. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/package.json +3 -0
  381. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/unescape.d.ts +17 -0
  382. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  383. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
  384. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  385. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  386. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  387. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  388. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  389. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
  390. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
  391. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/ast.js +588 -0
  392. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/ast.js.map +1 -0
  393. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
  394. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
  395. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
  396. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
  397. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/escape.d.ts +12 -0
  398. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  399. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/escape.js +18 -0
  400. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  401. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/index.d.ts +94 -0
  402. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  403. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/index.js +1000 -0
  404. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/index.js.map +1 -0
  405. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/package.json +3 -0
  406. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/unescape.d.ts +17 -0
  407. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  408. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/unescape.js +20 -0
  409. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  410. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/package.json +21 -25
  411. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/commonjs/index.d.ts +4 -4
  412. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -1
  413. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/commonjs/index.js +9 -9
  414. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/commonjs/index.js.map +1 -1
  415. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/commonjs/package.json +3 -1
  416. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/esm/index.d.ts +4 -4
  417. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/esm/index.d.ts.map +1 -1
  418. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/esm/index.js +3 -3
  419. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/esm/index.js.map +1 -1
  420. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/dist/esm/package.json +3 -1
  421. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minipass/package.json +6 -6
  422. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/README.md +34 -29
  423. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.d.ts +15 -6
  424. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -1
  425. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.js +59 -65
  426. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/commonjs/index.js.map +1 -1
  427. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.d.ts +15 -6
  428. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -1
  429. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.js +54 -60
  430. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/dist/esm/index.js.map +1 -1
  431. package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/path-scurry/package.json +10 -6
  432. package/lib/internal-lambdas/sourceWatcherLambda/src/package-lock.json +766 -699
  433. package/lib/internal-lambdas/sourceWatcherLambda/src/package.json +3 -3
  434. package/package.json +6 -7
@@ -0,0 +1,588 @@
1
+ // parse a single path portion
2
+ import { parseClass } from './brace-expressions.js';
3
+ import { unescape } from './unescape.js';
4
+ const types = new Set(['!', '?', '+', '*', '@']);
5
+ const isExtglobType = (c) => types.has(c);
6
+ // Patterns that get prepended to bind to the start of either the
7
+ // entire string, or just a single path portion, to prevent dots
8
+ // and/or traversal patterns, when needed.
9
+ // Exts don't need the ^ or / bit, because the root binds that already.
10
+ const startNoTraversal = '(?!(?:^|/)\\.\\.?(?:$|/))';
11
+ const startNoDot = '(?!\\.)';
12
+ // characters that indicate a start of pattern needs the "no dots" bit,
13
+ // because a dot *might* be matched. ( is not in the list, because in
14
+ // the case of a child extglob, it will handle the prevention itself.
15
+ const addPatternStart = new Set(['[', '.']);
16
+ // cases where traversal is A-OK, no dot prevention needed
17
+ const justDots = new Set(['..', '.']);
18
+ const reSpecials = new Set('().*{}+?[]^$\\!');
19
+ const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
20
+ // any single thing other than /
21
+ const qmark = '[^/]';
22
+ // * => any number of characters
23
+ const star = qmark + '*?';
24
+ // use + when we need to ensure that *something* matches, because the * is
25
+ // the only thing in the path portion.
26
+ const starNoEmpty = qmark + '+?';
27
+ // remove the \ chars that we added if we end up doing a nonmagic compare
28
+ // const deslash = (s: string) => s.replace(/\\(.)/g, '$1')
29
+ export class AST {
30
+ type;
31
+ #root;
32
+ #hasMagic;
33
+ #uflag = false;
34
+ #parts = [];
35
+ #parent;
36
+ #parentIndex;
37
+ #negs;
38
+ #filledNegs = false;
39
+ #options;
40
+ #toString;
41
+ // set to true if it's an extglob with no children
42
+ // (which really means one child of '')
43
+ #emptyExt = false;
44
+ constructor(type, parent, options = {}) {
45
+ this.type = type;
46
+ // extglobs are inherently magical
47
+ if (type)
48
+ this.#hasMagic = true;
49
+ this.#parent = parent;
50
+ this.#root = this.#parent ? this.#parent.#root : this;
51
+ this.#options = this.#root === this ? options : this.#root.#options;
52
+ this.#negs = this.#root === this ? [] : this.#root.#negs;
53
+ if (type === '!' && !this.#root.#filledNegs)
54
+ this.#negs.push(this);
55
+ this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
56
+ }
57
+ get hasMagic() {
58
+ /* c8 ignore start */
59
+ if (this.#hasMagic !== undefined)
60
+ return this.#hasMagic;
61
+ /* c8 ignore stop */
62
+ for (const p of this.#parts) {
63
+ if (typeof p === 'string')
64
+ continue;
65
+ if (p.type || p.hasMagic)
66
+ return (this.#hasMagic = true);
67
+ }
68
+ // note: will be undefined until we generate the regexp src and find out
69
+ return this.#hasMagic;
70
+ }
71
+ // reconstructs the pattern
72
+ toString() {
73
+ if (this.#toString !== undefined)
74
+ return this.#toString;
75
+ if (!this.type) {
76
+ return (this.#toString = this.#parts.map(p => String(p)).join(''));
77
+ }
78
+ else {
79
+ return (this.#toString =
80
+ this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
81
+ }
82
+ }
83
+ #fillNegs() {
84
+ /* c8 ignore start */
85
+ if (this !== this.#root)
86
+ throw new Error('should only call on root');
87
+ if (this.#filledNegs)
88
+ return this;
89
+ /* c8 ignore stop */
90
+ // call toString() once to fill this out
91
+ this.toString();
92
+ this.#filledNegs = true;
93
+ let n;
94
+ while ((n = this.#negs.pop())) {
95
+ if (n.type !== '!')
96
+ continue;
97
+ // walk up the tree, appending everthing that comes AFTER parentIndex
98
+ let p = n;
99
+ let pp = p.#parent;
100
+ while (pp) {
101
+ for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
102
+ for (const part of n.#parts) {
103
+ /* c8 ignore start */
104
+ if (typeof part === 'string') {
105
+ throw new Error('string part in extglob AST??');
106
+ }
107
+ /* c8 ignore stop */
108
+ part.copyIn(pp.#parts[i]);
109
+ }
110
+ }
111
+ p = pp;
112
+ pp = p.#parent;
113
+ }
114
+ }
115
+ return this;
116
+ }
117
+ push(...parts) {
118
+ for (const p of parts) {
119
+ if (p === '')
120
+ continue;
121
+ /* c8 ignore start */
122
+ if (typeof p !== 'string' && !(p instanceof AST && p.#parent === this)) {
123
+ throw new Error('invalid part: ' + p);
124
+ }
125
+ /* c8 ignore stop */
126
+ this.#parts.push(p);
127
+ }
128
+ }
129
+ toJSON() {
130
+ const ret = this.type === null
131
+ ? this.#parts.slice().map(p => (typeof p === 'string' ? p : p.toJSON()))
132
+ : [this.type, ...this.#parts.map(p => p.toJSON())];
133
+ if (this.isStart() && !this.type)
134
+ ret.unshift([]);
135
+ if (this.isEnd() &&
136
+ (this === this.#root ||
137
+ (this.#root.#filledNegs && this.#parent?.type === '!'))) {
138
+ ret.push({});
139
+ }
140
+ return ret;
141
+ }
142
+ isStart() {
143
+ if (this.#root === this)
144
+ return true;
145
+ // if (this.type) return !!this.#parent?.isStart()
146
+ if (!this.#parent?.isStart())
147
+ return false;
148
+ if (this.#parentIndex === 0)
149
+ return true;
150
+ // if everything AHEAD of this is a negation, then it's still the "start"
151
+ const p = this.#parent;
152
+ for (let i = 0; i < this.#parentIndex; i++) {
153
+ const pp = p.#parts[i];
154
+ if (!(pp instanceof AST && pp.type === '!')) {
155
+ return false;
156
+ }
157
+ }
158
+ return true;
159
+ }
160
+ isEnd() {
161
+ if (this.#root === this)
162
+ return true;
163
+ if (this.#parent?.type === '!')
164
+ return true;
165
+ if (!this.#parent?.isEnd())
166
+ return false;
167
+ if (!this.type)
168
+ return this.#parent?.isEnd();
169
+ // if not root, it'll always have a parent
170
+ /* c8 ignore start */
171
+ const pl = this.#parent ? this.#parent.#parts.length : 0;
172
+ /* c8 ignore stop */
173
+ return this.#parentIndex === pl - 1;
174
+ }
175
+ copyIn(part) {
176
+ if (typeof part === 'string')
177
+ this.push(part);
178
+ else
179
+ this.push(part.clone(this));
180
+ }
181
+ clone(parent) {
182
+ const c = new AST(this.type, parent);
183
+ for (const p of this.#parts) {
184
+ c.copyIn(p);
185
+ }
186
+ return c;
187
+ }
188
+ static #parseAST(str, ast, pos, opt) {
189
+ let escaping = false;
190
+ let inBrace = false;
191
+ let braceStart = -1;
192
+ let braceNeg = false;
193
+ if (ast.type === null) {
194
+ // outside of a extglob, append until we find a start
195
+ let i = pos;
196
+ let acc = '';
197
+ while (i < str.length) {
198
+ const c = str.charAt(i++);
199
+ // still accumulate escapes at this point, but we do ignore
200
+ // starts that are escaped
201
+ if (escaping || c === '\\') {
202
+ escaping = !escaping;
203
+ acc += c;
204
+ continue;
205
+ }
206
+ if (inBrace) {
207
+ if (i === braceStart + 1) {
208
+ if (c === '^' || c === '!') {
209
+ braceNeg = true;
210
+ }
211
+ }
212
+ else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
213
+ inBrace = false;
214
+ }
215
+ acc += c;
216
+ continue;
217
+ }
218
+ else if (c === '[') {
219
+ inBrace = true;
220
+ braceStart = i;
221
+ braceNeg = false;
222
+ acc += c;
223
+ continue;
224
+ }
225
+ if (!opt.noext && isExtglobType(c) && str.charAt(i) === '(') {
226
+ ast.push(acc);
227
+ acc = '';
228
+ const ext = new AST(c, ast);
229
+ i = AST.#parseAST(str, ext, i, opt);
230
+ ast.push(ext);
231
+ continue;
232
+ }
233
+ acc += c;
234
+ }
235
+ ast.push(acc);
236
+ return i;
237
+ }
238
+ // some kind of extglob, pos is at the (
239
+ // find the next | or )
240
+ let i = pos + 1;
241
+ let part = new AST(null, ast);
242
+ const parts = [];
243
+ let acc = '';
244
+ while (i < str.length) {
245
+ const c = str.charAt(i++);
246
+ // still accumulate escapes at this point, but we do ignore
247
+ // starts that are escaped
248
+ if (escaping || c === '\\') {
249
+ escaping = !escaping;
250
+ acc += c;
251
+ continue;
252
+ }
253
+ if (inBrace) {
254
+ if (i === braceStart + 1) {
255
+ if (c === '^' || c === '!') {
256
+ braceNeg = true;
257
+ }
258
+ }
259
+ else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {
260
+ inBrace = false;
261
+ }
262
+ acc += c;
263
+ continue;
264
+ }
265
+ else if (c === '[') {
266
+ inBrace = true;
267
+ braceStart = i;
268
+ braceNeg = false;
269
+ acc += c;
270
+ continue;
271
+ }
272
+ if (isExtglobType(c) && str.charAt(i) === '(') {
273
+ part.push(acc);
274
+ acc = '';
275
+ const ext = new AST(c, part);
276
+ part.push(ext);
277
+ i = AST.#parseAST(str, ext, i, opt);
278
+ continue;
279
+ }
280
+ if (c === '|') {
281
+ part.push(acc);
282
+ acc = '';
283
+ parts.push(part);
284
+ part = new AST(null, ast);
285
+ continue;
286
+ }
287
+ if (c === ')') {
288
+ if (acc === '' && ast.#parts.length === 0) {
289
+ ast.#emptyExt = true;
290
+ }
291
+ part.push(acc);
292
+ acc = '';
293
+ ast.push(...parts, part);
294
+ return i;
295
+ }
296
+ acc += c;
297
+ }
298
+ // unfinished extglob
299
+ // if we got here, it was a malformed extglob! not an extglob, but
300
+ // maybe something else in there.
301
+ ast.type = null;
302
+ ast.#hasMagic = undefined;
303
+ ast.#parts = [str.substring(pos - 1)];
304
+ return i;
305
+ }
306
+ static fromGlob(pattern, options = {}) {
307
+ const ast = new AST(null, undefined, options);
308
+ AST.#parseAST(pattern, ast, 0, options);
309
+ return ast;
310
+ }
311
+ // returns the regular expression if there's magic, or the unescaped
312
+ // string if not.
313
+ toMMPattern() {
314
+ // should only be called on root
315
+ /* c8 ignore start */
316
+ if (this !== this.#root)
317
+ return this.#root.toMMPattern();
318
+ /* c8 ignore stop */
319
+ const glob = this.toString();
320
+ const [re, body, hasMagic, uflag] = this.toRegExpSource();
321
+ // if we're in nocase mode, and not nocaseMagicOnly, then we do
322
+ // still need a regular expression if we have to case-insensitively
323
+ // match capital/lowercase characters.
324
+ const anyMagic = hasMagic ||
325
+ this.#hasMagic ||
326
+ (this.#options.nocase &&
327
+ !this.#options.nocaseMagicOnly &&
328
+ glob.toUpperCase() !== glob.toLowerCase());
329
+ if (!anyMagic) {
330
+ return body;
331
+ }
332
+ const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '');
333
+ return Object.assign(new RegExp(`^${re}$`, flags), {
334
+ _src: re,
335
+ _glob: glob,
336
+ });
337
+ }
338
+ get options() {
339
+ return this.#options;
340
+ }
341
+ // returns the string match, the regexp source, whether there's magic
342
+ // in the regexp (so a regular expression is required) and whether or
343
+ // not the uflag is needed for the regular expression (for posix classes)
344
+ // TODO: instead of injecting the start/end at this point, just return
345
+ // the BODY of the regexp, along with the start/end portions suitable
346
+ // for binding the start/end in either a joined full-path makeRe context
347
+ // (where we bind to (^|/), or a standalone matchPart context (where
348
+ // we bind to ^, and not /). Otherwise slashes get duped!
349
+ //
350
+ // In part-matching mode, the start is:
351
+ // - if not isStart: nothing
352
+ // - if traversal possible, but not allowed: ^(?!\.\.?$)
353
+ // - if dots allowed or not possible: ^
354
+ // - if dots possible and not allowed: ^(?!\.)
355
+ // end is:
356
+ // - if not isEnd(): nothing
357
+ // - else: $
358
+ //
359
+ // In full-path matching mode, we put the slash at the START of the
360
+ // pattern, so start is:
361
+ // - if first pattern: same as part-matching mode
362
+ // - if not isStart(): nothing
363
+ // - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
364
+ // - if dots allowed or not possible: /
365
+ // - if dots possible and not allowed: /(?!\.)
366
+ // end is:
367
+ // - if last pattern, same as part-matching mode
368
+ // - else nothing
369
+ //
370
+ // Always put the (?:$|/) on negated tails, though, because that has to be
371
+ // there to bind the end of the negated pattern portion, and it's easier to
372
+ // just stick it in now rather than try to inject it later in the middle of
373
+ // the pattern.
374
+ //
375
+ // We can just always return the same end, and leave it up to the caller
376
+ // to know whether it's going to be used joined or in parts.
377
+ // And, if the start is adjusted slightly, can do the same there:
378
+ // - if not isStart: nothing
379
+ // - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
380
+ // - if dots allowed or not possible: (?:/|^)
381
+ // - if dots possible and not allowed: (?:/|^)(?!\.)
382
+ //
383
+ // But it's better to have a simpler binding without a conditional, for
384
+ // performance, so probably better to return both start options.
385
+ //
386
+ // Then the caller just ignores the end if it's not the first pattern,
387
+ // and the start always gets applied.
388
+ //
389
+ // But that's always going to be $ if it's the ending pattern, or nothing,
390
+ // so the caller can just attach $ at the end of the pattern when building.
391
+ //
392
+ // So the todo is:
393
+ // - better detect what kind of start is needed
394
+ // - return both flavors of starting pattern
395
+ // - attach $ at the end of the pattern when creating the actual RegExp
396
+ //
397
+ // Ah, but wait, no, that all only applies to the root when the first pattern
398
+ // is not an extglob. If the first pattern IS an extglob, then we need all
399
+ // that dot prevention biz to live in the extglob portions, because eg
400
+ // +(*|.x*) can match .xy but not .yx.
401
+ //
402
+ // So, return the two flavors if it's #root and the first child is not an
403
+ // AST, otherwise leave it to the child AST to handle it, and there,
404
+ // use the (?:^|/) style of start binding.
405
+ //
406
+ // Even simplified further:
407
+ // - Since the start for a join is eg /(?!\.) and the start for a part
408
+ // is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
409
+ // or start or whatever) and prepend ^ or / at the Regexp construction.
410
+ toRegExpSource(allowDot) {
411
+ const dot = allowDot ?? !!this.#options.dot;
412
+ if (this.#root === this)
413
+ this.#fillNegs();
414
+ if (!this.type) {
415
+ const noEmpty = this.isStart() && this.isEnd();
416
+ const src = this.#parts
417
+ .map(p => {
418
+ const [re, _, hasMagic, uflag] = typeof p === 'string'
419
+ ? AST.#parseGlob(p, this.#hasMagic, noEmpty)
420
+ : p.toRegExpSource(allowDot);
421
+ this.#hasMagic = this.#hasMagic || hasMagic;
422
+ this.#uflag = this.#uflag || uflag;
423
+ return re;
424
+ })
425
+ .join('');
426
+ let start = '';
427
+ if (this.isStart()) {
428
+ if (typeof this.#parts[0] === 'string') {
429
+ // this is the string that will match the start of the pattern,
430
+ // so we need to protect against dots and such.
431
+ // '.' and '..' cannot match unless the pattern is that exactly,
432
+ // even if it starts with . or dot:true is set.
433
+ const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
434
+ if (!dotTravAllowed) {
435
+ const aps = addPatternStart;
436
+ // check if we have a possibility of matching . or ..,
437
+ // and prevent that.
438
+ const needNoTrav =
439
+ // dots are allowed, and the pattern starts with [ or .
440
+ (dot && aps.has(src.charAt(0))) ||
441
+ // the pattern starts with \., and then [ or .
442
+ (src.startsWith('\\.') && aps.has(src.charAt(2))) ||
443
+ // the pattern starts with \.\., and then [ or .
444
+ (src.startsWith('\\.\\.') && aps.has(src.charAt(4)));
445
+ // no need to prevent dots if it can't match a dot, or if a
446
+ // sub-pattern will be preventing it anyway.
447
+ const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
448
+ start = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : '';
449
+ }
450
+ }
451
+ }
452
+ // append the "end of path portion" pattern to negation tails
453
+ let end = '';
454
+ if (this.isEnd() &&
455
+ this.#root.#filledNegs &&
456
+ this.#parent?.type === '!') {
457
+ end = '(?:$|\\/)';
458
+ }
459
+ const final = start + src + end;
460
+ return [
461
+ final,
462
+ unescape(src),
463
+ (this.#hasMagic = !!this.#hasMagic),
464
+ this.#uflag,
465
+ ];
466
+ }
467
+ // We need to calculate the body *twice* if it's a repeat pattern
468
+ // at the start, once in nodot mode, then again in dot mode, so a
469
+ // pattern like *(?) can match 'x.y'
470
+ const repeated = this.type === '*' || this.type === '+';
471
+ // some kind of extglob
472
+ const start = this.type === '!' ? '(?:(?!(?:' : '(?:';
473
+ let body = this.#partsToRegExp(dot);
474
+ if (this.isStart() && this.isEnd() && !body && this.type !== '!') {
475
+ // invalid extglob, has to at least be *something* present, if it's
476
+ // the entire path portion.
477
+ const s = this.toString();
478
+ this.#parts = [s];
479
+ this.type = null;
480
+ this.#hasMagic = undefined;
481
+ return [s, unescape(this.toString()), false, false];
482
+ }
483
+ // XXX abstract out this map method
484
+ let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot
485
+ ? ''
486
+ : this.#partsToRegExp(true);
487
+ if (bodyDotAllowed === body) {
488
+ bodyDotAllowed = '';
489
+ }
490
+ if (bodyDotAllowed) {
491
+ body = `(?:${body})(?:${bodyDotAllowed})*?`;
492
+ }
493
+ // an empty !() is exactly equivalent to a starNoEmpty
494
+ let final = '';
495
+ if (this.type === '!' && this.#emptyExt) {
496
+ final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty;
497
+ }
498
+ else {
499
+ const close = this.type === '!'
500
+ ? // !() must match something,but !(x) can match ''
501
+ '))' +
502
+ (this.isStart() && !dot && !allowDot ? startNoDot : '') +
503
+ star +
504
+ ')'
505
+ : this.type === '@'
506
+ ? ')'
507
+ : this.type === '?'
508
+ ? ')?'
509
+ : this.type === '+' && bodyDotAllowed
510
+ ? ')'
511
+ : this.type === '*' && bodyDotAllowed
512
+ ? `)?`
513
+ : `)${this.type}`;
514
+ final = start + body + close;
515
+ }
516
+ return [
517
+ final,
518
+ unescape(body),
519
+ (this.#hasMagic = !!this.#hasMagic),
520
+ this.#uflag,
521
+ ];
522
+ }
523
+ #partsToRegExp(dot) {
524
+ return this.#parts
525
+ .map(p => {
526
+ // extglob ASTs should only contain parent ASTs
527
+ /* c8 ignore start */
528
+ if (typeof p === 'string') {
529
+ throw new Error('string type in extglob ast??');
530
+ }
531
+ /* c8 ignore stop */
532
+ // can ignore hasMagic, because extglobs are already always magic
533
+ const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot);
534
+ this.#uflag = this.#uflag || uflag;
535
+ return re;
536
+ })
537
+ .filter(p => !(this.isStart() && this.isEnd()) || !!p)
538
+ .join('|');
539
+ }
540
+ static #parseGlob(glob, hasMagic, noEmpty = false) {
541
+ let escaping = false;
542
+ let re = '';
543
+ let uflag = false;
544
+ for (let i = 0; i < glob.length; i++) {
545
+ const c = glob.charAt(i);
546
+ if (escaping) {
547
+ escaping = false;
548
+ re += (reSpecials.has(c) ? '\\' : '') + c;
549
+ continue;
550
+ }
551
+ if (c === '\\') {
552
+ if (i === glob.length - 1) {
553
+ re += '\\\\';
554
+ }
555
+ else {
556
+ escaping = true;
557
+ }
558
+ continue;
559
+ }
560
+ if (c === '[') {
561
+ const [src, needUflag, consumed, magic] = parseClass(glob, i);
562
+ if (consumed) {
563
+ re += src;
564
+ uflag = uflag || needUflag;
565
+ i += consumed - 1;
566
+ hasMagic = hasMagic || magic;
567
+ continue;
568
+ }
569
+ }
570
+ if (c === '*') {
571
+ if (noEmpty && glob === '*')
572
+ re += starNoEmpty;
573
+ else
574
+ re += star;
575
+ hasMagic = true;
576
+ continue;
577
+ }
578
+ if (c === '?') {
579
+ re += qmark;
580
+ hasMagic = true;
581
+ continue;
582
+ }
583
+ re += regExpEscape(c);
584
+ }
585
+ return [re, unescape(glob), !!hasMagic, uflag];
586
+ }
587
+ }
588
+ //# sourceMappingURL=ast.js.map