@mavogel/awscdk-rootmail 0.0.323 → 0.0.325

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 (395) hide show
  1. package/.jsii +2 -2
  2. package/lib/rootmail.js +1 -1
  3. package/lib/ses-receive.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +4442 -4660
  5. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/models/models_0.d.ts +2 -2
  6. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +38 -38
  7. package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +7328 -7804
  8. package/node_modules/@aws-sdk/client-route-53/dist-types/models/models_0.d.ts +1 -1
  9. package/node_modules/@aws-sdk/client-route-53/package.json +38 -38
  10. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +11771 -11916
  11. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +4 -4
  12. package/node_modules/@aws-sdk/client-s3/package.json +52 -52
  13. package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +7284 -7626
  14. package/node_modules/@aws-sdk/client-ses/package.json +36 -36
  15. package/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/ruleset.js +1 -1
  16. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +12508 -13696
  17. package/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/ruleset.js +1 -1
  18. package/node_modules/@aws-sdk/client-ssm/package.json +36 -36
  19. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +478 -596
  20. package/node_modules/@aws-sdk/client-sso/package.json +34 -34
  21. package/node_modules/@aws-sdk/core/dist-cjs/index.js +1969 -6
  22. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +48 -88
  23. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +35 -74
  24. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +273 -365
  25. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1581 -1863
  26. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +1 -1
  27. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +4 -4
  28. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +3 -3
  29. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +4 -4
  30. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +4 -4
  31. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +4 -4
  32. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +4 -4
  33. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +3 -3
  34. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
  35. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
  36. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +1 -1
  37. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
  38. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
  39. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
  40. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +1 -1
  41. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +4 -4
  42. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
  43. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  44. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
  45. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -1
  46. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -2
  47. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +1 -1
  48. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +7 -7
  49. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -1
  50. package/node_modules/@aws-sdk/core/package.json +12 -12
  51. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +38 -73
  52. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  53. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  54. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +194 -259
  55. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -2
  56. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
  57. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -1
  58. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +4 -0
  59. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +3 -1
  60. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProfileData.d.ts +1 -0
  61. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  62. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +72 -132
  63. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  64. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +71 -107
  65. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  66. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +176 -249
  67. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +14 -0
  68. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  69. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +16 -25
  70. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  71. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js +334 -450
  72. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
  73. package/node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js +30 -60
  74. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
  75. package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +381 -478
  76. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +9 -9
  77. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +35 -63
  78. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  79. package/node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js +23 -57
  80. package/node_modules/@aws-sdk/middleware-location-constraint/dist-es/index.js +4 -7
  81. package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
  82. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +44 -75
  83. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  84. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +19 -48
  85. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  86. package/node_modules/@aws-sdk/middleware-sdk-route53/dist-cjs/index.js +71 -109
  87. package/node_modules/@aws-sdk/middleware-sdk-route53/package.json +3 -3
  88. package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +511 -641
  89. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
  90. package/node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js +65 -92
  91. package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
  92. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +170 -203
  93. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  94. package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -2
  95. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +583 -858
  96. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +795 -928
  97. package/node_modules/@aws-sdk/nested-clients/package.json +34 -34
  98. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +59 -95
  99. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  100. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +108 -137
  101. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
  102. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +147 -222
  103. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  104. package/node_modules/@aws-sdk/types/dist-cjs/index.js +18 -290
  105. package/node_modules/@aws-sdk/types/package.json +2 -2
  106. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +395 -469
  107. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  108. package/node_modules/@aws-sdk/util-user-agent-browser/README.md +22 -3
  109. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/createUserAgentStringParsingProvider.js +57 -0
  110. package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +39 -8
  111. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/createUserAgentStringParsingProvider.js +20 -0
  112. package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +37 -6
  113. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/createUserAgentStringParsingProvider.d.ts +14 -0
  114. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +14 -4
  115. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +4 -3
  116. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/createUserAgentStringParsingProvider.d.ts +9 -0
  117. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +5 -0
  118. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  119. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +50 -94
  120. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +1 -2
  121. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +10 -5
  122. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  123. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +106 -160
  124. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +4 -1
  125. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  126. package/node_modules/@smithy/abort-controller/package.json +2 -2
  127. package/node_modules/@smithy/chunked-blob-reader-native/package.json +2 -2
  128. package/node_modules/@smithy/config-resolver/package.json +4 -4
  129. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +4 -16
  130. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -4
  131. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +51 -47
  132. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +234 -265
  133. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +126 -34
  134. package/node_modules/@smithy/core/dist-es/index.js +1 -1
  135. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +6 -17
  136. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -4
  137. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +4 -4
  138. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -9
  139. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -2
  140. package/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js +6 -0
  141. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
  142. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +22 -22
  143. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +3 -2
  144. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +7 -9
  145. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -6
  146. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +18 -11
  147. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +2 -0
  148. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +3 -1
  149. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -1
  150. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +100 -185
  151. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +0 -2
  152. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +6 -0
  153. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js +7 -0
  154. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +22 -0
  155. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  156. package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +110 -0
  157. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +4 -26
  158. package/node_modules/@smithy/core/dist-types/index.d.ts +1 -1
  159. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -10
  160. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +5 -2
  161. package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +8 -0
  162. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
  163. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
  164. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
  165. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
  166. package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
  167. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +5 -6
  168. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +2 -0
  169. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
  170. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +2 -0
  171. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +2 -0
  172. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +12 -27
  173. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +2 -0
  174. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +1 -0
  175. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +7 -0
  176. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +2 -0
  177. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/operation.d.ts +7 -0
  178. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +2 -0
  179. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +7 -0
  180. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  181. package/node_modules/@smithy/core/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  182. package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +1 -1
  183. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -10
  184. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +5 -2
  185. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +8 -0
  186. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  187. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
  188. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
  189. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
  190. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
  191. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +5 -6
  192. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +2 -0
  193. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
  194. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +2 -0
  195. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +2 -0
  196. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +12 -27
  197. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +2 -0
  198. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +1 -0
  199. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +7 -0
  200. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +2 -0
  201. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/operation.d.ts +7 -0
  202. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +2 -0
  203. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +7 -0
  204. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  205. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  206. package/node_modules/@smithy/core/package.json +8 -8
  207. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  208. package/node_modules/@smithy/eventstream-codec/package.json +2 -2
  209. package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
  210. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
  211. package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
  212. package/node_modules/@smithy/eventstream-serde-universal/package.json +6 -4
  213. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  214. package/node_modules/@smithy/hash-blob-browser/package.json +3 -3
  215. package/node_modules/@smithy/hash-node/package.json +2 -2
  216. package/node_modules/@smithy/hash-stream-node/package.json +2 -2
  217. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  218. package/node_modules/@smithy/md5-js/package.json +3 -3
  219. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  220. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  221. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  222. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  223. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  224. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  225. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +30 -6
  226. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -3
  227. package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +1 -1
  228. package/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
  229. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -3
  230. package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
  231. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
  232. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  233. package/node_modules/@smithy/property-provider/package.json +2 -2
  234. package/node_modules/@smithy/protocol-http/package.json +2 -2
  235. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  236. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  237. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  238. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +2 -1
  239. package/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +1 -0
  240. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +1 -1
  241. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +1 -1
  242. package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +1 -1
  243. package/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +4 -0
  244. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +1 -4
  245. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/constants.d.ts +4 -0
  246. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -4
  247. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  248. package/node_modules/@smithy/signature-v4/package.json +4 -4
  249. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +5 -4
  250. package/node_modules/@smithy/smithy-client/dist-es/command.js +5 -4
  251. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +3 -3
  252. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +3 -3
  253. package/node_modules/@smithy/smithy-client/package.json +7 -7
  254. package/node_modules/@smithy/types/dist-es/index.js +2 -0
  255. package/node_modules/@smithy/types/dist-es/schema/schema-deprecated.js +1 -0
  256. package/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
  257. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +17 -10
  258. package/node_modules/@smithy/types/dist-types/index.d.ts +2 -0
  259. package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +136 -0
  260. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +27 -68
  261. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +82 -0
  262. package/node_modules/@smithy/types/dist-types/serde.d.ts +2 -2
  263. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +17 -10
  264. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +2 -0
  265. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +142 -0
  266. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +28 -72
  267. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +101 -0
  268. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -2
  269. package/node_modules/@smithy/types/package.json +1 -1
  270. package/node_modules/@smithy/url-parser/package.json +3 -3
  271. package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +9 -32
  272. package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +9 -28
  273. package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +5 -6
  274. package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +5 -6
  275. package/node_modules/@smithy/util-base64/package.json +1 -1
  276. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +8 -6
  277. package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +8 -6
  278. package/node_modules/@smithy/util-body-length-node/package.json +1 -1
  279. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +11 -9
  280. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +11 -8
  281. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -5
  282. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  283. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +31 -22
  284. package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +1 -11
  285. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +15 -2
  286. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +17 -2
  287. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js +1 -13
  288. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +25 -2
  289. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js +1 -21
  290. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +1 -2
  291. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +7 -2
  292. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +6 -1
  293. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +1 -3
  294. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +6 -0
  295. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +1 -3
  296. package/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts +1 -2
  297. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts +7 -2
  298. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +6 -1
  299. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -3
  300. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +6 -0
  301. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -3
  302. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  303. package/node_modules/@smithy/util-middleware/package.json +2 -2
  304. package/node_modules/@smithy/util-retry/package.json +3 -3
  305. package/node_modules/@smithy/util-stream/dist-cjs/index.js +10 -19
  306. package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +12 -7
  307. package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  308. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  309. package/node_modules/@smithy/util-stream/package.json +5 -5
  310. package/node_modules/@smithy/util-waiter/package.json +3 -3
  311. package/node_modules/cdk-nag/.jsii +3 -3
  312. package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
  313. package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
  314. package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
  315. package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
  316. package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
  317. package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
  318. package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
  319. package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
  320. package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
  321. package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
  322. package/node_modules/cdk-nag/lib/packs/serverless.js +1 -1
  323. package/node_modules/cdk-nag/package.json +4 -4
  324. package/node_modules/mailparser/CHANGELOG.md +7 -0
  325. package/node_modules/mailparser/lib/mail-parser.js +12 -3
  326. package/node_modules/mailparser/node_modules/iconv-lite/Changelog.md +236 -0
  327. package/node_modules/mailparser/node_modules/iconv-lite/LICENSE +21 -0
  328. package/node_modules/mailparser/node_modules/iconv-lite/README.md +138 -0
  329. package/node_modules/mailparser/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  330. package/node_modules/mailparser/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  331. package/node_modules/mailparser/node_modules/iconv-lite/encodings/index.js +23 -0
  332. package/node_modules/mailparser/node_modules/iconv-lite/encodings/internal.js +218 -0
  333. package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  334. package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  335. package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
  336. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  337. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  338. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  339. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  340. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  341. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  342. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  343. package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  344. package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf16.js +187 -0
  345. package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf32.js +307 -0
  346. package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf7.js +283 -0
  347. package/node_modules/mailparser/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  348. package/node_modules/mailparser/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  349. package/node_modules/mailparser/node_modules/iconv-lite/lib/index.d.ts +41 -0
  350. package/node_modules/mailparser/node_modules/iconv-lite/lib/index.js +183 -0
  351. package/node_modules/mailparser/node_modules/iconv-lite/lib/streams.js +105 -0
  352. package/node_modules/mailparser/node_modules/iconv-lite/package.json +59 -0
  353. package/node_modules/mailparser/package.json +5 -5
  354. package/node_modules/mailsplit/index.js +2 -0
  355. package/node_modules/mailsplit/lib/chunked-passthrough.js +37 -0
  356. package/node_modules/mailsplit/package.json +1 -1
  357. package/node_modules/nodemailer/.ncurc.js +3 -5
  358. package/node_modules/nodemailer/.prettierignore +8 -0
  359. package/node_modules/nodemailer/.prettierrc +12 -0
  360. package/node_modules/nodemailer/.prettierrc.js +2 -0
  361. package/node_modules/nodemailer/.release-please-config.json +9 -0
  362. package/node_modules/nodemailer/CHANGELOG.md +323 -305
  363. package/node_modules/nodemailer/CODE_OF_CONDUCT.md +13 -13
  364. package/node_modules/nodemailer/README.md +10 -10
  365. package/node_modules/nodemailer/eslint.config.js +88 -0
  366. package/node_modules/nodemailer/lib/addressparser/index.js +47 -7
  367. package/node_modules/nodemailer/lib/base64/index.js +11 -14
  368. package/node_modules/nodemailer/lib/dkim/index.js +3 -1
  369. package/node_modules/nodemailer/lib/dkim/sign.js +1 -1
  370. package/node_modules/nodemailer/lib/fetch/index.js +7 -1
  371. package/node_modules/nodemailer/lib/mail-composer/index.js +47 -9
  372. package/node_modules/nodemailer/lib/mailer/index.js +8 -1
  373. package/node_modules/nodemailer/lib/mailer/mail-message.js +2 -1
  374. package/node_modules/nodemailer/lib/mime-funcs/index.js +2 -2
  375. package/node_modules/nodemailer/lib/mime-funcs/mime-types.js +12 -3
  376. package/node_modules/nodemailer/lib/mime-node/index.js +11 -9
  377. package/node_modules/nodemailer/lib/nodemailer.js +3 -1
  378. package/node_modules/nodemailer/lib/qp/index.js +10 -2
  379. package/node_modules/nodemailer/lib/shared/index.js +108 -42
  380. package/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +2 -2
  381. package/node_modules/nodemailer/lib/smtp-connection/index.js +13 -6
  382. package/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +3 -2
  383. package/node_modules/nodemailer/lib/smtp-transport/index.js +1 -1
  384. package/node_modules/nodemailer/lib/well-known/services.json +277 -42
  385. package/node_modules/nodemailer/lib/xoauth2/index.js +58 -7
  386. package/node_modules/nodemailer/package.json +9 -5
  387. package/node_modules/tlds/index.json +0 -1
  388. package/node_modules/tlds/package.json +1 -1
  389. package/package.json +1 -1
  390. package/node_modules/@smithy/util-stream/dist-es/blob/transforms.js +0 -15
  391. package/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts +0 -9
  392. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts +0 -9
  393. /package/node_modules/@smithy/core/dist-es/{protocols → request-builder}/requestBuilder.js +0 -0
  394. /package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts +0 -0
  395. /package/node_modules/@smithy/core/dist-types/ts3.4/{protocols → request-builder}/requestBuilder.d.ts +0 -0
@@ -0,0 +1,283 @@
1
+ "use strict"
2
+ var Buffer = require("safer-buffer").Buffer
3
+
4
+ // UTF-7 codec, according to https://tools.ietf.org/html/rfc2152
5
+ // See also below a UTF-7-IMAP codec, according to http://tools.ietf.org/html/rfc3501#section-5.1.3
6
+
7
+ exports.utf7 = Utf7Codec
8
+ exports.unicode11utf7 = "utf7" // Alias UNICODE-1-1-UTF-7
9
+ function Utf7Codec (codecOptions, iconv) {
10
+ this.iconv = iconv
11
+ };
12
+
13
+ Utf7Codec.prototype.encoder = Utf7Encoder
14
+ Utf7Codec.prototype.decoder = Utf7Decoder
15
+ Utf7Codec.prototype.bomAware = true
16
+
17
+ // -- Encoding
18
+
19
+ // Why scape ()?./?
20
+ // eslint-disable-next-line no-useless-escape
21
+ var nonDirectChars = /[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g
22
+
23
+ function Utf7Encoder (options, codec) {
24
+ this.iconv = codec.iconv
25
+ }
26
+
27
+ Utf7Encoder.prototype.write = function (str) {
28
+ // Naive implementation.
29
+ // Non-direct chars are encoded as "+<base64>-"; single "+" char is encoded as "+-".
30
+ return Buffer.from(str.replace(nonDirectChars, function (chunk) {
31
+ return "+" + (chunk === "+"
32
+ ? ""
33
+ : this.iconv.encode(chunk, "utf16-be").toString("base64").replace(/=+$/, "")) +
34
+ "-"
35
+ }.bind(this)))
36
+ }
37
+
38
+ Utf7Encoder.prototype.end = function () {
39
+ }
40
+
41
+ // -- Decoding
42
+
43
+ function Utf7Decoder (options, codec) {
44
+ this.iconv = codec.iconv
45
+ this.inBase64 = false
46
+ this.base64Accum = ""
47
+ }
48
+
49
+ // Why scape /?
50
+ // eslint-disable-next-line no-useless-escape
51
+ var base64Regex = /[A-Za-z0-9\/+]/
52
+ var base64Chars = []
53
+ for (var i = 0; i < 256; i++) { base64Chars[i] = base64Regex.test(String.fromCharCode(i)) }
54
+
55
+ var plusChar = "+".charCodeAt(0)
56
+ var minusChar = "-".charCodeAt(0)
57
+ var andChar = "&".charCodeAt(0)
58
+
59
+ Utf7Decoder.prototype.write = function (buf) {
60
+ var res = ""; var lastI = 0
61
+ var inBase64 = this.inBase64
62
+ var base64Accum = this.base64Accum
63
+
64
+ // The decoder is more involved as we must handle chunks in stream.
65
+
66
+ for (var i = 0; i < buf.length; i++) {
67
+ if (!inBase64) { // We're in direct mode.
68
+ // Write direct chars until '+'
69
+ if (buf[i] == plusChar) {
70
+ res += this.iconv.decode(buf.slice(lastI, i), "ascii") // Write direct chars.
71
+ lastI = i + 1
72
+ inBase64 = true
73
+ }
74
+ } else { // We decode base64.
75
+ if (!base64Chars[buf[i]]) { // Base64 ended.
76
+ if (i == lastI && buf[i] == minusChar) { // "+-" -> "+"
77
+ res += "+"
78
+ } else {
79
+ var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), "ascii")
80
+ res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be")
81
+ }
82
+
83
+ if (buf[i] != minusChar) // Minus is absorbed after base64.
84
+ { i-- }
85
+
86
+ lastI = i + 1
87
+ inBase64 = false
88
+ base64Accum = ""
89
+ }
90
+ }
91
+ }
92
+
93
+ if (!inBase64) {
94
+ res += this.iconv.decode(buf.slice(lastI), "ascii") // Write direct chars.
95
+ } else {
96
+ var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii")
97
+
98
+ var canBeDecoded = b64str.length - (b64str.length % 8) // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
99
+ base64Accum = b64str.slice(canBeDecoded) // The rest will be decoded in future.
100
+ b64str = b64str.slice(0, canBeDecoded)
101
+
102
+ res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be")
103
+ }
104
+
105
+ this.inBase64 = inBase64
106
+ this.base64Accum = base64Accum
107
+
108
+ return res
109
+ }
110
+
111
+ Utf7Decoder.prototype.end = function () {
112
+ var res = ""
113
+ if (this.inBase64 && this.base64Accum.length > 0) { res = this.iconv.decode(Buffer.from(this.base64Accum, "base64"), "utf16-be") }
114
+
115
+ this.inBase64 = false
116
+ this.base64Accum = ""
117
+ return res
118
+ }
119
+
120
+ // UTF-7-IMAP codec.
121
+ // RFC3501 Sec. 5.1.3 Modified UTF-7 (http://tools.ietf.org/html/rfc3501#section-5.1.3)
122
+ // Differences:
123
+ // * Base64 part is started by "&" instead of "+"
124
+ // * Direct characters are 0x20-0x7E, except "&" (0x26)
125
+ // * In Base64, "," is used instead of "/"
126
+ // * Base64 must not be used to represent direct characters.
127
+ // * No implicit shift back from Base64 (should always end with '-')
128
+ // * String must end in non-shifted position.
129
+ // * "-&" while in base64 is not allowed.
130
+
131
+ exports.utf7imap = Utf7IMAPCodec
132
+ function Utf7IMAPCodec (codecOptions, iconv) {
133
+ this.iconv = iconv
134
+ };
135
+
136
+ Utf7IMAPCodec.prototype.encoder = Utf7IMAPEncoder
137
+ Utf7IMAPCodec.prototype.decoder = Utf7IMAPDecoder
138
+ Utf7IMAPCodec.prototype.bomAware = true
139
+
140
+ // -- Encoding
141
+
142
+ function Utf7IMAPEncoder (options, codec) {
143
+ this.iconv = codec.iconv
144
+ this.inBase64 = false
145
+ this.base64Accum = Buffer.alloc(6)
146
+ this.base64AccumIdx = 0
147
+ }
148
+
149
+ Utf7IMAPEncoder.prototype.write = function (str) {
150
+ var inBase64 = this.inBase64
151
+ var base64Accum = this.base64Accum
152
+ var base64AccumIdx = this.base64AccumIdx
153
+ var buf = Buffer.alloc(str.length * 5 + 10); var bufIdx = 0
154
+
155
+ for (var i = 0; i < str.length; i++) {
156
+ var uChar = str.charCodeAt(i)
157
+ if (uChar >= 0x20 && uChar <= 0x7E) { // Direct character or '&'.
158
+ if (inBase64) {
159
+ if (base64AccumIdx > 0) {
160
+ bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx)
161
+ base64AccumIdx = 0
162
+ }
163
+
164
+ buf[bufIdx++] = minusChar // Write '-', then go to direct mode.
165
+ inBase64 = false
166
+ }
167
+
168
+ if (!inBase64) {
169
+ buf[bufIdx++] = uChar // Write direct character
170
+
171
+ if (uChar === andChar) // Ampersand -> '&-'
172
+ { buf[bufIdx++] = minusChar }
173
+ }
174
+ } else { // Non-direct character
175
+ if (!inBase64) {
176
+ buf[bufIdx++] = andChar // Write '&', then go to base64 mode.
177
+ inBase64 = true
178
+ }
179
+ if (inBase64) {
180
+ base64Accum[base64AccumIdx++] = uChar >> 8
181
+ base64Accum[base64AccumIdx++] = uChar & 0xFF
182
+
183
+ if (base64AccumIdx == base64Accum.length) {
184
+ bufIdx += buf.write(base64Accum.toString("base64").replace(/\//g, ","), bufIdx)
185
+ base64AccumIdx = 0
186
+ }
187
+ }
188
+ }
189
+ }
190
+
191
+ this.inBase64 = inBase64
192
+ this.base64AccumIdx = base64AccumIdx
193
+
194
+ return buf.slice(0, bufIdx)
195
+ }
196
+
197
+ Utf7IMAPEncoder.prototype.end = function () {
198
+ var buf = Buffer.alloc(10); var bufIdx = 0
199
+ if (this.inBase64) {
200
+ if (this.base64AccumIdx > 0) {
201
+ bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx)
202
+ this.base64AccumIdx = 0
203
+ }
204
+
205
+ buf[bufIdx++] = minusChar // Write '-', then go to direct mode.
206
+ this.inBase64 = false
207
+ }
208
+
209
+ return buf.slice(0, bufIdx)
210
+ }
211
+
212
+ // -- Decoding
213
+
214
+ function Utf7IMAPDecoder (options, codec) {
215
+ this.iconv = codec.iconv
216
+ this.inBase64 = false
217
+ this.base64Accum = ""
218
+ }
219
+
220
+ var base64IMAPChars = base64Chars.slice()
221
+ base64IMAPChars[",".charCodeAt(0)] = true
222
+
223
+ Utf7IMAPDecoder.prototype.write = function (buf) {
224
+ var res = ""; var lastI = 0
225
+ var inBase64 = this.inBase64
226
+ var base64Accum = this.base64Accum
227
+
228
+ // The decoder is more involved as we must handle chunks in stream.
229
+ // It is forgiving, closer to standard UTF-7 (for example, '-' is optional at the end).
230
+
231
+ for (var i = 0; i < buf.length; i++) {
232
+ if (!inBase64) { // We're in direct mode.
233
+ // Write direct chars until '&'
234
+ if (buf[i] == andChar) {
235
+ res += this.iconv.decode(buf.slice(lastI, i), "ascii") // Write direct chars.
236
+ lastI = i + 1
237
+ inBase64 = true
238
+ }
239
+ } else { // We decode base64.
240
+ if (!base64IMAPChars[buf[i]]) { // Base64 ended.
241
+ if (i == lastI && buf[i] == minusChar) { // "&-" -> "&"
242
+ res += "&"
243
+ } else {
244
+ var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i), "ascii").replace(/,/g, "/")
245
+ res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be")
246
+ }
247
+
248
+ if (buf[i] != minusChar) // Minus may be absorbed after base64.
249
+ { i-- }
250
+
251
+ lastI = i + 1
252
+ inBase64 = false
253
+ base64Accum = ""
254
+ }
255
+ }
256
+ }
257
+
258
+ if (!inBase64) {
259
+ res += this.iconv.decode(buf.slice(lastI), "ascii") // Write direct chars.
260
+ } else {
261
+ var b64str = base64Accum + this.iconv.decode(buf.slice(lastI), "ascii").replace(/,/g, "/")
262
+
263
+ var canBeDecoded = b64str.length - (b64str.length % 8) // Minimal chunk: 2 quads -> 2x3 bytes -> 3 chars.
264
+ base64Accum = b64str.slice(canBeDecoded) // The rest will be decoded in future.
265
+ b64str = b64str.slice(0, canBeDecoded)
266
+
267
+ res += this.iconv.decode(Buffer.from(b64str, "base64"), "utf16-be")
268
+ }
269
+
270
+ this.inBase64 = inBase64
271
+ this.base64Accum = base64Accum
272
+
273
+ return res
274
+ }
275
+
276
+ Utf7IMAPDecoder.prototype.end = function () {
277
+ var res = ""
278
+ if (this.inBase64 && this.base64Accum.length > 0) { res = this.iconv.decode(Buffer.from(this.base64Accum, "base64"), "utf16-be") }
279
+
280
+ this.inBase64 = false
281
+ this.base64Accum = ""
282
+ return res
283
+ }
@@ -0,0 +1,48 @@
1
+ "use strict"
2
+
3
+ var BOMChar = "\uFEFF"
4
+
5
+ exports.PrependBOM = PrependBOMWrapper
6
+ function PrependBOMWrapper (encoder, options) {
7
+ this.encoder = encoder
8
+ this.addBOM = true
9
+ }
10
+
11
+ PrependBOMWrapper.prototype.write = function (str) {
12
+ if (this.addBOM) {
13
+ str = BOMChar + str
14
+ this.addBOM = false
15
+ }
16
+
17
+ return this.encoder.write(str)
18
+ }
19
+
20
+ PrependBOMWrapper.prototype.end = function () {
21
+ return this.encoder.end()
22
+ }
23
+
24
+ // ------------------------------------------------------------------------------
25
+
26
+ exports.StripBOM = StripBOMWrapper
27
+ function StripBOMWrapper (decoder, options) {
28
+ this.decoder = decoder
29
+ this.pass = false
30
+ this.options = options || {}
31
+ }
32
+
33
+ StripBOMWrapper.prototype.write = function (buf) {
34
+ var res = this.decoder.write(buf)
35
+ if (this.pass || !res) { return res }
36
+
37
+ if (res[0] === BOMChar) {
38
+ res = res.slice(1)
39
+ if (typeof this.options.stripBOM === "function") { this.options.stripBOM() }
40
+ }
41
+
42
+ this.pass = true
43
+ return res
44
+ }
45
+
46
+ StripBOMWrapper.prototype.end = function () {
47
+ return this.decoder.end()
48
+ }
@@ -0,0 +1,13 @@
1
+ "use strict"
2
+
3
+ var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn
4
+
5
+ function mergeModules (target, module) {
6
+ for (var key in module) {
7
+ if (hasOwn(module, key)) {
8
+ target[key] = module[key]
9
+ }
10
+ }
11
+ }
12
+
13
+ module.exports = mergeModules
@@ -0,0 +1,41 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ * REQUIREMENT: This definition is dependent on the @types/node definition.
5
+ * Install with `npm install @types/node --save-dev`
6
+ *--------------------------------------------------------------------------------------------*/
7
+
8
+ declare module 'iconv-lite' {
9
+ // Basic API
10
+ export function decode(buffer: Buffer | Uint8Array, encoding: string, options?: Options): string;
11
+
12
+ export function encode(content: string, encoding: string, options?: Options): Buffer;
13
+
14
+ export function encodingExists(encoding: string): boolean;
15
+
16
+ // Stream API
17
+ export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
18
+
19
+ export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
20
+
21
+ // Low-level stream APIs
22
+ export function getEncoder(encoding: string, options?: Options): EncoderStream;
23
+
24
+ export function getDecoder(encoding: string, options?: Options): DecoderStream;
25
+ }
26
+
27
+ export interface Options {
28
+ stripBOM?: boolean;
29
+ addBOM?: boolean;
30
+ defaultEncoding?: string;
31
+ }
32
+
33
+ export interface EncoderStream {
34
+ write(str: string): Buffer;
35
+ end(): Buffer | undefined;
36
+ }
37
+
38
+ export interface DecoderStream {
39
+ write(buf: Buffer): string;
40
+ end(): string | undefined;
41
+ }
@@ -0,0 +1,183 @@
1
+ "use strict"
2
+
3
+ var Buffer = require("safer-buffer").Buffer
4
+
5
+ var bomHandling = require("./bom-handling")
6
+ var mergeModules = require("./helpers/merge-exports")
7
+ var iconv = module.exports
8
+
9
+ // All codecs and aliases are kept here, keyed by encoding name/alias.
10
+ // They are lazy loaded in `iconv.getCodec` from `encodings/index.js`.
11
+ // Cannot initialize with { __proto__: null } because Boolean({ __proto__: null }) === true
12
+ iconv.encodings = null
13
+
14
+ // Characters emitted in case of error.
15
+ iconv.defaultCharUnicode = "�"
16
+ iconv.defaultCharSingleByte = "?"
17
+
18
+ // Public API.
19
+ iconv.encode = function encode (str, encoding, options) {
20
+ str = "" + (str || "") // Ensure string.
21
+
22
+ var encoder = iconv.getEncoder(encoding, options)
23
+
24
+ var res = encoder.write(str)
25
+ var trail = encoder.end()
26
+
27
+ return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res
28
+ }
29
+
30
+ iconv.decode = function decode (buf, encoding, options) {
31
+ if (typeof buf === "string") {
32
+ if (!iconv.skipDecodeWarning) {
33
+ console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding")
34
+ iconv.skipDecodeWarning = true
35
+ }
36
+
37
+ buf = Buffer.from("" + (buf || ""), "binary") // Ensure buffer.
38
+ }
39
+
40
+ var decoder = iconv.getDecoder(encoding, options)
41
+
42
+ var res = decoder.write(buf)
43
+ var trail = decoder.end()
44
+
45
+ return trail ? (res + trail) : res
46
+ }
47
+
48
+ iconv.encodingExists = function encodingExists (enc) {
49
+ try {
50
+ iconv.getCodec(enc)
51
+ return true
52
+ } catch (e) {
53
+ return false
54
+ }
55
+ }
56
+
57
+ // Legacy aliases to convert functions
58
+ iconv.toEncoding = iconv.encode
59
+ iconv.fromEncoding = iconv.decode
60
+
61
+ // Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache.
62
+ iconv._codecDataCache = { __proto__: null }
63
+
64
+ iconv.getCodec = function getCodec (encoding) {
65
+ if (!iconv.encodings) {
66
+ var raw = require("../encodings")
67
+ // TODO: In future versions when old nodejs support is removed can use object.assign
68
+ iconv.encodings = { __proto__: null } // Initialize as empty object.
69
+ mergeModules(iconv.encodings, raw)
70
+ }
71
+
72
+ // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
73
+ var enc = iconv._canonicalizeEncoding(encoding)
74
+
75
+ // Traverse iconv.encodings to find actual codec.
76
+ var codecOptions = {}
77
+ while (true) {
78
+ var codec = iconv._codecDataCache[enc]
79
+
80
+ if (codec) { return codec }
81
+
82
+ var codecDef = iconv.encodings[enc]
83
+
84
+ switch (typeof codecDef) {
85
+ case "string": // Direct alias to other encoding.
86
+ enc = codecDef
87
+ break
88
+
89
+ case "object": // Alias with options. Can be layered.
90
+ for (var key in codecDef) { codecOptions[key] = codecDef[key] }
91
+
92
+ if (!codecOptions.encodingName) { codecOptions.encodingName = enc }
93
+
94
+ enc = codecDef.type
95
+ break
96
+
97
+ case "function": // Codec itself.
98
+ if (!codecOptions.encodingName) { codecOptions.encodingName = enc }
99
+
100
+ // The codec function must load all tables and return object with .encoder and .decoder methods.
101
+ // It'll be called only once (for each different options object).
102
+ //
103
+ codec = new codecDef(codecOptions, iconv)
104
+
105
+ iconv._codecDataCache[codecOptions.encodingName] = codec // Save it to be reused later.
106
+ return codec
107
+
108
+ default:
109
+ throw new Error("Encoding not recognized: '" + encoding + "' (searched as: '" + enc + "')")
110
+ }
111
+ }
112
+ }
113
+
114
+ iconv._canonicalizeEncoding = function (encoding) {
115
+ // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
116
+ return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "")
117
+ }
118
+
119
+ iconv.getEncoder = function getEncoder (encoding, options) {
120
+ var codec = iconv.getCodec(encoding)
121
+ var encoder = new codec.encoder(options, codec)
122
+
123
+ if (codec.bomAware && options && options.addBOM) { encoder = new bomHandling.PrependBOM(encoder, options) }
124
+
125
+ return encoder
126
+ }
127
+
128
+ iconv.getDecoder = function getDecoder (encoding, options) {
129
+ var codec = iconv.getCodec(encoding)
130
+ var decoder = new codec.decoder(options, codec)
131
+
132
+ if (codec.bomAware && !(options && options.stripBOM === false)) { decoder = new bomHandling.StripBOM(decoder, options) }
133
+
134
+ return decoder
135
+ }
136
+
137
+ // Streaming API
138
+ // NOTE: Streaming API naturally depends on 'stream' module from Node.js. Unfortunately in browser environments this module can add
139
+ // up to 100Kb to the output bundle. To avoid unnecessary code bloat, we don't enable Streaming API in browser by default.
140
+ // If you would like to enable it explicitly, please add the following code to your app:
141
+ // > iconv.enableStreamingAPI(require('stream'));
142
+ iconv.enableStreamingAPI = function enableStreamingAPI (streamModule) {
143
+ if (iconv.supportsStreams) { return }
144
+
145
+ // Dependency-inject stream module to create IconvLite stream classes.
146
+ var streams = require("./streams")(streamModule)
147
+
148
+ // Not public API yet, but expose the stream classes.
149
+ iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream
150
+ iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream
151
+
152
+ // Streaming API.
153
+ iconv.encodeStream = function encodeStream (encoding, options) {
154
+ return new iconv.IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options)
155
+ }
156
+
157
+ iconv.decodeStream = function decodeStream (encoding, options) {
158
+ return new iconv.IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options)
159
+ }
160
+
161
+ iconv.supportsStreams = true
162
+ }
163
+
164
+ // Enable Streaming API automatically if 'stream' module is available and non-empty (the majority of environments).
165
+ var streamModule
166
+ try {
167
+ streamModule = require("stream")
168
+ } catch (e) {}
169
+
170
+ if (streamModule && streamModule.Transform) {
171
+ iconv.enableStreamingAPI(streamModule)
172
+ } else {
173
+ // In rare cases where 'stream' module is not available by default, throw a helpful exception.
174
+ iconv.encodeStream = iconv.decodeStream = function () {
175
+ throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")
176
+ }
177
+ }
178
+
179
+ // Some environments, such as browsers, may not load JavaScript files as UTF-8
180
+ // eslint-disable-next-line no-constant-condition
181
+ if ("Ā" !== "\u0100") {
182
+ console.error("iconv-lite warning: js files use non-utf8 encoding. See https://github.com/ashtuchkin/iconv-lite/wiki/Javascript-source-file-encodings for more info.")
183
+ }
@@ -0,0 +1,105 @@
1
+ "use strict"
2
+
3
+ var Buffer = require("safer-buffer").Buffer
4
+
5
+ // NOTE: Due to 'stream' module being pretty large (~100Kb, significant in browser environments),
6
+ // we opt to dependency-inject it instead of creating a hard dependency.
7
+ module.exports = function (streamModule) {
8
+ var Transform = streamModule.Transform
9
+
10
+ // == Encoder stream =======================================================
11
+
12
+ function IconvLiteEncoderStream (conv, options) {
13
+ this.conv = conv
14
+ options = options || {}
15
+ options.decodeStrings = false // We accept only strings, so we don't need to decode them.
16
+ Transform.call(this, options)
17
+ }
18
+
19
+ IconvLiteEncoderStream.prototype = Object.create(Transform.prototype, {
20
+ constructor: { value: IconvLiteEncoderStream }
21
+ })
22
+
23
+ IconvLiteEncoderStream.prototype._transform = function (chunk, encoding, done) {
24
+ if (typeof chunk !== "string") {
25
+ return done(new Error("Iconv encoding stream needs strings as its input."))
26
+ }
27
+
28
+ try {
29
+ var res = this.conv.write(chunk)
30
+ if (res && res.length) this.push(res)
31
+ done()
32
+ } catch (e) {
33
+ done(e)
34
+ }
35
+ }
36
+
37
+ IconvLiteEncoderStream.prototype._flush = function (done) {
38
+ try {
39
+ var res = this.conv.end()
40
+ if (res && res.length) this.push(res)
41
+ done()
42
+ } catch (e) {
43
+ done(e)
44
+ }
45
+ }
46
+
47
+ IconvLiteEncoderStream.prototype.collect = function (cb) {
48
+ var chunks = []
49
+ this.on("error", cb)
50
+ this.on("data", function (chunk) { chunks.push(chunk) })
51
+ this.on("end", function () {
52
+ cb(null, Buffer.concat(chunks))
53
+ })
54
+ return this
55
+ }
56
+
57
+ // == Decoder stream =======================================================
58
+
59
+ function IconvLiteDecoderStream (conv, options) {
60
+ this.conv = conv
61
+ options = options || {}
62
+ options.encoding = this.encoding = "utf8" // We output strings.
63
+ Transform.call(this, options)
64
+ }
65
+
66
+ IconvLiteDecoderStream.prototype = Object.create(Transform.prototype, {
67
+ constructor: { value: IconvLiteDecoderStream }
68
+ })
69
+
70
+ IconvLiteDecoderStream.prototype._transform = function (chunk, encoding, done) {
71
+ if (!Buffer.isBuffer(chunk) && !(chunk instanceof Uint8Array)) { return done(new Error("Iconv decoding stream needs buffers as its input.")) }
72
+ try {
73
+ var res = this.conv.write(chunk)
74
+ if (res && res.length) this.push(res, this.encoding)
75
+ done()
76
+ } catch (e) {
77
+ done(e)
78
+ }
79
+ }
80
+
81
+ IconvLiteDecoderStream.prototype._flush = function (done) {
82
+ try {
83
+ var res = this.conv.end()
84
+ if (res && res.length) this.push(res, this.encoding)
85
+ done()
86
+ } catch (e) {
87
+ done(e)
88
+ }
89
+ }
90
+
91
+ IconvLiteDecoderStream.prototype.collect = function (cb) {
92
+ var res = ""
93
+ this.on("error", cb)
94
+ this.on("data", function (chunk) { res += chunk })
95
+ this.on("end", function () {
96
+ cb(null, res)
97
+ })
98
+ return this
99
+ }
100
+
101
+ return {
102
+ IconvLiteEncoderStream: IconvLiteEncoderStream,
103
+ IconvLiteDecoderStream: IconvLiteDecoderStream
104
+ }
105
+ }