@ndlib/ndlib-cdk2 1.0.9 → 1.0.11

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