@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,1000 @@
1
+ import expand from 'brace-expansion';
2
+ import { assertValidPattern } from './assert-valid-pattern.js';
3
+ import { AST } from './ast.js';
4
+ import { escape } from './escape.js';
5
+ import { unescape } from './unescape.js';
6
+ export const minimatch = (p, pattern, options = {}) => {
7
+ assertValidPattern(pattern);
8
+ // shortcut: comments match nothing.
9
+ if (!options.nocomment && pattern.charAt(0) === '#') {
10
+ return false;
11
+ }
12
+ return new Minimatch(pattern, options).match(p);
13
+ };
14
+ // Optimized checking for the most common glob patterns.
15
+ const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
16
+ const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);
17
+ const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
18
+ const starDotExtTestNocase = (ext) => {
19
+ ext = ext.toLowerCase();
20
+ return (f) => !f.startsWith('.') && f.toLowerCase().endsWith(ext);
21
+ };
22
+ const starDotExtTestNocaseDot = (ext) => {
23
+ ext = ext.toLowerCase();
24
+ return (f) => f.toLowerCase().endsWith(ext);
25
+ };
26
+ const starDotStarRE = /^\*+\.\*+$/;
27
+ const starDotStarTest = (f) => !f.startsWith('.') && f.includes('.');
28
+ const starDotStarTestDot = (f) => f !== '.' && f !== '..' && f.includes('.');
29
+ const dotStarRE = /^\.\*+$/;
30
+ const dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.');
31
+ const starRE = /^\*+$/;
32
+ const starTest = (f) => f.length !== 0 && !f.startsWith('.');
33
+ const starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..';
34
+ const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
35
+ const qmarksTestNocase = ([$0, ext = '']) => {
36
+ const noext = qmarksTestNoExt([$0]);
37
+ if (!ext)
38
+ return noext;
39
+ ext = ext.toLowerCase();
40
+ return (f) => noext(f) && f.toLowerCase().endsWith(ext);
41
+ };
42
+ const qmarksTestNocaseDot = ([$0, ext = '']) => {
43
+ const noext = qmarksTestNoExtDot([$0]);
44
+ if (!ext)
45
+ return noext;
46
+ ext = ext.toLowerCase();
47
+ return (f) => noext(f) && f.toLowerCase().endsWith(ext);
48
+ };
49
+ const qmarksTestDot = ([$0, ext = '']) => {
50
+ const noext = qmarksTestNoExtDot([$0]);
51
+ return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
52
+ };
53
+ const qmarksTest = ([$0, ext = '']) => {
54
+ const noext = qmarksTestNoExt([$0]);
55
+ return !ext ? noext : (f) => noext(f) && f.endsWith(ext);
56
+ };
57
+ const qmarksTestNoExt = ([$0]) => {
58
+ const len = $0.length;
59
+ return (f) => f.length === len && !f.startsWith('.');
60
+ };
61
+ const qmarksTestNoExtDot = ([$0]) => {
62
+ const len = $0.length;
63
+ return (f) => f.length === len && f !== '.' && f !== '..';
64
+ };
65
+ /* c8 ignore start */
66
+ const defaultPlatform = (typeof process === 'object' && process
67
+ ? (typeof process.env === 'object' &&
68
+ process.env &&
69
+ process.env.__MINIMATCH_TESTING_PLATFORM__) ||
70
+ process.platform
71
+ : 'posix');
72
+ const path = {
73
+ win32: { sep: '\\' },
74
+ posix: { sep: '/' },
75
+ };
76
+ /* c8 ignore stop */
77
+ export const sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;
78
+ minimatch.sep = sep;
79
+ export const GLOBSTAR = Symbol('globstar **');
80
+ minimatch.GLOBSTAR = GLOBSTAR;
81
+ // any single thing other than /
82
+ // don't need to escape / when using new RegExp()
83
+ const qmark = '[^/]';
84
+ // * => any number of characters
85
+ const star = qmark + '*?';
86
+ // ** when dots are allowed. Anything goes, except .. and .
87
+ // not (^ or / followed by one or two dots followed by $ or /),
88
+ // followed by anything, any number of times.
89
+ const twoStarDot = '(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?';
90
+ // not a ^ or / followed by a dot,
91
+ // followed by anything, any number of times.
92
+ const twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?';
93
+ export const filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
94
+ minimatch.filter = filter;
95
+ const ext = (a, b = {}) => Object.assign({}, a, b);
96
+ export const defaults = (def) => {
97
+ if (!def || typeof def !== 'object' || !Object.keys(def).length) {
98
+ return minimatch;
99
+ }
100
+ const orig = minimatch;
101
+ const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
102
+ return Object.assign(m, {
103
+ Minimatch: class Minimatch extends orig.Minimatch {
104
+ constructor(pattern, options = {}) {
105
+ super(pattern, ext(def, options));
106
+ }
107
+ static defaults(options) {
108
+ return orig.defaults(ext(def, options)).Minimatch;
109
+ }
110
+ },
111
+ AST: class AST extends orig.AST {
112
+ /* c8 ignore start */
113
+ constructor(type, parent, options = {}) {
114
+ super(type, parent, ext(def, options));
115
+ }
116
+ /* c8 ignore stop */
117
+ static fromGlob(pattern, options = {}) {
118
+ return orig.AST.fromGlob(pattern, ext(def, options));
119
+ }
120
+ },
121
+ unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
122
+ escape: (s, options = {}) => orig.escape(s, ext(def, options)),
123
+ filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
124
+ defaults: (options) => orig.defaults(ext(def, options)),
125
+ makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
126
+ braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
127
+ match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
128
+ sep: orig.sep,
129
+ GLOBSTAR: GLOBSTAR,
130
+ });
131
+ };
132
+ minimatch.defaults = defaults;
133
+ // Brace expansion:
134
+ // a{b,c}d -> abd acd
135
+ // a{b,}c -> abc ac
136
+ // a{0..3}d -> a0d a1d a2d a3d
137
+ // a{b,c{d,e}f}g -> abg acdfg acefg
138
+ // a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
139
+ //
140
+ // Invalid sets are not expanded.
141
+ // a{2..}b -> a{2..}b
142
+ // a{b}c -> a{b}c
143
+ export const braceExpand = (pattern, options = {}) => {
144
+ assertValidPattern(pattern);
145
+ // Thanks to Yeting Li <https://github.com/yetingli> for
146
+ // improving this regexp to avoid a ReDOS vulnerability.
147
+ if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
148
+ // shortcut. no need to expand.
149
+ return [pattern];
150
+ }
151
+ return expand(pattern);
152
+ };
153
+ minimatch.braceExpand = braceExpand;
154
+ // parse a component of the expanded set.
155
+ // At this point, no pattern may contain "/" in it
156
+ // so we're going to return a 2d array, where each entry is the full
157
+ // pattern, split on '/', and then turned into a regular expression.
158
+ // A regexp is made at the end which joins each array with an
159
+ // escaped /, and another full one which joins each regexp with |.
160
+ //
161
+ // Following the lead of Bash 4.1, note that "**" only has special meaning
162
+ // when it is the *only* thing in a path portion. Otherwise, any series
163
+ // of * is equivalent to a single *. Globstar behavior is enabled by
164
+ // default, and can be disabled by setting options.noglobstar.
165
+ export const makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
166
+ minimatch.makeRe = makeRe;
167
+ export const match = (list, pattern, options = {}) => {
168
+ const mm = new Minimatch(pattern, options);
169
+ list = list.filter(f => mm.match(f));
170
+ if (mm.options.nonull && !list.length) {
171
+ list.push(pattern);
172
+ }
173
+ return list;
174
+ };
175
+ minimatch.match = match;
176
+ // replace stuff like \* with *
177
+ const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
178
+ const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
179
+ export class Minimatch {
180
+ options;
181
+ set;
182
+ pattern;
183
+ windowsPathsNoEscape;
184
+ nonegate;
185
+ negate;
186
+ comment;
187
+ empty;
188
+ preserveMultipleSlashes;
189
+ partial;
190
+ globSet;
191
+ globParts;
192
+ nocase;
193
+ isWindows;
194
+ platform;
195
+ windowsNoMagicRoot;
196
+ regexp;
197
+ constructor(pattern, options = {}) {
198
+ assertValidPattern(pattern);
199
+ options = options || {};
200
+ this.options = options;
201
+ this.pattern = pattern;
202
+ this.platform = options.platform || defaultPlatform;
203
+ this.isWindows = this.platform === 'win32';
204
+ this.windowsPathsNoEscape =
205
+ !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
206
+ if (this.windowsPathsNoEscape) {
207
+ this.pattern = this.pattern.replace(/\\/g, '/');
208
+ }
209
+ this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
210
+ this.regexp = null;
211
+ this.negate = false;
212
+ this.nonegate = !!options.nonegate;
213
+ this.comment = false;
214
+ this.empty = false;
215
+ this.partial = !!options.partial;
216
+ this.nocase = !!this.options.nocase;
217
+ this.windowsNoMagicRoot =
218
+ options.windowsNoMagicRoot !== undefined
219
+ ? options.windowsNoMagicRoot
220
+ : !!(this.isWindows && this.nocase);
221
+ this.globSet = [];
222
+ this.globParts = [];
223
+ this.set = [];
224
+ // make the set of regexps etc.
225
+ this.make();
226
+ }
227
+ hasMagic() {
228
+ if (this.options.magicalBraces && this.set.length > 1) {
229
+ return true;
230
+ }
231
+ for (const pattern of this.set) {
232
+ for (const part of pattern) {
233
+ if (typeof part !== 'string')
234
+ return true;
235
+ }
236
+ }
237
+ return false;
238
+ }
239
+ debug(..._) { }
240
+ make() {
241
+ const pattern = this.pattern;
242
+ const options = this.options;
243
+ // empty patterns and comments match nothing.
244
+ if (!options.nocomment && pattern.charAt(0) === '#') {
245
+ this.comment = true;
246
+ return;
247
+ }
248
+ if (!pattern) {
249
+ this.empty = true;
250
+ return;
251
+ }
252
+ // step 1: figure out negation, etc.
253
+ this.parseNegate();
254
+ // step 2: expand braces
255
+ this.globSet = [...new Set(this.braceExpand())];
256
+ if (options.debug) {
257
+ this.debug = (...args) => console.error(...args);
258
+ }
259
+ this.debug(this.pattern, this.globSet);
260
+ // step 3: now we have a set, so turn each one into a series of
261
+ // path-portion matching patterns.
262
+ // These will be regexps, except in the case of "**", which is
263
+ // set to the GLOBSTAR object for globstar behavior,
264
+ // and will not contain any / characters
265
+ //
266
+ // First, we preprocess to make the glob pattern sets a bit simpler
267
+ // and deduped. There are some perf-killing patterns that can cause
268
+ // problems with a glob walk, but we can simplify them down a bit.
269
+ const rawGlobParts = this.globSet.map(s => this.slashSplit(s));
270
+ this.globParts = this.preprocess(rawGlobParts);
271
+ this.debug(this.pattern, this.globParts);
272
+ // glob --> regexps
273
+ let set = this.globParts.map((s, _, __) => {
274
+ if (this.isWindows && this.windowsNoMagicRoot) {
275
+ // check if it's a drive or unc path.
276
+ const isUNC = s[0] === '' &&
277
+ s[1] === '' &&
278
+ (s[2] === '?' || !globMagic.test(s[2])) &&
279
+ !globMagic.test(s[3]);
280
+ const isDrive = /^[a-z]:/i.test(s[0]);
281
+ if (isUNC) {
282
+ return [...s.slice(0, 4), ...s.slice(4).map(ss => this.parse(ss))];
283
+ }
284
+ else if (isDrive) {
285
+ return [s[0], ...s.slice(1).map(ss => this.parse(ss))];
286
+ }
287
+ }
288
+ return s.map(ss => this.parse(ss));
289
+ });
290
+ this.debug(this.pattern, set);
291
+ // filter out everything that didn't compile properly.
292
+ this.set = set.filter(s => s.indexOf(false) === -1);
293
+ // do not treat the ? in UNC paths as magic
294
+ if (this.isWindows) {
295
+ for (let i = 0; i < this.set.length; i++) {
296
+ const p = this.set[i];
297
+ if (p[0] === '' &&
298
+ p[1] === '' &&
299
+ this.globParts[i][2] === '?' &&
300
+ typeof p[3] === 'string' &&
301
+ /^[a-z]:$/i.test(p[3])) {
302
+ p[2] = '?';
303
+ }
304
+ }
305
+ }
306
+ this.debug(this.pattern, this.set);
307
+ }
308
+ // various transforms to equivalent pattern sets that are
309
+ // faster to process in a filesystem walk. The goal is to
310
+ // eliminate what we can, and push all ** patterns as far
311
+ // to the right as possible, even if it increases the number
312
+ // of patterns that we have to process.
313
+ preprocess(globParts) {
314
+ // if we're not in globstar mode, then turn all ** into *
315
+ if (this.options.noglobstar) {
316
+ for (let i = 0; i < globParts.length; i++) {
317
+ for (let j = 0; j < globParts[i].length; j++) {
318
+ if (globParts[i][j] === '**') {
319
+ globParts[i][j] = '*';
320
+ }
321
+ }
322
+ }
323
+ }
324
+ const { optimizationLevel = 1 } = this.options;
325
+ if (optimizationLevel >= 2) {
326
+ // aggressive optimization for the purpose of fs walking
327
+ globParts = this.firstPhasePreProcess(globParts);
328
+ globParts = this.secondPhasePreProcess(globParts);
329
+ }
330
+ else if (optimizationLevel >= 1) {
331
+ // just basic optimizations to remove some .. parts
332
+ globParts = this.levelOneOptimize(globParts);
333
+ }
334
+ else {
335
+ // just collapse multiple ** portions into one
336
+ globParts = this.adjascentGlobstarOptimize(globParts);
337
+ }
338
+ return globParts;
339
+ }
340
+ // just get rid of adjascent ** portions
341
+ adjascentGlobstarOptimize(globParts) {
342
+ return globParts.map(parts => {
343
+ let gs = -1;
344
+ while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
345
+ let i = gs;
346
+ while (parts[i + 1] === '**') {
347
+ i++;
348
+ }
349
+ if (i !== gs) {
350
+ parts.splice(gs, i - gs);
351
+ }
352
+ }
353
+ return parts;
354
+ });
355
+ }
356
+ // get rid of adjascent ** and resolve .. portions
357
+ levelOneOptimize(globParts) {
358
+ return globParts.map(parts => {
359
+ parts = parts.reduce((set, part) => {
360
+ const prev = set[set.length - 1];
361
+ if (part === '**' && prev === '**') {
362
+ return set;
363
+ }
364
+ if (part === '..') {
365
+ if (prev && prev !== '..' && prev !== '.' && prev !== '**') {
366
+ set.pop();
367
+ return set;
368
+ }
369
+ }
370
+ set.push(part);
371
+ return set;
372
+ }, []);
373
+ return parts.length === 0 ? [''] : parts;
374
+ });
375
+ }
376
+ levelTwoFileOptimize(parts) {
377
+ if (!Array.isArray(parts)) {
378
+ parts = this.slashSplit(parts);
379
+ }
380
+ let didSomething = false;
381
+ do {
382
+ didSomething = false;
383
+ // <pre>/<e>/<rest> -> <pre>/<rest>
384
+ if (!this.preserveMultipleSlashes) {
385
+ for (let i = 1; i < parts.length - 1; i++) {
386
+ const p = parts[i];
387
+ // don't squeeze out UNC patterns
388
+ if (i === 1 && p === '' && parts[0] === '')
389
+ continue;
390
+ if (p === '.' || p === '') {
391
+ didSomething = true;
392
+ parts.splice(i, 1);
393
+ i--;
394
+ }
395
+ }
396
+ if (parts[0] === '.' &&
397
+ parts.length === 2 &&
398
+ (parts[1] === '.' || parts[1] === '')) {
399
+ didSomething = true;
400
+ parts.pop();
401
+ }
402
+ }
403
+ // <pre>/<p>/../<rest> -> <pre>/<rest>
404
+ let dd = 0;
405
+ while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
406
+ const p = parts[dd - 1];
407
+ if (p && p !== '.' && p !== '..' && p !== '**') {
408
+ didSomething = true;
409
+ parts.splice(dd - 1, 2);
410
+ dd -= 2;
411
+ }
412
+ }
413
+ } while (didSomething);
414
+ return parts.length === 0 ? [''] : parts;
415
+ }
416
+ // First phase: single-pattern processing
417
+ // <pre> is 1 or more portions
418
+ // <rest> is 1 or more portions
419
+ // <p> is any portion other than ., .., '', or **
420
+ // <e> is . or ''
421
+ //
422
+ // **/.. is *brutal* for filesystem walking performance, because
423
+ // it effectively resets the recursive walk each time it occurs,
424
+ // and ** cannot be reduced out by a .. pattern part like a regexp
425
+ // or most strings (other than .., ., and '') can be.
426
+ //
427
+ // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
428
+ // <pre>/<e>/<rest> -> <pre>/<rest>
429
+ // <pre>/<p>/../<rest> -> <pre>/<rest>
430
+ // **/**/<rest> -> **/<rest>
431
+ //
432
+ // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
433
+ // this WOULD be allowed if ** did follow symlinks, or * didn't
434
+ firstPhasePreProcess(globParts) {
435
+ let didSomething = false;
436
+ do {
437
+ didSomething = false;
438
+ // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
439
+ for (let parts of globParts) {
440
+ let gs = -1;
441
+ while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
442
+ let gss = gs;
443
+ while (parts[gss + 1] === '**') {
444
+ // <pre>/**/**/<rest> -> <pre>/**/<rest>
445
+ gss++;
446
+ }
447
+ // eg, if gs is 2 and gss is 4, that means we have 3 **
448
+ // parts, and can remove 2 of them.
449
+ if (gss > gs) {
450
+ parts.splice(gs + 1, gss - gs);
451
+ }
452
+ let next = parts[gs + 1];
453
+ const p = parts[gs + 2];
454
+ const p2 = parts[gs + 3];
455
+ if (next !== '..')
456
+ continue;
457
+ if (!p ||
458
+ p === '.' ||
459
+ p === '..' ||
460
+ !p2 ||
461
+ p2 === '.' ||
462
+ p2 === '..') {
463
+ continue;
464
+ }
465
+ didSomething = true;
466
+ // edit parts in place, and push the new one
467
+ parts.splice(gs, 1);
468
+ const other = parts.slice(0);
469
+ other[gs] = '**';
470
+ globParts.push(other);
471
+ gs--;
472
+ }
473
+ // <pre>/<e>/<rest> -> <pre>/<rest>
474
+ if (!this.preserveMultipleSlashes) {
475
+ for (let i = 1; i < parts.length - 1; i++) {
476
+ const p = parts[i];
477
+ // don't squeeze out UNC patterns
478
+ if (i === 1 && p === '' && parts[0] === '')
479
+ continue;
480
+ if (p === '.' || p === '') {
481
+ didSomething = true;
482
+ parts.splice(i, 1);
483
+ i--;
484
+ }
485
+ }
486
+ if (parts[0] === '.' &&
487
+ parts.length === 2 &&
488
+ (parts[1] === '.' || parts[1] === '')) {
489
+ didSomething = true;
490
+ parts.pop();
491
+ }
492
+ }
493
+ // <pre>/<p>/../<rest> -> <pre>/<rest>
494
+ let dd = 0;
495
+ while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
496
+ const p = parts[dd - 1];
497
+ if (p && p !== '.' && p !== '..' && p !== '**') {
498
+ didSomething = true;
499
+ const needDot = dd === 1 && parts[dd + 1] === '**';
500
+ const splin = needDot ? ['.'] : [];
501
+ parts.splice(dd - 1, 2, ...splin);
502
+ if (parts.length === 0)
503
+ parts.push('');
504
+ dd -= 2;
505
+ }
506
+ }
507
+ }
508
+ } while (didSomething);
509
+ return globParts;
510
+ }
511
+ // second phase: multi-pattern dedupes
512
+ // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
513
+ // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
514
+ // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
515
+ //
516
+ // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
517
+ // ^-- not valid because ** doens't follow symlinks
518
+ secondPhasePreProcess(globParts) {
519
+ for (let i = 0; i < globParts.length - 1; i++) {
520
+ for (let j = i + 1; j < globParts.length; j++) {
521
+ const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
522
+ if (!matched)
523
+ continue;
524
+ globParts[i] = matched;
525
+ globParts[j] = [];
526
+ }
527
+ }
528
+ return globParts.filter(gs => gs.length);
529
+ }
530
+ partsMatch(a, b, emptyGSMatch = false) {
531
+ let ai = 0;
532
+ let bi = 0;
533
+ let result = [];
534
+ let which = '';
535
+ while (ai < a.length && bi < b.length) {
536
+ if (a[ai] === b[bi]) {
537
+ result.push(which === 'b' ? b[bi] : a[ai]);
538
+ ai++;
539
+ bi++;
540
+ }
541
+ else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {
542
+ result.push(a[ai]);
543
+ ai++;
544
+ }
545
+ else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {
546
+ result.push(b[bi]);
547
+ bi++;
548
+ }
549
+ else if (a[ai] === '*' &&
550
+ b[bi] &&
551
+ (this.options.dot || !b[bi].startsWith('.')) &&
552
+ b[bi] !== '**') {
553
+ if (which === 'b')
554
+ return false;
555
+ which = 'a';
556
+ result.push(a[ai]);
557
+ ai++;
558
+ bi++;
559
+ }
560
+ else if (b[bi] === '*' &&
561
+ a[ai] &&
562
+ (this.options.dot || !a[ai].startsWith('.')) &&
563
+ a[ai] !== '**') {
564
+ if (which === 'a')
565
+ return false;
566
+ which = 'b';
567
+ result.push(b[bi]);
568
+ ai++;
569
+ bi++;
570
+ }
571
+ else {
572
+ return false;
573
+ }
574
+ }
575
+ // if we fall out of the loop, it means they two are identical
576
+ // as long as their lengths match
577
+ return a.length === b.length && result;
578
+ }
579
+ parseNegate() {
580
+ if (this.nonegate)
581
+ return;
582
+ const pattern = this.pattern;
583
+ let negate = false;
584
+ let negateOffset = 0;
585
+ for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
586
+ negate = !negate;
587
+ negateOffset++;
588
+ }
589
+ if (negateOffset)
590
+ this.pattern = pattern.slice(negateOffset);
591
+ this.negate = negate;
592
+ }
593
+ // set partial to true to test if, for example,
594
+ // "/a/b" matches the start of "/*/b/*/d"
595
+ // Partial means, if you run out of file before you run
596
+ // out of pattern, then that's fine, as long as all
597
+ // the parts match.
598
+ matchOne(file, pattern, partial = false) {
599
+ const options = this.options;
600
+ // UNC paths like //?/X:/... can match X:/... and vice versa
601
+ // Drive letters in absolute drive or unc paths are always compared
602
+ // case-insensitively.
603
+ if (this.isWindows) {
604
+ const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0]);
605
+ const fileUNC = !fileDrive &&
606
+ file[0] === '' &&
607
+ file[1] === '' &&
608
+ file[2] === '?' &&
609
+ /^[a-z]:$/i.test(file[3]);
610
+ const patternDrive = typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0]);
611
+ const patternUNC = !patternDrive &&
612
+ pattern[0] === '' &&
613
+ pattern[1] === '' &&
614
+ pattern[2] === '?' &&
615
+ typeof pattern[3] === 'string' &&
616
+ /^[a-z]:$/i.test(pattern[3]);
617
+ const fdi = fileUNC ? 3 : fileDrive ? 0 : undefined;
618
+ const pdi = patternUNC ? 3 : patternDrive ? 0 : undefined;
619
+ if (typeof fdi === 'number' && typeof pdi === 'number') {
620
+ const [fd, pd] = [file[fdi], pattern[pdi]];
621
+ if (fd.toLowerCase() === pd.toLowerCase()) {
622
+ pattern[pdi] = fd;
623
+ if (pdi > fdi) {
624
+ pattern = pattern.slice(pdi);
625
+ }
626
+ else if (fdi > pdi) {
627
+ file = file.slice(fdi);
628
+ }
629
+ }
630
+ }
631
+ }
632
+ // resolve and reduce . and .. portions in the file as well.
633
+ // dont' need to do the second phase, because it's only one string[]
634
+ const { optimizationLevel = 1 } = this.options;
635
+ if (optimizationLevel >= 2) {
636
+ file = this.levelTwoFileOptimize(file);
637
+ }
638
+ this.debug('matchOne', this, { file, pattern });
639
+ this.debug('matchOne', file.length, pattern.length);
640
+ for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
641
+ this.debug('matchOne loop');
642
+ var p = pattern[pi];
643
+ var f = file[fi];
644
+ this.debug(pattern, p, f);
645
+ // should be impossible.
646
+ // some invalid regexp stuff in the set.
647
+ /* c8 ignore start */
648
+ if (p === false) {
649
+ return false;
650
+ }
651
+ /* c8 ignore stop */
652
+ if (p === GLOBSTAR) {
653
+ this.debug('GLOBSTAR', [pattern, p, f]);
654
+ // "**"
655
+ // a/**/b/**/c would match the following:
656
+ // a/b/x/y/z/c
657
+ // a/x/y/z/b/c
658
+ // a/b/x/b/x/c
659
+ // a/b/c
660
+ // To do this, take the rest of the pattern after
661
+ // the **, and see if it would match the file remainder.
662
+ // If so, return success.
663
+ // If not, the ** "swallows" a segment, and try again.
664
+ // This is recursively awful.
665
+ //
666
+ // a/**/b/**/c matching a/b/x/y/z/c
667
+ // - a matches a
668
+ // - doublestar
669
+ // - matchOne(b/x/y/z/c, b/**/c)
670
+ // - b matches b
671
+ // - doublestar
672
+ // - matchOne(x/y/z/c, c) -> no
673
+ // - matchOne(y/z/c, c) -> no
674
+ // - matchOne(z/c, c) -> no
675
+ // - matchOne(c, c) yes, hit
676
+ var fr = fi;
677
+ var pr = pi + 1;
678
+ if (pr === pl) {
679
+ this.debug('** at the end');
680
+ // a ** at the end will just swallow the rest.
681
+ // We have found a match.
682
+ // however, it will not swallow /.x, unless
683
+ // options.dot is set.
684
+ // . and .. are *never* matched by **, for explosively
685
+ // exponential reasons.
686
+ for (; fi < fl; fi++) {
687
+ if (file[fi] === '.' ||
688
+ file[fi] === '..' ||
689
+ (!options.dot && file[fi].charAt(0) === '.'))
690
+ return false;
691
+ }
692
+ return true;
693
+ }
694
+ // ok, let's see if we can swallow whatever we can.
695
+ while (fr < fl) {
696
+ var swallowee = file[fr];
697
+ this.debug('\nglobstar while', file, fr, pattern, pr, swallowee);
698
+ // XXX remove this slice. Just pass the start index.
699
+ if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
700
+ this.debug('globstar found match!', fr, fl, swallowee);
701
+ // found a match.
702
+ return true;
703
+ }
704
+ else {
705
+ // can't swallow "." or ".." ever.
706
+ // can only swallow ".foo" when explicitly asked.
707
+ if (swallowee === '.' ||
708
+ swallowee === '..' ||
709
+ (!options.dot && swallowee.charAt(0) === '.')) {
710
+ this.debug('dot detected!', file, fr, pattern, pr);
711
+ break;
712
+ }
713
+ // ** swallows a segment, and continue.
714
+ this.debug('globstar swallow a segment, and continue');
715
+ fr++;
716
+ }
717
+ }
718
+ // no match was found.
719
+ // However, in partial mode, we can't say this is necessarily over.
720
+ /* c8 ignore start */
721
+ if (partial) {
722
+ // ran out of file
723
+ this.debug('\n>>> no match, partial?', file, fr, pattern, pr);
724
+ if (fr === fl) {
725
+ return true;
726
+ }
727
+ }
728
+ /* c8 ignore stop */
729
+ return false;
730
+ }
731
+ // something other than **
732
+ // non-magic patterns just have to match exactly
733
+ // patterns with magic have been turned into regexps.
734
+ let hit;
735
+ if (typeof p === 'string') {
736
+ hit = f === p;
737
+ this.debug('string match', p, f, hit);
738
+ }
739
+ else {
740
+ hit = p.test(f);
741
+ this.debug('pattern match', p, f, hit);
742
+ }
743
+ if (!hit)
744
+ return false;
745
+ }
746
+ // Note: ending in / means that we'll get a final ""
747
+ // at the end of the pattern. This can only match a
748
+ // corresponding "" at the end of the file.
749
+ // If the file ends in /, then it can only match a
750
+ // a pattern that ends in /, unless the pattern just
751
+ // doesn't have any more for it. But, a/b/ should *not*
752
+ // match "a/b/*", even though "" matches against the
753
+ // [^/]*? pattern, except in partial mode, where it might
754
+ // simply not be reached yet.
755
+ // However, a/b/ should still satisfy a/*
756
+ // now either we fell off the end of the pattern, or we're done.
757
+ if (fi === fl && pi === pl) {
758
+ // ran out of pattern and filename at the same time.
759
+ // an exact hit!
760
+ return true;
761
+ }
762
+ else if (fi === fl) {
763
+ // ran out of file, but still had pattern left.
764
+ // this is ok if we're doing the match as part of
765
+ // a glob fs traversal.
766
+ return partial;
767
+ }
768
+ else if (pi === pl) {
769
+ // ran out of pattern, still have file left.
770
+ // this is only acceptable if we're on the very last
771
+ // empty segment of a file with a trailing slash.
772
+ // a/* should match a/b/
773
+ return fi === fl - 1 && file[fi] === '';
774
+ /* c8 ignore start */
775
+ }
776
+ else {
777
+ // should be unreachable.
778
+ throw new Error('wtf?');
779
+ }
780
+ /* c8 ignore stop */
781
+ }
782
+ braceExpand() {
783
+ return braceExpand(this.pattern, this.options);
784
+ }
785
+ parse(pattern) {
786
+ assertValidPattern(pattern);
787
+ const options = this.options;
788
+ // shortcuts
789
+ if (pattern === '**')
790
+ return GLOBSTAR;
791
+ if (pattern === '')
792
+ return '';
793
+ // far and away, the most common glob pattern parts are
794
+ // *, *.*, and *.<ext> Add a fast check method for those.
795
+ let m;
796
+ let fastTest = null;
797
+ if ((m = pattern.match(starRE))) {
798
+ fastTest = options.dot ? starTestDot : starTest;
799
+ }
800
+ else if ((m = pattern.match(starDotExtRE))) {
801
+ fastTest = (options.nocase
802
+ ? options.dot
803
+ ? starDotExtTestNocaseDot
804
+ : starDotExtTestNocase
805
+ : options.dot
806
+ ? starDotExtTestDot
807
+ : starDotExtTest)(m[1]);
808
+ }
809
+ else if ((m = pattern.match(qmarksRE))) {
810
+ fastTest = (options.nocase
811
+ ? options.dot
812
+ ? qmarksTestNocaseDot
813
+ : qmarksTestNocase
814
+ : options.dot
815
+ ? qmarksTestDot
816
+ : qmarksTest)(m);
817
+ }
818
+ else if ((m = pattern.match(starDotStarRE))) {
819
+ fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
820
+ }
821
+ else if ((m = pattern.match(dotStarRE))) {
822
+ fastTest = dotStarTest;
823
+ }
824
+ const re = AST.fromGlob(pattern, this.options).toMMPattern();
825
+ if (fastTest && typeof re === 'object') {
826
+ // Avoids overriding in frozen environments
827
+ Reflect.defineProperty(re, 'test', { value: fastTest });
828
+ }
829
+ return re;
830
+ }
831
+ makeRe() {
832
+ if (this.regexp || this.regexp === false)
833
+ return this.regexp;
834
+ // at this point, this.set is a 2d array of partial
835
+ // pattern strings, or "**".
836
+ //
837
+ // It's better to use .match(). This function shouldn't
838
+ // be used, really, but it's pretty convenient sometimes,
839
+ // when you just want to work with a regex.
840
+ const set = this.set;
841
+ if (!set.length) {
842
+ this.regexp = false;
843
+ return this.regexp;
844
+ }
845
+ const options = this.options;
846
+ const twoStar = options.noglobstar
847
+ ? star
848
+ : options.dot
849
+ ? twoStarDot
850
+ : twoStarNoDot;
851
+ const flags = new Set(options.nocase ? ['i'] : []);
852
+ // regexpify non-globstar patterns
853
+ // if ** is only item, then we just do one twoStar
854
+ // if ** is first, and there are more, prepend (\/|twoStar\/)? to next
855
+ // if ** is last, append (\/twoStar|) to previous
856
+ // if ** is in the middle, append (\/|\/twoStar\/) to previous
857
+ // then filter out GLOBSTAR symbols
858
+ let re = set
859
+ .map(pattern => {
860
+ const pp = pattern.map(p => {
861
+ if (p instanceof RegExp) {
862
+ for (const f of p.flags.split(''))
863
+ flags.add(f);
864
+ }
865
+ return typeof p === 'string'
866
+ ? regExpEscape(p)
867
+ : p === GLOBSTAR
868
+ ? GLOBSTAR
869
+ : p._src;
870
+ });
871
+ pp.forEach((p, i) => {
872
+ const next = pp[i + 1];
873
+ const prev = pp[i - 1];
874
+ if (p !== GLOBSTAR || prev === GLOBSTAR) {
875
+ return;
876
+ }
877
+ if (prev === undefined) {
878
+ if (next !== undefined && next !== GLOBSTAR) {
879
+ pp[i + 1] = '(?:\\/|' + twoStar + '\\/)?' + next;
880
+ }
881
+ else {
882
+ pp[i] = twoStar;
883
+ }
884
+ }
885
+ else if (next === undefined) {
886
+ pp[i - 1] = prev + '(?:\\/|' + twoStar + ')?';
887
+ }
888
+ else if (next !== GLOBSTAR) {
889
+ pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
890
+ pp[i + 1] = GLOBSTAR;
891
+ }
892
+ });
893
+ return pp.filter(p => p !== GLOBSTAR).join('/');
894
+ })
895
+ .join('|');
896
+ // need to wrap in parens if we had more than one thing with |,
897
+ // otherwise only the first will be anchored to ^ and the last to $
898
+ const [open, close] = set.length > 1 ? ['(?:', ')'] : ['', ''];
899
+ // must match entire pattern
900
+ // ending in a * or ** will make it less strict.
901
+ re = '^' + open + re + close + '$';
902
+ // can match anything, as long as it's not this.
903
+ if (this.negate)
904
+ re = '^(?!' + re + ').+$';
905
+ try {
906
+ this.regexp = new RegExp(re, [...flags].join(''));
907
+ /* c8 ignore start */
908
+ }
909
+ catch (ex) {
910
+ // should be impossible
911
+ this.regexp = false;
912
+ }
913
+ /* c8 ignore stop */
914
+ return this.regexp;
915
+ }
916
+ slashSplit(p) {
917
+ // if p starts with // on windows, we preserve that
918
+ // so that UNC paths aren't broken. Otherwise, any number of
919
+ // / characters are coalesced into one, unless
920
+ // preserveMultipleSlashes is set to true.
921
+ if (this.preserveMultipleSlashes) {
922
+ return p.split('/');
923
+ }
924
+ else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
925
+ // add an extra '' for the one we lose
926
+ return ['', ...p.split(/\/+/)];
927
+ }
928
+ else {
929
+ return p.split(/\/+/);
930
+ }
931
+ }
932
+ match(f, partial = this.partial) {
933
+ this.debug('match', f, this.pattern);
934
+ // short-circuit in the case of busted things.
935
+ // comments, etc.
936
+ if (this.comment) {
937
+ return false;
938
+ }
939
+ if (this.empty) {
940
+ return f === '';
941
+ }
942
+ if (f === '/' && partial) {
943
+ return true;
944
+ }
945
+ const options = this.options;
946
+ // windows: need to use /, not \
947
+ if (this.isWindows) {
948
+ f = f.split('\\').join('/');
949
+ }
950
+ // treat the test path as a set of pathparts.
951
+ const ff = this.slashSplit(f);
952
+ this.debug(this.pattern, 'split', ff);
953
+ // just ONE of the pattern sets in this.set needs to match
954
+ // in order for it to be valid. If negating, then just one
955
+ // match means that we have failed.
956
+ // Either way, return on the first hit.
957
+ const set = this.set;
958
+ this.debug(this.pattern, 'set', set);
959
+ // Find the basename of the path by looking for the last non-empty segment
960
+ let filename = ff[ff.length - 1];
961
+ if (!filename) {
962
+ for (let i = ff.length - 2; !filename && i >= 0; i--) {
963
+ filename = ff[i];
964
+ }
965
+ }
966
+ for (let i = 0; i < set.length; i++) {
967
+ const pattern = set[i];
968
+ let file = ff;
969
+ if (options.matchBase && pattern.length === 1) {
970
+ file = [filename];
971
+ }
972
+ const hit = this.matchOne(file, pattern, partial);
973
+ if (hit) {
974
+ if (options.flipNegate) {
975
+ return true;
976
+ }
977
+ return !this.negate;
978
+ }
979
+ }
980
+ // didn't get any hits. this is success if it's a negative
981
+ // pattern, failure otherwise.
982
+ if (options.flipNegate) {
983
+ return false;
984
+ }
985
+ return this.negate;
986
+ }
987
+ static defaults(def) {
988
+ return minimatch.defaults(def).Minimatch;
989
+ }
990
+ }
991
+ /* c8 ignore start */
992
+ export { AST } from './ast.js';
993
+ export { escape } from './escape.js';
994
+ export { unescape } from './unescape.js';
995
+ /* c8 ignore stop */
996
+ minimatch.AST = AST;
997
+ minimatch.Minimatch = Minimatch;
998
+ minimatch.escape = escape;
999
+ minimatch.unescape = unescape;
1000
+ //# sourceMappingURL=index.js.map