@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.
- package/.jsii +2 -2
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +4442 -4660
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/models/models_0.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +38 -38
- package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +7328 -7804
- package/node_modules/@aws-sdk/client-route-53/dist-types/models/models_0.d.ts +1 -1
- package/node_modules/@aws-sdk/client-route-53/package.json +38 -38
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +11771 -11916
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +4 -4
- package/node_modules/@aws-sdk/client-s3/package.json +52 -52
- package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +7284 -7626
- package/node_modules/@aws-sdk/client-ses/package.json +36 -36
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +12508 -13696
- package/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/package.json +36 -36
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +478 -596
- package/node_modules/@aws-sdk/client-sso/package.json +34 -34
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +1969 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +48 -88
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +35 -74
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +273 -365
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1581 -1863
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +4 -4
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +7 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +38 -73
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +194 -259
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +3 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProfileData.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +72 -132
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +71 -107
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +176 -249
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +14 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +16 -25
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js +334 -450
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js +30 -60
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +381 -478
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +9 -9
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +35 -63
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js +23 -57
- package/node_modules/@aws-sdk/middleware-location-constraint/dist-es/index.js +4 -7
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +44 -75
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +19 -48
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-route53/dist-cjs/index.js +71 -109
- package/node_modules/@aws-sdk/middleware-sdk-route53/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +511 -641
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
- package/node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js +65 -92
- package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +170 -203
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +583 -858
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +795 -928
- package/node_modules/@aws-sdk/nested-clients/package.json +34 -34
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +59 -95
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +108 -137
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +147 -222
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +18 -290
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +395 -469
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-browser/README.md +22 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/createUserAgentStringParsingProvider.js +57 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +39 -8
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/createUserAgentStringParsingProvider.js +20 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +37 -6
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/createUserAgentStringParsingProvider.d.ts +14 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +14 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +4 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/createUserAgentStringParsingProvider.d.ts +9 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +50 -94
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +1 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +10 -5
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +106 -160
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +4 -1
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/chunked-blob-reader-native/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +4 -16
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +51 -47
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +234 -265
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +126 -34
- package/node_modules/@smithy/core/dist-es/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +6 -17
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +4 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -9
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +22 -22
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +7 -9
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -6
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +18 -11
- package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +3 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +100 -185
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +0 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js +7 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +22 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +110 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +4 -26
- package/node_modules/@smithy/core/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -10
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +5 -6
- package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +12 -27
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/operation.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -10
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +5 -6
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +12 -27
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/operation.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
- package/node_modules/@smithy/core/package.json +8 -8
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
- package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-universal/package.json +6 -4
- package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
- package/node_modules/@smithy/hash-blob-browser/package.json +3 -3
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/hash-stream-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/md5-js/package.json +3 -3
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +30 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -3
- package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +1 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +4 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +1 -4
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/constants.d.ts +4 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -4
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +5 -4
- package/node_modules/@smithy/smithy-client/dist-es/command.js +5 -4
- package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +3 -3
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +3 -3
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-es/index.js +2 -0
- package/node_modules/@smithy/types/dist-es/schema/schema-deprecated.js +1 -0
- package/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +17 -10
- package/node_modules/@smithy/types/dist-types/index.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +136 -0
- package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +27 -68
- package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +82 -0
- package/node_modules/@smithy/types/dist-types/serde.d.ts +2 -2
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +17 -10
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +142 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +28 -72
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +101 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -2
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +9 -32
- package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +9 -28
- package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +5 -6
- package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +5 -6
- package/node_modules/@smithy/util-base64/package.json +1 -1
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +8 -6
- package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +8 -6
- package/node_modules/@smithy/util-body-length-node/package.json +1 -1
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +11 -9
- package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +11 -8
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -5
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +31 -22
- package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +1 -11
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +15 -2
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +17 -2
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js +1 -13
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +25 -2
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js +1 -21
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +1 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +7 -2
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +6 -1
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +1 -3
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +6 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +1 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts +1 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts +7 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +6 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +6 -0
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -3
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +10 -19
- package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +12 -7
- package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
- package/node_modules/@smithy/util-stream/package.json +5 -5
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/node_modules/cdk-nag/.jsii +3 -3
- package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
- package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
- package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
- package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
- package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
- package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
- package/node_modules/cdk-nag/lib/packs/serverless.js +1 -1
- package/node_modules/cdk-nag/package.json +4 -4
- package/node_modules/mailparser/CHANGELOG.md +7 -0
- package/node_modules/mailparser/lib/mail-parser.js +12 -3
- package/node_modules/mailparser/node_modules/iconv-lite/Changelog.md +236 -0
- package/node_modules/mailparser/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/mailparser/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/node_modules/mailparser/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/mailparser/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/mailparser/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/mailparser/node_modules/iconv-lite/lib/index.d.ts +41 -0
- package/node_modules/mailparser/node_modules/iconv-lite/lib/index.js +183 -0
- package/node_modules/mailparser/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/mailparser/node_modules/iconv-lite/package.json +59 -0
- package/node_modules/mailparser/package.json +5 -5
- package/node_modules/mailsplit/index.js +2 -0
- package/node_modules/mailsplit/lib/chunked-passthrough.js +37 -0
- package/node_modules/mailsplit/package.json +1 -1
- package/node_modules/nodemailer/.ncurc.js +3 -5
- package/node_modules/nodemailer/.prettierignore +8 -0
- package/node_modules/nodemailer/.prettierrc +12 -0
- package/node_modules/nodemailer/.prettierrc.js +2 -0
- package/node_modules/nodemailer/.release-please-config.json +9 -0
- package/node_modules/nodemailer/CHANGELOG.md +323 -305
- package/node_modules/nodemailer/CODE_OF_CONDUCT.md +13 -13
- package/node_modules/nodemailer/README.md +10 -10
- package/node_modules/nodemailer/eslint.config.js +88 -0
- package/node_modules/nodemailer/lib/addressparser/index.js +47 -7
- package/node_modules/nodemailer/lib/base64/index.js +11 -14
- package/node_modules/nodemailer/lib/dkim/index.js +3 -1
- package/node_modules/nodemailer/lib/dkim/sign.js +1 -1
- package/node_modules/nodemailer/lib/fetch/index.js +7 -1
- package/node_modules/nodemailer/lib/mail-composer/index.js +47 -9
- package/node_modules/nodemailer/lib/mailer/index.js +8 -1
- package/node_modules/nodemailer/lib/mailer/mail-message.js +2 -1
- package/node_modules/nodemailer/lib/mime-funcs/index.js +2 -2
- package/node_modules/nodemailer/lib/mime-funcs/mime-types.js +12 -3
- package/node_modules/nodemailer/lib/mime-node/index.js +11 -9
- package/node_modules/nodemailer/lib/nodemailer.js +3 -1
- package/node_modules/nodemailer/lib/qp/index.js +10 -2
- package/node_modules/nodemailer/lib/shared/index.js +108 -42
- package/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +2 -2
- package/node_modules/nodemailer/lib/smtp-connection/index.js +13 -6
- package/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +3 -2
- package/node_modules/nodemailer/lib/smtp-transport/index.js +1 -1
- package/node_modules/nodemailer/lib/well-known/services.json +277 -42
- package/node_modules/nodemailer/lib/xoauth2/index.js +58 -7
- package/node_modules/nodemailer/package.json +9 -5
- package/node_modules/tlds/index.json +0 -1
- package/node_modules/tlds/package.json +1 -1
- package/package.json +1 -1
- package/node_modules/@smithy/util-stream/dist-es/blob/transforms.js +0 -15
- package/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts +0 -9
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts +0 -9
- /package/node_modules/@smithy/core/dist-es/{protocols → request-builder}/requestBuilder.js +0 -0
- /package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/ts3.4/{protocols → request-builder}/requestBuilder.d.ts +0 -0
|
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
|
|
|
14
14
|
Examples of behavior that contributes to creating a positive environment
|
|
15
15
|
include:
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
- Using welcoming and inclusive language
|
|
18
|
+
- Being respectful of differing viewpoints and experiences
|
|
19
|
+
- Gracefully accepting constructive criticism
|
|
20
|
+
- Focusing on what is best for the community
|
|
21
|
+
- Showing empathy towards other community members
|
|
22
22
|
|
|
23
23
|
Examples of unacceptable behavior by participants include:
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
+
advances
|
|
27
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
+
- Public or private harassment
|
|
29
|
+
- Publishing others' private information, such as a physical or electronic
|
|
30
|
+
address, without explicit permission
|
|
31
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
+
professional setting
|
|
33
33
|
|
|
34
34
|
## Our Responsibilities
|
|
35
35
|
|
|
@@ -37,20 +37,20 @@ It's either a firewall issue, or your SMTP server blocks authentication attempts
|
|
|
37
37
|
|
|
38
38
|
#### I get TLS errors
|
|
39
39
|
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
40
|
+
- If you are running the code on your machine, check your antivirus settings. Antiviruses often mess around with email ports usage. Node.js might not recognize the MITM cert your antivirus is using.
|
|
41
|
+
- Latest Node versions allow only TLS versions 1.2 and higher. Some servers might still use TLS 1.1 or lower. Check Node.js docs on how to get correct TLS support for your app. You can change this with [tls.minVersion](https://nodejs.org/dist/latest-v16.x/docs/api/tls.html#tls_tls_createsecurecontext_options) option
|
|
42
|
+
- You might have the wrong value for the `secure` option. This should be set to `true` only for port 465. For every other port, it should be `false`. Setting it to `false` does not mean that Nodemailer would not use TLS. Nodemailer would still try to upgrade the connection to use TLS if the server supports it.
|
|
43
|
+
- Older Node versions do not fully support the certificate chain of the newest Let's Encrypt certificates. Either set [tls.rejectUnauthorized](https://nodejs.org/dist/latest-v16.x/docs/api/tls.html#tlsconnectoptions-callback) to `false` to skip chain verification or upgrade your Node version
|
|
44
44
|
|
|
45
45
|
```js
|
|
46
46
|
let configOptions = {
|
|
47
|
-
host:
|
|
47
|
+
host: 'smtp.example.com',
|
|
48
48
|
port: 587,
|
|
49
49
|
tls: {
|
|
50
50
|
rejectUnauthorized: true,
|
|
51
|
-
minVersion:
|
|
51
|
+
minVersion: 'TLSv1.2'
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
};
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
#### I have issues with DNS / hosts file
|
|
@@ -59,14 +59,14 @@ Node.js uses [c-ares](https://nodejs.org/en/docs/meta/topics/dependencies/#c-are
|
|
|
59
59
|
|
|
60
60
|
```js
|
|
61
61
|
let configOptions = {
|
|
62
|
-
host:
|
|
62
|
+
host: '1.2.3.4',
|
|
63
63
|
port: 465,
|
|
64
64
|
secure: true,
|
|
65
65
|
tls: {
|
|
66
66
|
// must provide server name, otherwise TLS certificate check will fail
|
|
67
|
-
servername:
|
|
67
|
+
servername: 'example.com'
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
};
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
#### I have an issue with TypeScript types
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const globals = require('globals');
|
|
4
|
+
|
|
5
|
+
module.exports = [
|
|
6
|
+
{
|
|
7
|
+
ignores: ['node_modules/**', 'coverage/**', 'dist/**', 'build/**', '.nyc_output/**']
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
files: ['**/*.js'],
|
|
11
|
+
languageOptions: {
|
|
12
|
+
ecmaVersion: 2017,
|
|
13
|
+
sourceType: 'script',
|
|
14
|
+
globals: Object.assign({}, globals.node, globals.es2017, {
|
|
15
|
+
it: true,
|
|
16
|
+
describe: true,
|
|
17
|
+
beforeEach: true,
|
|
18
|
+
afterEach: true
|
|
19
|
+
})
|
|
20
|
+
},
|
|
21
|
+
rules: {
|
|
22
|
+
// Error detection
|
|
23
|
+
'for-direction': 'error',
|
|
24
|
+
'no-await-in-loop': 'error',
|
|
25
|
+
'no-div-regex': 'error',
|
|
26
|
+
eqeqeq: 'error',
|
|
27
|
+
'dot-notation': 'error',
|
|
28
|
+
curly: 'error',
|
|
29
|
+
'no-fallthrough': 'error',
|
|
30
|
+
'no-unused-expressions': [
|
|
31
|
+
'error',
|
|
32
|
+
{
|
|
33
|
+
allowShortCircuit: true
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
'no-unused-vars': [
|
|
37
|
+
'error',
|
|
38
|
+
{
|
|
39
|
+
varsIgnorePattern: '^_',
|
|
40
|
+
argsIgnorePattern: '^_',
|
|
41
|
+
caughtErrorsIgnorePattern: '^_'
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
'handle-callback-err': 'error',
|
|
45
|
+
'no-new': 'error',
|
|
46
|
+
'new-cap': 'error',
|
|
47
|
+
'no-eval': 'error',
|
|
48
|
+
'no-invalid-this': 'error',
|
|
49
|
+
radix: ['error', 'always'],
|
|
50
|
+
'no-use-before-define': ['error', 'nofunc'],
|
|
51
|
+
'callback-return': ['error', ['callback', 'cb', 'done']],
|
|
52
|
+
'no-regex-spaces': 'error',
|
|
53
|
+
'no-empty': 'error',
|
|
54
|
+
'no-duplicate-case': 'error',
|
|
55
|
+
'no-empty-character-class': 'error',
|
|
56
|
+
'no-redeclare': 'off', // Disabled per project preference
|
|
57
|
+
'block-scoped-var': 'error',
|
|
58
|
+
'no-sequences': 'error',
|
|
59
|
+
'no-throw-literal': 'error',
|
|
60
|
+
'no-useless-call': 'error',
|
|
61
|
+
'no-useless-concat': 'error',
|
|
62
|
+
'no-void': 'error',
|
|
63
|
+
yoda: 'error',
|
|
64
|
+
'no-undef': 'error',
|
|
65
|
+
'global-require': 'error',
|
|
66
|
+
'no-var': 'error',
|
|
67
|
+
'no-bitwise': 'error',
|
|
68
|
+
'no-lonely-if': 'error',
|
|
69
|
+
'no-mixed-spaces-and-tabs': 'error',
|
|
70
|
+
'arrow-body-style': ['error', 'as-needed'],
|
|
71
|
+
'arrow-parens': ['error', 'as-needed'],
|
|
72
|
+
'prefer-arrow-callback': 'error',
|
|
73
|
+
'object-shorthand': 'error',
|
|
74
|
+
'prefer-spread': 'error',
|
|
75
|
+
'no-prototype-builtins': 'off', // Disabled per project preference
|
|
76
|
+
strict: ['error', 'global'],
|
|
77
|
+
|
|
78
|
+
// Disable all formatting rules (handled by Prettier)
|
|
79
|
+
indent: 'off',
|
|
80
|
+
quotes: 'off',
|
|
81
|
+
'linebreak-style': 'off',
|
|
82
|
+
semi: 'off',
|
|
83
|
+
'quote-props': 'off',
|
|
84
|
+
'comma-dangle': 'off',
|
|
85
|
+
'comma-style': 'off'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
];
|
|
@@ -15,10 +15,12 @@ function _handleAddress(tokens) {
|
|
|
15
15
|
address: [],
|
|
16
16
|
comment: [],
|
|
17
17
|
group: [],
|
|
18
|
-
text: []
|
|
18
|
+
text: [],
|
|
19
|
+
textWasQuoted: [] // Track which text tokens came from inside quotes
|
|
19
20
|
};
|
|
20
21
|
let i;
|
|
21
22
|
let len;
|
|
23
|
+
let insideQuotes = false; // Track if we're currently inside a quoted string
|
|
22
24
|
|
|
23
25
|
// Filter out <addresses>, (comments) and regular text
|
|
24
26
|
for (i = 0, len = tokens.length; i < len; i++) {
|
|
@@ -28,16 +30,25 @@ function _handleAddress(tokens) {
|
|
|
28
30
|
switch (token.value) {
|
|
29
31
|
case '<':
|
|
30
32
|
state = 'address';
|
|
33
|
+
insideQuotes = false;
|
|
31
34
|
break;
|
|
32
35
|
case '(':
|
|
33
36
|
state = 'comment';
|
|
37
|
+
insideQuotes = false;
|
|
34
38
|
break;
|
|
35
39
|
case ':':
|
|
36
40
|
state = 'group';
|
|
37
41
|
isGroup = true;
|
|
42
|
+
insideQuotes = false;
|
|
43
|
+
break;
|
|
44
|
+
case '"':
|
|
45
|
+
// Track quote state for text tokens
|
|
46
|
+
insideQuotes = !insideQuotes;
|
|
47
|
+
state = 'text';
|
|
38
48
|
break;
|
|
39
49
|
default:
|
|
40
50
|
state = 'text';
|
|
51
|
+
insideQuotes = false;
|
|
41
52
|
break;
|
|
42
53
|
}
|
|
43
54
|
} else if (token.value) {
|
|
@@ -51,8 +62,14 @@ function _handleAddress(tokens) {
|
|
|
51
62
|
if (prevToken && prevToken.noBreak && data[state].length) {
|
|
52
63
|
// join values
|
|
53
64
|
data[state][data[state].length - 1] += token.value;
|
|
65
|
+
if (state === 'text' && insideQuotes) {
|
|
66
|
+
data.textWasQuoted[data.textWasQuoted.length - 1] = true;
|
|
67
|
+
}
|
|
54
68
|
} else {
|
|
55
69
|
data[state].push(token.value);
|
|
70
|
+
if (state === 'text') {
|
|
71
|
+
data.textWasQuoted.push(insideQuotes);
|
|
72
|
+
}
|
|
56
73
|
}
|
|
57
74
|
}
|
|
58
75
|
}
|
|
@@ -66,16 +83,36 @@ function _handleAddress(tokens) {
|
|
|
66
83
|
if (isGroup) {
|
|
67
84
|
// http://tools.ietf.org/html/rfc2822#appendix-A.1.3
|
|
68
85
|
data.text = data.text.join(' ');
|
|
86
|
+
|
|
87
|
+
// Parse group members, but flatten any nested groups (RFC 5322 doesn't allow nesting)
|
|
88
|
+
let groupMembers = [];
|
|
89
|
+
if (data.group.length) {
|
|
90
|
+
let parsedGroup = addressparser(data.group.join(','));
|
|
91
|
+
// Flatten: if any member is itself a group, extract its members into the sequence
|
|
92
|
+
parsedGroup.forEach(member => {
|
|
93
|
+
if (member.group) {
|
|
94
|
+
// Nested group detected - flatten it by adding its members directly
|
|
95
|
+
groupMembers = groupMembers.concat(member.group);
|
|
96
|
+
} else {
|
|
97
|
+
groupMembers.push(member);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
|
|
69
102
|
addresses.push({
|
|
70
103
|
name: data.text || (address && address.name),
|
|
71
|
-
group:
|
|
104
|
+
group: groupMembers
|
|
72
105
|
});
|
|
73
106
|
} else {
|
|
74
107
|
// If no address was found, try to detect one from regular text
|
|
75
108
|
if (!data.address.length && data.text.length) {
|
|
76
109
|
for (i = data.text.length - 1; i >= 0; i--) {
|
|
77
|
-
|
|
110
|
+
// Security fix: Do not extract email addresses from quoted strings
|
|
111
|
+
// RFC 5321 allows @ inside quoted local-parts like "user@domain"@example.com
|
|
112
|
+
// Extracting emails from quoted text leads to misrouting vulnerabilities
|
|
113
|
+
if (!data.textWasQuoted[i] && data.text[i].match(/^[^@\s]+@[^@\s]+$/)) {
|
|
78
114
|
data.address = data.text.splice(i, 1);
|
|
115
|
+
data.textWasQuoted.splice(i, 1);
|
|
79
116
|
break;
|
|
80
117
|
}
|
|
81
118
|
}
|
|
@@ -92,10 +129,13 @@ function _handleAddress(tokens) {
|
|
|
92
129
|
// still no address
|
|
93
130
|
if (!data.address.length) {
|
|
94
131
|
for (i = data.text.length - 1; i >= 0; i--) {
|
|
95
|
-
//
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
132
|
+
// Security fix: Do not extract email addresses from quoted strings
|
|
133
|
+
if (!data.textWasQuoted[i]) {
|
|
134
|
+
// fixed the regex to parse email address correctly when email address has more than one @
|
|
135
|
+
data.text[i] = data.text[i].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/, _regexHandler).trim();
|
|
136
|
+
if (data.address.length) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
99
139
|
}
|
|
100
140
|
}
|
|
101
141
|
}
|
|
@@ -35,15 +35,12 @@ function wrap(str, lineLength) {
|
|
|
35
35
|
let pos = 0;
|
|
36
36
|
let chunkLength = lineLength * 1024;
|
|
37
37
|
while (pos < str.length) {
|
|
38
|
-
let wrappedLines = str
|
|
39
|
-
.substr(pos, chunkLength)
|
|
40
|
-
.replace(new RegExp('.{' + lineLength + '}', 'g'), '$&\r\n')
|
|
41
|
-
.trim();
|
|
38
|
+
let wrappedLines = str.substr(pos, chunkLength).replace(new RegExp('.{' + lineLength + '}', 'g'), '$&\r\n');
|
|
42
39
|
result.push(wrappedLines);
|
|
43
40
|
pos += chunkLength;
|
|
44
41
|
}
|
|
45
42
|
|
|
46
|
-
return result.join('
|
|
43
|
+
return result.join('');
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
/**
|
|
@@ -56,7 +53,6 @@ function wrap(str, lineLength) {
|
|
|
56
53
|
class Encoder extends Transform {
|
|
57
54
|
constructor(options) {
|
|
58
55
|
super();
|
|
59
|
-
// init Transform
|
|
60
56
|
this.options = options || {};
|
|
61
57
|
|
|
62
58
|
if (this.options.lineLength !== false) {
|
|
@@ -98,17 +94,20 @@ class Encoder extends Transform {
|
|
|
98
94
|
if (this.options.lineLength) {
|
|
99
95
|
b64 = wrap(b64, this.options.lineLength);
|
|
100
96
|
|
|
101
|
-
// remove last line as it is still most probably incomplete
|
|
102
97
|
let lastLF = b64.lastIndexOf('\n');
|
|
103
98
|
if (lastLF < 0) {
|
|
104
99
|
this._curLine = b64;
|
|
105
100
|
b64 = '';
|
|
106
|
-
} else if (lastLF === b64.length - 1) {
|
|
107
|
-
this._curLine = '';
|
|
108
101
|
} else {
|
|
109
|
-
this._curLine = b64.
|
|
110
|
-
b64 = b64.
|
|
102
|
+
this._curLine = b64.substring(lastLF + 1);
|
|
103
|
+
b64 = b64.substring(0, lastLF + 1);
|
|
104
|
+
|
|
105
|
+
if (b64 && !b64.endsWith('\r\n')) {
|
|
106
|
+
b64 += '\r\n';
|
|
107
|
+
}
|
|
111
108
|
}
|
|
109
|
+
} else {
|
|
110
|
+
this._curLine = '';
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
if (b64) {
|
|
@@ -125,16 +124,14 @@ class Encoder extends Transform {
|
|
|
125
124
|
}
|
|
126
125
|
|
|
127
126
|
if (this._curLine) {
|
|
128
|
-
this._curLine = wrap(this._curLine, this.options.lineLength);
|
|
129
127
|
this.outputBytes += this._curLine.length;
|
|
130
|
-
this.push(this._curLine, 'ascii');
|
|
128
|
+
this.push(Buffer.from(this._curLine, 'ascii'));
|
|
131
129
|
this._curLine = '';
|
|
132
130
|
}
|
|
133
131
|
done();
|
|
134
132
|
}
|
|
135
133
|
}
|
|
136
134
|
|
|
137
|
-
// expose to the world
|
|
138
135
|
module.exports = {
|
|
139
136
|
encode,
|
|
140
137
|
wrap,
|
|
@@ -42,7 +42,9 @@ class DKIMSigner {
|
|
|
42
42
|
this.chunks = [];
|
|
43
43
|
this.chunklen = 0;
|
|
44
44
|
this.readPos = 0;
|
|
45
|
-
this.cachePath = this.cacheDir
|
|
45
|
+
this.cachePath = this.cacheDir
|
|
46
|
+
? path.join(this.cacheDir, 'message.' + Date.now() + '-' + crypto.randomBytes(14).toString('hex'))
|
|
47
|
+
: false;
|
|
46
48
|
this.cache = false;
|
|
47
49
|
|
|
48
50
|
this.headers = false;
|
|
@@ -132,7 +132,13 @@ function nmfetch(url, options) {
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
if (
|
|
135
|
+
if (
|
|
136
|
+
parsed.protocol === 'https:' &&
|
|
137
|
+
parsed.hostname &&
|
|
138
|
+
parsed.hostname !== reqOptions.host &&
|
|
139
|
+
!net.isIP(parsed.hostname) &&
|
|
140
|
+
!reqOptions.servername
|
|
141
|
+
) {
|
|
136
142
|
reqOptions.servername = parsed.hostname;
|
|
137
143
|
}
|
|
138
144
|
|
|
@@ -91,12 +91,14 @@ class MailComposer {
|
|
|
91
91
|
attachment = this._processDataUrl(attachment);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
let contentType =
|
|
94
|
+
let contentType =
|
|
95
|
+
attachment.contentType || mimeFuncs.detectMimeType(attachment.filename || attachment.path || attachment.href || 'bin');
|
|
95
96
|
|
|
96
97
|
let isImage = /^image\//i.test(contentType);
|
|
97
98
|
let isMessageNode = /^message\//i.test(contentType);
|
|
98
99
|
|
|
99
|
-
let contentDisposition =
|
|
100
|
+
let contentDisposition =
|
|
101
|
+
attachment.contentDisposition || (isMessageNode || (isImage && attachment.cid) ? 'inline' : 'attachment');
|
|
100
102
|
|
|
101
103
|
let contentTransferEncoding;
|
|
102
104
|
if ('contentTransferEncoding' in attachment) {
|
|
@@ -212,7 +214,10 @@ class MailComposer {
|
|
|
212
214
|
eventObject;
|
|
213
215
|
|
|
214
216
|
if (this.mail.text) {
|
|
215
|
-
if (
|
|
217
|
+
if (
|
|
218
|
+
typeof this.mail.text === 'object' &&
|
|
219
|
+
(this.mail.text.content || this.mail.text.path || this.mail.text.href || this.mail.text.raw)
|
|
220
|
+
) {
|
|
216
221
|
text = this.mail.text;
|
|
217
222
|
} else {
|
|
218
223
|
text = {
|
|
@@ -237,7 +242,10 @@ class MailComposer {
|
|
|
237
242
|
}
|
|
238
243
|
|
|
239
244
|
if (this.mail.amp) {
|
|
240
|
-
if (
|
|
245
|
+
if (
|
|
246
|
+
typeof this.mail.amp === 'object' &&
|
|
247
|
+
(this.mail.amp.content || this.mail.amp.path || this.mail.amp.href || this.mail.amp.raw)
|
|
248
|
+
) {
|
|
241
249
|
amp = this.mail.amp;
|
|
242
250
|
} else {
|
|
243
251
|
amp = {
|
|
@@ -272,14 +280,18 @@ class MailComposer {
|
|
|
272
280
|
}
|
|
273
281
|
|
|
274
282
|
eventObject.filename = false;
|
|
275
|
-
eventObject.contentType =
|
|
283
|
+
eventObject.contentType =
|
|
284
|
+
'text/calendar; charset=utf-8; method=' + (eventObject.method || 'PUBLISH').toString().trim().toUpperCase();
|
|
276
285
|
if (!eventObject.headers) {
|
|
277
286
|
eventObject.headers = {};
|
|
278
287
|
}
|
|
279
288
|
}
|
|
280
289
|
|
|
281
290
|
if (this.mail.html) {
|
|
282
|
-
if (
|
|
291
|
+
if (
|
|
292
|
+
typeof this.mail.html === 'object' &&
|
|
293
|
+
(this.mail.html.content || this.mail.html.path || this.mail.html.href || this.mail.html.raw)
|
|
294
|
+
) {
|
|
283
295
|
html = this.mail.html;
|
|
284
296
|
} else {
|
|
285
297
|
html = {
|
|
@@ -304,7 +316,9 @@ class MailComposer {
|
|
|
304
316
|
}
|
|
305
317
|
|
|
306
318
|
data = {
|
|
307
|
-
contentType:
|
|
319
|
+
contentType:
|
|
320
|
+
alternative.contentType ||
|
|
321
|
+
mimeFuncs.detectMimeType(alternative.filename || alternative.path || alternative.href || 'txt'),
|
|
308
322
|
contentTransferEncoding: alternative.contentTransferEncoding
|
|
309
323
|
};
|
|
310
324
|
|
|
@@ -550,9 +564,33 @@ class MailComposer {
|
|
|
550
564
|
* @return {Object} Parsed element
|
|
551
565
|
*/
|
|
552
566
|
_processDataUrl(element) {
|
|
567
|
+
const dataUrl = element.path || element.href;
|
|
568
|
+
|
|
569
|
+
// Early validation to prevent ReDoS
|
|
570
|
+
if (!dataUrl || typeof dataUrl !== 'string') {
|
|
571
|
+
return element;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
if (!dataUrl.startsWith('data:')) {
|
|
575
|
+
return element;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
if (dataUrl.length > 100000) {
|
|
579
|
+
// 100KB limit for data URL string
|
|
580
|
+
// Return empty content for excessively long data URLs
|
|
581
|
+
return Object.assign({}, element, {
|
|
582
|
+
path: false,
|
|
583
|
+
href: false,
|
|
584
|
+
content: Buffer.alloc(0),
|
|
585
|
+
contentType: element.contentType || 'application/octet-stream'
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
|
|
553
589
|
let parsedDataUri;
|
|
554
|
-
|
|
555
|
-
parsedDataUri = parseDataURI(
|
|
590
|
+
try {
|
|
591
|
+
parsedDataUri = parseDataURI(dataUrl);
|
|
592
|
+
} catch (_err) {
|
|
593
|
+
return element;
|
|
556
594
|
}
|
|
557
595
|
|
|
558
596
|
if (!parsedDataUri) {
|
|
@@ -241,7 +241,14 @@ class Mail extends EventEmitter {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
getVersionString() {
|
|
244
|
-
return util.format(
|
|
244
|
+
return util.format(
|
|
245
|
+
'%s (%s; +%s; %s/%s)',
|
|
246
|
+
packageData.name,
|
|
247
|
+
packageData.version,
|
|
248
|
+
packageData.homepage,
|
|
249
|
+
this.transporter.name,
|
|
250
|
+
this.transporter.version
|
|
251
|
+
);
|
|
245
252
|
}
|
|
246
253
|
|
|
247
254
|
_processPlugins(step, mail, callback) {
|
|
@@ -64,7 +64,8 @@ class MailMessage {
|
|
|
64
64
|
if (this.data.attachments && this.data.attachments.length) {
|
|
65
65
|
this.data.attachments.forEach((attachment, i) => {
|
|
66
66
|
if (!attachment.filename) {
|
|
67
|
-
attachment.filename =
|
|
67
|
+
attachment.filename =
|
|
68
|
+
(attachment.path || attachment.href || '').split('/').pop().split('?').shift() || 'attachment-' + (i + 1);
|
|
68
69
|
if (attachment.filename.indexOf('.') < 0) {
|
|
69
70
|
attachment.filename += '.' + mimeFuncs.detectExtension(attachment.contentType);
|
|
70
71
|
}
|
|
@@ -269,7 +269,7 @@ module.exports = {
|
|
|
269
269
|
|
|
270
270
|
// first line includes the charset and language info and needs to be encoded
|
|
271
271
|
// even if it does not contain any unicode characters
|
|
272
|
-
line =
|
|
272
|
+
line = "utf-8''";
|
|
273
273
|
let encoded = true;
|
|
274
274
|
startPos = 0;
|
|
275
275
|
|
|
@@ -614,7 +614,7 @@ module.exports = {
|
|
|
614
614
|
try {
|
|
615
615
|
// might throw if we try to encode invalid sequences, eg. partial emoji
|
|
616
616
|
str = encodeURIComponent(str);
|
|
617
|
-
} catch (
|
|
617
|
+
} catch (_E) {
|
|
618
618
|
// should never run
|
|
619
619
|
return str.replace(/[^\x00-\x1F *'()<>@,;:\\"[\]?=\u007F-\uFFFF]+/g, '');
|
|
620
620
|
}
|
|
@@ -1102,7 +1102,10 @@ const extensions = new Map([
|
|
|
1102
1102
|
['bdm', 'application/vnd.syncml.dm+wbxml'],
|
|
1103
1103
|
['bed', 'application/vnd.realvnc.bed'],
|
|
1104
1104
|
['bh2', 'application/vnd.fujitsu.oasysprs'],
|
|
1105
|
-
[
|
|
1105
|
+
[
|
|
1106
|
+
'bin',
|
|
1107
|
+
['application/octet-stream', 'application/mac-binary', 'application/macbinary', 'application/x-macbinary', 'application/x-binary']
|
|
1108
|
+
],
|
|
1106
1109
|
['bm', 'image/bmp'],
|
|
1107
1110
|
['bmi', 'application/vnd.bmi'],
|
|
1108
1111
|
['bmp', ['image/bmp', 'image/x-windows-bmp']],
|
|
@@ -1147,7 +1150,10 @@ const extensions = new Map([
|
|
|
1147
1150
|
['cii', 'application/vnd.anser-web-certificate-issue-initiation'],
|
|
1148
1151
|
['cil', 'application/vnd.ms-artgalry'],
|
|
1149
1152
|
['cla', 'application/vnd.claymore'],
|
|
1150
|
-
[
|
|
1153
|
+
[
|
|
1154
|
+
'class',
|
|
1155
|
+
['application/octet-stream', 'application/java', 'application/java-byte-code', 'application/java-vm', 'application/x-java-class']
|
|
1156
|
+
],
|
|
1151
1157
|
['clkk', 'application/vnd.crick.clicker.keyboard'],
|
|
1152
1158
|
['clkp', 'application/vnd.crick.clicker.palette'],
|
|
1153
1159
|
['clkt', 'application/vnd.crick.clicker.template'],
|
|
@@ -1752,7 +1758,10 @@ const extensions = new Map([
|
|
|
1752
1758
|
['sbml', 'application/sbml+xml'],
|
|
1753
1759
|
['sc', 'application/vnd.ibm.secure-container'],
|
|
1754
1760
|
['scd', 'application/x-msschedule'],
|
|
1755
|
-
[
|
|
1761
|
+
[
|
|
1762
|
+
'scm',
|
|
1763
|
+
['application/vnd.lotus-screencam', 'video/x-scm', 'text/x-script.guile', 'application/x-lotusscreencam', 'text/x-script.scheme']
|
|
1764
|
+
],
|
|
1756
1765
|
['scq', 'application/scvp-cv-request'],
|
|
1757
1766
|
['scs', 'application/scvp-cv-response'],
|
|
1758
1767
|
['sct', 'text/scriptlet'],
|
|
@@ -552,7 +552,11 @@ class MimeNode {
|
|
|
552
552
|
|
|
553
553
|
this._handleContentType(structured);
|
|
554
554
|
|
|
555
|
-
if (
|
|
555
|
+
if (
|
|
556
|
+
structured.value.match(/^text\/plain\b/) &&
|
|
557
|
+
typeof this.content === 'string' &&
|
|
558
|
+
/[\u0080-\uFFFF]/.test(this.content)
|
|
559
|
+
) {
|
|
556
560
|
structured.params.charset = 'utf-8';
|
|
557
561
|
}
|
|
558
562
|
|
|
@@ -963,8 +967,8 @@ class MimeNode {
|
|
|
963
967
|
setImmediate(() => {
|
|
964
968
|
try {
|
|
965
969
|
contentStream.end(content._resolvedValue);
|
|
966
|
-
} catch (
|
|
967
|
-
contentStream.emit('error',
|
|
970
|
+
} catch (_err) {
|
|
971
|
+
contentStream.emit('error', _err);
|
|
968
972
|
}
|
|
969
973
|
});
|
|
970
974
|
|
|
@@ -995,8 +999,8 @@ class MimeNode {
|
|
|
995
999
|
setImmediate(() => {
|
|
996
1000
|
try {
|
|
997
1001
|
contentStream.end(content || '');
|
|
998
|
-
} catch (
|
|
999
|
-
contentStream.emit('error',
|
|
1002
|
+
} catch (_err) {
|
|
1003
|
+
contentStream.emit('error', _err);
|
|
1000
1004
|
}
|
|
1001
1005
|
});
|
|
1002
1006
|
return contentStream;
|
|
@@ -1014,7 +1018,6 @@ class MimeNode {
|
|
|
1014
1018
|
return [].concat.apply(
|
|
1015
1019
|
[],
|
|
1016
1020
|
[].concat(addresses).map(address => {
|
|
1017
|
-
// eslint-disable-line prefer-spread
|
|
1018
1021
|
if (address && address.address) {
|
|
1019
1022
|
address.address = this._normalizeAddress(address.address);
|
|
1020
1023
|
address.name = address.name || '';
|
|
@@ -1113,7 +1116,6 @@ class MimeNode {
|
|
|
1113
1116
|
.apply(
|
|
1114
1117
|
[],
|
|
1115
1118
|
[].concat(value || '').map(elm => {
|
|
1116
|
-
// eslint-disable-line prefer-spread
|
|
1117
1119
|
elm = (elm || '')
|
|
1118
1120
|
.toString()
|
|
1119
1121
|
.replace(/\r?\n|\r/g, ' ')
|
|
@@ -1219,7 +1221,7 @@ class MimeNode {
|
|
|
1219
1221
|
|
|
1220
1222
|
try {
|
|
1221
1223
|
encodedDomain = punycode.toASCII(domain.toLowerCase());
|
|
1222
|
-
} catch (
|
|
1224
|
+
} catch (_err) {
|
|
1223
1225
|
// keep as is?
|
|
1224
1226
|
}
|
|
1225
1227
|
|
|
@@ -1282,7 +1284,7 @@ class MimeNode {
|
|
|
1282
1284
|
// count latin alphabet symbols and 8-bit range symbols + control symbols
|
|
1283
1285
|
// if there are more latin characters, then use quoted-printable
|
|
1284
1286
|
// encoding, otherwise use base64
|
|
1285
|
-
nonLatinLen = (value.match(/[\x00-\x08\x0B\x0C\x0E-\x1F\u0080-\uFFFF]/g) || []).length;
|
|
1287
|
+
nonLatinLen = (value.match(/[\x00-\x08\x0B\x0C\x0E-\x1F\u0080-\uFFFF]/g) || []).length;
|
|
1286
1288
|
latinLen = (value.match(/[a-z]/gi) || []).length;
|
|
1287
1289
|
// if there are more latin symbols than binary/unicode, then prefer Q, otherwise B
|
|
1288
1290
|
encoding = nonLatinLen < latinLen ? 'Q' : 'B';
|