@cdklabs/cdk-ssm-documents 0.0.79 → 0.0.80

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 (393) 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 +3 -3
  117. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +34 -3
  118. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/CloudFormationServiceException.js +1 -0
  119. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/errors.js +29 -0
  120. package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +3 -2
  121. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ContinueUpdateRollbackCommand.d.ts +4 -0
  122. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/CloudFormationServiceException.d.ts +1 -0
  123. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/errors.d.ts +29 -0
  124. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +27 -3
  125. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/CloudFormationServiceException.d.ts +1 -0
  126. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/errors.d.ts +29 -0
  127. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +1 -0
  128. package/node_modules/@aws-sdk/client-cloudformation/package.json +4 -4
  129. package/node_modules/@aws-sdk/client-cloudwatch/dist-cjs/index.js +21 -1
  130. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/models/CloudWatchServiceException.js +1 -0
  131. package/node_modules/@aws-sdk/client-cloudwatch/dist-es/models/errors.js +19 -0
  132. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/CloudWatchServiceException.d.ts +1 -0
  133. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/models/errors.d.ts +19 -0
  134. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/CloudWatchServiceException.d.ts +1 -0
  135. package/node_modules/@aws-sdk/client-cloudwatch/dist-types/ts3.4/models/errors.d.ts +19 -0
  136. package/node_modules/@aws-sdk/client-cloudwatch/package.json +4 -4
  137. package/node_modules/@aws-sdk/client-ec2/README.md +21 -0
  138. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +207 -43
  139. package/node_modules/@aws-sdk/client-ec2/dist-es/EC2.js +6 -0
  140. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/DeleteClientVpnEndpointAuthorizationPolicyCommand.js +4 -0
  141. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/GetClientVpnEndpointAuthorizationPolicyCommand.js +4 -0
  142. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/ModifyClientVpnEndpointAuthorizationPolicyCommand.js +4 -0
  143. package/node_modules/@aws-sdk/client-ec2/dist-es/commands/index.js +3 -0
  144. package/node_modules/@aws-sdk/client-ec2/dist-es/models/EC2ServiceException.js +1 -0
  145. package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +24 -0
  146. package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +149 -42
  147. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2.d.ts +21 -0
  148. package/node_modules/@aws-sdk/client-ec2/dist-types/EC2Client.d.ts +5 -2
  149. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationBySplittingCommand.d.ts +2 -0
  150. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateCapacityReservationCommand.d.ts +1 -0
  151. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateClientVpnEndpointCommand.d.ts +11 -0
  152. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/CreateIpamInternetRegistryAssociationCommand.d.ts +3 -3
  153. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteClientVpnEndpointAuthorizationPolicyCommand.d.ts +72 -0
  154. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteIpamInternetRegistryAssociationCommand.d.ts +2 -2
  155. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DeleteLaunchTemplateVersionsCommand.d.ts +1 -2
  156. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +1 -0
  157. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeClientVpnConnectionsCommand.d.ts +1 -0
  158. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeClientVpnEndpointsCommand.d.ts +10 -0
  159. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFleetInstancesCommand.d.ts +1 -1
  160. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeFleetsCommand.d.ts +1 -2
  161. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeIpamInternetRegistryAssociationsCommand.d.ts +2 -2
  162. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +2 -1
  163. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeRouteServerEndpointsCommand.d.ts +1 -1
  164. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DescribeRouteServerPeersCommand.d.ts +1 -2
  165. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +2 -1
  166. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisassociateTrunkInterfaceCommand.d.ts +1 -1
  167. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/DisassociateVpcCidrBlockCommand.d.ts +1 -1
  168. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableAddressTransferCommand.d.ts +1 -2
  169. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/EnableIpamInternetRegistryAssociationCommand.d.ts +2 -2
  170. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetClientVpnEndpointAuthorizationPolicyCommand.d.ts +76 -0
  171. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetVpnTunnelReplacementStatusCommand.d.ts +2 -1
  172. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ImportClientVpnClientCertificateRevocationListCommand.d.ts +1 -1
  173. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyClientVpnEndpointAuthorizationPolicyCommand.d.ts +76 -0
  174. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyClientVpnEndpointCommand.d.ts +11 -0
  175. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/MoveCapacityReservationInstancesCommand.d.ts +2 -0
  176. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/PurchaseCapacityBlockCommand.d.ts +1 -0
  177. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceImageCriteriaInAllowedImagesSettingsCommand.d.ts +1 -1
  178. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceImageInstanceTypeSpecificationCommand.d.ts +1 -1
  179. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ReplaceNetworkAclAssociationCommand.d.ts +1 -1
  180. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/index.d.ts +3 -0
  181. package/node_modules/@aws-sdk/client-ec2/dist-types/models/EC2ServiceException.d.ts +1 -0
  182. package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +56 -0
  183. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_0.d.ts +25 -2
  184. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_1.d.ts +62 -92
  185. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_2.d.ts +151 -109
  186. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_3.d.ts +162 -218
  187. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_4.d.ts +219 -211
  188. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_5.d.ts +211 -108
  189. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +160 -181
  190. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_7.d.ts +244 -285
  191. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_8.d.ts +283 -1
  192. package/node_modules/@aws-sdk/client-ec2/dist-types/schemas/schemas_0.d.ts +13 -0
  193. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2.d.ts +51 -0
  194. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/EC2Client.d.ts +18 -0
  195. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteClientVpnEndpointAuthorizationPolicyCommand.d.ts +42 -0
  196. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DeleteLaunchTemplateVersionsCommand.d.ts +4 -2
  197. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeFleetInstancesCommand.d.ts +1 -1
  198. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeFleetsCommand.d.ts +1 -2
  199. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeReservedInstancesOfferingsCommand.d.ts +2 -4
  200. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeRouteServerEndpointsCommand.d.ts +1 -1
  201. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DescribeRouteServerPeersCommand.d.ts +4 -2
  202. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +2 -4
  203. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DisassociateTrunkInterfaceCommand.d.ts +1 -1
  204. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/DisassociateVpcCidrBlockCommand.d.ts +1 -1
  205. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/EnableAddressTransferCommand.d.ts +1 -2
  206. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetClientVpnEndpointAuthorizationPolicyCommand.d.ts +42 -0
  207. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/GetVpnTunnelReplacementStatusCommand.d.ts +2 -4
  208. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ImportClientVpnClientCertificateRevocationListCommand.d.ts +1 -1
  209. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ModifyClientVpnEndpointAuthorizationPolicyCommand.d.ts +42 -0
  210. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReplaceImageCriteriaInAllowedImagesSettingsCommand.d.ts +1 -1
  211. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReplaceImageInstanceTypeSpecificationCommand.d.ts +1 -1
  212. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/ReplaceNetworkAclAssociationCommand.d.ts +1 -1
  213. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/commands/index.d.ts +3 -0
  214. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/EC2ServiceException.d.ts +1 -0
  215. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +32 -0
  216. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_0.d.ts +2 -0
  217. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_1.d.ts +12 -17
  218. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_2.d.ts +27 -24
  219. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_3.d.ts +34 -44
  220. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_4.d.ts +43 -55
  221. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_5.d.ts +55 -29
  222. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +41 -42
  223. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_7.d.ts +57 -48
  224. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_8.d.ts +45 -0
  225. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -0
  226. package/node_modules/@aws-sdk/client-ec2/package.json +5 -5
  227. package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +40 -1
  228. package/node_modules/@aws-sdk/client-iam/dist-es/models/IAMServiceException.js +1 -0
  229. package/node_modules/@aws-sdk/client-iam/dist-es/models/errors.js +38 -0
  230. package/node_modules/@aws-sdk/client-iam/dist-types/models/IAMServiceException.d.ts +1 -0
  231. package/node_modules/@aws-sdk/client-iam/dist-types/models/errors.d.ts +38 -0
  232. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/IAMServiceException.d.ts +1 -0
  233. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/models/errors.d.ts +38 -0
  234. package/node_modules/@aws-sdk/client-iam/package.json +4 -4
  235. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +66 -1
  236. package/node_modules/@aws-sdk/client-lambda/dist-es/models/LambdaServiceException.js +1 -0
  237. package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +8 -0
  238. package/node_modules/@aws-sdk/client-lambda/dist-es/models/errors.js +56 -0
  239. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +6 -6
  240. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +3 -3
  241. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +3 -3
  242. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
  243. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeWithResponseStreamCommand.d.ts +9 -0
  244. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +3 -3
  245. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +6 -6
  246. package/node_modules/@aws-sdk/client-lambda/dist-types/models/LambdaServiceException.d.ts +1 -0
  247. package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +8 -0
  248. package/node_modules/@aws-sdk/client-lambda/dist-types/models/errors.d.ts +56 -0
  249. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +3 -3
  250. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/LambdaServiceException.d.ts +1 -0
  251. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +8 -0
  252. package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/errors.d.ts +56 -0
  253. package/node_modules/@aws-sdk/client-lambda/package.json +4 -4
  254. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +24 -1
  255. package/node_modules/@aws-sdk/client-s3/dist-es/models/S3ServiceException.js +1 -0
  256. package/node_modules/@aws-sdk/client-s3/dist-es/models/enums.js +1 -0
  257. package/node_modules/@aws-sdk/client-s3/dist-es/models/errors.js +21 -0
  258. package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -1
  259. package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -1
  260. package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  261. package/node_modules/@aws-sdk/client-s3/dist-types/models/S3ServiceException.d.ts +1 -0
  262. package/node_modules/@aws-sdk/client-s3/dist-types/models/enums.d.ts +1 -0
  263. package/node_modules/@aws-sdk/client-s3/dist-types/models/errors.d.ts +21 -0
  264. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/S3ServiceException.d.ts +1 -0
  265. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/enums.d.ts +1 -0
  266. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/models/errors.d.ts +21 -0
  267. package/node_modules/@aws-sdk/client-s3/package.json +8 -8
  268. package/node_modules/@aws-sdk/client-sns/dist-cjs/index.js +36 -1
  269. package/node_modules/@aws-sdk/client-sns/dist-es/models/SNSServiceException.js +1 -0
  270. package/node_modules/@aws-sdk/client-sns/dist-es/models/errors.js +34 -0
  271. package/node_modules/@aws-sdk/client-sns/dist-types/models/SNSServiceException.d.ts +1 -0
  272. package/node_modules/@aws-sdk/client-sns/dist-types/models/errors.d.ts +34 -0
  273. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/models/SNSServiceException.d.ts +1 -0
  274. package/node_modules/@aws-sdk/client-sns/dist-types/ts3.4/models/errors.d.ts +34 -0
  275. package/node_modules/@aws-sdk/client-sns/package.json +4 -4
  276. package/node_modules/@aws-sdk/client-sqs/dist-cjs/index.js +30 -1
  277. package/node_modules/@aws-sdk/client-sqs/dist-es/models/SQSServiceException.js +1 -0
  278. package/node_modules/@aws-sdk/client-sqs/dist-es/models/errors.js +28 -0
  279. package/node_modules/@aws-sdk/client-sqs/dist-types/models/SQSServiceException.d.ts +1 -0
  280. package/node_modules/@aws-sdk/client-sqs/dist-types/models/errors.d.ts +28 -0
  281. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/models/SQSServiceException.d.ts +1 -0
  282. package/node_modules/@aws-sdk/client-sqs/dist-types/ts3.4/models/errors.d.ts +28 -0
  283. package/node_modules/@aws-sdk/client-sqs/package.json +5 -5
  284. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +150 -3
  285. package/node_modules/@aws-sdk/client-ssm/dist-es/models/SSMServiceException.js +1 -0
  286. package/node_modules/@aws-sdk/client-ssm/dist-es/models/enums.js +4 -0
  287. package/node_modules/@aws-sdk/client-ssm/dist-es/models/errors.js +140 -0
  288. package/node_modules/@aws-sdk/client-ssm/dist-es/schemas/schemas_0.js +3 -2
  289. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteResourcePolicyCommand.d.ts +6 -0
  290. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutResourcePolicyCommand.d.ts +12 -0
  291. package/node_modules/@aws-sdk/client-ssm/dist-types/models/SSMServiceException.d.ts +1 -0
  292. package/node_modules/@aws-sdk/client-ssm/dist-types/models/enums.d.ts +12 -0
  293. package/node_modules/@aws-sdk/client-ssm/dist-types/models/errors.d.ts +140 -0
  294. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +20 -1
  295. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +2 -2
  296. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/SSMServiceException.d.ts +1 -0
  297. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/enums.d.ts +5 -0
  298. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/errors.d.ts +140 -0
  299. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +2 -0
  300. package/node_modules/@aws-sdk/client-ssm/package.json +4 -4
  301. package/node_modules/@aws-sdk/core/package.json +3 -3
  302. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  303. package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
  304. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
  305. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  306. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  307. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  308. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  309. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  310. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +4 -4
  311. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +4 -4
  312. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +2 -2
  313. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +11 -1
  314. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +6 -1
  315. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +6 -1
  316. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +13 -1
  317. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +9 -1
  318. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -0
  319. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +9 -0
  320. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js +1 -0
  321. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js +4 -0
  322. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js +1 -0
  323. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js +4 -0
  324. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -0
  325. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js +11 -0
  326. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js +1 -0
  327. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +7 -0
  328. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
  329. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +9 -0
  330. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -0
  331. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +4 -0
  332. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -0
  333. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/errors.d.ts +4 -0
  334. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
  335. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +11 -0
  336. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -0
  337. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +7 -0
  338. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -0
  339. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +9 -0
  340. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -0
  341. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/errors.d.ts +4 -0
  342. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -0
  343. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/errors.d.ts +4 -0
  344. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -0
  345. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +11 -0
  346. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -0
  347. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +7 -0
  348. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  349. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  350. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  351. package/node_modules/@jsep-plugin/assignment/dist/cjs/index.cjs.js.map +1 -1
  352. package/node_modules/@jsep-plugin/assignment/dist/cjs/index.cjs.min.js +1 -1
  353. package/node_modules/@jsep-plugin/assignment/dist/cjs/index.cjs.min.js.map +1 -1
  354. package/node_modules/@jsep-plugin/assignment/dist/iife/index.iife.js +1 -1
  355. package/node_modules/@jsep-plugin/assignment/dist/iife/index.iife.js.map +1 -1
  356. package/node_modules/@jsep-plugin/assignment/dist/iife/index.iife.min.js +1 -1
  357. package/node_modules/@jsep-plugin/assignment/dist/iife/index.iife.min.js.map +1 -1
  358. package/node_modules/@jsep-plugin/assignment/dist/index.min.js +1 -1
  359. package/node_modules/@jsep-plugin/assignment/dist/index.min.js.map +1 -1
  360. package/node_modules/@jsep-plugin/assignment/package.json +4 -4
  361. package/node_modules/@jsep-plugin/regex/dist/cjs/index.cjs.js.map +1 -1
  362. package/node_modules/@jsep-plugin/regex/dist/cjs/index.cjs.min.js +1 -1
  363. package/node_modules/@jsep-plugin/regex/dist/cjs/index.cjs.min.js.map +1 -1
  364. package/node_modules/@jsep-plugin/regex/dist/iife/index.iife.js +1 -1
  365. package/node_modules/@jsep-plugin/regex/dist/iife/index.iife.js.map +1 -1
  366. package/node_modules/@jsep-plugin/regex/dist/iife/index.iife.min.js +1 -1
  367. package/node_modules/@jsep-plugin/regex/dist/iife/index.iife.min.js.map +1 -1
  368. package/node_modules/@jsep-plugin/regex/dist/index.min.js +1 -1
  369. package/node_modules/@jsep-plugin/regex/dist/index.min.js.map +1 -1
  370. package/node_modules/@jsep-plugin/regex/package.json +4 -4
  371. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +33 -11
  372. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
  373. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -1
  374. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +3 -0
  375. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +33 -11
  376. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
  377. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +3 -0
  378. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/exceptions.d.ts +1 -0
  379. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/exceptions.d.ts +1 -0
  380. package/node_modules/@smithy/core/package.json +1 -1
  381. package/node_modules/jsep/dist/cjs/jsep.cjs.js +4 -2
  382. package/node_modules/jsep/dist/cjs/jsep.cjs.js.map +1 -1
  383. package/node_modules/jsep/dist/cjs/jsep.cjs.min.js +1 -1
  384. package/node_modules/jsep/dist/cjs/jsep.cjs.min.js.map +1 -1
  385. package/node_modules/jsep/dist/iife/jsep.iife.js +5 -3
  386. package/node_modules/jsep/dist/iife/jsep.iife.js.map +1 -1
  387. package/node_modules/jsep/dist/iife/jsep.iife.min.js +1 -1
  388. package/node_modules/jsep/dist/iife/jsep.iife.min.js.map +1 -1
  389. package/node_modules/jsep/dist/jsep.js +4 -2
  390. package/node_modules/jsep/dist/jsep.min.js +1 -1
  391. package/node_modules/jsep/dist/jsep.min.js.map +1 -1
  392. package/node_modules/jsep/package.json +13 -13
  393. package/package.json +10 -10
@@ -6,6 +6,7 @@ import { STSServiceException as __BaseException } from "./STSServiceException";
6
6
  * @public
7
7
  */
8
8
  export declare class ExpiredTokenException extends __BaseException {
9
+ static readonly shapeId: string;
9
10
  readonly name: "ExpiredTokenException";
10
11
  readonly $fault: "client";
11
12
  /**
@@ -19,6 +20,7 @@ export declare class ExpiredTokenException extends __BaseException {
19
20
  * @public
20
21
  */
21
22
  export declare class MalformedPolicyDocumentException extends __BaseException {
23
+ static readonly shapeId: string;
22
24
  readonly name: "MalformedPolicyDocumentException";
23
25
  readonly $fault: "client";
24
26
  /**
@@ -39,6 +41,7 @@ export declare class MalformedPolicyDocumentException extends __BaseException {
39
41
  * @public
40
42
  */
41
43
  export declare class PackedPolicyTooLargeException extends __BaseException {
44
+ static readonly shapeId: string;
42
45
  readonly name: "PackedPolicyTooLargeException";
43
46
  readonly $fault: "client";
44
47
  /**
@@ -54,6 +57,7 @@ export declare class PackedPolicyTooLargeException extends __BaseException {
54
57
  * @public
55
58
  */
56
59
  export declare class RegionDisabledException extends __BaseException {
60
+ static readonly shapeId: string;
57
61
  readonly name: "RegionDisabledException";
58
62
  readonly $fault: "client";
59
63
  /**
@@ -69,6 +73,7 @@ export declare class RegionDisabledException extends __BaseException {
69
73
  * @public
70
74
  */
71
75
  export declare class IDPRejectedClaimException extends __BaseException {
76
+ static readonly shapeId: string;
72
77
  readonly name: "IDPRejectedClaimException";
73
78
  readonly $fault: "client";
74
79
  /**
@@ -82,6 +87,7 @@ export declare class IDPRejectedClaimException extends __BaseException {
82
87
  * @public
83
88
  */
84
89
  export declare class InvalidIdentityTokenException extends __BaseException {
90
+ static readonly shapeId: string;
85
91
  readonly name: "InvalidIdentityTokenException";
86
92
  readonly $fault: "client";
87
93
  /**
@@ -98,6 +104,7 @@ export declare class InvalidIdentityTokenException extends __BaseException {
98
104
  * @public
99
105
  */
100
106
  export declare class IDPCommunicationErrorException extends __BaseException {
107
+ static readonly shapeId: string;
101
108
  readonly name: "IDPCommunicationErrorException";
102
109
  readonly $fault: "client";
103
110
  $retryable: {};
@@ -5,5 +5,6 @@ import {
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
7
7
  export declare class CognitoIdentityServiceException extends __ServiceException {
8
+ static readonly shapeId: string;
8
9
  constructor(options: __ServiceExceptionOptions);
9
10
  }
@@ -1,16 +1,19 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
2
  import { CognitoIdentityServiceException as __BaseException } from "./CognitoIdentityServiceException";
3
3
  export declare class ExternalServiceException extends __BaseException {
4
+ static readonly shapeId: string;
4
5
  readonly name: "ExternalServiceException";
5
6
  readonly $fault: "client";
6
7
  constructor(opts: __ExceptionOptionType<ExternalServiceException, __BaseException>);
7
8
  }
8
9
  export declare class InternalErrorException extends __BaseException {
10
+ static readonly shapeId: string;
9
11
  readonly name: "InternalErrorException";
10
12
  readonly $fault: "server";
11
13
  constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
12
14
  }
13
15
  export declare class InvalidIdentityPoolConfigurationException extends __BaseException {
16
+ static readonly shapeId: string;
14
17
  readonly name: "InvalidIdentityPoolConfigurationException";
15
18
  readonly $fault: "client";
16
19
  constructor(
@@ -18,31 +21,37 @@ export declare class InvalidIdentityPoolConfigurationException extends __BaseExc
18
21
  );
19
22
  }
20
23
  export declare class InvalidParameterException extends __BaseException {
24
+ static readonly shapeId: string;
21
25
  readonly name: "InvalidParameterException";
22
26
  readonly $fault: "client";
23
27
  constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
24
28
  }
25
29
  export declare class NotAuthorizedException extends __BaseException {
30
+ static readonly shapeId: string;
26
31
  readonly name: "NotAuthorizedException";
27
32
  readonly $fault: "client";
28
33
  constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
29
34
  }
30
35
  export declare class ResourceConflictException extends __BaseException {
36
+ static readonly shapeId: string;
31
37
  readonly name: "ResourceConflictException";
32
38
  readonly $fault: "client";
33
39
  constructor(opts: __ExceptionOptionType<ResourceConflictException, __BaseException>);
34
40
  }
35
41
  export declare class ResourceNotFoundException extends __BaseException {
42
+ static readonly shapeId: string;
36
43
  readonly name: "ResourceNotFoundException";
37
44
  readonly $fault: "client";
38
45
  constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
39
46
  }
40
47
  export declare class TooManyRequestsException extends __BaseException {
48
+ static readonly shapeId: string;
41
49
  readonly name: "TooManyRequestsException";
42
50
  readonly $fault: "client";
43
51
  constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
44
52
  }
45
53
  export declare class LimitExceededException extends __BaseException {
54
+ static readonly shapeId: string;
46
55
  readonly name: "LimitExceededException";
47
56
  readonly $fault: "client";
48
57
  constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
@@ -5,5 +5,6 @@ import {
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
7
7
  export declare class SigninServiceException extends __ServiceException {
8
+ static readonly shapeId: string;
8
9
  constructor(options: __ServiceExceptionOptions);
9
10
  }
@@ -2,24 +2,28 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/clien
2
2
  import { OAuth2ErrorCode } from "./enums";
3
3
  import { SigninServiceException as __BaseException } from "./SigninServiceException";
4
4
  export declare class AccessDeniedException extends __BaseException {
5
+ static readonly shapeId: string;
5
6
  readonly name: "AccessDeniedException";
6
7
  readonly $fault: "client";
7
8
  error: OAuth2ErrorCode | undefined;
8
9
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
9
10
  }
10
11
  export declare class InternalServerException extends __BaseException {
12
+ static readonly shapeId: string;
11
13
  readonly name: "InternalServerException";
12
14
  readonly $fault: "server";
13
15
  error: OAuth2ErrorCode | undefined;
14
16
  constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
15
17
  }
16
18
  export declare class TooManyRequestsError extends __BaseException {
19
+ static readonly shapeId: string;
17
20
  readonly name: "TooManyRequestsError";
18
21
  readonly $fault: "client";
19
22
  error: OAuth2ErrorCode | undefined;
20
23
  constructor(opts: __ExceptionOptionType<TooManyRequestsError, __BaseException>);
21
24
  }
22
25
  export declare class ValidationException extends __BaseException {
26
+ static readonly shapeId: string;
23
27
  readonly name: "ValidationException";
24
28
  readonly $fault: "client";
25
29
  error: OAuth2ErrorCode | undefined;
@@ -5,5 +5,6 @@ import {
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
7
7
  export declare class SSOServiceException extends __ServiceException {
8
+ static readonly shapeId: string;
8
9
  constructor(options: __ServiceExceptionOptions);
9
10
  }
@@ -1,21 +1,25 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
2
  import { SSOServiceException as __BaseException } from "./SSOServiceException";
3
3
  export declare class InvalidRequestException extends __BaseException {
4
+ static readonly shapeId: string;
4
5
  readonly name: "InvalidRequestException";
5
6
  readonly $fault: "client";
6
7
  constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
7
8
  }
8
9
  export declare class ResourceNotFoundException extends __BaseException {
10
+ static readonly shapeId: string;
9
11
  readonly name: "ResourceNotFoundException";
10
12
  readonly $fault: "client";
11
13
  constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
12
14
  }
13
15
  export declare class TooManyRequestsException extends __BaseException {
16
+ static readonly shapeId: string;
14
17
  readonly name: "TooManyRequestsException";
15
18
  readonly $fault: "client";
16
19
  constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
17
20
  }
18
21
  export declare class UnauthorizedException extends __BaseException {
22
+ static readonly shapeId: string;
19
23
  readonly name: "UnauthorizedException";
20
24
  readonly $fault: "client";
21
25
  constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
@@ -5,5 +5,6 @@ import {
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
7
7
  export declare class SSOOIDCServiceException extends __ServiceException {
8
+ static readonly shapeId: string;
8
9
  constructor(options: __ServiceExceptionOptions);
9
10
  }
@@ -2,6 +2,7 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/clien
2
2
  import { AccessDeniedExceptionReason, InvalidRequestExceptionReason } from "./enums";
3
3
  import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
4
4
  export declare class AccessDeniedException extends __BaseException {
5
+ static readonly shapeId: string;
5
6
  readonly name: "AccessDeniedException";
6
7
  readonly $fault: "client";
7
8
  error?: string | undefined;
@@ -10,6 +11,7 @@ export declare class AccessDeniedException extends __BaseException {
10
11
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
11
12
  }
12
13
  export declare class AuthorizationPendingException extends __BaseException {
14
+ static readonly shapeId: string;
13
15
  readonly name: "AuthorizationPendingException";
14
16
  readonly $fault: "client";
15
17
  error?: string | undefined;
@@ -17,6 +19,7 @@ export declare class AuthorizationPendingException extends __BaseException {
17
19
  constructor(opts: __ExceptionOptionType<AuthorizationPendingException, __BaseException>);
18
20
  }
19
21
  export declare class ExpiredTokenException extends __BaseException {
22
+ static readonly shapeId: string;
20
23
  readonly name: "ExpiredTokenException";
21
24
  readonly $fault: "client";
22
25
  error?: string | undefined;
@@ -24,6 +27,7 @@ export declare class ExpiredTokenException extends __BaseException {
24
27
  constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
25
28
  }
26
29
  export declare class InternalServerException extends __BaseException {
30
+ static readonly shapeId: string;
27
31
  readonly name: "InternalServerException";
28
32
  readonly $fault: "server";
29
33
  error?: string | undefined;
@@ -31,6 +35,7 @@ export declare class InternalServerException extends __BaseException {
31
35
  constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
32
36
  }
33
37
  export declare class InvalidClientException extends __BaseException {
38
+ static readonly shapeId: string;
34
39
  readonly name: "InvalidClientException";
35
40
  readonly $fault: "client";
36
41
  error?: string | undefined;
@@ -38,6 +43,7 @@ export declare class InvalidClientException extends __BaseException {
38
43
  constructor(opts: __ExceptionOptionType<InvalidClientException, __BaseException>);
39
44
  }
40
45
  export declare class InvalidGrantException extends __BaseException {
46
+ static readonly shapeId: string;
41
47
  readonly name: "InvalidGrantException";
42
48
  readonly $fault: "client";
43
49
  error?: string | undefined;
@@ -45,6 +51,7 @@ export declare class InvalidGrantException extends __BaseException {
45
51
  constructor(opts: __ExceptionOptionType<InvalidGrantException, __BaseException>);
46
52
  }
47
53
  export declare class InvalidRequestException extends __BaseException {
54
+ static readonly shapeId: string;
48
55
  readonly name: "InvalidRequestException";
49
56
  readonly $fault: "client";
50
57
  error?: string | undefined;
@@ -53,6 +60,7 @@ export declare class InvalidRequestException extends __BaseException {
53
60
  constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
54
61
  }
55
62
  export declare class InvalidScopeException extends __BaseException {
63
+ static readonly shapeId: string;
56
64
  readonly name: "InvalidScopeException";
57
65
  readonly $fault: "client";
58
66
  error?: string | undefined;
@@ -60,6 +68,7 @@ export declare class InvalidScopeException extends __BaseException {
60
68
  constructor(opts: __ExceptionOptionType<InvalidScopeException, __BaseException>);
61
69
  }
62
70
  export declare class SlowDownException extends __BaseException {
71
+ static readonly shapeId: string;
63
72
  readonly name: "SlowDownException";
64
73
  readonly $fault: "client";
65
74
  error?: string | undefined;
@@ -67,6 +76,7 @@ export declare class SlowDownException extends __BaseException {
67
76
  constructor(opts: __ExceptionOptionType<SlowDownException, __BaseException>);
68
77
  }
69
78
  export declare class UnauthorizedClientException extends __BaseException {
79
+ static readonly shapeId: string;
70
80
  readonly name: "UnauthorizedClientException";
71
81
  readonly $fault: "client";
72
82
  error?: string | undefined;
@@ -74,6 +84,7 @@ export declare class UnauthorizedClientException extends __BaseException {
74
84
  constructor(opts: __ExceptionOptionType<UnauthorizedClientException, __BaseException>);
75
85
  }
76
86
  export declare class UnsupportedGrantTypeException extends __BaseException {
87
+ static readonly shapeId: string;
77
88
  readonly name: "UnsupportedGrantTypeException";
78
89
  readonly $fault: "client";
79
90
  error?: string | undefined;
@@ -5,5 +5,6 @@ import {
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
7
7
  export declare class STSServiceException extends __ServiceException {
8
+ static readonly shapeId: string;
8
9
  constructor(options: __ServiceExceptionOptions);
9
10
  }
@@ -1,36 +1,43 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
2
  import { STSServiceException as __BaseException } from "./STSServiceException";
3
3
  export declare class ExpiredTokenException extends __BaseException {
4
+ static readonly shapeId: string;
4
5
  readonly name: "ExpiredTokenException";
5
6
  readonly $fault: "client";
6
7
  constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
7
8
  }
8
9
  export declare class MalformedPolicyDocumentException extends __BaseException {
10
+ static readonly shapeId: string;
9
11
  readonly name: "MalformedPolicyDocumentException";
10
12
  readonly $fault: "client";
11
13
  constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
12
14
  }
13
15
  export declare class PackedPolicyTooLargeException extends __BaseException {
16
+ static readonly shapeId: string;
14
17
  readonly name: "PackedPolicyTooLargeException";
15
18
  readonly $fault: "client";
16
19
  constructor(opts: __ExceptionOptionType<PackedPolicyTooLargeException, __BaseException>);
17
20
  }
18
21
  export declare class RegionDisabledException extends __BaseException {
22
+ static readonly shapeId: string;
19
23
  readonly name: "RegionDisabledException";
20
24
  readonly $fault: "client";
21
25
  constructor(opts: __ExceptionOptionType<RegionDisabledException, __BaseException>);
22
26
  }
23
27
  export declare class IDPRejectedClaimException extends __BaseException {
28
+ static readonly shapeId: string;
24
29
  readonly name: "IDPRejectedClaimException";
25
30
  readonly $fault: "client";
26
31
  constructor(opts: __ExceptionOptionType<IDPRejectedClaimException, __BaseException>);
27
32
  }
28
33
  export declare class InvalidIdentityTokenException extends __BaseException {
34
+ static readonly shapeId: string;
29
35
  readonly name: "InvalidIdentityTokenException";
30
36
  readonly $fault: "client";
31
37
  constructor(opts: __ExceptionOptionType<InvalidIdentityTokenException, __BaseException>);
32
38
  }
33
39
  export declare class IDPCommunicationErrorException extends __BaseException {
40
+ static readonly shapeId: string;
34
41
  readonly name: "IDPCommunicationErrorException";
35
42
  readonly $fault: "client";
36
43
  $retryable: {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.997.46",
3
+ "version": "3.997.47",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
6
6
  "license": "Apache-2.0",
@@ -100,10 +100,10 @@
100
100
  "test:watch": "yarn g:vitest watch"
101
101
  },
102
102
  "dependencies": {
103
- "@aws-sdk/core": "^3.978.1",
104
- "@aws-sdk/signature-v4-multi-region": "^3.996.47",
103
+ "@aws-sdk/core": "^3.978.2",
104
+ "@aws-sdk/signature-v4-multi-region": "^3.996.48",
105
105
  "@aws-sdk/types": "^3.974.6",
106
- "@smithy/core": "^3.35.0",
106
+ "@smithy/core": "^3.35.2",
107
107
  "@smithy/fetch-http-handler": "^5.8.0",
108
108
  "@smithy/node-http-handler": "^4.12.1",
109
109
  "@smithy/types": "^4.19.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-multi-region",
3
- "version": "3.996.47",
3
+ "version": "3.996.48",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/signature-v4-multi-region",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@aws-sdk/types": "^3.974.6",
46
- "@smithy/signature-v4": "^5.7.3",
46
+ "@smithy/signature-v4": "^5.7.4",
47
47
  "@smithy/types": "^4.19.0",
48
48
  "tslib": "^2.6.2"
49
49
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.1138.0",
3
+ "version": "3.1149.0",
4
4
  "description": "A collection of token providers",
5
5
  "keywords": [
6
6
  "aws",
@@ -48,10 +48,10 @@
48
48
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.978.1",
52
- "@aws-sdk/nested-clients": "^3.997.46",
51
+ "@aws-sdk/core": "^3.978.2",
52
+ "@aws-sdk/nested-clients": "^3.997.47",
53
53
  "@aws-sdk/types": "^3.974.6",
54
- "@smithy/core": "^3.35.0",
54
+ "@smithy/core": "^3.35.2",
55
55
  "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../src/index.js"],"sourcesContent":["const PLUS_CODE = 43; // +\nconst MINUS_CODE = 45; // -\n\nconst plugin = {\n\tname: 'assignment',\n\n\tassignmentOperators: new Set([\n\t\t'=',\n\t\t'*=',\n\t\t'**=',\n\t\t'/=',\n\t\t'%=',\n\t\t'+=',\n\t\t'-=',\n\t\t'<<=',\n\t\t'>>=',\n\t\t'>>>=',\n\t\t'&=',\n\t\t'^=',\n\t\t'|=',\n\t\t'||=',\n\t\t'&&=',\n\t\t'??=',\n\t]),\n\tupdateOperators: [PLUS_CODE, MINUS_CODE],\n\tassignmentPrecedence: 0.9,\n\n\tinit(jsep) {\n\t\tconst updateNodeTypes = [jsep.IDENTIFIER, jsep.MEMBER_EXP];\n\t\tplugin.assignmentOperators.forEach(op => jsep.addBinaryOp(op, plugin.assignmentPrecedence, true));\n\n\t\tjsep.hooks.add('gobble-token', function gobbleUpdatePrefix(env) {\n\t\t\tconst code = this.code;\n\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\tthis.index += 2;\n\t\t\t\tenv.node = {\n\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\targument: this.gobbleTokenProperty(this.gobbleIdentifier()),\n\t\t\t\t\tprefix: true,\n\t\t\t\t};\n\t\t\t\tif (!env.node.argument || !updateNodeTypes.includes(env.node.argument.type)) {\n\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-token', function gobbleUpdatePostfix(env) {\n\t\t\tif (env.node) {\n\t\t\t\tconst code = this.code;\n\t\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\t\tif (!updateNodeTypes.includes(env.node.type)) {\n\t\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t\t}\n\t\t\t\t\tthis.index += 2;\n\t\t\t\t\tenv.node = {\n\t\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\t\targument: env.node,\n\t\t\t\t\t\tprefix: false,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-expression', function gobbleAssignment(env) {\n\t\t\tif (env.node) {\n\t\t\t\t// Note: Binaries can be chained in a single expression to respect\n\t\t\t\t// operator precedence (i.e. a = b = 1 + 2 + 3)\n\t\t\t\t// Update all binary assignment nodes in the tree\n\t\t\t\tupdateBinariesToAssignments(env.node);\n\t\t\t}\n\t\t});\n\n\t\tfunction updateBinariesToAssignments(node) {\n\t\t\tif (plugin.assignmentOperators.has(node.operator)) {\n\t\t\t\tnode.type = 'AssignmentExpression';\n\t\t\t\tupdateBinariesToAssignments(node.left);\n\t\t\t\tupdateBinariesToAssignments(node.right);\n\t\t\t}\n\t\t\telse if (!node.operator) {\n\t\t\t\tObject.values(node).forEach((val) => {\n\t\t\t\t\tif (val && typeof val === 'object') {\n\t\t\t\t\t\tupdateBinariesToAssignments(val);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n};\nexport default plugin;\n"],"names":[],"mappings":";;AAAA,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,UAAU,GAAG,EAAE,CAAC;AACtB;AACK,MAAC,MAAM,GAAG;AACf,CAAC,IAAI,EAAE,YAAY;AACnB;AACA,CAAC,mBAAmB,EAAE,IAAI,GAAG,CAAC;AAC9B,EAAE,GAAG;AACL,EAAE,IAAI;AACN,EAAE,KAAK;AACP,EAAE,IAAI;AACN,EAAE,IAAI;AACN,EAAE,IAAI;AACN,EAAE,IAAI;AACN,EAAE,KAAK;AACP,EAAE,KAAK;AACP,EAAE,MAAM;AACR,EAAE,IAAI;AACN,EAAE,IAAI;AACN,EAAE,IAAI;AACN,EAAE,KAAK;AACP,EAAE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,GAAG,CAAC,IAAI,CAAC,CAAC;AAC1C,IAAI;AACJ,GAAG,CAAC,CAAC;AACL;AACA,EAAE,SAAS,2BAA2B,CAAC,IAAI,EAAE;AAC7C,GAAG,IAAI,MAAM,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;AACtD,IAAI,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;AACvC,IAAI,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3C,IAAI,2BAA2B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC5C,IAAI;AACJ,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;AAC5B,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AACzC,KAAK,IAAI,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;AACzC,MAAM,2BAA2B,CAAC,GAAG,CAAC,CAAC;AACvC,MAAM;AACN,KAAK,CAAC,CAAC;AACP,IAAI;AACJ,GAAG;AACH,EAAE;AACF;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../src/index.js"],"sourcesContent":["const PLUS_CODE = 43; // +\nconst MINUS_CODE = 45; // -\n\nconst plugin = {\n\tname: 'assignment',\n\n\tassignmentOperators: new Set([\n\t\t'=',\n\t\t'*=',\n\t\t'**=',\n\t\t'/=',\n\t\t'%=',\n\t\t'+=',\n\t\t'-=',\n\t\t'<<=',\n\t\t'>>=',\n\t\t'>>>=',\n\t\t'&=',\n\t\t'^=',\n\t\t'|=',\n\t\t'||=',\n\t\t'&&=',\n\t\t'??=',\n\t]),\n\tupdateOperators: [PLUS_CODE, MINUS_CODE],\n\tassignmentPrecedence: 0.9,\n\n\tinit(jsep) {\n\t\tconst updateNodeTypes = [jsep.IDENTIFIER, jsep.MEMBER_EXP];\n\t\tplugin.assignmentOperators.forEach(op => jsep.addBinaryOp(op, plugin.assignmentPrecedence, true));\n\n\t\tjsep.hooks.add('gobble-token', function gobbleUpdatePrefix(env) {\n\t\t\tconst code = this.code;\n\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\tthis.index += 2;\n\t\t\t\tenv.node = {\n\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\targument: this.gobbleTokenProperty(this.gobbleIdentifier()),\n\t\t\t\t\tprefix: true,\n\t\t\t\t};\n\t\t\t\tif (!env.node.argument || !updateNodeTypes.includes(env.node.argument.type)) {\n\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-token', function gobbleUpdatePostfix(env) {\n\t\t\tif (env.node) {\n\t\t\t\tconst code = this.code;\n\t\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\t\tif (!updateNodeTypes.includes(env.node.type)) {\n\t\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t\t}\n\t\t\t\t\tthis.index += 2;\n\t\t\t\t\tenv.node = {\n\t\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\t\targument: env.node,\n\t\t\t\t\t\tprefix: false,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-expression', function gobbleAssignment(env) {\n\t\t\tif (env.node) {\n\t\t\t\t// Note: Binaries can be chained in a single expression to respect\n\t\t\t\t// operator precedence (i.e. a = b = 1 + 2 + 3)\n\t\t\t\t// Update all binary assignment nodes in the tree\n\t\t\t\tupdateBinariesToAssignments(env.node);\n\t\t\t}\n\t\t});\n\n\t\tfunction updateBinariesToAssignments(node) {\n\t\t\tif (plugin.assignmentOperators.has(node.operator)) {\n\t\t\t\tnode.type = 'AssignmentExpression';\n\t\t\t\tupdateBinariesToAssignments(node.left);\n\t\t\t\tupdateBinariesToAssignments(node.right);\n\t\t\t}\n\t\t\telse if (!node.operator) {\n\t\t\t\tObject.values(node).forEach((val) => {\n\t\t\t\t\tif (val && typeof val === 'object') {\n\t\t\t\t\t\tupdateBinariesToAssignments(val);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n};\nexport default plugin;\n"],"names":[],"mappings":";;AAAA,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,UAAU,GAAG,EAAE,CAAC;;AAEjB,MAAC,MAAM,GAAG;AACf,CAAC,IAAI,EAAE,YAAY;;AAEnB,CAAC,mBAAmB,EAAE,IAAI,GAAG,CAAC;AAC9B,EAAE,GAAG;AACL,EAAE,IAAI;AACN,EAAE,KAAK;AACP,EAAE,IAAI;AACN,EAAE,IAAI;AACN,EAAE,IAAI;AACN,EAAE,IAAI;AACN,EAAE,KAAK;AACP,EAAE,KAAK;AACP,EAAE,MAAM;AACR,EAAE,IAAI;AACN,EAAE,IAAI;AACN,EAAE,IAAI;AACN,EAAE,KAAK;AACP,EAAE,KAAK;AACP,EAAE,KAAK;AACP,EAAE,CAAC;AACH,CAAC,eAAe,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;AACzC,CAAC,oBAAoB,EAAE,GAAG;;AAE1B,CAAC,IAAI,CAAC,IAAI,EAAE;AACZ,EAAE,MAAM,eAAe,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;AAC5D,EAAE,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,MAAM,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;;AAEnG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc,EAAE,SAAS,kBAAkB,CAAC,GAAG,EAAE;AAClE,G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BAA2B,CAAC,GAAG,CAAC;AACtC,KAAK;AACL,IAAI,CAAC,CAAC;AACN,GAAG;AACH,EAAE;AACF,CAAC,CAAC;AACF;;"}
@@ -1,2 +1,2 @@
1
- "use strict";const e={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(t){const o=[t.IDENTIFIER,t.MEMBER_EXP];function n(t){e.assignmentOperators.has(t.operator)?(t.type="AssignmentExpression",n(t.left),n(t.right)):t.operator||Object.values(t).forEach((e=>{e&&"object"==typeof e&&n(e)}))}e.assignmentOperators.forEach((o=>t.addBinaryOp(o,e.assignmentPrecedence,!0))),t.hooks.add("gobble-token",(function(t){const n=this.code;e.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},t.node.argument&&o.includes(t.node.argument.type)||this.throwError(`Unexpected ${t.node.operator}`))})),t.hooks.add("after-token",(function(t){if(t.node){const n=this.code;e.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(o.includes(t.node.type)||this.throwError(`Unexpected ${t.node.operator}`),this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:t.node,prefix:!1})}})),t.hooks.add("after-expression",(function(e){e.node&&n(e.node)}))}};module.exports=e;
1
+ "use strict";const e={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(t){const o=[t.IDENTIFIER,t.MEMBER_EXP];function n(t){e.assignmentOperators.has(t.operator)?(t.type="AssignmentExpression",n(t.left),n(t.right)):t.operator||Object.values(t).forEach(e=>{e&&"object"==typeof e&&n(e)})}e.assignmentOperators.forEach(o=>t.addBinaryOp(o,e.assignmentPrecedence,!0)),t.hooks.add("gobble-token",function(t){const n=this.code;e.updateOperators.some(e=>e===n&&e===this.expr.charCodeAt(this.index+1))&&(this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},t.node.argument&&o.includes(t.node.argument.type)||this.throwError(`Unexpected ${t.node.operator}`))}),t.hooks.add("after-token",function(t){if(t.node){const n=this.code;e.updateOperators.some(e=>e===n&&e===this.expr.charCodeAt(this.index+1))&&(o.includes(t.node.type)||this.throwError(`Unexpected ${t.node.operator}`),this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:t.node,prefix:!1})}}),t.hooks.add("after-expression",function(e){e.node&&n(e.node)})}};module.exports=e;
2
2
  //# sourceMappingURL=index.cjs.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.min.js","sources":["../../src/index.js"],"sourcesContent":["const PLUS_CODE = 43; // +\nconst MINUS_CODE = 45; // -\n\nconst plugin = {\n\tname: 'assignment',\n\n\tassignmentOperators: new Set([\n\t\t'=',\n\t\t'*=',\n\t\t'**=',\n\t\t'/=',\n\t\t'%=',\n\t\t'+=',\n\t\t'-=',\n\t\t'<<=',\n\t\t'>>=',\n\t\t'>>>=',\n\t\t'&=',\n\t\t'^=',\n\t\t'|=',\n\t\t'||=',\n\t\t'&&=',\n\t\t'??=',\n\t]),\n\tupdateOperators: [PLUS_CODE, MINUS_CODE],\n\tassignmentPrecedence: 0.9,\n\n\tinit(jsep) {\n\t\tconst updateNodeTypes = [jsep.IDENTIFIER, jsep.MEMBER_EXP];\n\t\tplugin.assignmentOperators.forEach(op => jsep.addBinaryOp(op, plugin.assignmentPrecedence, true));\n\n\t\tjsep.hooks.add('gobble-token', function gobbleUpdatePrefix(env) {\n\t\t\tconst code = this.code;\n\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\tthis.index += 2;\n\t\t\t\tenv.node = {\n\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\targument: this.gobbleTokenProperty(this.gobbleIdentifier()),\n\t\t\t\t\tprefix: true,\n\t\t\t\t};\n\t\t\t\tif (!env.node.argument || !updateNodeTypes.includes(env.node.argument.type)) {\n\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-token', function gobbleUpdatePostfix(env) {\n\t\t\tif (env.node) {\n\t\t\t\tconst code = this.code;\n\t\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\t\tif (!updateNodeTypes.includes(env.node.type)) {\n\t\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t\t}\n\t\t\t\t\tthis.index += 2;\n\t\t\t\t\tenv.node = {\n\t\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\t\targument: env.node,\n\t\t\t\t\t\tprefix: false,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-expression', function gobbleAssignment(env) {\n\t\t\tif (env.node) {\n\t\t\t\t// Note: Binaries can be chained in a single expression to respect\n\t\t\t\t// operator precedence (i.e. a = b = 1 + 2 + 3)\n\t\t\t\t// Update all binary assignment nodes in the tree\n\t\t\t\tupdateBinariesToAssignments(env.node);\n\t\t\t}\n\t\t});\n\n\t\tfunction updateBinariesToAssignments(node) {\n\t\t\tif (plugin.assignmentOperators.has(node.operator)) {\n\t\t\t\tnode.type = 'AssignmentExpression';\n\t\t\t\tupdateBinariesToAssignments(node.left);\n\t\t\t\tupdateBinariesToAssignments(node.right);\n\t\t\t}\n\t\t\telse if (!node.operator) {\n\t\t\t\tObject.values(node).forEach((val) => {\n\t\t\t\t\tif (val && typeof val === 'object') {\n\t\t\t\t\t\tupdateBinariesToAssignments(val);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n};\nexport default plugin;\n"],"names":["plugin","name","assignmentOperators","Set","updateOperators","assignmentPrecedence","init","jsep","updateNodeTypes","IDENTIFIER","MEMBER_EXP","updateBinariesToAssignments","node","has","operator","type","left","right","Object","values","forEach","val","op","addBinaryOp","hooks","add","env","code","this","some","c","expr","charCodeAt","index","argument","gobbleTokenProperty","gobbleIdentifier","prefix","includes","throwError"],"mappings":"aAAA,MAGMA,EAAS,CACdC,KAAM,aAENC,oBAAqB,IAAIC,IAAI,CAC5B,IACA,KACA,MACA,KACA,KACA,KACA,KACA,MACA,MACA,OACA,KACA,KACA,KACA,MACA,MACA,QAEDC,gBAAiB,CAxBA,GACC,IAwBlBC,qBAAsB,GAEtBC,KAAKC,GACJ,MAAMC,EAAkB,CAACD,EAAKE,WAAYF,EAAKG,YA8C/C,SAASC,EAA4BC,GAChCZ,EAAOE,oBAAoBW,IAAID,EAAKE,WACvCF,EAAKG,KAAO,uBACZJ,EAA4BC,EAAKI,MACjCL,EAA4BC,EAAKK,QAExBL,EAAKE,UACdI,OAAOC,OAAOP,GAAMQ,SAASC,IACxBA,GAAsB,iBAARA,GACjBV,EAA4BU,MAtDhCrB,EAAOE,oBAAoBkB,SAAQE,GAAMf,EAAKgB,YAAYD,EAAItB,EAAOK,sBAAsB,KAE3FE,EAAKiB,MAAMC,IAAI,gBAAgB,SAA4BC,GAC1D,MAAMC,EAAOC,KAAKD,KACd3B,EAAOI,gBAAgByB,MAAKC,GAAKA,IAAMH,GAAQG,IAAMF,KAAKG,KAAKC,WAAWJ,KAAKK,MAAQ,OAC1FL,KAAKK,OAAS,EACdP,EAAId,KAAO,CACVG,KAAM,mBACND,SArCa,KAqCHa,EAAqB,KAAO,KACtCO,SAAUN,KAAKO,oBAAoBP,KAAKQ,oBACxCC,QAAQ,GAEJX,EAAId,KAAKsB,UAAa1B,EAAgB8B,SAASZ,EAAId,KAAKsB,SAASnB,OACrEa,KAAKW,WAAW,cAAcb,EAAId,KAAKE,gBAK1CP,EAAKiB,MAAMC,IAAI,eAAe,SAA6BC,GAC1D,GAAIA,EAAId,KAAM,CACb,MAAMe,EAAOC,KAAKD,KACd3B,EAAOI,gBAAgByB,MAAKC,GAAKA,IAAMH,GAAQG,IAAMF,KAAKG,KAAKC,WAAWJ,KAAKK,MAAQ,OACrFzB,EAAgB8B,SAASZ,EAAId,KAAKG,OACtCa,KAAKW,WAAW,cAAcb,EAAId,KAAKE,YAExCc,KAAKK,OAAS,EACdP,EAAId,KAAO,CACVG,KAAM,mBACND,SAzDY,KAyDFa,EAAqB,KAAO,KACtCO,SAAUR,EAAId,KACdyB,QAAQ,QAMZ9B,EAAKiB,MAAMC,IAAI,oBAAoB,SAA0BC,GACxDA,EAAId,MAIPD,EAA4Be,EAAId"}
1
+ {"version":3,"file":"index.cjs.min.js","sources":["../../src/index.js"],"sourcesContent":["const PLUS_CODE = 43; // +\nconst MINUS_CODE = 45; // -\n\nconst plugin = {\n\tname: 'assignment',\n\n\tassignmentOperators: new Set([\n\t\t'=',\n\t\t'*=',\n\t\t'**=',\n\t\t'/=',\n\t\t'%=',\n\t\t'+=',\n\t\t'-=',\n\t\t'<<=',\n\t\t'>>=',\n\t\t'>>>=',\n\t\t'&=',\n\t\t'^=',\n\t\t'|=',\n\t\t'||=',\n\t\t'&&=',\n\t\t'??=',\n\t]),\n\tupdateOperators: [PLUS_CODE, MINUS_CODE],\n\tassignmentPrecedence: 0.9,\n\n\tinit(jsep) {\n\t\tconst updateNodeTypes = [jsep.IDENTIFIER, jsep.MEMBER_EXP];\n\t\tplugin.assignmentOperators.forEach(op => jsep.addBinaryOp(op, plugin.assignmentPrecedence, true));\n\n\t\tjsep.hooks.add('gobble-token', function gobbleUpdatePrefix(env) {\n\t\t\tconst code = this.code;\n\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\tthis.index += 2;\n\t\t\t\tenv.node = {\n\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\targument: this.gobbleTokenProperty(this.gobbleIdentifier()),\n\t\t\t\t\tprefix: true,\n\t\t\t\t};\n\t\t\t\tif (!env.node.argument || !updateNodeTypes.includes(env.node.argument.type)) {\n\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-token', function gobbleUpdatePostfix(env) {\n\t\t\tif (env.node) {\n\t\t\t\tconst code = this.code;\n\t\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\t\tif (!updateNodeTypes.includes(env.node.type)) {\n\t\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t\t}\n\t\t\t\t\tthis.index += 2;\n\t\t\t\t\tenv.node = {\n\t\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\t\targument: env.node,\n\t\t\t\t\t\tprefix: false,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-expression', function gobbleAssignment(env) {\n\t\t\tif (env.node) {\n\t\t\t\t// Note: Binaries can be chained in a single expression to respect\n\t\t\t\t// operator precedence (i.e. a = b = 1 + 2 + 3)\n\t\t\t\t// Update all binary assignment nodes in the tree\n\t\t\t\tupdateBinariesToAssignments(env.node);\n\t\t\t}\n\t\t});\n\n\t\tfunction updateBinariesToAssignments(node) {\n\t\t\tif (plugin.assignmentOperators.has(node.operator)) {\n\t\t\t\tnode.type = 'AssignmentExpression';\n\t\t\t\tupdateBinariesToAssignments(node.left);\n\t\t\t\tupdateBinariesToAssignments(node.right);\n\t\t\t}\n\t\t\telse if (!node.operator) {\n\t\t\t\tObject.values(node).forEach((val) => {\n\t\t\t\t\tif (val && typeof val === 'object') {\n\t\t\t\t\t\tupdateBinariesToAssignments(val);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n};\nexport default plugin;\n"],"names":["plugin","name","assignmentOperators","Set","updateOperators","assignmentPrecedence","init","jsep","updateNodeTypes","IDENTIFIER","MEMBER_EXP","updateBinariesToAssignments","node","has","operator","type","left","right","Object","values","forEach","val","op","addBinaryOp","hooks","add","env","code","this","some","c","expr","charCodeAt","index","argument","gobbleTokenProperty","gobbleIdentifier","prefix","includes","throwError"],"mappings":"aAAA,MAGMA,EAAS,CACdC,KAAM,aAENC,oBAAqB,IAAIC,IAAI,CAC5B,IACA,KACA,MACA,KACA,KACA,KACA,KACA,MACA,MACA,OACA,KACA,KACA,KACA,MACA,MACA,QAEDC,gBAAiB,CAxBA,GACC,IAwBlBC,qBAAsB,GAEtB,IAAAC,CAAKC,GACJ,MAAMC,EAAkB,CAACD,EAAKE,WAAYF,EAAKG,YA8C/C,SAASC,EAA4BC,GAChCZ,EAAOE,oBAAoBW,IAAID,EAAKE,WACvCF,EAAKG,KAAO,uBACZJ,EAA4BC,EAAKI,MACjCL,EAA4BC,EAAKK,QAExBL,EAAKE,UACdI,OAAOC,OAAOP,GAAMQ,QAASC,IACxBA,GAAsB,iBAARA,GACjBV,EAA4BU,IAIhC,CA1DArB,EAAOE,oBAAoBkB,QAAQE,GAAMf,EAAKgB,YAAYD,EAAItB,EAAOK,sBAAsB,IAE3FE,EAAKiB,MAAMC,IAAI,eAAgB,SAA4BC,GAC1D,MAAMC,EAAOC,KAAKD,KACd3B,EAAOI,gBAAgByB,KAAKC,GAAKA,IAAMH,GAAQG,IAAMF,KAAKG,KAAKC,WAAWJ,KAAKK,MAAQ,MAC1FL,KAAKK,OAAS,EACdP,EAAId,KAAO,CACVG,KAAM,mBACND,SArCa,KAqCHa,EAAqB,KAAO,KACtCO,SAAUN,KAAKO,oBAAoBP,KAAKQ,oBACxCC,QAAQ,GAEJX,EAAId,KAAKsB,UAAa1B,EAAgB8B,SAASZ,EAAId,KAAKsB,SAASnB,OACrEa,KAAKW,WAAW,cAAcb,EAAId,KAAKE,YAG1C,GAEAP,EAAKiB,MAAMC,IAAI,cAAe,SAA6BC,GAC1D,GAAIA,EAAId,KAAM,CACb,MAAMe,EAAOC,KAAKD,KACd3B,EAAOI,gBAAgByB,KAAKC,GAAKA,IAAMH,GAAQG,IAAMF,KAAKG,KAAKC,WAAWJ,KAAKK,MAAQ,MACrFzB,EAAgB8B,SAASZ,EAAId,KAAKG,OACtCa,KAAKW,WAAW,cAAcb,EAAId,KAAKE,YAExCc,KAAKK,OAAS,EACdP,EAAId,KAAO,CACVG,KAAM,mBACND,SAzDY,KAyDFa,EAAqB,KAAO,KACtCO,SAAUR,EAAId,KACdyB,QAAQ,GAGX,CACD,GAEA9B,EAAKiB,MAAMC,IAAI,mBAAoB,SAA0BC,GACxDA,EAAId,MAIPD,EAA4Be,EAAId,KAElC,EAgBD"}
@@ -94,5 +94,5 @@ var index = (function () {
94
94
 
95
95
  return plugin;
96
96
 
97
- }());
97
+ })();
98
98
  //# sourceMappingURL=index.iife.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.iife.js","sources":["../../src/index.js"],"sourcesContent":["const PLUS_CODE = 43; // +\nconst MINUS_CODE = 45; // -\n\nconst plugin = {\n\tname: 'assignment',\n\n\tassignmentOperators: new Set([\n\t\t'=',\n\t\t'*=',\n\t\t'**=',\n\t\t'/=',\n\t\t'%=',\n\t\t'+=',\n\t\t'-=',\n\t\t'<<=',\n\t\t'>>=',\n\t\t'>>>=',\n\t\t'&=',\n\t\t'^=',\n\t\t'|=',\n\t\t'||=',\n\t\t'&&=',\n\t\t'??=',\n\t]),\n\tupdateOperators: [PLUS_CODE, MINUS_CODE],\n\tassignmentPrecedence: 0.9,\n\n\tinit(jsep) {\n\t\tconst updateNodeTypes = [jsep.IDENTIFIER, jsep.MEMBER_EXP];\n\t\tplugin.assignmentOperators.forEach(op => jsep.addBinaryOp(op, plugin.assignmentPrecedence, true));\n\n\t\tjsep.hooks.add('gobble-token', function gobbleUpdatePrefix(env) {\n\t\t\tconst code = this.code;\n\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\tthis.index += 2;\n\t\t\t\tenv.node = {\n\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\targument: this.gobbleTokenProperty(this.gobbleIdentifier()),\n\t\t\t\t\tprefix: true,\n\t\t\t\t};\n\t\t\t\tif (!env.node.argument || !updateNodeTypes.includes(env.node.argument.type)) {\n\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-token', function gobbleUpdatePostfix(env) {\n\t\t\tif (env.node) {\n\t\t\t\tconst code = this.code;\n\t\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\t\tif (!updateNodeTypes.includes(env.node.type)) {\n\t\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t\t}\n\t\t\t\t\tthis.index += 2;\n\t\t\t\t\tenv.node = {\n\t\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\t\targument: env.node,\n\t\t\t\t\t\tprefix: false,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-expression', function gobbleAssignment(env) {\n\t\t\tif (env.node) {\n\t\t\t\t// Note: Binaries can be chained in a single expression to respect\n\t\t\t\t// operator precedence (i.e. a = b = 1 + 2 + 3)\n\t\t\t\t// Update all binary assignment nodes in the tree\n\t\t\t\tupdateBinariesToAssignments(env.node);\n\t\t\t}\n\t\t});\n\n\t\tfunction updateBinariesToAssignments(node) {\n\t\t\tif (plugin.assignmentOperators.has(node.operator)) {\n\t\t\t\tnode.type = 'AssignmentExpression';\n\t\t\t\tupdateBinariesToAssignments(node.left);\n\t\t\t\tupdateBinariesToAssignments(node.right);\n\t\t\t}\n\t\t\telse if (!node.operator) {\n\t\t\t\tObject.values(node).forEach((val) => {\n\t\t\t\t\tif (val && typeof val === 'object') {\n\t\t\t\t\t\tupdateBinariesToAssignments(val);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n};\nexport default plugin;\n"],"names":[],"mappings":";;;CAAA,MAAM,SAAS,GAAG,EAAE,CAAC;CACrB,MAAM,UAAU,GAAG,EAAE,CAAC;AACtB;AACK,OAAC,MAAM,GAAG;CACf,CAAC,IAAI,EAAE,YAAY;AACnB;CACA,CAAC,mBAAmB,EAAE,IAAI,GAAG,CAAC;CAC9B,EAAE,GAAG;CACL,EAAE,IAAI;CACN,EAAE,KAAK;CACP,EAAE,IAAI;CACN,EAAE,IAAI;CACN,EAAE,IAAI;CACN,EAAE,IAAI;CACN,EAAE,KAAK;CACP,EAAE,KAAK;CACP,EAAE,MAAM;CACR,EAAE,IAAI;CACN,EAAE,IAAI;CACN,EAAE,IAAI;CACN,EAAE,KAAK;CACP,EAAE,KAAK;CACP,EAAE,KAAK;CACP,EAAE,CAAC;CACH,CAAC,eAAe,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;CACzC,CAAC,oBAAoB,EAAE,GAAG;AAC1B;CACA,CAAC,IAAI,CAAC,IAAI,EAAE;CACZ,EAAE,MAAM,eAAe,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;CAC7D,EAAE,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,MAAM,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC,CAAC;AACpG;CACA,EAAE,IAAI,CAAC,KAA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IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;CACzC,KAAK,IAAI,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;CACzC,MAAM,2BAA2B,CAAC,GAAG,CAAC,CAAC;CACvC,MAAM;CACN,KAAK,CAAC,CAAC;CACP,IAAI;CACJ,GAAG;CACH,EAAE;CACF;;;;;;;;"}
1
+ {"version":3,"file":"index.iife.js","sources":["../../src/index.js"],"sourcesContent":["const PLUS_CODE = 43; // +\nconst MINUS_CODE = 45; // -\n\nconst plugin = {\n\tname: 'assignment',\n\n\tassignmentOperators: new Set([\n\t\t'=',\n\t\t'*=',\n\t\t'**=',\n\t\t'/=',\n\t\t'%=',\n\t\t'+=',\n\t\t'-=',\n\t\t'<<=',\n\t\t'>>=',\n\t\t'>>>=',\n\t\t'&=',\n\t\t'^=',\n\t\t'|=',\n\t\t'||=',\n\t\t'&&=',\n\t\t'??=',\n\t]),\n\tupdateOperators: [PLUS_CODE, MINUS_CODE],\n\tassignmentPrecedence: 0.9,\n\n\tinit(jsep) {\n\t\tconst updateNodeTypes = [jsep.IDENTIFIER, jsep.MEMBER_EXP];\n\t\tplugin.assignmentOperators.forEach(op => jsep.addBinaryOp(op, plugin.assignmentPrecedence, true));\n\n\t\tjsep.hooks.add('gobble-token', function gobbleUpdatePrefix(env) {\n\t\t\tconst code = this.code;\n\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\tthis.index += 2;\n\t\t\t\tenv.node = {\n\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\targument: this.gobbleTokenProperty(this.gobbleIdentifier()),\n\t\t\t\t\tprefix: true,\n\t\t\t\t};\n\t\t\t\tif (!env.node.argument || !updateNodeTypes.includes(env.node.argument.type)) {\n\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-token', function gobbleUpdatePostfix(env) {\n\t\t\tif (env.node) {\n\t\t\t\tconst code = this.code;\n\t\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\t\tif (!updateNodeTypes.includes(env.node.type)) {\n\t\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t\t}\n\t\t\t\t\tthis.index += 2;\n\t\t\t\t\tenv.node = {\n\t\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\t\targument: env.node,\n\t\t\t\t\t\tprefix: false,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-expression', function gobbleAssignment(env) {\n\t\t\tif (env.node) {\n\t\t\t\t// Note: Binaries can be chained in a single expression to respect\n\t\t\t\t// operator precedence (i.e. a = b = 1 + 2 + 3)\n\t\t\t\t// Update all binary assignment nodes in the tree\n\t\t\t\tupdateBinariesToAssignments(env.node);\n\t\t\t}\n\t\t});\n\n\t\tfunction updateBinariesToAssignments(node) {\n\t\t\tif (plugin.assignmentOperators.has(node.operator)) {\n\t\t\t\tnode.type = 'AssignmentExpression';\n\t\t\t\tupdateBinariesToAssignments(node.left);\n\t\t\t\tupdateBinariesToAssignments(node.right);\n\t\t\t}\n\t\t\telse if (!node.operator) {\n\t\t\t\tObject.values(node).forEach((val) => {\n\t\t\t\t\tif (val && typeof val === 'object') {\n\t\t\t\t\t\tupdateBinariesToAssignments(val);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n};\nexport default plugin;\n"],"names":[],"mappings":";;;CAAA,MAAM,SAAS,GAAG,EAAE,CAAC;CACrB,MAAM,UAAU,GAAG,EAAE,CAAC;;AAEjB,OAAC,MAAM,GAAG;CACf,CAAC,IAAI,EAAE,Y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AAM;CACN,IAAI;CACJ,GAAG;CACH,EAAE,CAAC,CAAC;;CAEJ,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,kBAAkB,EAAE,SAAS,gBAAgB,CAAC,GAAG,EAAE;CACpE,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE;CACjB;CACA;CACA;CACA,IAAI,2BAA2B,CAAC,GAAG,CAAC,IAAI,CAAC;CACzC,GAAG;CACH,EAAE,CAAC,CAAC;;CAEJ,EAAE,SAAS,2BAA2B,CAAC,IAAI,EAAE;CAC7C,GAAG,IAAI,MAAM,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;CACtD,IAAI,IAAI,CAAC,IAAI,GAAG,sBAAsB;CACtC,IAAI,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC;CAC1C,IAAI,2BAA2B,CAAC,IAAI,CAAC,KAAK,CAAC;CAC3C,GAAG;CACH,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;CAC5B,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;CACzC,KAAK,IAAI,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;CACzC,MAAM,2BAA2B,CAAC,GAAG,CAAC;CACtC,KAAK;CACL,IAAI,CAAC,CAAC;CACN,GAAG;CACH,EAAE;CACF,CAAC,CAAC;CACF;;;;"}
@@ -1,2 +1,2 @@
1
- var index=function(){"use strict";const e={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(t){const o=[t.IDENTIFIER,t.MEMBER_EXP];function n(t){e.assignmentOperators.has(t.operator)?(t.type="AssignmentExpression",n(t.left),n(t.right)):t.operator||Object.values(t).forEach((e=>{e&&"object"==typeof e&&n(e)}))}e.assignmentOperators.forEach((o=>t.addBinaryOp(o,e.assignmentPrecedence,!0))),t.hooks.add("gobble-token",(function(t){const n=this.code;e.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},t.node.argument&&o.includes(t.node.argument.type)||this.throwError(`Unexpected ${t.node.operator}`))})),t.hooks.add("after-token",(function(t){if(t.node){const n=this.code;e.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(o.includes(t.node.type)||this.throwError(`Unexpected ${t.node.operator}`),this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:t.node,prefix:!1})}})),t.hooks.add("after-expression",(function(e){e.node&&n(e.node)}))}};return e}();
1
+ var index=function(){"use strict";const e={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(t){const o=[t.IDENTIFIER,t.MEMBER_EXP];function n(t){e.assignmentOperators.has(t.operator)?(t.type="AssignmentExpression",n(t.left),n(t.right)):t.operator||Object.values(t).forEach(e=>{e&&"object"==typeof e&&n(e)})}e.assignmentOperators.forEach(o=>t.addBinaryOp(o,e.assignmentPrecedence,!0)),t.hooks.add("gobble-token",function(t){const n=this.code;e.updateOperators.some(e=>e===n&&e===this.expr.charCodeAt(this.index+1))&&(this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},t.node.argument&&o.includes(t.node.argument.type)||this.throwError(`Unexpected ${t.node.operator}`))}),t.hooks.add("after-token",function(t){if(t.node){const n=this.code;e.updateOperators.some(e=>e===n&&e===this.expr.charCodeAt(this.index+1))&&(o.includes(t.node.type)||this.throwError(`Unexpected ${t.node.operator}`),this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:t.node,prefix:!1})}}),t.hooks.add("after-expression",function(e){e.node&&n(e.node)})}};return e}();
2
2
  //# sourceMappingURL=index.iife.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.iife.min.js","sources":["../../src/index.js"],"sourcesContent":["const PLUS_CODE = 43; // +\nconst MINUS_CODE = 45; // -\n\nconst plugin = {\n\tname: 'assignment',\n\n\tassignmentOperators: new Set([\n\t\t'=',\n\t\t'*=',\n\t\t'**=',\n\t\t'/=',\n\t\t'%=',\n\t\t'+=',\n\t\t'-=',\n\t\t'<<=',\n\t\t'>>=',\n\t\t'>>>=',\n\t\t'&=',\n\t\t'^=',\n\t\t'|=',\n\t\t'||=',\n\t\t'&&=',\n\t\t'??=',\n\t]),\n\tupdateOperators: [PLUS_CODE, MINUS_CODE],\n\tassignmentPrecedence: 0.9,\n\n\tinit(jsep) {\n\t\tconst updateNodeTypes = [jsep.IDENTIFIER, jsep.MEMBER_EXP];\n\t\tplugin.assignmentOperators.forEach(op => jsep.addBinaryOp(op, plugin.assignmentPrecedence, true));\n\n\t\tjsep.hooks.add('gobble-token', function gobbleUpdatePrefix(env) {\n\t\t\tconst code = this.code;\n\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\tthis.index += 2;\n\t\t\t\tenv.node = {\n\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\targument: this.gobbleTokenProperty(this.gobbleIdentifier()),\n\t\t\t\t\tprefix: true,\n\t\t\t\t};\n\t\t\t\tif (!env.node.argument || !updateNodeTypes.includes(env.node.argument.type)) {\n\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-token', function gobbleUpdatePostfix(env) {\n\t\t\tif (env.node) {\n\t\t\t\tconst code = this.code;\n\t\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\t\tif (!updateNodeTypes.includes(env.node.type)) {\n\t\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t\t}\n\t\t\t\t\tthis.index += 2;\n\t\t\t\t\tenv.node = {\n\t\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\t\targument: env.node,\n\t\t\t\t\t\tprefix: false,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-expression', function gobbleAssignment(env) {\n\t\t\tif (env.node) {\n\t\t\t\t// Note: Binaries can be chained in a single expression to respect\n\t\t\t\t// operator precedence (i.e. a = b = 1 + 2 + 3)\n\t\t\t\t// Update all binary assignment nodes in the tree\n\t\t\t\tupdateBinariesToAssignments(env.node);\n\t\t\t}\n\t\t});\n\n\t\tfunction updateBinariesToAssignments(node) {\n\t\t\tif (plugin.assignmentOperators.has(node.operator)) {\n\t\t\t\tnode.type = 'AssignmentExpression';\n\t\t\t\tupdateBinariesToAssignments(node.left);\n\t\t\t\tupdateBinariesToAssignments(node.right);\n\t\t\t}\n\t\t\telse if (!node.operator) {\n\t\t\t\tObject.values(node).forEach((val) => {\n\t\t\t\t\tif (val && typeof val === 'object') {\n\t\t\t\t\t\tupdateBinariesToAssignments(val);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n};\nexport default plugin;\n"],"names":["plugin","name","assignmentOperators","Set","updateOperators","assignmentPrecedence","init","jsep","updateNodeTypes","IDENTIFIER","MEMBER_EXP","updateBinariesToAssignments","node","has","operator","type","left","right","Object","values","forEach","val","op","addBinaryOp","hooks","add","env","code","this","some","c","expr","charCodeAt","index","argument","gobbleTokenProperty","gobbleIdentifier","prefix","includes","throwError"],"mappings":"kCAAA,MAGMA,EAAS,CACdC,KAAM,aAENC,oBAAqB,IAAIC,IAAI,CAC5B,IACA,KACA,MACA,K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a,EAAqB,KAAO,KACtCO,SAAUR,EAAId,KACdyB,QAAQ,QAMZ9B,EAAKiB,MAAMC,IAAI,oBAAoB,SAA0BC,GACxDA,EAAId,MAIPD,EAA4Be,EAAId"}
1
+ {"version":3,"file":"index.iife.min.js","sources":["../../src/index.js"],"sourcesContent":["const PLUS_CODE = 43; // +\nconst MINUS_CODE = 45; // -\n\nconst plugin = {\n\tname: 'assignment',\n\n\tassignmentOperators: new Set([\n\t\t'=',\n\t\t'*=',\n\t\t'**=',\n\t\t'/=',\n\t\t'%=',\n\t\t'+=',\n\t\t'-=',\n\t\t'<<=',\n\t\t'>>=',\n\t\t'>>>=',\n\t\t'&=',\n\t\t'^=',\n\t\t'|=',\n\t\t'||=',\n\t\t'&&=',\n\t\t'??=',\n\t]),\n\tupdateOperators: [PLUS_CODE, MINUS_CODE],\n\tassignmentPrecedence: 0.9,\n\n\tinit(jsep) {\n\t\tconst updateNodeTypes = [jsep.IDENTIFIER, jsep.MEMBER_EXP];\n\t\tplugin.assignmentOperators.forEach(op => jsep.addBinaryOp(op, plugin.assignmentPrecedence, true));\n\n\t\tjsep.hooks.add('gobble-token', function gobbleUpdatePrefix(env) {\n\t\t\tconst code = this.code;\n\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\tthis.index += 2;\n\t\t\t\tenv.node = {\n\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\targument: this.gobbleTokenProperty(this.gobbleIdentifier()),\n\t\t\t\t\tprefix: true,\n\t\t\t\t};\n\t\t\t\tif (!env.node.argument || !updateNodeTypes.includes(env.node.argument.type)) {\n\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-token', function gobbleUpdatePostfix(env) {\n\t\t\tif (env.node) {\n\t\t\t\tconst code = this.code;\n\t\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\t\tif (!updateNodeTypes.includes(env.node.type)) {\n\t\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t\t}\n\t\t\t\t\tthis.index += 2;\n\t\t\t\t\tenv.node = {\n\t\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\t\targument: env.node,\n\t\t\t\t\t\tprefix: false,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-expression', function gobbleAssignment(env) {\n\t\t\tif (env.node) {\n\t\t\t\t// Note: Binaries can be chained in a single expression to respect\n\t\t\t\t// operator precedence (i.e. a = b = 1 + 2 + 3)\n\t\t\t\t// Update all binary assignment nodes in the tree\n\t\t\t\tupdateBinariesToAssignments(env.node);\n\t\t\t}\n\t\t});\n\n\t\tfunction updateBinariesToAssignments(node) {\n\t\t\tif (plugin.assignmentOperators.has(node.operator)) {\n\t\t\t\tnode.type = 'AssignmentExpression';\n\t\t\t\tupdateBinariesToAssignments(node.left);\n\t\t\t\tupdateBinariesToAssignments(node.right);\n\t\t\t}\n\t\t\telse if (!node.operator) {\n\t\t\t\tObject.values(node).forEach((val) => {\n\t\t\t\t\tif (val && typeof val === 'object') {\n\t\t\t\t\t\tupdateBinariesToAssignments(val);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n};\nexport default plugin;\n"],"names":["plugin","name","assignmentOperators","Set","updateOperators","assignmentPrecedence","init","jsep","updateNodeTypes","IDENTIFIER","MEMBER_EXP","updateBinariesToAssignments","node","has","operator","type","left","right","Object","values","forEach","val","op","addBinaryOp","hooks","add","env","code","this","some","c","expr","charCodeAt","index","argument","gobbleTokenProperty","gobbleIdentifier","prefix","includes","throwError"],"mappings":"kCAAA,MAGMA,EAAS,CACdC,KAAM,aAENC,oBAAq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AS,EACdP,EAAId,KAAO,CACVG,KAAM,mBACND,SAzDY,KAyDFa,EAAqB,KAAO,KACtCO,SAAUR,EAAId,KACdyB,QAAQ,GAGX,CACD,GAEA9B,EAAKiB,MAAMC,IAAI,mBAAoB,SAA0BC,GACxDA,EAAId,MAIPD,EAA4Be,EAAId,KAElC,EAgBD"}
@@ -1,2 +1,2 @@
1
- const e={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(t){const o=[t.IDENTIFIER,t.MEMBER_EXP];function n(t){e.assignmentOperators.has(t.operator)?(t.type="AssignmentExpression",n(t.left),n(t.right)):t.operator||Object.values(t).forEach((e=>{e&&"object"==typeof e&&n(e)}))}e.assignmentOperators.forEach((o=>t.addBinaryOp(o,e.assignmentPrecedence,!0))),t.hooks.add("gobble-token",(function(t){const n=this.code;e.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},t.node.argument&&o.includes(t.node.argument.type)||this.throwError(`Unexpected ${t.node.operator}`))})),t.hooks.add("after-token",(function(t){if(t.node){const n=this.code;e.updateOperators.some((e=>e===n&&e===this.expr.charCodeAt(this.index+1)))&&(o.includes(t.node.type)||this.throwError(`Unexpected ${t.node.operator}`),this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:t.node,prefix:!1})}})),t.hooks.add("after-expression",(function(e){e.node&&n(e.node)}))}};export{e as default};
1
+ const e={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(t){const o=[t.IDENTIFIER,t.MEMBER_EXP];function n(t){e.assignmentOperators.has(t.operator)?(t.type="AssignmentExpression",n(t.left),n(t.right)):t.operator||Object.values(t).forEach(e=>{e&&"object"==typeof e&&n(e)})}e.assignmentOperators.forEach(o=>t.addBinaryOp(o,e.assignmentPrecedence,!0)),t.hooks.add("gobble-token",function(t){const n=this.code;e.updateOperators.some(e=>e===n&&e===this.expr.charCodeAt(this.index+1))&&(this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},t.node.argument&&o.includes(t.node.argument.type)||this.throwError(`Unexpected ${t.node.operator}`))}),t.hooks.add("after-token",function(t){if(t.node){const n=this.code;e.updateOperators.some(e=>e===n&&e===this.expr.charCodeAt(this.index+1))&&(o.includes(t.node.type)||this.throwError(`Unexpected ${t.node.operator}`),this.index+=2,t.node={type:"UpdateExpression",operator:43===n?"++":"--",argument:t.node,prefix:!1})}}),t.hooks.add("after-expression",function(e){e.node&&n(e.node)})}};export{e as default};
2
2
  //# sourceMappingURL=index.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.min.js","sources":["../src/index.js"],"sourcesContent":["const PLUS_CODE = 43; // +\nconst MINUS_CODE = 45; // -\n\nconst plugin = {\n\tname: 'assignment',\n\n\tassignmentOperators: new Set([\n\t\t'=',\n\t\t'*=',\n\t\t'**=',\n\t\t'/=',\n\t\t'%=',\n\t\t'+=',\n\t\t'-=',\n\t\t'<<=',\n\t\t'>>=',\n\t\t'>>>=',\n\t\t'&=',\n\t\t'^=',\n\t\t'|=',\n\t\t'||=',\n\t\t'&&=',\n\t\t'??=',\n\t]),\n\tupdateOperators: [PLUS_CODE, MINUS_CODE],\n\tassignmentPrecedence: 0.9,\n\n\tinit(jsep) {\n\t\tconst updateNodeTypes = [jsep.IDENTIFIER, jsep.MEMBER_EXP];\n\t\tplugin.assignmentOperators.forEach(op => jsep.addBinaryOp(op, plugin.assignmentPrecedence, true));\n\n\t\tjsep.hooks.add('gobble-token', function gobbleUpdatePrefix(env) {\n\t\t\tconst code = this.code;\n\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\tthis.index += 2;\n\t\t\t\tenv.node = {\n\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\targument: this.gobbleTokenProperty(this.gobbleIdentifier()),\n\t\t\t\t\tprefix: true,\n\t\t\t\t};\n\t\t\t\tif (!env.node.argument || !updateNodeTypes.includes(env.node.argument.type)) {\n\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-token', function gobbleUpdatePostfix(env) {\n\t\t\tif (env.node) {\n\t\t\t\tconst code = this.code;\n\t\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\t\tif (!updateNodeTypes.includes(env.node.type)) {\n\t\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t\t}\n\t\t\t\t\tthis.index += 2;\n\t\t\t\t\tenv.node = {\n\t\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\t\targument: env.node,\n\t\t\t\t\t\tprefix: false,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-expression', function gobbleAssignment(env) {\n\t\t\tif (env.node) {\n\t\t\t\t// Note: Binaries can be chained in a single expression to respect\n\t\t\t\t// operator precedence (i.e. a = b = 1 + 2 + 3)\n\t\t\t\t// Update all binary assignment nodes in the tree\n\t\t\t\tupdateBinariesToAssignments(env.node);\n\t\t\t}\n\t\t});\n\n\t\tfunction updateBinariesToAssignments(node) {\n\t\t\tif (plugin.assignmentOperators.has(node.operator)) {\n\t\t\t\tnode.type = 'AssignmentExpression';\n\t\t\t\tupdateBinariesToAssignments(node.left);\n\t\t\t\tupdateBinariesToAssignments(node.right);\n\t\t\t}\n\t\t\telse if (!node.operator) {\n\t\t\t\tObject.values(node).forEach((val) => {\n\t\t\t\t\tif (val && typeof val === 'object') {\n\t\t\t\t\t\tupdateBinariesToAssignments(val);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n};\nexport default plugin;\n"],"names":["plugin","name","assignmentOperators","Set","updateOperators","assignmentPrecedence","init","jsep","updateNodeTypes","IDENTIFIER","MEMBER_EXP","updateBinariesToAssignments","node","has","operator","type","left","right","Object","values","forEach","val","op","addBinaryOp","hooks","add","env","code","this","some","c","expr","charCodeAt","index","argument","gobbleTokenProperty","gobbleIdentifier","prefix","includes","throwError"],"mappings":"AAAA,MAGMA,EAAS,CACdC,KAAM,aAENC,oBAAqB,IAAIC,IAAI,CAC5B,IACA,KACA,MACA,KACA,KACA,KACA,KACA,MACA,MACA,OACA,KACA,KACA,KACA,MACA,MACA,QAEDC,gBAAiB,CAxBA,GACC,IAwBlBC,qBAAsB,GAEtBC,KAAKC,GACJ,MAAMC,EAAkB,CAACD,EAAKE,WAAYF,EAAKG,YA8C/C,SAASC,EAA4BC,GAChCZ,EAAOE,oBAAoBW,IAAID,EAAKE,WACvCF,EAAKG,KAAO,uBACZJ,EAA4BC,EAAKI,MACjCL,EAA4BC,EAAKK,QAExBL,EAAKE,UACdI,OAAOC,OAAOP,GAAMQ,SAASC,IACxBA,GAAsB,iBAARA,GACjBV,EAA4BU,MAtDhCrB,EAAOE,oBAAoBkB,SAAQE,GAAMf,EAAKgB,YAAYD,EAAItB,EAAOK,sBAAsB,KAE3FE,EAAKiB,MAAMC,IAAI,gBAAgB,SAA4BC,GAC1D,MAAMC,EAAOC,KAAKD,KACd3B,EAAOI,gBAAgByB,MAAKC,GAAKA,IAAMH,GAAQG,IAAMF,KAAKG,KAAKC,WAAWJ,KAAKK,MAAQ,OAC1FL,KAAKK,OAAS,EACdP,EAAId,KAAO,CACVG,KAAM,mBACND,SArCa,KAqCHa,EAAqB,KAAO,KACtCO,SAAUN,KAAKO,oBAAoBP,KAAKQ,oBACxCC,QAAQ,GAEJX,EAAId,KAAKsB,UAAa1B,EAAgB8B,SAASZ,EAAId,KAAKsB,SAASnB,OACrEa,KAAKW,WAAW,cAAcb,EAAId,KAAKE,gBAK1CP,EAAKiB,MAAMC,IAAI,eAAe,SAA6BC,GAC1D,GAAIA,EAAId,KAAM,CACb,MAAMe,EAAOC,KAAKD,KACd3B,EAAOI,gBAAgByB,MAAKC,GAAKA,IAAMH,GAAQG,IAAMF,KAAKG,KAAKC,WAAWJ,KAAKK,MAAQ,OACrFzB,EAAgB8B,SAASZ,EAAId,KAAKG,OACtCa,KAAKW,WAAW,cAAcb,EAAId,KAAKE,YAExCc,KAAKK,OAAS,EACdP,EAAId,KAAO,CACVG,KAAM,mBACND,SAzDY,KAyDFa,EAAqB,KAAO,KACtCO,SAAUR,EAAId,KACdyB,QAAQ,QAMZ9B,EAAKiB,MAAMC,IAAI,oBAAoB,SAA0BC,GACxDA,EAAId,MAIPD,EAA4Be,EAAId"}
1
+ {"version":3,"file":"index.min.js","sources":["../src/index.js"],"sourcesContent":["const PLUS_CODE = 43; // +\nconst MINUS_CODE = 45; // -\n\nconst plugin = {\n\tname: 'assignment',\n\n\tassignmentOperators: new Set([\n\t\t'=',\n\t\t'*=',\n\t\t'**=',\n\t\t'/=',\n\t\t'%=',\n\t\t'+=',\n\t\t'-=',\n\t\t'<<=',\n\t\t'>>=',\n\t\t'>>>=',\n\t\t'&=',\n\t\t'^=',\n\t\t'|=',\n\t\t'||=',\n\t\t'&&=',\n\t\t'??=',\n\t]),\n\tupdateOperators: [PLUS_CODE, MINUS_CODE],\n\tassignmentPrecedence: 0.9,\n\n\tinit(jsep) {\n\t\tconst updateNodeTypes = [jsep.IDENTIFIER, jsep.MEMBER_EXP];\n\t\tplugin.assignmentOperators.forEach(op => jsep.addBinaryOp(op, plugin.assignmentPrecedence, true));\n\n\t\tjsep.hooks.add('gobble-token', function gobbleUpdatePrefix(env) {\n\t\t\tconst code = this.code;\n\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\tthis.index += 2;\n\t\t\t\tenv.node = {\n\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\targument: this.gobbleTokenProperty(this.gobbleIdentifier()),\n\t\t\t\t\tprefix: true,\n\t\t\t\t};\n\t\t\t\tif (!env.node.argument || !updateNodeTypes.includes(env.node.argument.type)) {\n\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-token', function gobbleUpdatePostfix(env) {\n\t\t\tif (env.node) {\n\t\t\t\tconst code = this.code;\n\t\t\t\tif (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n\t\t\t\t\tif (!updateNodeTypes.includes(env.node.type)) {\n\t\t\t\t\t\tthis.throwError(`Unexpected ${env.node.operator}`);\n\t\t\t\t\t}\n\t\t\t\t\tthis.index += 2;\n\t\t\t\t\tenv.node = {\n\t\t\t\t\t\ttype: 'UpdateExpression',\n\t\t\t\t\t\toperator: code === PLUS_CODE ? '++' : '--',\n\t\t\t\t\t\targument: env.node,\n\t\t\t\t\t\tprefix: false,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tjsep.hooks.add('after-expression', function gobbleAssignment(env) {\n\t\t\tif (env.node) {\n\t\t\t\t// Note: Binaries can be chained in a single expression to respect\n\t\t\t\t// operator precedence (i.e. a = b = 1 + 2 + 3)\n\t\t\t\t// Update all binary assignment nodes in the tree\n\t\t\t\tupdateBinariesToAssignments(env.node);\n\t\t\t}\n\t\t});\n\n\t\tfunction updateBinariesToAssignments(node) {\n\t\t\tif (plugin.assignmentOperators.has(node.operator)) {\n\t\t\t\tnode.type = 'AssignmentExpression';\n\t\t\t\tupdateBinariesToAssignments(node.left);\n\t\t\t\tupdateBinariesToAssignments(node.right);\n\t\t\t}\n\t\t\telse if (!node.operator) {\n\t\t\t\tObject.values(node).forEach((val) => {\n\t\t\t\t\tif (val && typeof val === 'object') {\n\t\t\t\t\t\tupdateBinariesToAssignments(val);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n};\nexport default plugin;\n"],"names":["plugin","name","assignmentOperators","Set","updateOperators","assignmentPrecedence","init","jsep","updateNodeTypes","IDENTIFIER","MEMBER_EXP","updateBinariesToAssignments","node","has","operator","type","left","right","Object","values","forEach","val","op","addBinaryOp","hooks","add","env","code","this","some","c","expr","charCodeAt","index","argument","gobbleTokenProperty","gobbleIdentifier","prefix","includes","throwError"],"mappings":"AAAA,MAGMA,EAAS,CACdC,KAAM,aAENC,oBAAqB,IAAIC,IAAI,CAC5B,IACA,KACA,MACA,KACA,KACA,KACA,KACA,MACA,MACA,OACA,KACA,KACA,KACA,MACA,MACA,QAEDC,gBAAiB,CAxBA,GACC,IAwBlBC,qBAAsB,GAEtB,IAAAC,CAAKC,GACJ,MAAMC,EAAkB,CAACD,EAAKE,WAAYF,EAAKG,YA8C/C,SAASC,EAA4BC,GAChCZ,EAAOE,oBAAoBW,IAAID,EAAKE,WACvCF,EAAKG,KAAO,uBACZJ,EAA4BC,EAAKI,MACjCL,EAA4BC,EAAKK,QAExBL,EAAKE,UACdI,OAAOC,OAAOP,GAAMQ,QAASC,IACxBA,GAAsB,iBAARA,GACjBV,EAA4BU,IAIhC,CA1DArB,EAAOE,oBAAoBkB,QAAQE,GAAMf,EAAKgB,YAAYD,EAAItB,EAAOK,sBAAsB,IAE3FE,EAAKiB,MAAMC,IAAI,eAAgB,SAA4BC,GAC1D,MAAMC,EAAOC,KAAKD,KACd3B,EAAOI,gBAAgByB,KAAKC,GAAKA,IAAMH,GAAQG,IAAMF,KAAKG,KAAKC,WAAWJ,KAAKK,MAAQ,MAC1FL,KAAKK,OAAS,EACdP,EAAId,KAAO,CACVG,K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