@cdklabs/cdk-ssm-documents 0.0.74 → 0.0.75

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 (551) hide show
  1. package/.jsii +12 -12
  2. package/lib/construct/synth-utils.js +1 -1
  3. package/lib/document/automation-document.js +1 -1
  4. package/lib/document/command-document.js +1 -1
  5. package/lib/document/document-builder.js +2 -2
  6. package/lib/document/ssm-document.js +1 -1
  7. package/lib/domain/aws-service.js +1 -1
  8. package/lib/domain/choice.js +1 -1
  9. package/lib/domain/data-type.js +1 -1
  10. package/lib/domain/enum/install-action.js +2 -2
  11. package/lib/domain/enum/install-uninstall-repair.js +2 -2
  12. package/lib/domain/enum/installation-type.js +2 -2
  13. package/lib/domain/enum/package-name.js +2 -2
  14. package/lib/domain/input.js +1 -1
  15. package/lib/domain/operation.js +1 -1
  16. package/lib/domain/platform.js +1 -1
  17. package/lib/domain/precondition.js +1 -1
  18. package/lib/incident-response/incident-response.js +3 -3
  19. package/lib/interface/approve-hook.js +2 -2
  20. package/lib/interface/auth-method.js +3 -3
  21. package/lib/interface/aws-invoker.js +2 -2
  22. package/lib/interface/downloadable-content.js +8 -8
  23. package/lib/interface/environment.js +3 -3
  24. package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
  25. package/lib/interface/observer.js +1 -1
  26. package/lib/interface/on-failure.js +6 -6
  27. package/lib/interface/pause-hook.js +2 -2
  28. package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
  29. package/lib/interface/run-document-location.js +2 -2
  30. package/lib/interface/sleep-hook.js +2 -2
  31. package/lib/interface/step-ref.js +1 -1
  32. package/lib/interface/variables/boolean-variable.js +2 -2
  33. package/lib/interface/variables/map-list-variable.js +2 -2
  34. package/lib/interface/variables/number-variable.js +2 -2
  35. package/lib/interface/variables/secure-string-variable.js +4 -4
  36. package/lib/interface/variables/string-list-variable.js +2 -2
  37. package/lib/interface/variables/string-map-variable.js +2 -2
  38. package/lib/interface/variables/string-variable.js +4 -4
  39. package/lib/interface/variables/variable.js +2 -2
  40. package/lib/interface/webhook.js +1 -1
  41. package/lib/parent-steps/automation/approve-step.js +1 -1
  42. package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
  43. package/lib/parent-steps/automation/aws-api-step.js +1 -1
  44. package/lib/parent-steps/automation/branch-step.js +1 -1
  45. package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
  46. package/lib/parent-steps/automation/copy-image-step.js +1 -1
  47. package/lib/parent-steps/automation/create-image-step.js +1 -1
  48. package/lib/parent-steps/automation/create-stack-step.js +3 -3
  49. package/lib/parent-steps/automation/create-tags-step.js +3 -3
  50. package/lib/parent-steps/automation/delete-image-step.js +1 -1
  51. package/lib/parent-steps/automation/delete-stack-step.js +1 -1
  52. package/lib/parent-steps/automation/execute-automation-step.js +1 -1
  53. package/lib/parent-steps/automation/execute-script-step.js +5 -5
  54. package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
  55. package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
  56. package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
  57. package/lib/parent-steps/automation/pause-step.js +1 -1
  58. package/lib/parent-steps/automation/run-command-step.js +3 -3
  59. package/lib/parent-steps/automation/run-instance-step.js +1 -1
  60. package/lib/parent-steps/automation/sleep-step.js +1 -1
  61. package/lib/parent-steps/automation/update-variable.js +1 -1
  62. package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
  63. package/lib/parent-steps/automation-step.js +1 -1
  64. package/lib/parent-steps/command/applications-step.js +1 -1
  65. package/lib/parent-steps/command/configure-docker-step.js +1 -1
  66. package/lib/parent-steps/command/configure-package-step.js +1 -1
  67. package/lib/parent-steps/command/domain-join-step.js +1 -1
  68. package/lib/parent-steps/command/download-content-step.js +1 -1
  69. package/lib/parent-steps/command/ps-module-step.js +1 -1
  70. package/lib/parent-steps/command/run-docker-action-step.js +1 -1
  71. package/lib/parent-steps/command/run-document-step.js +1 -1
  72. package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
  73. package/lib/parent-steps/command/run-shell-script-step.js +1 -1
  74. package/lib/parent-steps/command/software-inventory-step.js +1 -1
  75. package/lib/parent-steps/command/update-agent-step.js +1 -1
  76. package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
  77. package/lib/parent-steps/command-step.js +1 -1
  78. package/lib/parent-steps/step.js +1 -1
  79. package/lib/patterns/automation/composite-step.js +2 -2
  80. package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
  81. package/lib/patterns/automation/string-step.js +1 -1
  82. package/lib/patterns/document/string-document.js +1 -1
  83. package/lib/patterns/document/timed-document.js +1 -1
  84. package/lib/samples/hello-world.js +1 -1
  85. package/lib/simulation/automation/approve-simulation.js +1 -1
  86. package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
  87. package/lib/simulation/automation/automation-simulation-base.js +1 -1
  88. package/lib/simulation/automation/aws-api-simulation.js +1 -1
  89. package/lib/simulation/automation/branch-simulation.js +1 -1
  90. package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
  91. package/lib/simulation/automation/copy-image-simulation.js +1 -1
  92. package/lib/simulation/automation/create-image-simulation.js +1 -1
  93. package/lib/simulation/automation/create-stack-simulation.js +1 -1
  94. package/lib/simulation/automation/create-tags-simulation.js +1 -1
  95. package/lib/simulation/automation/delete-image-simulation.js +1 -1
  96. package/lib/simulation/automation/delete-stack-simulation.js +1 -1
  97. package/lib/simulation/automation/execute-script-simulation.js +1 -1
  98. package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
  99. package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
  100. package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
  101. package/lib/simulation/automation/pause-simulation.js +1 -1
  102. package/lib/simulation/automation/run-command-simulation.js +1 -1
  103. package/lib/simulation/automation/run-instance-simulation.js +1 -1
  104. package/lib/simulation/automation/sleep-simulation.js +1 -1
  105. package/lib/simulation/automation/update-variable-simulation.js +1 -1
  106. package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
  107. package/lib/simulation/automation-step-simulation.js +1 -1
  108. package/lib/simulation/command/command-simulation-base.js +1 -1
  109. package/lib/simulation/command/ps-module-simulation.js +1 -1
  110. package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
  111. package/lib/simulation/command/run-shell-script-simulation.js +1 -1
  112. package/lib/simulation/command-step-simulation.js +1 -1
  113. package/lib/simulation/document/automation-simulation.js +1 -1
  114. package/lib/simulation/document/command-simulation.js +1 -1
  115. package/lib/simulation/simulation.js +1 -1
  116. package/node_modules/@aws-sdk/checksums/package.json +6 -6
  117. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  118. package/node_modules/@aws-sdk/client-cloudformation/dist-es/index.js +1 -1
  119. package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -1
  120. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +38 -38
  121. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +36 -36
  122. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +37 -37
  123. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.shared.d.ts +2 -2
  124. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/index.d.ts +1 -1
  125. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +54 -56
  126. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +57 -57
  127. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +58 -60
  128. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  129. package/node_modules/@aws-sdk/client-cloudformation/package.json +10 -10
  130. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +18 -9
  131. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/index.js +1 -1
  132. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/schemas/schemas_0.js +16 -8
  133. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/AssociateDatasetKmsKeyCommand.d.ts +19 -10
  134. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DescribeAlarmsCommand.d.ts +8 -0
  135. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +4 -0
  136. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/DisassociateDatasetKmsKeyCommand.d.ts +14 -7
  137. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/PutLogAlarmCommand.d.ts +4 -0
  138. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/commands/PutMetricAlarmCommand.d.ts +4 -0
  139. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/index.d.ts +1 -1
  140. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/models_0.d.ts +70 -4
  141. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.browser.d.ts +40 -40
  142. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.d.ts +36 -36
  143. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.native.d.ts +37 -37
  144. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/runtimeConfig.shared.d.ts +2 -2
  145. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/schemas/schemas_0.d.ts +1 -0
  146. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/index.d.ts +1 -1
  147. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/models_0.d.ts +8 -0
  148. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
  149. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.d.ts +59 -59
  150. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.native.d.ts +58 -60
  151. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  152. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  153. package/node_modules/@aws-sdk/client-cloudwatch/package.json +12 -12
  154. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +12 -8
  155. package/node_modules/@aws-sdk/client-ec2/dist-es/index.js +1 -1
  156. package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +11 -7
  157. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/AssociateApplicationStatusCheckCommand.d.ts +5 -5
  158. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateApplicationStatusCheckCommand.d.ts +6 -6
  159. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateImageCommand.d.ts +6 -0
  160. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeApplicationStatusChecksCommand.d.ts +1 -1
  161. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeApplicationStatusCommand.d.ts +1 -1
  162. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisableApplicationStatusCheckSuppressionCommand.d.ts +1 -1
  163. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableApplicationStatusCheckSuppressionCommand.d.ts +1 -1
  164. package/node_modules/@aws-sdk/client-ec2/dist-types/index.d.ts +1 -1
  165. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +2 -2
  166. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +13 -8
  167. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +1 -1
  168. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +3 -3
  169. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +1 -1
  170. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.browser.d.ts +40 -40
  171. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.d.ts +36 -36
  172. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.native.d.ts +38 -38
  173. package/node_modules/@aws-sdk/client-ec2/dist-types/runtimeConfig.shared.d.ts +2 -2
  174. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/index.d.ts +1 -1
  175. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
  176. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
  177. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
  178. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  179. package/node_modules/@aws-sdk/client-ec2/package.json +12 -12
  180. package/node_modules/@aws-sdk/client-iam/README.md +28 -0
  181. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +285 -27
  182. package/node_modules/@aws-sdk/client-iam/dist-es/IAM.js +8 -0
  183. package/node_modules/@aws-sdk/client-iam/dist-es/commands/AcquireRoleCommand.js +4 -0
  184. package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetAccountPropertiesCommand.js +4 -0
  185. package/node_modules/@aws-sdk/client-iam/dist-es/commands/GetRoleTemplateVersionCommand.js +4 -0
  186. package/node_modules/@aws-sdk/client-iam/dist-es/commands/PutAccountPropertiesCommand.js +4 -0
  187. package/node_modules/@aws-sdk/client-iam/dist-es/commands/index.js +4 -0
  188. package/node_modules/@aws-sdk/client-iam/dist-es/index.js +1 -1
  189. package/node_modules/@aws-sdk/client-iam/dist-es/models/enums.js +14 -3
  190. package/node_modules/@aws-sdk/client-iam/dist-es/models/errors.js +52 -16
  191. package/node_modules/@aws-sdk/client-iam/dist-es/schemas/schemas_0.js +176 -8
  192. package/node_modules/@aws-sdk/client-iam/dist-types/IAM.d.ts +29 -0
  193. package/node_modules/@aws-sdk/client-iam/dist-types/IAMClient.d.ts +6 -2
  194. package/node_modules/@aws-sdk/client-iam/dist-types/commands/AcquireRoleCommand.d.ts +154 -0
  195. package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateInstanceProfileCommand.d.ts +4 -0
  196. package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateRoleCommand.d.ts +4 -0
  197. package/node_modules/@aws-sdk/client-iam/dist-types/commands/CreateServiceLinkedRoleCommand.d.ts +4 -0
  198. package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetAccountAuthorizationDetailsCommand.d.ts +4 -0
  199. package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetAccountPropertiesCommand.d.ts +84 -0
  200. package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetInstanceProfileCommand.d.ts +4 -0
  201. package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetRoleCommand.d.ts +4 -0
  202. package/node_modules/@aws-sdk/client-iam/dist-types/commands/GetRoleTemplateVersionCommand.d.ts +135 -0
  203. package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListInstanceProfilesCommand.d.ts +4 -0
  204. package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListInstanceProfilesForRoleCommand.d.ts +4 -0
  205. package/node_modules/@aws-sdk/client-iam/dist-types/commands/ListRolesCommand.d.ts +4 -0
  206. package/node_modules/@aws-sdk/client-iam/dist-types/commands/PutAccountPropertiesCommand.d.ts +88 -0
  207. package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagSAMLProviderCommand.d.ts +1 -1
  208. package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagServerCertificateCommand.d.ts +1 -1
  209. package/node_modules/@aws-sdk/client-iam/dist-types/commands/TagUserCommand.d.ts +1 -1
  210. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagInstanceProfileCommand.d.ts +1 -1
  211. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagMFADeviceCommand.d.ts +1 -1
  212. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
  213. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagPolicyCommand.d.ts +1 -1
  214. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagRoleCommand.d.ts +1 -1
  215. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagSAMLProviderCommand.d.ts +1 -1
  216. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagServerCertificateCommand.d.ts +1 -1
  217. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UntagUserCommand.d.ts +1 -1
  218. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAccessKeyCommand.d.ts +1 -1
  219. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAccountPasswordPolicyCommand.d.ts +1 -1
  220. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateAssumeRolePolicyCommand.d.ts +1 -1
  221. package/node_modules/@aws-sdk/client-iam/dist-types/commands/UpdateRoleDescriptionCommand.d.ts +4 -0
  222. package/node_modules/@aws-sdk/client-iam/dist-types/commands/index.d.ts +4 -0
  223. package/node_modules/@aws-sdk/client-iam/dist-types/index.d.ts +1 -1
  224. package/node_modules/@aws-sdk/client-iam/dist-types/models/enums.d.ts +38 -11
  225. package/node_modules/@aws-sdk/client-iam/dist-types/models/errors.d.ts +58 -18
  226. package/node_modules/@aws-sdk/client-iam/dist-types/models/models_0.d.ts +508 -511
  227. package/node_modules/@aws-sdk/client-iam/dist-types/models/models_1.d.ts +358 -0
  228. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.browser.d.ts +40 -40
  229. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +36 -36
  230. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.native.d.ts +38 -38
  231. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.shared.d.ts +2 -2
  232. package/node_modules/@aws-sdk/client-iam/dist-types/schemas/schemas_0.d.ts +21 -0
  233. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/IAM.d.ts +66 -0
  234. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/IAMClient.d.ts +21 -0
  235. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/AcquireRoleCommand.d.ts +38 -0
  236. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetAccountPropertiesCommand.d.ts +39 -0
  237. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/GetRoleTemplateVersionCommand.d.ts +39 -0
  238. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/PutAccountPropertiesCommand.d.ts +39 -0
  239. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagSAMLProviderCommand.d.ts +1 -1
  240. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagServerCertificateCommand.d.ts +1 -1
  241. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/TagUserCommand.d.ts +1 -1
  242. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagInstanceProfileCommand.d.ts +1 -1
  243. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagMFADeviceCommand.d.ts +1 -1
  244. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagOpenIDConnectProviderCommand.d.ts +1 -1
  245. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagPolicyCommand.d.ts +1 -1
  246. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagRoleCommand.d.ts +1 -1
  247. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagSAMLProviderCommand.d.ts +1 -1
  248. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagServerCertificateCommand.d.ts +1 -1
  249. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UntagUserCommand.d.ts +1 -1
  250. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateAccessKeyCommand.d.ts +1 -1
  251. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateAccountPasswordPolicyCommand.d.ts +1 -1
  252. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/UpdateAssumeRolePolicyCommand.d.ts +1 -1
  253. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/commands/index.d.ts +4 -0
  254. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/index.d.ts +1 -1
  255. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/enums.d.ts +18 -5
  256. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/errors.d.ts +23 -8
  257. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_0.d.ts +100 -89
  258. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/models_1.d.ts +64 -0
  259. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
  260. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
  261. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
  262. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  263. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
  264. package/node_modules/@aws-sdk/client-iam/package.json +11 -11
  265. package/node_modules/@aws-sdk/client-lambda/README.md +21 -0
  266. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +67 -1
  267. package/node_modules/@aws-sdk/client-lambda/dist-es/Lambda.js +6 -0
  268. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
  269. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/GetResourcePolicyCommand.js +4 -0
  270. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/PutResourcePolicyCommand.js +4 -0
  271. package/node_modules/@aws-sdk/client-lambda/dist-es/commands/index.js +3 -0
  272. package/node_modules/@aws-sdk/client-lambda/dist-es/index.js +1 -1
  273. package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +43 -0
  274. package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +21 -0
  275. package/node_modules/@aws-sdk/client-lambda/dist-types/LambdaClient.d.ts +5 -2
  276. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/AddPermissionCommand.d.ts +1 -1
  277. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
  278. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  279. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetResourcePolicyCommand.d.ts +84 -0
  280. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/PutResourcePolicyCommand.d.ts +98 -0
  281. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/RemovePermissionCommand.d.ts +1 -1
  282. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/index.d.ts +3 -0
  283. package/node_modules/@aws-sdk/client-lambda/dist-types/index.d.ts +1 -1
  284. package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +1 -1
  285. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +76 -1
  286. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.browser.d.ts +41 -41
  287. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.d.ts +36 -36
  288. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.native.d.ts +39 -39
  289. package/node_modules/@aws-sdk/client-lambda/dist-types/runtimeConfig.shared.d.ts +2 -2
  290. package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +8 -0
  291. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/Lambda.d.ts +51 -0
  292. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/LambdaClient.d.ts +18 -0
  293. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
  294. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
  295. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
  296. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/commands/index.d.ts +3 -0
  297. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/index.d.ts +1 -1
  298. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +20 -0
  299. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.browser.d.ts +57 -59
  300. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.d.ts +59 -59
  301. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.native.d.ts +61 -63
  302. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  303. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
  304. package/node_modules/@aws-sdk/client-lambda/package.json +11 -11
  305. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  306. package/node_modules/@aws-sdk/client-s3/dist-es/index.js +1 -1
  307. package/node_modules/@aws-sdk/client-s3/dist-types/index.d.ts +1 -1
  308. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +58 -58
  309. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +61 -61
  310. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +57 -57
  311. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts +2 -2
  312. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/index.d.ts +1 -1
  313. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -99
  314. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +103 -103
  315. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +101 -103
  316. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  317. package/node_modules/@aws-sdk/client-s3/package.json +15 -15
  318. package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +1 -1
  319. package/node_modules/@aws-sdk/client-sns/dist-es/index.js +1 -1
  320. package/node_modules/@aws-sdk/client-sns/dist-types/index.d.ts +1 -1
  321. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.browser.d.ts +40 -40
  322. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.d.ts +36 -36
  323. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.native.d.ts +38 -38
  324. package/node_modules/@aws-sdk/client-sns/dist-types/runtimeConfig.shared.d.ts +2 -2
  325. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/index.d.ts +1 -1
  326. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
  327. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
  328. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
  329. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  330. package/node_modules/@aws-sdk/client-sns/package.json +10 -10
  331. package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +1 -1
  332. package/node_modules/@aws-sdk/client-sqs/dist-es/index.js +1 -1
  333. package/node_modules/@aws-sdk/client-sqs/dist-types/index.d.ts +1 -1
  334. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.browser.d.ts +39 -39
  335. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.d.ts +38 -38
  336. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.native.d.ts +38 -38
  337. package/node_modules/@aws-sdk/client-sqs/dist-types/runtimeConfig.shared.d.ts +2 -2
  338. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/index.d.ts +1 -1
  339. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.browser.d.ts +55 -57
  340. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
  341. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.native.d.ts +59 -61
  342. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  343. package/node_modules/@aws-sdk/client-sqs/package.json +12 -12
  344. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
  345. package/node_modules/@aws-sdk/client-ssm/dist-es/index.js +1 -1
  346. package/node_modules/@aws-sdk/client-ssm/dist-types/index.d.ts +1 -1
  347. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +40 -40
  348. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +36 -36
  349. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +38 -38
  350. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.shared.d.ts +2 -2
  351. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/index.d.ts +1 -1
  352. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
  353. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
  354. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
  355. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  356. package/node_modules/@aws-sdk/client-ssm/package.json +10 -10
  357. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
  358. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -1
  359. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -1
  360. package/node_modules/@aws-sdk/core/dist-types/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -1
  361. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +54 -54
  362. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +1 -4
  363. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +1 -4
  364. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +1 -4
  365. package/node_modules/@aws-sdk/core/package.json +6 -6
  366. package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
  367. package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -8
  368. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  369. package/node_modules/@aws-sdk/credential-provider-login/package.json +7 -7
  370. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  371. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  372. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  373. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  374. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +6 -6
  375. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +7 -7
  376. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +5 -5
  377. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  378. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  379. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  380. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  381. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  382. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +42 -42
  383. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +42 -42
  384. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +41 -41
  385. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +2 -2
  386. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +43 -43
  387. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +43 -43
  388. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +42 -42
  389. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +2 -2
  390. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +42 -42
  391. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +42 -42
  392. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +41 -41
  393. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +2 -2
  394. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +42 -42
  395. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +42 -42
  396. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +41 -41
  397. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +2 -2
  398. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +44 -44
  399. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +35 -35
  400. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +43 -43
  401. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +2 -2
  402. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +64 -66
  403. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +65 -65
  404. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +68 -70
  405. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +3 -3
  406. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +67 -69
  407. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +66 -66
  408. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +71 -73
  409. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +3 -3
  410. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +64 -66
  411. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +65 -65
  412. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +68 -70
  413. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +3 -3
  414. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +64 -66
  415. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +65 -65
  416. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +68 -70
  417. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +3 -3
  418. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +68 -70
  419. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +68 -68
  420. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +72 -74
  421. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +3 -3
  422. package/node_modules/@aws-sdk/nested-clients/package.json +9 -9
  423. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  424. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +8 -4
  425. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
  426. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  427. package/node_modules/@aws-sdk/types/package.json +3 -3
  428. package/node_modules/@aws-sdk/xml-builder/package.json +3 -3
  429. package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
  430. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +127 -41
  431. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
  432. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  433. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
  434. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +33 -24
  435. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +33 -24
  436. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +33 -15
  437. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
  438. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
  439. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +0 -10
  440. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
  441. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
  442. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
  443. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
  444. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
  445. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -2
  446. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
  447. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
  448. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
  449. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
  450. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
  451. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
  452. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
  453. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
  454. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
  455. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
  456. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
  457. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
  458. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +11 -4
  459. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +23 -20
  460. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
  461. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
  462. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +6 -4
  463. package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +6 -4
  464. package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +8 -5
  465. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
  466. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +0 -2
  467. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +0 -2
  468. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +0 -2
  469. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +0 -2
  470. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +0 -2
  471. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  472. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  473. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  474. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
  475. package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
  476. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
  477. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
  478. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
  479. package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
  480. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
  481. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
  482. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
  483. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
  484. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
  485. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
  486. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +14 -2
  487. package/node_modules/@smithy/core/dist-types/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
  488. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
  489. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  490. package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +1 -0
  491. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  492. package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +1 -0
  493. package/node_modules/@smithy/core/dist-types/submodules/serde/parse-utils.d.ts +5 -5
  494. package/node_modules/@smithy/core/dist-types/submodules/transport/hasOwn.d.ts +4 -0
  495. package/node_modules/@smithy/core/dist-types/submodules/transport/index.d.ts +1 -0
  496. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
  497. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
  498. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
  499. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
  500. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
  501. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
  502. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
  503. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
  504. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +14 -2
  505. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.d.ts +7 -2
  506. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
  507. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
  508. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.browser.d.ts +1 -0
  509. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  510. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.native.d.ts +1 -0
  511. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts +5 -5
  512. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/hasOwn.d.ts +4 -0
  513. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/transport/index.d.ts +1 -0
  514. package/node_modules/@smithy/core/package.json +3 -11
  515. package/node_modules/@smithy/credential-provider-imds/package.json +4 -12
  516. package/node_modules/@smithy/fetch-http-handler/package.json +5 -13
  517. package/node_modules/@smithy/middleware-compression/package.json +5 -10
  518. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +16 -4
  519. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  520. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +12 -2
  521. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  522. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
  523. package/node_modules/@smithy/node-http-handler/package.json +5 -13
  524. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +28 -16
  525. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +13 -10
  526. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
  527. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
  528. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
  529. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
  530. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
  531. package/node_modules/@smithy/signature-v4/package.json +4 -12
  532. package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +14 -14
  533. package/node_modules/@smithy/types/package.json +29 -39
  534. package/node_modules/fflate/CHANGELOG.md +22 -0
  535. package/node_modules/fflate/LICENSE +1 -1
  536. package/node_modules/fflate/README.md +14 -17
  537. package/node_modules/fflate/esm/browser.d.ts +160 -28
  538. package/node_modules/fflate/esm/browser.js +182 -95
  539. package/node_modules/fflate/esm/index.d.mts +160 -28
  540. package/node_modules/fflate/esm/index.mjs +187 -96
  541. package/node_modules/fflate/lib/browser.cjs +206 -118
  542. package/node_modules/fflate/lib/browser.d.cts +160 -28
  543. package/node_modules/fflate/lib/index.cjs +206 -118
  544. package/node_modules/fflate/lib/index.d.ts +160 -28
  545. package/node_modules/fflate/lib/node-worker.cjs +5 -2
  546. package/node_modules/fflate/lib/node.cjs +211 -119
  547. package/node_modules/fflate/lib/node.d.cts +160 -28
  548. package/node_modules/fflate/lib/worker.cjs +0 -1
  549. package/node_modules/fflate/package.json +12 -12
  550. package/node_modules/fflate/umd/index.js +1 -1
  551. package/package.json +10 -10
@@ -3,7 +3,30 @@
3
3
  // https://tools.ietf.org/html/rfc1951
4
4
  // You may also wish to take a look at the guide I made about this program:
5
5
  // https://gist.github.com/101arrowz/253f31eb5abc3d9275ab943003ffecad
6
- Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.deflate = deflate;
7
+ exports.deflateSync = deflateSync;
8
+ exports.inflate = inflate;
9
+ exports.inflateSync = inflateSync;
10
+ exports.gzip = gzip;
11
+ exports.compress = gzip;
12
+ exports.gzipSync = gzipSync;
13
+ exports.compressSync = gzipSync;
14
+ exports.gunzip = gunzip;
15
+ exports.gunzipSync = gunzipSync;
16
+ exports.zlib = zlib;
17
+ exports.zlibSync = zlibSync;
18
+ exports.unzlib = unzlib;
19
+ exports.unzlibSync = unzlibSync;
20
+ exports.gzip = gzip;
21
+ exports.compress = gzip;
22
+ exports.decompress = decompress;
23
+ exports.decompressSync = decompressSync;
24
+ exports.strToU8 = strToU8;
25
+ exports.strFromU8 = strFromU8;
26
+ exports.zip = zip;
27
+ exports.zipSync = zipSync;
28
+ exports.unzip = unzip;
29
+ exports.unzipSync = unzipSync;
7
30
  // Some of the following code is similar to that of UZIP.js:
8
31
  // https://github.com/photopea/UZIP.js
9
32
  // However, the vast majority of the codebase has diverged from UZIP.js to increase performance and reduce bundle size.
@@ -195,7 +218,7 @@ var ec = [
195
218
  'invalid distance',
196
219
  'stream finished',
197
220
  'no stream handler',
198
- ,
221
+ , // determined by compression function
199
222
  'no callback',
200
223
  'invalid UTF-8 data',
201
224
  'extra field too long',
@@ -812,7 +835,7 @@ var dopt = function (dat, opt, pre, post, st) {
812
835
  st.w = dict.length;
813
836
  }
814
837
  }
815
- return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : (12 + opt.mem), pre, post, st);
838
+ return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? (st.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : 20) : (12 + opt.mem), pre, post, st);
816
839
  };
817
840
  // Walmart object spread
818
841
  var mrg = function (a, b) {
@@ -911,16 +934,28 @@ var cbify = function (dat, opts, fns, init, id, cb) {
911
934
  // auto stream
912
935
  var astrm = function (strm) {
913
936
  strm.ondata = function (dat, final) { return postMessage([dat, final], [dat.buffer]); };
914
- return function (ev) { return strm.push(ev.data[0], ev.data[1]); };
937
+ return function (ev) {
938
+ if (ev.data[0]) {
939
+ strm.push(ev.data[0], ev.data[1]);
940
+ postMessage([ev.data[0].length]);
941
+ }
942
+ else
943
+ strm.flush(ev.data[1]);
944
+ };
915
945
  };
916
946
  // async stream attach
917
- var astrmify = function (fns, strm, opts, init, id, ext) {
947
+ var astrmify = function (fns, strm, opts, init, id, flush, ext) {
918
948
  var t;
919
949
  var w = wrkr(fns, init, id, function (err, dat) {
920
950
  if (err)
921
951
  w.terminate(), strm.ondata.call(strm, err);
922
952
  else if (!Array.isArray(dat))
923
953
  ext(dat);
954
+ else if (dat.length == 1) {
955
+ strm.queuedSize -= dat[0];
956
+ if (strm.ondrain)
957
+ strm.ondrain(dat[0]);
958
+ }
924
959
  else {
925
960
  if (dat[1])
926
961
  w.terminate();
@@ -928,19 +963,26 @@ var astrmify = function (fns, strm, opts, init, id, ext) {
928
963
  }
929
964
  });
930
965
  w.postMessage(opts);
966
+ strm.queuedSize = 0;
931
967
  strm.push = function (d, f) {
932
968
  if (!strm.ondata)
933
969
  err(5);
934
970
  if (t)
935
971
  strm.ondata(err(4, 0, 1), null, !!f);
936
- w.postMessage([d, t = f], [d.buffer]);
972
+ strm.queuedSize += d.length;
973
+ // can fail for cross-realm Uint8Array, but ok - only a small performance penalty
974
+ w.postMessage([d, t = f], d.buffer instanceof ArrayBuffer ? [d.buffer] : []);
937
975
  };
938
976
  strm.terminate = function () { w.terminate(); };
977
+ if (flush) {
978
+ strm.flush = function (sync) { w.postMessage([0, sync]); };
979
+ }
939
980
  };
940
981
  // read 2 bytes
941
982
  var b2 = function (d, b) { return d[b] | (d[b + 1] << 8); };
942
983
  // read 4 bytes
943
984
  var b4 = function (d, b) { return (d[b] | (d[b + 1] << 8) | (d[b + 2] << 16) | (d[b + 3] << 24)) >>> 0; };
985
+ // read 8 bytes
944
986
  var b8 = function (d, b) { return b4(d, b) + (b4(d, b + 4) * 4294967296); };
945
987
  // write bytes
946
988
  var wbytes = function (d, b, v) {
@@ -1044,11 +1086,9 @@ var Deflate = /*#__PURE__*/ (function () {
1044
1086
  this.b = newBuf;
1045
1087
  }
1046
1088
  var split = this.b.length - this.s.z;
1047
- if (split) {
1048
- this.b.set(chunk.subarray(0, split), this.s.z);
1049
- this.s.z = this.b.length;
1050
- this.p(this.b, false);
1051
- }
1089
+ this.b.set(chunk.subarray(0, split), this.s.z);
1090
+ this.s.z = this.b.length;
1091
+ this.p(this.b, false);
1052
1092
  this.b.set(this.b.subarray(-32768));
1053
1093
  this.b.set(chunk.subarray(split), 32768);
1054
1094
  this.s.z = chunk.length - split + 32768;
@@ -1063,6 +1103,37 @@ var Deflate = /*#__PURE__*/ (function () {
1063
1103
  this.p(this.b, final || false);
1064
1104
  this.s.w = this.s.i, this.s.i -= 2;
1065
1105
  }
1106
+ if (final) {
1107
+ // cleanup unneeded buffers/state to reduce memory usage
1108
+ this.s = this.o = {};
1109
+ this.b = et;
1110
+ }
1111
+ };
1112
+ /**
1113
+ * Flushes buffered uncompressed data. Useful to immediately retrieve the
1114
+ * deflated output for small inputs.
1115
+ * @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
1116
+ * extra bytes, but guarantees all pushed data is immediately
1117
+ * decompressible. A separate DEFLATE stream may be concatenated
1118
+ * with the current output after a sync flush.
1119
+ */
1120
+ Deflate.prototype.flush = function (sync) {
1121
+ if (!this.ondata)
1122
+ err(5);
1123
+ if (this.s.l)
1124
+ err(4);
1125
+ this.p(this.b, false);
1126
+ this.s.w = this.s.i, this.s.i -= 2;
1127
+ // could technically skip writing the type-0 block for (this.s.r & 7) == 0,
1128
+ // but the deterministic trailer (00 00 FF FF) is useful in some situations
1129
+ if (sync) {
1130
+ var c = new u8(6);
1131
+ c[0] = this.s.r >> 3;
1132
+ // write empty, non-final type-0 block
1133
+ var ep = wfblk(c, this.s.r, et);
1134
+ this.s.r = 0;
1135
+ this.ondata(c.subarray(0, ep >> 3), false);
1136
+ }
1066
1137
  };
1067
1138
  return Deflate;
1068
1139
  }());
@@ -1078,7 +1149,7 @@ var AsyncDeflate = /*#__PURE__*/ (function () {
1078
1149
  ], this, StrmOpt.call(this, opts, cb), function (ev) {
1079
1150
  var strm = new Deflate(ev.data);
1080
1151
  onmessage = astrm(strm);
1081
- }, 6);
1152
+ }, 6, 1);
1082
1153
  }
1083
1154
  return AsyncDeflate;
1084
1155
  }());
@@ -1092,7 +1163,6 @@ function deflate(data, opts, cb) {
1092
1163
  bDflt,
1093
1164
  ], function (ev) { return pbf(deflateSync(ev.data[0], ev.data[1])); }, 0, cb);
1094
1165
  }
1095
- exports.deflate = deflate;
1096
1166
  /**
1097
1167
  * Compresses data with DEFLATE without any wrapper
1098
1168
  * @param data The data to compress
@@ -1102,7 +1172,6 @@ exports.deflate = deflate;
1102
1172
  function deflateSync(data, opts) {
1103
1173
  return dopt(data, opts || {}, 0, 0);
1104
1174
  }
1105
- exports.deflateSync = deflateSync;
1106
1175
  /**
1107
1176
  * Streaming DEFLATE decompression
1108
1177
  */
@@ -1161,7 +1230,7 @@ var AsyncInflate = /*#__PURE__*/ (function () {
1161
1230
  ], this, StrmOpt.call(this, opts, cb), function (ev) {
1162
1231
  var strm = new Inflate(ev.data);
1163
1232
  onmessage = astrm(strm);
1164
- }, 7);
1233
+ }, 7, 0);
1165
1234
  }
1166
1235
  return AsyncInflate;
1167
1236
  }());
@@ -1175,17 +1244,9 @@ function inflate(data, opts, cb) {
1175
1244
  bInflt
1176
1245
  ], function (ev) { return pbf(inflateSync(ev.data[0], gopt(ev.data[1]))); }, 1, cb);
1177
1246
  }
1178
- exports.inflate = inflate;
1179
- /**
1180
- * Expands DEFLATE data with no wrapper
1181
- * @param data The data to decompress
1182
- * @param opts The decompression options
1183
- * @returns The decompressed version of the data
1184
- */
1185
1247
  function inflateSync(data, opts) {
1186
1248
  return inflt(data, { i: 2 }, opts && opts.out, opts && opts.dictionary);
1187
1249
  }
1188
- exports.inflateSync = inflateSync;
1189
1250
  // before you yell at me for not just using extends, my reason is that TS inheritance is hard to workerize.
1190
1251
  /**
1191
1252
  * Streaming GZIP compression
@@ -1215,6 +1276,16 @@ var Gzip = /*#__PURE__*/ (function () {
1215
1276
  wbytes(raw, raw.length - 8, this.c.d()), wbytes(raw, raw.length - 4, this.l);
1216
1277
  this.ondata(raw, f);
1217
1278
  };
1279
+ /**
1280
+ * Flushes buffered uncompressed data. Useful to immediately retrieve the
1281
+ * GZIPped output for small inputs.
1282
+ * @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
1283
+ * extra bytes, but guarantees all pushed data is immediately
1284
+ * decompressible.
1285
+ */
1286
+ Gzip.prototype.flush = function (sync) {
1287
+ Deflate.prototype.flush.call(this, sync);
1288
+ };
1218
1289
  return Gzip;
1219
1290
  }());
1220
1291
  exports.Gzip = Gzip;
@@ -1231,7 +1302,7 @@ var AsyncGzip = /*#__PURE__*/ (function () {
1231
1302
  ], this, StrmOpt.call(this, opts, cb), function (ev) {
1232
1303
  var strm = new Gzip(ev.data);
1233
1304
  onmessage = astrm(strm);
1234
- }, 8);
1305
+ }, 8, 1);
1235
1306
  }
1236
1307
  return AsyncGzip;
1237
1308
  }());
@@ -1248,8 +1319,6 @@ function gzip(data, opts, cb) {
1248
1319
  function () { return [gzipSync]; }
1249
1320
  ], function (ev) { return pbf(gzipSync(ev.data[0], ev.data[1])); }, 2, cb);
1250
1321
  }
1251
- exports.gzip = gzip;
1252
- exports.compress = gzip;
1253
1322
  /**
1254
1323
  * Compresses data with GZIP
1255
1324
  * @param data The data to compress
@@ -1264,8 +1333,6 @@ function gzipSync(data, opts) {
1264
1333
  var d = dopt(data, opts, gzhl(opts), 8), s = d.length;
1265
1334
  return gzh(d, opts), wbytes(d, s - 8, c.d()), wbytes(d, s - 4, l), d;
1266
1335
  }
1267
- exports.gzipSync = gzipSync;
1268
- exports.compressSync = gzipSync;
1269
1336
  /**
1270
1337
  * Streaming single or multi-member GZIP decompression
1271
1338
  */
@@ -1297,14 +1364,16 @@ var Gunzip = /*#__PURE__*/ (function () {
1297
1364
  }
1298
1365
  // necessary to prevent TS from using the closure value
1299
1366
  // This allows for workerization to function correctly
1300
- Inflate.prototype.c.call(this, final);
1367
+ Inflate.prototype.c.call(this, 0);
1301
1368
  // process concatenated GZIP
1302
1369
  if (this.s.f && !this.s.l) {
1303
1370
  this.v = shft(this.s.p) + 9;
1304
1371
  this.s = { i: 0 };
1305
1372
  this.o = new u8(0);
1306
- if (this.p.length)
1307
- this.push(new u8(0), final);
1373
+ this.push(new u8(0), final);
1374
+ }
1375
+ else if (final) {
1376
+ Inflate.prototype.c.call(this, final);
1308
1377
  }
1309
1378
  };
1310
1379
  return Gunzip;
@@ -1315,7 +1384,7 @@ exports.Gunzip = Gunzip;
1315
1384
  */
1316
1385
  var AsyncGunzip = /*#__PURE__*/ (function () {
1317
1386
  function AsyncGunzip(opts, cb) {
1318
- var _this_1 = this;
1387
+ var _this = this;
1319
1388
  astrmify([
1320
1389
  bInflt,
1321
1390
  guze,
@@ -1324,7 +1393,7 @@ var AsyncGunzip = /*#__PURE__*/ (function () {
1324
1393
  var strm = new Gunzip(ev.data);
1325
1394
  strm.onmember = function (offset) { return postMessage(offset); };
1326
1395
  onmessage = astrm(strm);
1327
- }, 9, function (offset) { return _this_1.onmember && _this_1.onmember(offset); });
1396
+ }, 9, 0, function (offset) { return _this.onmember && _this.onmember(offset); });
1328
1397
  }
1329
1398
  return AsyncGunzip;
1330
1399
  }());
@@ -1340,20 +1409,12 @@ function gunzip(data, opts, cb) {
1340
1409
  function () { return [gunzipSync]; }
1341
1410
  ], function (ev) { return pbf(gunzipSync(ev.data[0], ev.data[1])); }, 3, cb);
1342
1411
  }
1343
- exports.gunzip = gunzip;
1344
- /**
1345
- * Expands GZIP data
1346
- * @param data The data to decompress
1347
- * @param opts The decompression options
1348
- * @returns The decompressed version of the data
1349
- */
1350
1412
  function gunzipSync(data, opts) {
1351
1413
  var st = gzs(data);
1352
1414
  if (st + 8 > data.length)
1353
1415
  err(6, 'invalid gzip data');
1354
1416
  return inflt(data.subarray(st, -8), { i: 2 }, opts && opts.out || new u8(gzl(data)), opts && opts.dictionary);
1355
1417
  }
1356
- exports.gunzipSync = gunzipSync;
1357
1418
  /**
1358
1419
  * Streaming Zlib compression
1359
1420
  */
@@ -1380,6 +1441,16 @@ var Zlib = /*#__PURE__*/ (function () {
1380
1441
  wbytes(raw, raw.length - 4, this.c.d());
1381
1442
  this.ondata(raw, f);
1382
1443
  };
1444
+ /**
1445
+ * Flushes buffered uncompressed data. Useful to immediately retrieve the
1446
+ * zlibbed output for small inputs.
1447
+ * @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
1448
+ * extra bytes, but guarantees all pushed data is immediately
1449
+ * decompressible.
1450
+ */
1451
+ Zlib.prototype.flush = function (sync) {
1452
+ Deflate.prototype.flush.call(this, sync);
1453
+ };
1383
1454
  return Zlib;
1384
1455
  }());
1385
1456
  exports.Zlib = Zlib;
@@ -1395,7 +1466,7 @@ var AsyncZlib = /*#__PURE__*/ (function () {
1395
1466
  ], this, StrmOpt.call(this, opts, cb), function (ev) {
1396
1467
  var strm = new Zlib(ev.data);
1397
1468
  onmessage = astrm(strm);
1398
- }, 10);
1469
+ }, 10, 1);
1399
1470
  }
1400
1471
  return AsyncZlib;
1401
1472
  }());
@@ -1411,7 +1482,6 @@ function zlib(data, opts, cb) {
1411
1482
  function () { return [zlibSync]; }
1412
1483
  ], function (ev) { return pbf(zlibSync(ev.data[0], ev.data[1])); }, 4, cb);
1413
1484
  }
1414
- exports.zlib = zlib;
1415
1485
  /**
1416
1486
  * Compress data with Zlib
1417
1487
  * @param data The data to compress
@@ -1426,7 +1496,6 @@ function zlibSync(data, opts) {
1426
1496
  var d = dopt(data, opts, opts.dictionary ? 6 : 2, 4);
1427
1497
  return zlh(d, opts), wbytes(d, d.length - 4, a.d()), d;
1428
1498
  }
1429
- exports.zlibSync = zlibSync;
1430
1499
  /**
1431
1500
  * Streaming Zlib decompression
1432
1501
  */
@@ -1471,7 +1540,7 @@ var AsyncUnzlib = /*#__PURE__*/ (function () {
1471
1540
  ], this, StrmOpt.call(this, opts, cb), function (ev) {
1472
1541
  var strm = new Unzlib(ev.data);
1473
1542
  onmessage = astrm(strm);
1474
- }, 11);
1543
+ }, 11, 0);
1475
1544
  }
1476
1545
  return AsyncUnzlib;
1477
1546
  }());
@@ -1487,27 +1556,27 @@ function unzlib(data, opts, cb) {
1487
1556
  function () { return [unzlibSync]; }
1488
1557
  ], function (ev) { return pbf(unzlibSync(ev.data[0], gopt(ev.data[1]))); }, 5, cb);
1489
1558
  }
1490
- exports.unzlib = unzlib;
1491
- /**
1492
- * Expands Zlib data
1493
- * @param data The data to decompress
1494
- * @param opts The decompression options
1495
- * @returns The decompressed version of the data
1496
- */
1497
1559
  function unzlibSync(data, opts) {
1498
1560
  return inflt(data.subarray(zls(data, opts && opts.dictionary), -4), { i: 2 }, opts && opts.out, opts && opts.dictionary);
1499
1561
  }
1500
- exports.unzlibSync = unzlibSync;
1501
1562
  /**
1502
1563
  * Streaming GZIP, Zlib, or raw DEFLATE decompression
1503
1564
  */
1504
1565
  var Decompress = /*#__PURE__*/ (function () {
1505
1566
  function Decompress(opts, cb) {
1567
+ this.o = StrmOpt.call(this, opts, cb) || {};
1506
1568
  this.G = Gunzip;
1507
1569
  this.I = Inflate;
1508
1570
  this.Z = Unzlib;
1509
- this.o = StrmOpt.call(this, opts, cb) || {};
1510
1571
  }
1572
+ // init substream
1573
+ // overriden by AsyncDecompress
1574
+ Decompress.prototype.i = function () {
1575
+ var _this = this;
1576
+ this.s.ondata = function (dat, final) {
1577
+ _this.ondata(dat, final);
1578
+ };
1579
+ };
1511
1580
  /**
1512
1581
  * Pushes a chunk to be decompressed
1513
1582
  * @param chunk The chunk to push
@@ -1524,14 +1593,12 @@ var Decompress = /*#__PURE__*/ (function () {
1524
1593
  else
1525
1594
  this.p = chunk;
1526
1595
  if (this.p.length > 2) {
1527
- var _this_2 = this;
1528
- // enables reuse of this method by AsyncDecompress
1529
- var cb = function () { _this_2.ondata.apply(_this_2, arguments); };
1530
1596
  this.s = (this.p[0] == 31 && this.p[1] == 139 && this.p[2] == 8)
1531
- ? new this.G(this.o, cb)
1597
+ ? new this.G(this.o)
1532
1598
  : ((this.p[0] & 15) != 8 || (this.p[0] >> 4) > 7 || ((this.p[0] << 8 | this.p[1]) % 31))
1533
- ? new this.I(this.o, cb)
1534
- : new this.Z(this.o, cb);
1599
+ ? new this.I(this.o)
1600
+ : new this.Z(this.o);
1601
+ this.i();
1535
1602
  this.s.push(this.p, final);
1536
1603
  this.p = null;
1537
1604
  }
@@ -1547,17 +1614,30 @@ exports.Decompress = Decompress;
1547
1614
  */
1548
1615
  var AsyncDecompress = /*#__PURE__*/ (function () {
1549
1616
  function AsyncDecompress(opts, cb) {
1617
+ Decompress.call(this, opts, cb);
1618
+ this.queuedSize = 0;
1550
1619
  this.G = AsyncGunzip;
1551
1620
  this.I = AsyncInflate;
1552
1621
  this.Z = AsyncUnzlib;
1553
- Decompress.call(this, opts, cb);
1554
1622
  }
1623
+ AsyncDecompress.prototype.i = function () {
1624
+ var _this = this;
1625
+ this.s.ondata = function (err, dat, final) {
1626
+ _this.ondata(err, dat, final);
1627
+ };
1628
+ this.s.ondrain = function (size) {
1629
+ _this.queuedSize -= size;
1630
+ if (_this.ondrain)
1631
+ _this.ondrain(size);
1632
+ };
1633
+ };
1555
1634
  /**
1556
1635
  * Pushes a chunk to be decompressed
1557
1636
  * @param chunk The chunk to push
1558
1637
  * @param final Whether this is the last chunk
1559
1638
  */
1560
1639
  AsyncDecompress.prototype.push = function (chunk, final) {
1640
+ this.queuedSize += chunk.length;
1561
1641
  Decompress.prototype.push.call(this, chunk, final);
1562
1642
  };
1563
1643
  return AsyncDecompress;
@@ -1574,7 +1654,6 @@ function decompress(data, opts, cb) {
1574
1654
  ? inflate(data, opts, cb)
1575
1655
  : unzlib(data, opts, cb);
1576
1656
  }
1577
- exports.decompress = decompress;
1578
1657
  /**
1579
1658
  * Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format
1580
1659
  * @param data The data to decompress
@@ -1588,14 +1667,13 @@ function decompressSync(data, opts) {
1588
1667
  ? inflateSync(data, opts)
1589
1668
  : unzlibSync(data, opts);
1590
1669
  }
1591
- exports.decompressSync = decompressSync;
1592
1670
  // flatten a directory structure
1593
1671
  var fltn = function (d, p, t, o) {
1594
1672
  for (var k in d) {
1595
1673
  var val = d[k], n = p + k, op = o;
1596
1674
  if (Array.isArray(val))
1597
1675
  op = mrg(o, val[1]), val = val[0];
1598
- if (val instanceof u8)
1676
+ if (ArrayBuffer.isView(val))
1599
1677
  t[n] = [val, op];
1600
1678
  else {
1601
1679
  t[n += '/'] = [new u8(0), op];
@@ -1749,7 +1827,6 @@ function strToU8(str, latin1) {
1749
1827
  }
1750
1828
  return slc(ar, 0, ai);
1751
1829
  }
1752
- exports.strToU8 = strToU8;
1753
1830
  /**
1754
1831
  * Converts a Uint8Array to a string
1755
1832
  * @param dat The data to decode to string
@@ -1774,7 +1851,6 @@ function strFromU8(dat, latin1) {
1774
1851
  return s;
1775
1852
  }
1776
1853
  }
1777
- exports.strFromU8 = strFromU8;
1778
1854
  ;
1779
1855
  // deflate bit flag
1780
1856
  var dbf = function (l) { return l == 1 ? 3 : l < 6 ? 2 : l == 9 ? 1 : 0; };
@@ -1782,15 +1858,30 @@ var dbf = function (l) { return l == 1 ? 3 : l < 6 ? 2 : l == 9 ? 1 : 0; };
1782
1858
  var slzh = function (d, b) { return b + 30 + b2(d, b + 26) + b2(d, b + 28); };
1783
1859
  // read zip header
1784
1860
  var zh = function (d, b, z) {
1785
- var fnl = b2(d, b + 28), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl, bs = b4(d, b + 20);
1786
- var _a = z && bs == 4294967295 ? z64e(d, es) : [bs, b4(d, b + 24), b4(d, b + 42)], sc = _a[0], su = _a[1], off = _a[2];
1787
- return [b2(d, b + 10), sc, su, fn, es + b2(d, b + 30) + b2(d, b + 32), off];
1861
+ var fnl = b2(d, b + 28), efl = b2(d, b + 30), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl;
1862
+ var _a = z64hs(d, es, efl, z, b4(d, b + 20), b4(d, b + 24), b4(d, b + 42)), sc = _a[0], su = _a[1], off = _a[2];
1863
+ return [b2(d, b + 10), sc, su, fn, es + efl + b2(d, b + 32), off];
1788
1864
  };
1789
- // read zip64 extra field
1790
- var z64e = function (d, b) {
1791
- for (; b2(d, b) != 1; b += 4 + b2(d, b + 2))
1792
- ;
1793
- return [b8(d, b + 12), b8(d, b + 4), b8(d, b + 20)];
1865
+ // read zip64 header sizes
1866
+ var z64hs = function (d, b, l, z, sc, su, off) {
1867
+ var nsc = sc == 4294967295, nsu = su == 4294967295, noff = off == 4294967295, e = b + l;
1868
+ var nf = nsc + nsu + noff;
1869
+ if (z && nf) {
1870
+ for (; b + 4 < e; b += 4 + b2(d, b + 2)) {
1871
+ if (b2(d, b) == 1) {
1872
+ return [
1873
+ nsc ? b8(d, b + 4 + 8 * nsu) : sc,
1874
+ nsu ? b8(d, b + 4) : su,
1875
+ noff ? b8(d, b + 4 + 8 * (nsu + nsc)) : off,
1876
+ 1
1877
+ ];
1878
+ }
1879
+ }
1880
+ // z == 2 for unknown whether or not zip64
1881
+ if (z < 2)
1882
+ err(13);
1883
+ }
1884
+ return [sc, su, off, 0];
1794
1885
  };
1795
1886
  // extra field length
1796
1887
  var exfl = function (ex) {
@@ -1892,6 +1983,8 @@ var ZipPassThrough = /*#__PURE__*/ (function () {
1892
1983
  this.size += chunk.length;
1893
1984
  if (final)
1894
1985
  this.crc = this.c.d();
1986
+ // we shouldn't really do this cast, but properly handling ArrayBufferLike
1987
+ // makes the API unergonomic with Buffer
1895
1988
  this.process(chunk, final || false);
1896
1989
  };
1897
1990
  return ZipPassThrough;
@@ -1909,12 +2002,12 @@ var ZipDeflate = /*#__PURE__*/ (function () {
1909
2002
  * @param opts The compression options
1910
2003
  */
1911
2004
  function ZipDeflate(filename, opts) {
1912
- var _this_1 = this;
2005
+ var _this = this;
1913
2006
  if (!opts)
1914
2007
  opts = {};
1915
2008
  ZipPassThrough.call(this, filename);
1916
2009
  this.d = new Deflate(opts, function (dat, final) {
1917
- _this_1.ondata(null, dat, final);
2010
+ _this.ondata(null, dat, final);
1918
2011
  });
1919
2012
  this.compression = 8;
1920
2013
  this.flag = dbf(opts.level);
@@ -1948,12 +2041,12 @@ var AsyncZipDeflate = /*#__PURE__*/ (function () {
1948
2041
  * @param opts The compression options
1949
2042
  */
1950
2043
  function AsyncZipDeflate(filename, opts) {
1951
- var _this_1 = this;
2044
+ var _this = this;
1952
2045
  if (!opts)
1953
2046
  opts = {};
1954
2047
  ZipPassThrough.call(this, filename);
1955
2048
  this.d = new AsyncDeflate(opts, function (err, dat, final) {
1956
- _this_1.ondata(err, dat, final);
2049
+ _this.ondata(err, dat, final);
1957
2050
  });
1958
2051
  this.compression = 8;
1959
2052
  this.flag = dbf(opts.level);
@@ -1993,7 +2086,7 @@ var Zip = /*#__PURE__*/ (function () {
1993
2086
  * @param file The file stream to add
1994
2087
  */
1995
2088
  Zip.prototype.add = function (file) {
1996
- var _this_1 = this;
2089
+ var _this = this;
1997
2090
  if (!this.ondata)
1998
2091
  err(5);
1999
2092
  // finishing or finished
@@ -2012,7 +2105,7 @@ var Zip = /*#__PURE__*/ (function () {
2012
2105
  var pAll_1 = function () {
2013
2106
  for (var _i = 0, chks_2 = chks_1; _i < chks_2.length; _i++) {
2014
2107
  var chk = chks_2[_i];
2015
- _this_1.ondata(null, chk, false);
2108
+ _this.ondata(null, chk, false);
2016
2109
  }
2017
2110
  chks_1 = [];
2018
2111
  };
@@ -2030,11 +2123,11 @@ var Zip = /*#__PURE__*/ (function () {
2030
2123
  r: function () {
2031
2124
  pAll_1();
2032
2125
  if (tr_1) {
2033
- var nxt = _this_1.u[ind_1 + 1];
2126
+ var nxt = _this.u[ind_1 + 1];
2034
2127
  if (nxt)
2035
2128
  nxt.r();
2036
2129
  else
2037
- _this_1.d = 1;
2130
+ _this.d = 1;
2038
2131
  }
2039
2132
  tr_1 = 1;
2040
2133
  }
@@ -2042,8 +2135,8 @@ var Zip = /*#__PURE__*/ (function () {
2042
2135
  var cl_1 = 0;
2043
2136
  file.ondata = function (err, dat, final) {
2044
2137
  if (err) {
2045
- _this_1.ondata(err, dat, final);
2046
- _this_1.terminate();
2138
+ _this.ondata(err, dat, final);
2139
+ _this.terminate();
2047
2140
  }
2048
2141
  else {
2049
2142
  cl_1 += dat.length;
@@ -2073,7 +2166,7 @@ var Zip = /*#__PURE__*/ (function () {
2073
2166
  * ZIP file to work properly.
2074
2167
  */
2075
2168
  Zip.prototype.end = function () {
2076
- var _this_1 = this;
2169
+ var _this = this;
2077
2170
  if (this.d & 2) {
2078
2171
  this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, true);
2079
2172
  return;
@@ -2083,10 +2176,10 @@ var Zip = /*#__PURE__*/ (function () {
2083
2176
  else
2084
2177
  this.u.push({
2085
2178
  r: function () {
2086
- if (!(_this_1.d & 1))
2179
+ if (!(_this.d & 1))
2087
2180
  return;
2088
- _this_1.u.splice(-1, 1);
2089
- _this_1.e();
2181
+ _this.u.splice(-1, 1);
2182
+ _this.e();
2090
2183
  },
2091
2184
  t: function () { }
2092
2185
  });
@@ -2215,7 +2308,6 @@ function zip(data, opts, cb) {
2215
2308
  }
2216
2309
  return tAll;
2217
2310
  }
2218
- exports.zip = zip;
2219
2311
  /**
2220
2312
  * Synchronously creates a ZIP file. Prefer using `zip` for better performance
2221
2313
  * with more than one file.
@@ -2266,15 +2358,15 @@ function zipSync(data, opts) {
2266
2358
  wzf(out, o, files.length, cdl, oe);
2267
2359
  return out;
2268
2360
  }
2269
- exports.zipSync = zipSync;
2270
2361
  /**
2271
2362
  * Streaming pass-through decompression for ZIP archives
2272
2363
  */
2273
2364
  var UnzipPassThrough = /*#__PURE__*/ (function () {
2274
2365
  function UnzipPassThrough() {
2275
2366
  }
2276
- UnzipPassThrough.prototype.push = function (data, final) {
2277
- this.ondata(null, data, final);
2367
+ UnzipPassThrough.prototype.push = function (chunk, final) {
2368
+ // same as ZipPassThrough: cast to retain Buffer ergonomics
2369
+ this.ondata(null, chunk, final);
2278
2370
  };
2279
2371
  UnzipPassThrough.compression = 0;
2280
2372
  return UnzipPassThrough;
@@ -2289,14 +2381,14 @@ var UnzipInflate = /*#__PURE__*/ (function () {
2289
2381
  * Creates a DEFLATE decompression that can be used in ZIP archives
2290
2382
  */
2291
2383
  function UnzipInflate() {
2292
- var _this_1 = this;
2384
+ var _this = this;
2293
2385
  this.i = new Inflate(function (dat, final) {
2294
- _this_1.ondata(null, dat, final);
2386
+ _this.ondata(null, dat, final);
2295
2387
  });
2296
2388
  }
2297
- UnzipInflate.prototype.push = function (data, final) {
2389
+ UnzipInflate.prototype.push = function (chunk, final) {
2298
2390
  try {
2299
- this.i.push(data, final);
2391
+ this.i.push(chunk, final);
2300
2392
  }
2301
2393
  catch (e) {
2302
2394
  this.ondata(e, null, final);
@@ -2314,23 +2406,23 @@ var AsyncUnzipInflate = /*#__PURE__*/ (function () {
2314
2406
  * Creates a DEFLATE decompression that can be used in ZIP archives
2315
2407
  */
2316
2408
  function AsyncUnzipInflate(_, sz) {
2317
- var _this_1 = this;
2409
+ var _this = this;
2318
2410
  if (sz < 320000) {
2319
2411
  this.i = new Inflate(function (dat, final) {
2320
- _this_1.ondata(null, dat, final);
2412
+ _this.ondata(null, dat, final);
2321
2413
  });
2322
2414
  }
2323
2415
  else {
2324
2416
  this.i = new AsyncInflate(function (err, dat, final) {
2325
- _this_1.ondata(err, dat, final);
2417
+ _this.ondata(err, dat, final);
2326
2418
  });
2327
2419
  this.terminate = this.i.terminate;
2328
2420
  }
2329
2421
  }
2330
- AsyncUnzipInflate.prototype.push = function (data, final) {
2422
+ AsyncUnzipInflate.prototype.push = function (chunk, final) {
2331
2423
  if (this.i.terminate)
2332
- data = slc(data, 0);
2333
- this.i.push(data, final);
2424
+ chunk = slc(chunk, 0);
2425
+ this.i.push(chunk, final);
2334
2426
  };
2335
2427
  AsyncUnzipInflate.compression = 8;
2336
2428
  return AsyncUnzipInflate;
@@ -2358,7 +2450,7 @@ var Unzip = /*#__PURE__*/ (function () {
2358
2450
  * @param final Whether this is the last chunk
2359
2451
  */
2360
2452
  Unzip.prototype.push = function (chunk, final) {
2361
- var _this_1 = this;
2453
+ var _this = this;
2362
2454
  if (!this.onfile)
2363
2455
  err(5);
2364
2456
  if (!this.p)
@@ -2387,7 +2479,6 @@ var Unzip = /*#__PURE__*/ (function () {
2387
2479
  }
2388
2480
  var l = buf.length, oc = this.c, add = oc && this.d;
2389
2481
  var _loop_2 = function () {
2390
- var _a;
2391
2482
  var sig = b4(buf, i);
2392
2483
  if (sig == 0x4034B50) {
2393
2484
  f = 1, is = i;
@@ -2398,13 +2489,11 @@ var Unzip = /*#__PURE__*/ (function () {
2398
2489
  var chks_3 = [];
2399
2490
  this_1.k.unshift(chks_3);
2400
2491
  f = 2;
2401
- var sc_1 = b4(buf, i + 18), su_1 = b4(buf, i + 22);
2492
+ var lsc = b4(buf, i + 18), lsu = b4(buf, i + 22);
2402
2493
  var fn_1 = strFromU8(buf.subarray(i + 30, i += 30 + fnl), !u);
2403
- if (sc_1 == 4294967295) {
2404
- _a = dd ? [-2] : z64e(buf, i), sc_1 = _a[0], su_1 = _a[1];
2405
- }
2406
- else if (dd)
2407
- sc_1 = -1;
2494
+ var _a = z64hs(buf, i, es, 2, lsc, lsu, 0), sc_1 = _a[0], su_1 = _a[1], z64 = _a[3];
2495
+ if (dd)
2496
+ sc_1 = -1 - z64;
2408
2497
  i += es;
2409
2498
  this_1.c = sc_1;
2410
2499
  var d_1;
@@ -2417,7 +2506,7 @@ var Unzip = /*#__PURE__*/ (function () {
2417
2506
  if (!sc_1)
2418
2507
  file_1.ondata(null, et, true);
2419
2508
  else {
2420
- var ctr = _this_1.o[cmp_1];
2509
+ var ctr = _this.o[cmp_1];
2421
2510
  if (!ctr)
2422
2511
  file_1.ondata(err(14, 'unknown compression type ' + cmp_1, 1), null, false);
2423
2512
  d_1 = sc_1 < 0 ? new ctr(fn_1) : new ctr(fn_1, sc_1, su_1);
@@ -2426,8 +2515,8 @@ var Unzip = /*#__PURE__*/ (function () {
2426
2515
  var dat = chks_4[_i];
2427
2516
  d_1.push(dat, false);
2428
2517
  }
2429
- if (_this_1.k[0] == chks_3 && _this_1.c)
2430
- _this_1.d = d_1;
2518
+ if (_this.k[0] == chks_3 && _this.c)
2519
+ _this.d = d_1;
2431
2520
  else
2432
2521
  d_1.push(et, true);
2433
2522
  }
@@ -2517,7 +2606,7 @@ function unzip(data, opts, cb) {
2517
2606
  if (lft) {
2518
2607
  var c = lft;
2519
2608
  var o = b4(data, e + 16);
2520
- var z = o == 4294967295 || c == 65535;
2609
+ var z = b4(data, e - 20) == 0x7064B50;
2521
2610
  if (z) {
2522
2611
  var ze = b4(data, e - 12);
2523
2612
  z = b4(data, ze) == 0x6064B50;
@@ -2552,7 +2641,8 @@ function unzip(data, opts, cb) {
2552
2641
  cbl(null, slc(data, b, b + sc));
2553
2642
  else if (c_1 == 8) {
2554
2643
  var infl = data.subarray(b, b + sc);
2555
- if (sc < 320000) {
2644
+ // Synchronously decompress under 512KB, or barely-compressed data
2645
+ if (su < 524288 || sc > 0.8 * su) {
2556
2646
  try {
2557
2647
  cbl(null, inflateSync(infl, { out: new u8(su) }));
2558
2648
  }
@@ -2577,7 +2667,6 @@ function unzip(data, opts, cb) {
2577
2667
  cbd(null, {});
2578
2668
  return tAll;
2579
2669
  }
2580
- exports.unzip = unzip;
2581
2670
  /**
2582
2671
  * Synchronously decompresses a ZIP archive. Prefer using `unzip` for better
2583
2672
  * performance with more than one file.
@@ -2597,7 +2686,7 @@ function unzipSync(data, opts) {
2597
2686
  if (!c)
2598
2687
  return {};
2599
2688
  var o = b4(data, e + 16);
2600
- var z = o == 4294967295 || c == 65535;
2689
+ var z = b4(data, e - 20) == 0x7064B50;
2601
2690
  if (z) {
2602
2691
  var ze = b4(data, e - 12);
2603
2692
  z = b4(data, ze) == 0x6064B50;
@@ -2626,4 +2715,3 @@ function unzipSync(data, opts) {
2626
2715
  }
2627
2716
  return files;
2628
2717
  }
2629
- exports.unzipSync = unzipSync;