@cdk8s/awscdk-resolver 0.0.67 → 0.0.76

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 (538) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/README.md +8 -0
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/endpoint/endpointResolver.js +4 -2
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +169 -116
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormation.js +2 -0
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListStackSetAutoDeploymentTargetsCommand.js +24 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/index.js +1 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-es/endpoint/endpointResolver.js +3 -1
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-es/index.js +0 -1
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +0 -4
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +4 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +75 -34
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +37 -1
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +4 -3
  16. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ActivateOrganizationsAccessCommand.d.ts +2 -1
  17. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ActivateTypeCommand.d.ts +5 -4
  18. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/BatchDescribeTypeConfigurationsCommand.d.ts +2 -1
  19. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CancelUpdateStackCommand.d.ts +2 -1
  20. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ContinueUpdateRollbackCommand.d.ts +2 -1
  21. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateChangeSetCommand.d.ts +2 -1
  22. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateGeneratedTemplateCommand.d.ts +2 -1
  23. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateStackCommand.d.ts +2 -1
  24. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateStackInstancesCommand.d.ts +4 -3
  25. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateStackSetCommand.d.ts +2 -1
  26. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeactivateOrganizationsAccessCommand.d.ts +2 -1
  27. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeactivateTypeCommand.d.ts +2 -1
  28. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteChangeSetCommand.d.ts +2 -1
  29. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteGeneratedTemplateCommand.d.ts +2 -1
  30. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteStackCommand.d.ts +2 -1
  31. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteStackInstancesCommand.d.ts +2 -1
  32. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteStackSetCommand.d.ts +2 -1
  33. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeregisterTypeCommand.d.ts +3 -4
  34. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeAccountLimitsCommand.d.ts +2 -1
  35. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +2 -1
  36. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetHooksCommand.d.ts +2 -1
  37. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeGeneratedTemplateCommand.d.ts +2 -1
  38. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeOrganizationsAccessCommand.d.ts +2 -1
  39. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribePublisherCommand.d.ts +3 -4
  40. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeResourceScanCommand.d.ts +2 -1
  41. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackDriftDetectionStatusCommand.d.ts +2 -1
  42. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackEventsCommand.d.ts +4 -3
  43. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackInstanceCommand.d.ts +3 -2
  44. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackResourceCommand.d.ts +2 -1
  45. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackResourceDriftsCommand.d.ts +2 -1
  46. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackResourcesCommand.d.ts +2 -1
  47. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackSetCommand.d.ts +2 -1
  48. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStackSetOperationCommand.d.ts +2 -1
  49. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeStacksCommand.d.ts +4 -2
  50. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeTypeCommand.d.ts +2 -1
  51. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeTypeRegistrationCommand.d.ts +2 -1
  52. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DetectStackDriftCommand.d.ts +2 -1
  53. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DetectStackResourceDriftCommand.d.ts +2 -1
  54. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DetectStackSetDriftCommand.d.ts +4 -3
  55. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/EstimateTemplateCostCommand.d.ts +2 -1
  56. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ExecuteChangeSetCommand.d.ts +2 -1
  57. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetGeneratedTemplateCommand.d.ts +2 -1
  58. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetStackPolicyCommand.d.ts +2 -1
  59. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetTemplateCommand.d.ts +2 -1
  60. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetTemplateSummaryCommand.d.ts +2 -1
  61. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ImportStacksToStackSetCommand.d.ts +2 -1
  62. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListChangeSetsCommand.d.ts +2 -1
  63. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListExportsCommand.d.ts +2 -1
  64. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListGeneratedTemplatesCommand.d.ts +2 -1
  65. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListImportsCommand.d.ts +2 -1
  66. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanRelatedResourcesCommand.d.ts +2 -1
  67. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanResourcesCommand.d.ts +2 -1
  68. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScansCommand.d.ts +2 -1
  69. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackInstanceResourceDriftsCommand.d.ts +2 -1
  70. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackInstancesCommand.d.ts +2 -1
  71. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackResourcesCommand.d.ts +2 -1
  72. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetAutoDeploymentTargetsCommand.d.ts +73 -0
  73. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetOperationResultsCommand.d.ts +2 -1
  74. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetOperationsCommand.d.ts +2 -1
  75. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStackSetsCommand.d.ts +2 -1
  76. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListStacksCommand.d.ts +2 -1
  77. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListTypeRegistrationsCommand.d.ts +2 -1
  78. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListTypeVersionsCommand.d.ts +2 -1
  79. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListTypesCommand.d.ts +2 -1
  80. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/PublishTypeCommand.d.ts +3 -4
  81. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RecordHandlerProgressCommand.d.ts +2 -1
  82. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RegisterPublisherCommand.d.ts +2 -1
  83. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RegisterTypeCommand.d.ts +5 -8
  84. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/RollbackStackCommand.d.ts +2 -1
  85. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SetStackPolicyCommand.d.ts +2 -1
  86. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SetTypeConfigurationCommand.d.ts +4 -5
  87. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SetTypeDefaultVersionCommand.d.ts +4 -2
  88. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/SignalResourceCommand.d.ts +3 -2
  89. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StartResourceScanCommand.d.ts +2 -1
  90. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StopStackSetOperationCommand.d.ts +2 -1
  91. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/TestTypeCommand.d.ts +4 -7
  92. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateGeneratedTemplateCommand.d.ts +2 -1
  93. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackCommand.d.ts +2 -1
  94. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackInstancesCommand.d.ts +5 -10
  95. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackSetCommand.d.ts +2 -1
  96. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +2 -1
  97. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ValidateTemplateCommand.d.ts +2 -1
  98. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/index.d.ts +1 -0
  99. package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +0 -1
  100. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +1246 -1343
  101. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_1.d.ts +184 -174
  102. package/node_modules/@aws-sdk/client-cloudformation/dist-types/protocols/Aws_query.d.ts +9 -0
  103. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -2
  104. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -2
  105. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -2
  106. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.shared.d.ts +2 -2
  107. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +52 -0
  108. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +6 -0
  109. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ActivateOrganizationsAccessCommand.d.ts +9 -0
  110. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ActivateTypeCommand.d.ts +9 -0
  111. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/BatchDescribeTypeConfigurationsCommand.d.ts +9 -0
  112. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CancelUpdateStackCommand.d.ts +9 -0
  113. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ContinueUpdateRollbackCommand.d.ts +9 -0
  114. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateChangeSetCommand.d.ts +9 -0
  115. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateGeneratedTemplateCommand.d.ts +9 -0
  116. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateStackCommand.d.ts +9 -0
  117. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateStackInstancesCommand.d.ts +9 -0
  118. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateStackSetCommand.d.ts +9 -0
  119. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeactivateOrganizationsAccessCommand.d.ts +9 -0
  120. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeactivateTypeCommand.d.ts +9 -0
  121. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteChangeSetCommand.d.ts +9 -0
  122. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteGeneratedTemplateCommand.d.ts +9 -0
  123. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteStackCommand.d.ts +9 -0
  124. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteStackInstancesCommand.d.ts +9 -0
  125. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteStackSetCommand.d.ts +9 -0
  126. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeregisterTypeCommand.d.ts +9 -0
  127. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +9 -0
  128. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeChangeSetCommand.d.ts +9 -0
  129. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeChangeSetHooksCommand.d.ts +9 -0
  130. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeGeneratedTemplateCommand.d.ts +9 -0
  131. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeOrganizationsAccessCommand.d.ts +9 -0
  132. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribePublisherCommand.d.ts +9 -0
  133. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeResourceScanCommand.d.ts +9 -0
  134. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackDriftDetectionStatusCommand.d.ts +9 -0
  135. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackEventsCommand.d.ts +9 -0
  136. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackInstanceCommand.d.ts +9 -0
  137. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackResourceCommand.d.ts +9 -0
  138. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackResourceDriftsCommand.d.ts +9 -0
  139. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackResourcesCommand.d.ts +9 -0
  140. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackSetCommand.d.ts +9 -0
  141. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStackSetOperationCommand.d.ts +9 -0
  142. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeStacksCommand.d.ts +9 -0
  143. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeTypeCommand.d.ts +9 -0
  144. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeTypeRegistrationCommand.d.ts +9 -0
  145. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DetectStackDriftCommand.d.ts +9 -0
  146. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DetectStackResourceDriftCommand.d.ts +9 -0
  147. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DetectStackSetDriftCommand.d.ts +9 -0
  148. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/EstimateTemplateCostCommand.d.ts +9 -0
  149. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ExecuteChangeSetCommand.d.ts +9 -0
  150. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetGeneratedTemplateCommand.d.ts +9 -0
  151. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetStackPolicyCommand.d.ts +9 -0
  152. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetTemplateCommand.d.ts +9 -0
  153. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetTemplateSummaryCommand.d.ts +9 -0
  154. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ImportStacksToStackSetCommand.d.ts +9 -0
  155. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListChangeSetsCommand.d.ts +9 -0
  156. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListExportsCommand.d.ts +9 -0
  157. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListGeneratedTemplatesCommand.d.ts +9 -0
  158. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListImportsCommand.d.ts +9 -0
  159. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanRelatedResourcesCommand.d.ts +9 -0
  160. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanResourcesCommand.d.ts +9 -0
  161. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScansCommand.d.ts +9 -0
  162. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackInstanceResourceDriftsCommand.d.ts +9 -0
  163. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackInstancesCommand.d.ts +9 -0
  164. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackResourcesCommand.d.ts +9 -0
  165. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetAutoDeploymentTargetsCommand.d.ts +39 -0
  166. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetOperationResultsCommand.d.ts +9 -0
  167. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetOperationsCommand.d.ts +9 -0
  168. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStackSetsCommand.d.ts +9 -0
  169. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListStacksCommand.d.ts +9 -0
  170. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListTypeRegistrationsCommand.d.ts +9 -0
  171. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListTypeVersionsCommand.d.ts +9 -0
  172. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListTypesCommand.d.ts +9 -0
  173. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/PublishTypeCommand.d.ts +9 -0
  174. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RecordHandlerProgressCommand.d.ts +9 -0
  175. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RegisterPublisherCommand.d.ts +9 -0
  176. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RegisterTypeCommand.d.ts +9 -0
  177. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/RollbackStackCommand.d.ts +9 -0
  178. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SetStackPolicyCommand.d.ts +9 -0
  179. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SetTypeConfigurationCommand.d.ts +9 -0
  180. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SetTypeDefaultVersionCommand.d.ts +11 -4
  181. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/SignalResourceCommand.d.ts +10 -1
  182. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +9 -0
  183. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StopStackSetOperationCommand.d.ts +9 -0
  184. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/TestTypeCommand.d.ts +9 -0
  185. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateGeneratedTemplateCommand.d.ts +9 -0
  186. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackCommand.d.ts +9 -0
  187. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackInstancesCommand.d.ts +9 -0
  188. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackSetCommand.d.ts +9 -0
  189. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateTerminationProtectionCommand.d.ts +9 -0
  190. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ValidateTemplateCommand.d.ts +9 -0
  191. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/index.d.ts +1 -0
  192. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/index.d.ts +0 -1
  193. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +14 -13
  194. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_1.d.ts +13 -0
  195. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
  196. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  197. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  198. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  199. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  200. package/node_modules/@aws-sdk/client-cloudformation/package.json +41 -42
  201. package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js +4 -2
  202. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +6 -49
  203. package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js +3 -1
  204. package/node_modules/@aws-sdk/client-sso/dist-es/index.js +0 -1
  205. package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +1 -40
  206. package/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +1 -1
  207. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +1 -1
  208. package/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +2 -1
  209. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +2 -1
  210. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +2 -1
  211. package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +2 -1
  212. package/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +0 -1
  213. package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +32 -32
  214. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +2 -2
  215. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +2 -2
  216. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +2 -2
  217. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +2 -2
  218. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +9 -0
  219. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +9 -0
  220. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +9 -0
  221. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts +7 -0
  222. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +0 -1
  223. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  224. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  225. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  226. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  227. package/node_modules/@aws-sdk/client-sso/package.json +38 -38
  228. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +4 -2
  229. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +7 -50
  230. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +3 -1
  231. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +0 -1
  232. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +1 -40
  233. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +1 -1
  234. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +1 -1
  235. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +2 -1
  236. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +2 -1
  237. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +2 -1
  238. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +2 -1
  239. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +0 -1
  240. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +89 -89
  241. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +2 -2
  242. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +2 -2
  243. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +2 -2
  244. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +2 -2
  245. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +9 -0
  246. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +9 -0
  247. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +9 -0
  248. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +9 -0
  249. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +0 -1
  250. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  251. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  252. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  253. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  254. package/node_modules/@aws-sdk/client-sso-oidc/package.json +40 -40
  255. package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +4 -2
  256. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +10 -44
  257. package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +3 -1
  258. package/node_modules/@aws-sdk/client-sts/dist-es/index.js +0 -1
  259. package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +2 -34
  260. package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +3 -1
  261. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +1 -1
  262. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +2 -1
  263. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +2 -1
  264. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -1
  265. package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +2 -1
  266. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +2 -1
  267. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +2 -1
  268. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +2 -1
  269. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +2 -1
  270. package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +0 -1
  271. package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +98 -98
  272. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -2
  273. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -2
  274. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -2
  275. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +2 -2
  276. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +2 -0
  277. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +9 -0
  278. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +9 -0
  279. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +9 -0
  280. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +9 -0
  281. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +9 -0
  282. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +9 -0
  283. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +9 -0
  284. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +9 -0
  285. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +0 -1
  286. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  287. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  288. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  289. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  290. package/node_modules/@aws-sdk/client-sts/package.json +39 -40
  291. package/node_modules/@aws-sdk/core/CHANGELOG.md +35 -0
  292. package/node_modules/@aws-sdk/core/dist-cjs/index.js +126 -1
  293. package/node_modules/@aws-sdk/core/dist-cjs/protocols/common.js +1 -0
  294. package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/parseJsonBody.js +1 -0
  295. package/node_modules/@aws-sdk/core/dist-cjs/protocols/xml/parseXmlBody.js +1 -0
  296. package/node_modules/@aws-sdk/core/dist-es/protocols/common.js +2 -0
  297. package/node_modules/@aws-sdk/core/dist-es/protocols/index.js +2 -0
  298. package/node_modules/@aws-sdk/core/dist-es/protocols/json/parseJsonBody.js +51 -0
  299. package/node_modules/@aws-sdk/core/dist-es/protocols/xml/parseXmlBody.js +57 -0
  300. package/node_modules/@aws-sdk/core/dist-types/protocols/common.d.ts +2 -0
  301. package/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts +2 -0
  302. package/node_modules/@aws-sdk/core/dist-types/protocols/json/parseJsonBody.d.ts +4 -0
  303. package/node_modules/@aws-sdk/core/dist-types/protocols/xml/parseXmlBody.d.ts +4 -0
  304. package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/common.d.ts +5 -0
  305. package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts +2 -0
  306. package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/parseJsonBody.d.ts +13 -0
  307. package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/xml/parseXmlBody.d.ts +13 -0
  308. package/node_modules/@aws-sdk/core/package.json +8 -7
  309. package/node_modules/@aws-sdk/core/src/protocols/common.ts +5 -0
  310. package/node_modules/@aws-sdk/core/src/protocols/index.ts +2 -0
  311. package/node_modules/@aws-sdk/core/src/protocols/json/parseJsonBody.ts +60 -0
  312. package/node_modules/@aws-sdk/core/src/protocols/xml/parseXmlBody.ts +64 -0
  313. package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
  314. package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
  315. package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
  316. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  317. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  318. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
  319. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
  320. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  321. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  322. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  323. package/node_modules/@aws-sdk/middleware-host-header/package.json +5 -5
  324. package/node_modules/@aws-sdk/middleware-logger/package.json +4 -4
  325. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
  326. package/node_modules/@aws-sdk/middleware-user-agent/package.json +6 -6
  327. package/node_modules/@aws-sdk/region-config-resolver/package.json +7 -7
  328. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  329. package/node_modules/@aws-sdk/types/package.json +3 -3
  330. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +2 -0
  331. package/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +1 -1
  332. package/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +2 -1
  333. package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +2 -1
  334. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  335. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +2 -0
  336. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
  337. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
  338. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  339. package/node_modules/@smithy/abort-controller/package.json +3 -3
  340. package/node_modules/@smithy/config-resolver/package.json +6 -6
  341. package/node_modules/@smithy/core/package.json +9 -9
  342. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +11 -1
  343. package/node_modules/@smithy/credential-provider-imds/dist-es/index.js +1 -0
  344. package/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js +1 -1
  345. package/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts +4 -0
  346. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +4 -0
  347. package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
  348. package/node_modules/@smithy/eventstream-codec/package.json +5 -5
  349. package/node_modules/@smithy/fetch-http-handler/package.json +9 -9
  350. package/node_modules/@smithy/hash-node/package.json +5 -5
  351. package/node_modules/@smithy/invalid-dependency/package.json +3 -3
  352. package/node_modules/@smithy/is-array-buffer/package.json +2 -2
  353. package/node_modules/@smithy/middleware-content-length/package.json +5 -5
  354. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  355. package/node_modules/@smithy/middleware-retry/package.json +11 -11
  356. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +5 -0
  357. package/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +5 -0
  358. package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +5 -2
  359. package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +6 -2
  360. package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +5 -2
  361. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +5 -2
  362. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +6 -2
  363. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +5 -2
  364. package/node_modules/@smithy/middleware-serde/package.json +4 -4
  365. package/node_modules/@smithy/middleware-stack/package.json +3 -3
  366. package/node_modules/@smithy/node-config-provider/package.json +5 -5
  367. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +14 -3
  368. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +30 -0
  369. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +16 -4
  370. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +2 -0
  371. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +2 -0
  372. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  373. package/node_modules/@smithy/property-provider/package.json +3 -3
  374. package/node_modules/@smithy/protocol-http/package.json +3 -3
  375. package/node_modules/@smithy/querystring-builder/package.json +4 -4
  376. package/node_modules/@smithy/querystring-parser/package.json +3 -3
  377. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  378. package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
  379. package/node_modules/@smithy/signature-v4/package.json +10 -10
  380. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +2 -2
  381. package/node_modules/@smithy/smithy-client/dist-es/command.js +2 -2
  382. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +2 -1
  383. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +2 -1
  384. package/node_modules/@smithy/smithy-client/package.json +7 -7
  385. package/node_modules/@smithy/types/dist-types/client.d.ts +2 -2
  386. package/node_modules/@smithy/types/dist-types/serde.d.ts +10 -3
  387. package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +2 -7
  388. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +10 -3
  389. package/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +27 -7
  390. package/node_modules/@smithy/types/dist-types/util.d.ts +22 -7
  391. package/node_modules/@smithy/types/package.json +2 -2
  392. package/node_modules/@smithy/url-parser/package.json +4 -4
  393. package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +16 -1
  394. package/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +14 -1
  395. package/node_modules/@smithy/util-base64/dist-es/toBase64.browser.js +16 -1
  396. package/node_modules/@smithy/util-base64/dist-es/toBase64.js +14 -1
  397. package/node_modules/@smithy/util-base64/dist-types/toBase64.browser.d.ts +4 -3
  398. package/node_modules/@smithy/util-base64/dist-types/toBase64.d.ts +4 -3
  399. package/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.browser.d.ts +4 -3
  400. package/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.d.ts +4 -3
  401. package/node_modules/@smithy/util-base64/package.json +4 -3
  402. package/node_modules/@smithy/util-body-length-browser/package.json +2 -2
  403. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +1 -1
  404. package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +1 -1
  405. package/node_modules/@smithy/util-body-length-node/package.json +2 -2
  406. package/node_modules/@smithy/util-buffer-from/package.json +3 -3
  407. package/node_modules/@smithy/util-config-provider/dist-cjs/index.js +2 -2
  408. package/node_modules/@smithy/util-config-provider/package.json +2 -2
  409. package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
  410. package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
  411. package/node_modules/@smithy/util-endpoints/package.json +4 -4
  412. package/node_modules/@smithy/util-hex-encoding/package.json +2 -2
  413. package/node_modules/@smithy/util-middleware/package.json +3 -3
  414. package/node_modules/@smithy/util-retry/package.json +4 -4
  415. package/node_modules/@smithy/util-stream/package.json +12 -12
  416. package/node_modules/@smithy/util-uri-escape/package.json +2 -2
  417. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +9 -1
  418. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +9 -1
  419. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +9 -1
  420. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +7 -1
  421. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +7 -1
  422. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +7 -1
  423. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +7 -1
  424. package/node_modules/@smithy/util-utf8/package.json +3 -3
  425. package/node_modules/@smithy/util-waiter/package.json +4 -4
  426. package/node_modules/uuid/CHANGELOG.md +45 -0
  427. package/node_modules/uuid/README.md +36 -75
  428. package/node_modules/uuid/dist/esm-browser/md5.js +23 -23
  429. package/node_modules/uuid/dist/esm-browser/parse.js +2 -2
  430. package/node_modules/uuid/dist/esm-browser/rng.js +4 -5
  431. package/node_modules/uuid/dist/esm-browser/sha1.js +26 -26
  432. package/node_modules/uuid/dist/esm-browser/stringify.js +9 -6
  433. package/node_modules/uuid/dist/esm-browser/v1.js +17 -17
  434. package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  435. package/node_modules/uuid/dist/esm-browser/v35.js +12 -10
  436. package/node_modules/uuid/dist/esm-browser/v4.js +9 -4
  437. package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  438. package/node_modules/uuid/dist/esm-browser/version.js +1 -1
  439. package/node_modules/uuid/dist/esm-node/stringify.js +7 -3
  440. package/node_modules/uuid/dist/esm-node/v1.js +2 -2
  441. package/node_modules/uuid/dist/esm-node/v35.js +6 -4
  442. package/node_modules/uuid/dist/esm-node/v4.js +7 -2
  443. package/node_modules/uuid/dist/esm-node/version.js +1 -1
  444. package/node_modules/uuid/dist/index.js +18 -18
  445. package/node_modules/uuid/dist/rng-browser.js +2 -3
  446. package/node_modules/uuid/dist/stringify.js +8 -3
  447. package/node_modules/uuid/dist/v1.js +2 -2
  448. package/node_modules/uuid/dist/v35.js +7 -5
  449. package/node_modules/uuid/dist/v4.js +8 -2
  450. package/node_modules/uuid/dist/version.js +1 -1
  451. package/node_modules/uuid/package.json +41 -41
  452. package/package.json +8 -8
  453. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/CHANGELOG.md +0 -274
  454. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/CONTRIBUTING.md +0 -18
  455. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/LICENSE.md +0 -9
  456. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/README.md +0 -466
  457. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/bin/uuid +0 -2
  458. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/index.js +0 -9
  459. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/md5.js +0 -215
  460. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/nil.js +0 -1
  461. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/parse.js +0 -35
  462. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/regex.js +0 -1
  463. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/rng.js +0 -18
  464. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/sha1.js +0 -96
  465. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/stringify.js +0 -33
  466. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v1.js +0 -95
  467. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v3.js +0 -4
  468. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v35.js +0 -66
  469. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v4.js +0 -29
  470. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/v5.js +0 -4
  471. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/validate.js +0 -7
  472. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-browser/version.js +0 -11
  473. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/index.js +0 -9
  474. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/md5.js +0 -13
  475. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/nil.js +0 -1
  476. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/parse.js +0 -35
  477. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/regex.js +0 -1
  478. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/rng.js +0 -12
  479. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/sha1.js +0 -13
  480. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/stringify.js +0 -33
  481. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v1.js +0 -95
  482. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v3.js +0 -4
  483. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v35.js +0 -66
  484. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v4.js +0 -29
  485. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/v5.js +0 -4
  486. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/validate.js +0 -7
  487. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/esm-node/version.js +0 -11
  488. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/index.js +0 -79
  489. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/md5-browser.js +0 -223
  490. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/md5.js +0 -23
  491. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/nil.js +0 -8
  492. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/parse.js +0 -45
  493. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/regex.js +0 -8
  494. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/rng-browser.js +0 -25
  495. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/rng.js +0 -24
  496. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/sha1-browser.js +0 -104
  497. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/sha1.js +0 -23
  498. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/stringify.js +0 -44
  499. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/uuid-bin.js +0 -85
  500. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v1.js +0 -107
  501. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v3.js +0 -16
  502. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v35.js +0 -80
  503. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v4.js +0 -43
  504. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/v5.js +0 -16
  505. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/validate.js +0 -17
  506. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/dist/version.js +0 -21
  507. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/package.json +0 -135
  508. package/node_modules/@aws-sdk/client-cloudformation/node_modules/uuid/wrapper.mjs +0 -10
  509. package/node_modules/uuid/dist/umd/uuid.min.js +0 -1
  510. package/node_modules/uuid/dist/umd/uuidNIL.min.js +0 -1
  511. package/node_modules/uuid/dist/umd/uuidParse.min.js +0 -1
  512. package/node_modules/uuid/dist/umd/uuidStringify.min.js +0 -1
  513. package/node_modules/uuid/dist/umd/uuidValidate.min.js +0 -1
  514. package/node_modules/uuid/dist/umd/uuidVersion.min.js +0 -1
  515. package/node_modules/uuid/dist/umd/uuidv1.min.js +0 -1
  516. package/node_modules/uuid/dist/umd/uuidv3.min.js +0 -1
  517. package/node_modules/uuid/dist/umd/uuidv4.min.js +0 -1
  518. package/node_modules/uuid/dist/umd/uuidv5.min.js +0 -1
  519. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/index.js +0 -0
  520. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/md5.js +0 -0
  521. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/native.js +0 -0
  522. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/nil.js +0 -0
  523. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/parse.js +0 -0
  524. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/regex.js +0 -0
  525. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/rng.js +0 -0
  526. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/sha1.js +0 -0
  527. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/stringify.js +0 -0
  528. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/v1.js +0 -0
  529. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/v3.js +0 -0
  530. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/v35.js +0 -0
  531. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/v4.js +0 -0
  532. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/v5.js +0 -0
  533. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/validate.js +0 -0
  534. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/commonjs-browser/version.js +0 -0
  535. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/esm-browser/native.js +0 -0
  536. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/esm-node/native.js +0 -0
  537. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/native-browser.js +0 -0
  538. /package/node_modules/{@aws-sdk/client-cloudformation/node_modules/uuid → uuid}/dist/native.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-uri-escape",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-uri-escape",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "tslib": "^2.5.0"
25
+ "tslib": "^2.6.2"
26
26
  },
27
27
  "engines": {
28
28
  "node": ">=14.0.0"
@@ -46,7 +46,15 @@ var toUint8Array = /* @__PURE__ */ __name((data) => {
46
46
 
47
47
  // src/toUtf8.ts
48
48
 
49
- var toUtf8 = /* @__PURE__ */ __name((input) => (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"), "toUtf8");
49
+ var toUtf8 = /* @__PURE__ */ __name((input) => {
50
+ if (typeof input === "string") {
51
+ return input;
52
+ }
53
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
54
+ throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
55
+ }
56
+ return (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
57
+ }, "toUtf8");
50
58
  // Annotate the CommonJS export names for ESM import in node:
51
59
 
52
60
  0 && (module.exports = {
@@ -1 +1,9 @@
1
- export const toUtf8 = (input) => new TextDecoder("utf-8").decode(input);
1
+ export const toUtf8 = (input) => {
2
+ if (typeof input === "string") {
3
+ return input;
4
+ }
5
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
6
+ throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
7
+ }
8
+ return new TextDecoder("utf-8").decode(input);
9
+ };
@@ -1,2 +1,10 @@
1
1
  import { fromArrayBuffer } from "@smithy/util-buffer-from";
2
- export const toUtf8 = (input) => fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
2
+ export const toUtf8 = (input) => {
3
+ if (typeof input === "string") {
4
+ return input;
5
+ }
6
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
7
+ throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
8
+ }
9
+ return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
10
+ };
@@ -1 +1,7 @@
1
- export declare const toUtf8: (input: Uint8Array) => string;
1
+ /**
2
+ *
3
+ * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
+ * a string is received instead of a Uint8Array.
5
+ *
6
+ */
7
+ export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -1 +1,7 @@
1
- export declare const toUtf8: (input: Uint8Array) => string;
1
+ /**
2
+ *
3
+ * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
+ * a string is received instead of a Uint8Array.
5
+ *
6
+ */
7
+ export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -1 +1,7 @@
1
- export declare const toUtf8: (input: Uint8Array) => string;
1
+ /**
2
+ *
3
+ * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
+ * a string is received instead of a Uint8Array.
5
+ *
6
+ */
7
+ export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -1 +1,7 @@
1
- export declare const toUtf8: (input: Uint8Array) => string;
1
+ /**
2
+ *
3
+ * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
+ * a string is received instead of a Uint8Array.
5
+ *
6
+ */
7
+ export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-utf8",
3
- "version": "2.1.1",
3
+ "version": "2.3.0",
4
4
  "description": "A UTF-8 string <-> UInt8Array converter",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/util-buffer-from": "^2.1.1",
26
- "tslib": "^2.5.0"
25
+ "@smithy/util-buffer-from": "^2.2.0",
26
+ "tslib": "^2.6.2"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@tsconfig/recommended": "1.0.1",
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@smithy/util-waiter",
3
- "version": "2.1.3",
3
+ "version": "2.2.0",
4
4
  "description": "Shared utilities for client waiters for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/abort-controller": "^2.1.3",
7
- "@smithy/types": "^2.10.1",
8
- "tslib": "^2.5.0"
6
+ "@smithy/abort-controller": "^2.2.0",
7
+ "@smithy/types": "^2.12.0",
8
+ "tslib": "^2.6.2"
9
9
  },
10
10
  "scripts": {
11
11
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -2,6 +2,51 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [9.0.1](https://github.com/uuidjs/uuid/compare/v9.0.0...v9.0.1) (2023-09-12)
6
+
7
+ ### build
8
+
9
+ - Fix CI to work with Node.js 20.x
10
+
11
+ ## [9.0.0](https://github.com/uuidjs/uuid/compare/v8.3.2...v9.0.0) (2022-09-05)
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ - Drop Node.js 10.x support. This library always aims at supporting one EOLed LTS release which by this time now is 12.x which has reached EOL 30 Apr 2022.
16
+
17
+ - Remove the minified UMD build from the package.
18
+
19
+ Minified code is hard to audit and since this is a widely used library it seems more appropriate nowadays to optimize for auditability than to ship a legacy module format that, at best, serves educational purposes nowadays.
20
+
21
+ For production browser use cases, users should be using a bundler. For educational purposes, today's online sandboxes like replit.com offer convenient ways to load npm modules, so the use case for UMD through repos like UNPKG or jsDelivr has largely vanished.
22
+
23
+ - Drop IE 11 and Safari 10 support. Drop support for browsers that don't correctly implement const/let and default arguments, and no longer transpile the browser build to ES2015.
24
+
25
+ This also removes the fallback on msCrypto instead of the crypto API.
26
+
27
+ Browser tests are run in the first supported version of each supported browser and in the latest (as of this commit) version available on Browserstack.
28
+
29
+ ### Features
30
+
31
+ - optimize uuid.v1 by 1.3x uuid.v4 by 4.3x (430%) ([#597](https://github.com/uuidjs/uuid/issues/597)) ([3a033f6](https://github.com/uuidjs/uuid/commit/3a033f6bab6bb3780ece6d645b902548043280bc))
32
+ - remove UMD build ([#645](https://github.com/uuidjs/uuid/issues/645)) ([e948a0f](https://github.com/uuidjs/uuid/commit/e948a0f22bf22f4619b27bd913885e478e20fe6f)), closes [#620](https://github.com/uuidjs/uuid/issues/620)
33
+ - use native crypto.randomUUID when available ([#600](https://github.com/uuidjs/uuid/issues/600)) ([c9e076c](https://github.com/uuidjs/uuid/commit/c9e076c852edad7e9a06baaa1d148cf4eda6c6c4))
34
+
35
+ ### Bug Fixes
36
+
37
+ - add Jest/jsdom compatibility ([#642](https://github.com/uuidjs/uuid/issues/642)) ([16f9c46](https://github.com/uuidjs/uuid/commit/16f9c469edf46f0786164cdf4dc980743984a6fd))
38
+ - change default export to named function ([#545](https://github.com/uuidjs/uuid/issues/545)) ([c57bc5a](https://github.com/uuidjs/uuid/commit/c57bc5a9a0653273aa639cda9177ce52efabe42a))
39
+ - handle error when parameter is not set in v3 and v5 ([#622](https://github.com/uuidjs/uuid/issues/622)) ([fcd7388](https://github.com/uuidjs/uuid/commit/fcd73881692d9fabb63872576ba28e30ff852091))
40
+ - run npm audit fix ([#644](https://github.com/uuidjs/uuid/issues/644)) ([04686f5](https://github.com/uuidjs/uuid/commit/04686f54c5fed2cfffc1b619f4970c4bb8532353))
41
+ - upgrading from uuid3 broken link ([#568](https://github.com/uuidjs/uuid/issues/568)) ([1c849da](https://github.com/uuidjs/uuid/commit/1c849da6e164259e72e18636726345b13a7eddd6))
42
+
43
+ ### build
44
+
45
+ - drop Node.js 8.x from babel transpile target ([#603](https://github.com/uuidjs/uuid/issues/603)) ([aa11485](https://github.com/uuidjs/uuid/commit/aa114858260402107ec8a1e1a825dea0a259bcb5))
46
+ - drop support for legacy browsers (IE11, Safari 10) ([#604](https://github.com/uuidjs/uuid/issues/604)) ([0f433e5](https://github.com/uuidjs/uuid/commit/0f433e5ec444edacd53016de67db021102f36148))
47
+
48
+ - drop node 10.x to upgrade dev dependencies ([#653](https://github.com/uuidjs/uuid/issues/653)) ([28a5712](https://github.com/uuidjs/uuid/commit/28a571283f8abda6b9d85e689f95b7d3ee9e282e)), closes [#643](https://github.com/uuidjs/uuid/issues/643)
49
+
5
50
  ### [8.3.2](https://github.com/uuidjs/uuid/compare/v8.3.1...v8.3.2) (2020-12-08)
6
51
 
7
52
  ### Bug Fixes
@@ -2,22 +2,25 @@
2
2
  -- This file is auto-generated from README_js.md. Changes should be made there.
3
3
  -->
4
4
 
5
+
5
6
  # uuid [![CI](https://github.com/uuidjs/uuid/workflows/CI/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ACI) [![Browser](https://github.com/uuidjs/uuid/workflows/Browser/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ABrowser)
6
7
 
7
- For the creation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDs
8
+ For the creation of [RFC4122](https://www.ietf.org/rfc/rfc4122.txt) UUIDs
8
9
 
9
10
  - **Complete** - Support for RFC4122 version 1, 3, 4, and 5 UUIDs
10
11
  - **Cross-platform** - Support for ...
11
12
  - CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds)
12
- - Node 8, 10, 12, 14
13
- - Chrome, Safari, Firefox, Edge, IE 11 browsers
13
+ - NodeJS 12+ ([LTS releases](https://github.com/nodejs/Release))
14
+ - Chrome, Safari, Firefox, Edge browsers
14
15
  - Webpack and rollup.js module bundlers
15
16
  - [React Native / Expo](#react-native--expo)
16
17
  - **Secure** - Cryptographically-strong random values
17
18
  - **Small** - Zero-dependency, small footprint, plays nice with "tree shaking" packagers
18
19
  - **CLI** - Includes the [`uuid` command line](#command-line) utility
19
20
 
20
- **Upgrading from `uuid@3.x`?** Your code is probably okay, but check out [Upgrading From `uuid@3.x`](#upgrading-from-uuid3x) for details.
21
+ > **Note** Upgrading from `uuid@3`? Your code is probably okay, but check out [Upgrading From `uuid@3`](#upgrading-from-uuid3) for details.
22
+
23
+ > **Note** Only interested in creating a version 4 UUID? You might be able to use [`crypto.randomUUID()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID), eliminating the need to install this library.
21
24
 
22
25
  ## Quickstart
23
26
 
@@ -122,22 +125,7 @@ Example:
122
125
  import { stringify as uuidStringify } from 'uuid';
123
126
 
124
127
  const uuidBytes = [
125
- 0x6e,
126
- 0xc0,
127
- 0xbd,
128
- 0x7f,
129
- 0x11,
130
- 0xc0,
131
- 0x43,
132
- 0xda,
133
- 0x97,
134
- 0x5e,
135
- 0x2a,
136
- 0x8a,
137
- 0xd9,
138
- 0xeb,
139
- 0xae,
140
- 0x0b,
128
+ 0x6e, 0xc0, 0xbd, 0x7f, 0x11, 0xc0, 0x43, 0xda, 0x97, 0x5e, 0x2a, 0x8a, 0xd9, 0xeb, 0xae, 0x0b,
141
129
  ];
142
130
 
143
131
  uuidStringify(uuidBytes); // ⇨ '6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'
@@ -153,7 +141,7 @@ Create an RFC version 1 (timestamp) UUID
153
141
  | [`options.node` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) |
154
142
  | [`options.clockseq`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff |
155
143
  | [`options.msecs`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) |
156
- | [`options.nsecs`] | RFC "timestamp" field (`Number` of nanseconds to add to `msecs`, should be 0-10,000) |
144
+ | [`options.nsecs`] | RFC "timestamp" field (`Number` of nanoseconds to add to `msecs`, should be 0-10,000) |
157
145
  | [`options.random`] | `Array` of 16 random bytes (0-255) |
158
146
  | [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) |
159
147
  | [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` |
@@ -223,22 +211,7 @@ import { v4 as uuidv4 } from 'uuid';
223
211
 
224
212
  const v4options = {
225
213
  random: [
226
- 0x10,
227
- 0x91,
228
- 0x56,
229
- 0xbe,
230
- 0xc4,
231
- 0xfb,
232
- 0xc1,
233
- 0xea,
234
- 0x71,
235
- 0xb4,
236
- 0xef,
237
- 0xe1,
238
- 0x67,
239
- 0x1c,
240
- 0x58,
241
- 0x36,
214
+ 0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea, 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36,
242
215
  ],
243
216
  };
244
217
  uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836'
@@ -337,14 +310,14 @@ uuidVersion('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ 4
337
310
  UUIDs can be generated from the command line using `uuid`.
338
311
 
339
312
  ```shell
340
- $ uuid
313
+ $ npx uuid
341
314
  ddeb27fb-d9a0-4624-be4d-4615062daed4
342
315
  ```
343
316
 
344
317
  The default is to generate version 4 UUIDS, however the other versions are supported. Type `uuid --help` for details:
345
318
 
346
319
  ```shell
347
- $ uuid --help
320
+ $ npx uuid --help
348
321
 
349
322
  Usage:
350
323
  uuid
@@ -388,37 +361,20 @@ To load this module directly into modern browsers that [support loading ECMAScri
388
361
 
389
362
  ### UMD
390
363
 
391
- To load this module directly into older browsers you can use the [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds from any of the following CDNs:
392
-
393
- **Using [UNPKG](https://unpkg.com/uuid@latest/dist/umd/)**:
394
-
395
- ```html
396
- <script src="https://unpkg.com/uuid@latest/dist/umd/uuidv4.min.js"></script>
397
- ```
398
-
399
- **Using [jsDelivr](https://cdn.jsdelivr.net/npm/uuid@latest/dist/umd/)**:
400
-
401
- ```html
402
- <script src="https://cdn.jsdelivr.net/npm/uuid@latest/dist/umd/uuidv4.min.js"></script>
403
- ```
364
+ As of `uuid@9` [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds are no longer shipped with this library.
404
365
 
405
- **Using [cdnjs](https://cdnjs.com/libraries/uuid)**:
366
+ If you need a UMD build of this library, use a bundler like Webpack or Rollup. Alternatively, refer to the documentation of [`uuid@8.3.2`](https://github.com/uuidjs/uuid/blob/v8.3.2/README.md#umd) which was the last version that shipped UMD builds.
406
367
 
407
- ```html
408
- <script src="https://cdnjs.cloudflare.com/ajax/libs/uuid/8.1.0/uuidv4.min.js"></script>
409
- ```
368
+ ## Known issues
410
369
 
411
- These CDNs all provide the same [`uuidv4()`](#uuidv4options-buffer-offset) method:
370
+ ### Duplicate UUIDs (Googlebot)
412
371
 
413
- ```html
414
- <script>
415
- uuidv4(); // ⇨ '55af1e37-0734-46d8-b070-a1e42e4fc392'
416
- </script>
417
- ```
372
+ This module may generate duplicate UUIDs when run in clients with _deterministic_ random number generators, such as [Googlebot crawlers](https://developers.google.com/search/docs/advanced/crawling/overview-google-crawlers). This can cause problems for apps that expect client-generated UUIDs to always be unique. Developers should be prepared for this and have a strategy for dealing with possible collisions, such as:
418
373
 
419
- Methods for the other algorithms ([`uuidv1()`](#uuidv1options-buffer-offset), [`uuidv3()`](#uuidv3name-namespace-buffer-offset) and [`uuidv5()`](#uuidv5name-namespace-buffer-offset)) are available from the files `uuidv1.min.js`, `uuidv3.min.js` and `uuidv5.min.js` respectively.
374
+ - Check for duplicate UUIDs, fail gracefully
375
+ - Disable write operations for Googlebot clients
420
376
 
421
- ## "getRandomValues() not supported"
377
+ ### "getRandomValues() not supported"
422
378
 
423
379
  This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill:
424
380
 
@@ -438,11 +394,15 @@ Note: If you are using Expo, you must be using at least `react-native-get-random
438
394
 
439
395
  [In Edge <= 18, Web Crypto is not supported in Web Workers or Service Workers](https://caniuse.com/#feat=cryptography) and we are not aware of a polyfill (let us know if you find one, please).
440
396
 
441
- ## Upgrading From `uuid@7.x`
397
+ ### IE 11 (Internet Explorer)
398
+
399
+ Support for IE11 and other legacy browsers has been dropped as of `uuid@9`. If you need to support legacy browsers, you can always transpile the uuid module source yourself (e.g. using [Babel](https://babeljs.io/)).
400
+
401
+ ## Upgrading From `uuid@7`
442
402
 
443
403
  ### Only Named Exports Supported When Using with Node.js ESM
444
404
 
445
- `uuid@7.x` did not come with native ECMAScript Module (ESM) support for Node.js. Importing it in Node.js ESM consequently imported the CommonJS source with a default export. This library now comes with true Node.js ESM support and only provides named exports.
405
+ `uuid@7` did not come with native ECMAScript Module (ESM) support for Node.js. Importing it in Node.js ESM consequently imported the CommonJS source with a default export. This library now comes with true Node.js ESM support and only provides named exports.
446
406
 
447
407
  Instead of doing:
448
408
 
@@ -460,24 +420,24 @@ uuidv4();
460
420
 
461
421
  ### Deep Requires No Longer Supported
462
422
 
463
- Deep requires like `require('uuid/v4')` [which have been deprecated in `uuid@7.x`](#deep-requires-now-deprecated) are no longer supported.
423
+ Deep requires like `require('uuid/v4')` [which have been deprecated in `uuid@7`](#deep-requires-now-deprecated) are no longer supported.
464
424
 
465
- ## Upgrading From `uuid@3.x`
425
+ ## Upgrading From `uuid@3`
466
426
 
467
- "_Wait... what happened to `uuid@4.x` - `uuid@6.x`?!?_"
427
+ "_Wait... what happened to `uuid@4` thru `uuid@6`?!?_"
468
428
 
469
429
  In order to avoid confusion with RFC [version 4](#uuidv4options-buffer-offset) and [version 5](#uuidv5name-namespace-buffer-offset) UUIDs, and a possible [version 6](http://gh.peabody.io/uuidv6/), releases 4 thru 6 of this module have been skipped.
470
430
 
471
431
  ### Deep Requires Now Deprecated
472
432
 
473
- `uuid@3.x` encouraged the use of deep requires to minimize the bundle size of browser builds:
433
+ `uuid@3` encouraged the use of deep requires to minimize the bundle size of browser builds:
474
434
 
475
435
  ```javascript
476
436
  const uuidv4 = require('uuid/v4'); // <== NOW DEPRECATED!
477
437
  uuidv4();
478
438
  ```
479
439
 
480
- As of `uuid@7.x` this library now provides ECMAScript modules builds, which allow packagers like Webpack and Rollup to do "tree-shaking" to remove dead code. Instead, use the `import` syntax:
440
+ As of `uuid@7` this library now provides ECMAScript modules builds, which allow packagers like Webpack and Rollup to do "tree-shaking" to remove dead code. Instead, use the `import` syntax:
481
441
 
482
442
  ```javascript
483
443
  import { v4 as uuidv4 } from 'uuid';
@@ -493,13 +453,14 @@ uuidv4();
493
453
 
494
454
  ### Default Export Removed
495
455
 
496
- `uuid@3.x` was exporting the Version 4 UUID method as a default export:
456
+ `uuid@3` was exporting the Version 4 UUID method as a default export:
497
457
 
498
458
  ```javascript
499
459
  const uuid = require('uuid'); // <== REMOVED!
500
460
  ```
501
461
 
502
- This usage pattern was already discouraged in `uuid@3.x` and has been removed in `uuid@7.x`.
462
+ This usage pattern was already discouraged in `uuid@3` and has been removed in `uuid@7`.
463
+
464
+ ---
503
465
 
504
- ----
505
- Markdown generated from [README_js.md](README_js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd)
466
+ Markdown generated from [README_js.md](README_js.md) by <a href="https://github.com/broofa/runmd"><image height="12px" src="https://camo.githubusercontent.com/5c7c603cd1e6a43370b0a5063d457e0dabb74cf317adc7baba183acb686ee8d0/687474703a2f2f692e696d6775722e636f6d2f634a4b6f3662552e706e67" /></a>
@@ -20,11 +20,11 @@
20
20
  */
21
21
  function md5(bytes) {
22
22
  if (typeof bytes === 'string') {
23
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
23
+ const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
24
24
 
25
25
  bytes = new Uint8Array(msg.length);
26
26
 
27
- for (var i = 0; i < msg.length; ++i) {
27
+ for (let i = 0; i < msg.length; ++i) {
28
28
  bytes[i] = msg.charCodeAt(i);
29
29
  }
30
30
  }
@@ -37,13 +37,13 @@ function md5(bytes) {
37
37
 
38
38
 
39
39
  function md5ToHexEncodedArray(input) {
40
- var output = [];
41
- var length32 = input.length * 32;
42
- var hexTab = '0123456789abcdef';
40
+ const output = [];
41
+ const length32 = input.length * 32;
42
+ const hexTab = '0123456789abcdef';
43
43
 
44
- for (var i = 0; i < length32; i += 8) {
45
- var x = input[i >> 5] >>> i % 32 & 0xff;
46
- var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
44
+ for (let i = 0; i < length32; i += 8) {
45
+ const x = input[i >> 5] >>> i % 32 & 0xff;
46
+ const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
47
47
  output.push(hex);
48
48
  }
49
49
 
@@ -66,16 +66,16 @@ function wordsToMd5(x, len) {
66
66
  /* append padding */
67
67
  x[len >> 5] |= 0x80 << len % 32;
68
68
  x[getOutputLength(len) - 1] = len;
69
- var a = 1732584193;
70
- var b = -271733879;
71
- var c = -1732584194;
72
- var d = 271733878;
73
-
74
- for (var i = 0; i < x.length; i += 16) {
75
- var olda = a;
76
- var oldb = b;
77
- var oldc = c;
78
- var oldd = d;
69
+ let a = 1732584193;
70
+ let b = -271733879;
71
+ let c = -1732584194;
72
+ let d = 271733878;
73
+
74
+ for (let i = 0; i < x.length; i += 16) {
75
+ const olda = a;
76
+ const oldb = b;
77
+ const oldc = c;
78
+ const oldd = d;
79
79
  a = md5ff(a, b, c, d, x[i], 7, -680876936);
80
80
  d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
81
81
  c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
@@ -159,10 +159,10 @@ function bytesToWords(input) {
159
159
  return [];
160
160
  }
161
161
 
162
- var length8 = input.length * 8;
163
- var output = new Uint32Array(getOutputLength(length8));
162
+ const length8 = input.length * 8;
163
+ const output = new Uint32Array(getOutputLength(length8));
164
164
 
165
- for (var i = 0; i < length8; i += 8) {
165
+ for (let i = 0; i < length8; i += 8) {
166
166
  output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
167
167
  }
168
168
 
@@ -175,8 +175,8 @@ function bytesToWords(input) {
175
175
 
176
176
 
177
177
  function safeAdd(x, y) {
178
- var lsw = (x & 0xffff) + (y & 0xffff);
179
- var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
178
+ const lsw = (x & 0xffff) + (y & 0xffff);
179
+ const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
180
180
  return msw << 16 | lsw & 0xffff;
181
181
  }
182
182
  /*
@@ -5,8 +5,8 @@ function parse(uuid) {
5
5
  throw TypeError('Invalid UUID');
6
6
  }
7
7
 
8
- var v;
9
- var arr = new Uint8Array(16); // Parse ########-....-....-....-............
8
+ let v;
9
+ const arr = new Uint8Array(16); // Parse ########-....-....-....-............
10
10
 
11
11
  arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
12
12
  arr[1] = v >>> 16 & 0xff;
@@ -1,14 +1,13 @@
1
1
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
2
2
  // require the crypto API and do not support built-in fallback to lower quality random number
3
3
  // generators (like Math.random()).
4
- var getRandomValues;
5
- var rnds8 = new Uint8Array(16);
4
+ let getRandomValues;
5
+ const rnds8 = new Uint8Array(16);
6
6
  export default function rng() {
7
7
  // lazy load so that environments that need to polyfill have a chance to do so
8
8
  if (!getRandomValues) {
9
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
10
- // find the complete implementation of crypto (msCrypto) on IE11.
11
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
9
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
10
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
12
11
 
13
12
  if (!getRandomValues) {
14
13
  throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
@@ -21,15 +21,15 @@ function ROTL(x, n) {
21
21
  }
22
22
 
23
23
  function sha1(bytes) {
24
- var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
25
- var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
24
+ const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
25
+ const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
26
26
 
27
27
  if (typeof bytes === 'string') {
28
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
28
+ const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
29
29
 
30
30
  bytes = [];
31
31
 
32
- for (var i = 0; i < msg.length; ++i) {
32
+ for (let i = 0; i < msg.length; ++i) {
33
33
  bytes.push(msg.charCodeAt(i));
34
34
  }
35
35
  } else if (!Array.isArray(bytes)) {
@@ -38,44 +38,44 @@ function sha1(bytes) {
38
38
  }
39
39
 
40
40
  bytes.push(0x80);
41
- var l = bytes.length / 4 + 2;
42
- var N = Math.ceil(l / 16);
43
- var M = new Array(N);
41
+ const l = bytes.length / 4 + 2;
42
+ const N = Math.ceil(l / 16);
43
+ const M = new Array(N);
44
44
 
45
- for (var _i = 0; _i < N; ++_i) {
46
- var arr = new Uint32Array(16);
45
+ for (let i = 0; i < N; ++i) {
46
+ const arr = new Uint32Array(16);
47
47
 
48
- for (var j = 0; j < 16; ++j) {
49
- arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
48
+ for (let j = 0; j < 16; ++j) {
49
+ arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
50
50
  }
51
51
 
52
- M[_i] = arr;
52
+ M[i] = arr;
53
53
  }
54
54
 
55
55
  M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
56
56
  M[N - 1][14] = Math.floor(M[N - 1][14]);
57
57
  M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
58
58
 
59
- for (var _i2 = 0; _i2 < N; ++_i2) {
60
- var W = new Uint32Array(80);
59
+ for (let i = 0; i < N; ++i) {
60
+ const W = new Uint32Array(80);
61
61
 
62
- for (var t = 0; t < 16; ++t) {
63
- W[t] = M[_i2][t];
62
+ for (let t = 0; t < 16; ++t) {
63
+ W[t] = M[i][t];
64
64
  }
65
65
 
66
- for (var _t = 16; _t < 80; ++_t) {
67
- W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
66
+ for (let t = 16; t < 80; ++t) {
67
+ W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
68
68
  }
69
69
 
70
- var a = H[0];
71
- var b = H[1];
72
- var c = H[2];
73
- var d = H[3];
74
- var e = H[4];
70
+ let a = H[0];
71
+ let b = H[1];
72
+ let c = H[2];
73
+ let d = H[3];
74
+ let e = H[4];
75
75
 
76
- for (var _t2 = 0; _t2 < 80; ++_t2) {
77
- var s = Math.floor(_t2 / 20);
78
- var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
76
+ for (let t = 0; t < 80; ++t) {
77
+ const s = Math.floor(t / 20);
78
+ const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
79
79
  e = d;
80
80
  d = c;
81
81
  c = ROTL(b, 30) >>> 0;
@@ -4,17 +4,20 @@ import validate from './validate.js';
4
4
  * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
5
5
  */
6
6
 
7
- var byteToHex = [];
7
+ const byteToHex = [];
8
8
 
9
- for (var i = 0; i < 256; ++i) {
10
- byteToHex.push((i + 0x100).toString(16).substr(1));
9
+ for (let i = 0; i < 256; ++i) {
10
+ byteToHex.push((i + 0x100).toString(16).slice(1));
11
11
  }
12
12
 
13
- function stringify(arr) {
14
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
13
+ export function unsafeStringify(arr, offset = 0) {
15
14
  // Note: Be careful editing this code! It's been tuned for performance
16
15
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
17
- var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
16
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
17
+ }
18
+
19
+ function stringify(arr, offset = 0) {
20
+ const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
18
21
  // of the following:
19
22
  // - One or more input array values don't map to a hex octet (leading to
20
23
  // "undefined" in the uuid)