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