@mavogel/awscdk-rootmail 0.1.56 → 0.1.58
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 +10 -10
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/checksums/package.json +2 -2
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +3 -3
- package/node_modules/@aws-sdk/client-route-53/README.md +95 -9
- package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +281 -34
- package/node_modules/@aws-sdk/client-route-53/dist-es/Route53.js +12 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/commands/GetHostedZoneChangeBatchCommand.js +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/commands/ListHostedZoneChangeBatchesCommand.js +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/commands/ListResourceRecordSetChangesCommand.js +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/commands/UpdateHostedZoneTierCommand.js +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/commands/index.js +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/models/enums.js +42 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/models/errors.js +13 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/pagination/ListHostedZoneChangeBatchesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/pagination/ListResourceRecordSetChangesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/pagination/index.js +2 -0
- package/node_modules/@aws-sdk/client-route-53/dist-es/schemas/schemas_0.js +171 -34
- package/node_modules/@aws-sdk/client-route-53/dist-types/Route53.d.ts +109 -9
- package/node_modules/@aws-sdk/client-route-53/dist-types/Route53Client.d.ts +73 -11
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ChangeResourceRecordSetsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateHealthCheckCommand.d.ts +0 -2
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateHostedZoneCommand.d.ts +20 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHostedZoneChangeBatchCommand.d.ts +145 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHostedZoneCommand.d.ts +12 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHostedZoneChangeBatchesCommand.d.ts +104 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHostedZonesByNameCommand.d.ts +12 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHostedZonesCommand.d.ts +12 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListResourceRecordSetChangesCommand.d.ts +148 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListResourceRecordSetsCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/UpdateHostedZoneCommentCommand.d.ts +12 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/UpdateHostedZoneFeaturesCommand.d.ts +10 -1
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/UpdateHostedZoneTierCommand.d.ts +86 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/index.d.ts +67 -9
- package/node_modules/@aws-sdk/client-route-53/dist-types/models/enums.d.ts +106 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/models/errors.d.ts +13 -2
- package/node_modules/@aws-sdk/client-route-53/dist-types/models/models_0.d.ts +540 -6
- package/node_modules/@aws-sdk/client-route-53/dist-types/pagination/ListHostedZoneChangeBatchesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/pagination/ListResourceRecordSetChangesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/pagination/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/schemas/schemas_0.d.ts +18 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/Route53.d.ts +82 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/Route53Client.d.ts +24 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/GetHostedZoneChangeBatchCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/ListHostedZoneChangeBatchesCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/ListResourceRecordSetChangesCommand.d.ts +42 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/UpdateHostedZoneTierCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/models/enums.d.ts +54 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/models/errors.d.ts +6 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/models/models_0.d.ts +89 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/pagination/ListHostedZoneChangeBatchesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/pagination/ListResourceRecordSetChangesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/schemas/schemas_0.d.ts +18 -0
- package/node_modules/@aws-sdk/client-route-53/package.json +3 -3
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-s3/package.json +6 -6
- package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ses/package.json +3 -3
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +29 -15
- package/node_modules/@aws-sdk/client-ssm/dist-es/models/enums.js +5 -0
- package/node_modules/@aws-sdk/client-ssm/dist-es/schemas/schemas_0.js +22 -14
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateDocumentCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentVersionsCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentsCommand.d.ts +3 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentCommand.d.ts +6 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/models/enums.d.ts +13 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +51 -5
- package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +58 -2
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +3 -0
- package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts +4 -0
- package/node_modules/@aws-sdk/client-ssm/package.json +3 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +17 -12
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-logger/loggerMiddleware.js +17 -12
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/cdk-nag/.devcontainer.json +2 -2
- package/node_modules/cdk-nag/.jsii +7 -6
- package/node_modules/cdk-nag/.jsii.tabl.json +1 -1
- package/node_modules/cdk-nag/.pre-commit-config.yaml +1 -1
- package/node_modules/cdk-nag/.yarn/install-state.gz +0 -0
- package/node_modules/cdk-nag/.yarnrc.yml +3 -0
- package/node_modules/cdk-nag/CONTRIBUTING.md +8 -8
- package/node_modules/cdk-nag/Dockerfile +2 -3
- package/node_modules/cdk-nag/README.md +3 -1
- package/node_modules/cdk-nag/lib/index.js +24 -2
- package/node_modules/cdk-nag/lib/nag-pack.js +15 -12
- package/node_modules/cdk-nag/lib/nag-rules.js +2 -4
- package/node_modules/cdk-nag/lib/packs/aws-solutions.js +3 -5
- package/node_modules/cdk-nag/lib/packs/hipaa-security.js +3 -5
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +3 -5
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +3 -5
- package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +3 -5
- package/node_modules/cdk-nag/lib/packs/serverless.js +3 -5
- package/node_modules/cdk-nag/lib/rules/apigw/index.js +14 -11
- package/node_modules/cdk-nag/lib/rules/appsync/index.js +6 -3
- package/node_modules/cdk-nag/lib/rules/autoscaling/index.js +9 -6
- package/node_modules/cdk-nag/lib/rules/cloud9/index.js +5 -2
- package/node_modules/cdk-nag/lib/rules/cloudfront/index.js +11 -8
- package/node_modules/cdk-nag/lib/rules/cloudtrail/index.js +7 -4
- package/node_modules/cdk-nag/lib/rules/cloudwatch/index.js +7 -4
- package/node_modules/cdk-nag/lib/rules/codebuild/index.js +8 -5
- package/node_modules/cdk-nag/lib/rules/cognito/index.js +9 -6
- package/node_modules/cdk-nag/lib/rules/dms/index.js +5 -2
- package/node_modules/cdk-nag/lib/rules/documentdb/index.js +9 -6
- package/node_modules/cdk-nag/lib/rules/dynamodb/index.js +8 -5
- package/node_modules/cdk-nag/lib/rules/ec2/index.js +17 -14
- package/node_modules/cdk-nag/lib/rules/ecr/index.js +5 -2
- package/node_modules/cdk-nag/lib/rules/ecs/index.js +8 -5
- package/node_modules/cdk-nag/lib/rules/efs/index.js +6 -3
- package/node_modules/cdk-nag/lib/rules/eks/index.js +6 -3
- package/node_modules/cdk-nag/lib/rules/elasticache/index.js +10 -7
- package/node_modules/cdk-nag/lib/rules/elasticbeanstalk/index.js +8 -5
- package/node_modules/cdk-nag/lib/rules/elb/index.js +15 -12
- package/node_modules/cdk-nag/lib/rules/emr/index.js +9 -6
- package/node_modules/cdk-nag/lib/rules/eventbridge/index.js +6 -3
- package/node_modules/cdk-nag/lib/rules/glue/index.js +6 -3
- package/node_modules/cdk-nag/lib/rules/iam/index.js +12 -9
- package/node_modules/cdk-nag/lib/rules/index.js +79 -46
- package/node_modules/cdk-nag/lib/rules/kinesis/index.js +8 -5
- package/node_modules/cdk-nag/lib/rules/kms/index.js +5 -2
- package/node_modules/cdk-nag/lib/rules/lambda/index.js +17 -14
- package/node_modules/cdk-nag/lib/rules/lex/index.js +5 -2
- package/node_modules/cdk-nag/lib/rules/mediastore/index.js +10 -7
- package/node_modules/cdk-nag/lib/rules/msk/index.js +7 -4
- package/node_modules/cdk-nag/lib/rules/mwaa/index.js +5 -2
- package/node_modules/cdk-nag/lib/rules/neptune/index.js +9 -6
- package/node_modules/cdk-nag/lib/rules/opensearch/index.js +13 -10
- package/node_modules/cdk-nag/lib/rules/quicksight/index.js +5 -2
- package/node_modules/cdk-nag/lib/rules/rds/index.js +18 -15
- package/node_modules/cdk-nag/lib/rules/redshift/index.js +17 -14
- package/node_modules/cdk-nag/lib/rules/s3/index.js +14 -11
- package/node_modules/cdk-nag/lib/rules/sagemaker/index.js +8 -5
- package/node_modules/cdk-nag/lib/rules/secretsmanager/index.js +6 -3
- package/node_modules/cdk-nag/lib/rules/sns/index.js +7 -4
- package/node_modules/cdk-nag/lib/rules/sqs/index.js +8 -5
- package/node_modules/cdk-nag/lib/rules/stepfunctions/index.js +6 -3
- package/node_modules/cdk-nag/lib/rules/timestream/index.js +5 -2
- package/node_modules/cdk-nag/lib/rules/vpc/index.js +9 -6
- package/node_modules/cdk-nag/lib/rules/waf/index.js +5 -2
- package/node_modules/cdk-nag/package.json +24 -16
- package/node_modules/mailparser/CHANGELOG.md +12 -0
- package/node_modules/mailparser/README.md +2 -0
- package/node_modules/mailparser/dist/cjs/mail-parser.js +1 -2
- package/node_modules/mailparser/dist/cjs/types.d.ts +7 -0
- package/node_modules/mailparser/dist/esm/mail-parser.js +1 -2
- package/node_modules/mailparser/dist/esm/types.d.ts +7 -0
- package/node_modules/mailparser/package.json +3 -3
- package/node_modules/nodemailer/CHANGELOG.md +8 -0
- package/node_modules/nodemailer/dist/cjs/dkim/sign.js +3 -2
- package/node_modules/nodemailer/dist/cjs/fetch/cookies.d.ts +3 -1
- package/node_modules/nodemailer/dist/cjs/fetch/cookies.js +8 -2
- package/node_modules/nodemailer/dist/cjs/package-info.d.ts +1 -1
- package/node_modules/nodemailer/dist/cjs/package-info.js +1 -1
- package/node_modules/nodemailer/dist/cjs/well-known/services.js +6 -0
- package/node_modules/nodemailer/dist/esm/dkim/sign.js +3 -2
- package/node_modules/nodemailer/dist/esm/fetch/cookies.d.ts +3 -1
- package/node_modules/nodemailer/dist/esm/fetch/cookies.js +8 -2
- package/node_modules/nodemailer/dist/esm/package-info.d.ts +1 -1
- package/node_modules/nodemailer/dist/esm/package-info.js +1 -1
- package/node_modules/nodemailer/dist/esm/well-known/services.js +6 -0
- package/node_modules/nodemailer/dist/well-known/services.json +7 -0
- package/node_modules/nodemailer/package.json +7 -7
- package/package.json +8 -8
|
@@ -1016,8 +1016,7 @@ class MailParser extends node_stream_1.Transform {
|
|
|
1016
1016
|
contentStream.pipe(flowDecoder);
|
|
1017
1017
|
node.contentStream = flowDecoder;
|
|
1018
1018
|
}
|
|
1019
|
-
let charset = node.charset || 'utf-8';
|
|
1020
|
-
//charset = charset || 'windows-1257';
|
|
1019
|
+
let charset = node.charset || this.options.defaultTextCharset || 'utf-8';
|
|
1021
1020
|
if (!['ascii', 'usascii', 'utf8'].includes(charset.toLowerCase().replace(/[^a-z0-9]+/g, ''))) {
|
|
1022
1021
|
try {
|
|
1023
1022
|
let contentStream = node.contentStream;
|
|
@@ -246,6 +246,13 @@ export interface MailParserOptions {
|
|
|
246
246
|
* @default false
|
|
247
247
|
*/
|
|
248
248
|
keepDeliveryStatus?: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* The charset of a text body whose `Content-Type` names none, for a source known to send such
|
|
251
|
+
* bodies in a legacy charset (eg. `'windows-1252'`). A body that declares its charset is decoded
|
|
252
|
+
* from that charset regardless.
|
|
253
|
+
* @default 'utf-8'
|
|
254
|
+
*/
|
|
255
|
+
defaultTextCharset?: string;
|
|
249
256
|
/**
|
|
250
257
|
* Decode the character sets of text bodies with the native `iconv` module instead of libmime's
|
|
251
258
|
* decoder (`iconv-lite`). Pass the `Iconv` class: `{ Iconv: require('iconv').Iconv }`. Bodies
|
|
@@ -1011,8 +1011,7 @@ class MailParser extends Transform {
|
|
|
1011
1011
|
contentStream.pipe(flowDecoder);
|
|
1012
1012
|
node.contentStream = flowDecoder;
|
|
1013
1013
|
}
|
|
1014
|
-
let charset = node.charset || 'utf-8';
|
|
1015
|
-
//charset = charset || 'windows-1257';
|
|
1014
|
+
let charset = node.charset || this.options.defaultTextCharset || 'utf-8';
|
|
1016
1015
|
if (!['ascii', 'usascii', 'utf8'].includes(charset.toLowerCase().replace(/[^a-z0-9]+/g, ''))) {
|
|
1017
1016
|
try {
|
|
1018
1017
|
let contentStream = node.contentStream;
|
|
@@ -246,6 +246,13 @@ export interface MailParserOptions {
|
|
|
246
246
|
* @default false
|
|
247
247
|
*/
|
|
248
248
|
keepDeliveryStatus?: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* The charset of a text body whose `Content-Type` names none, for a source known to send such
|
|
251
|
+
* bodies in a legacy charset (eg. `'windows-1252'`). A body that declares its charset is decoded
|
|
252
|
+
* from that charset regardless.
|
|
253
|
+
* @default 'utf-8'
|
|
254
|
+
*/
|
|
255
|
+
defaultTextCharset?: string;
|
|
249
256
|
/**
|
|
250
257
|
* Decode the character sets of text bodies with the native `iconv` module instead of libmime's
|
|
251
258
|
* decoder (`iconv-lite`). Pass the `Iconv` class: `{ Iconv: require('iconv').Iconv }`. Bodies
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mailparser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
4
4
|
"description": "Parse e-mails",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"html-to-text": "10.0.1",
|
|
98
98
|
"libmime": "5.6.5",
|
|
99
99
|
"linkify-it": "6.1.0",
|
|
100
|
-
"nodemailer": "10.6.
|
|
100
|
+
"nodemailer": "10.6.1",
|
|
101
101
|
"punycode.js": "2.3.1",
|
|
102
102
|
"tlds": "1.261.0"
|
|
103
103
|
},
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"prettier": "3.10.1",
|
|
113
113
|
"tsx": "4.23.15",
|
|
114
114
|
"typescript": "6.0.3",
|
|
115
|
-
"typescript-eslint": "8.
|
|
115
|
+
"typescript-eslint": "8.73.0"
|
|
116
116
|
},
|
|
117
117
|
"repository": {
|
|
118
118
|
"type": "git",
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [10.6.1](https://github.com/nodemailer/nodemailer/compare/v10.6.0...v10.6.1) (2026-11-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **dkim:** sign List-Unsubscribe-Post by default ([#1922](https://github.com/nodemailer/nodemailer/issues/1922)) ([f91077c](https://github.com/nodemailer/nodemailer/commit/f91077c5bbc175fbb853d3c1cf3131c30283d52b))
|
|
9
|
+
* **fetch:** identify cookies by name, domain and path ([#1920](https://github.com/nodemailer/nodemailer/issues/1920)) ([91a298f](https://github.com/nodemailer/nodemailer/commit/91a298fc112017decdeb2b401238e901dd4b2256))
|
|
10
|
+
|
|
3
11
|
## [10.6.0](https://github.com/nodemailer/nodemailer/compare/v10.5.0...v10.6.0) (2026-11-15)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -62,12 +62,13 @@ function unsupportedHashAlgoError(hashAlgo) {
|
|
|
62
62
|
*/
|
|
63
63
|
function sign(headers, hashAlgo, bodyHash, options) {
|
|
64
64
|
options = options || {};
|
|
65
|
-
// all listed fields from RFC4871 #5.5
|
|
65
|
+
// all listed fields from RFC4871 #5.5, plus List-Unsubscribe-Post: RFC 8058 only allows
|
|
66
|
+
// one-click unsubscribe when the signature covers it next to List-Unsubscribe
|
|
66
67
|
const defaultFieldNames = 'From:Sender:Reply-To:Subject:Date:Message-ID:To:' +
|
|
67
68
|
'Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:' +
|
|
68
69
|
'Content-Description:Resent-Date:Resent-From:Resent-Sender:' +
|
|
69
70
|
'Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:' +
|
|
70
|
-
'List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:' +
|
|
71
|
+
'List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post:List-Subscribe:List-Post:' +
|
|
71
72
|
'List-Owner:List-Archive:OTP-Token';
|
|
72
73
|
const fieldNames = options.headerFieldNames || defaultFieldNames;
|
|
73
74
|
const canonicalizedHeaderData = relaxedHeaders(headers, fieldNames, options.skipFields);
|
|
@@ -71,7 +71,9 @@ declare class Cookies {
|
|
|
71
71
|
*/
|
|
72
72
|
add(cookie: Cookie): boolean;
|
|
73
73
|
/**
|
|
74
|
-
* Checks if two cookie objects are the same
|
|
74
|
+
* Checks if two cookie objects are the same cookie. A cookie is identified by its
|
|
75
|
+
* name, domain and path (RFC 6265 section 5.3), the Secure and HttpOnly flags are
|
|
76
|
+
* attributes of the stored cookie that an update replaces
|
|
75
77
|
*
|
|
76
78
|
* @param a Cookie to check against
|
|
77
79
|
* @param b Cookie to check against
|
|
@@ -89,6 +89,10 @@ class Cookies {
|
|
|
89
89
|
if (!cookie.expires) {
|
|
90
90
|
cookie.expires = new Date(Date.now() + (Number(this.options.sessionTimeout || SESSION_TIMEOUT) || SESSION_TIMEOUT) * 1000);
|
|
91
91
|
}
|
|
92
|
+
// a non-secure url can not set a Secure cookie, nor overwrite or delete one (RFC 6265bis section 5.7)
|
|
93
|
+
if (urlparts.protocol !== 'https:' && (cookie.secure || this.cookies.some(stored => stored.secure && this.compare(stored, cookie)))) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
92
96
|
return this.add(cookie);
|
|
93
97
|
}
|
|
94
98
|
/**
|
|
@@ -247,14 +251,16 @@ class Cookies {
|
|
|
247
251
|
return true;
|
|
248
252
|
}
|
|
249
253
|
/**
|
|
250
|
-
* Checks if two cookie objects are the same
|
|
254
|
+
* Checks if two cookie objects are the same cookie. A cookie is identified by its
|
|
255
|
+
* name, domain and path (RFC 6265 section 5.3), the Secure and HttpOnly flags are
|
|
256
|
+
* attributes of the stored cookie that an update replaces
|
|
251
257
|
*
|
|
252
258
|
* @param a Cookie to check against
|
|
253
259
|
* @param b Cookie to check against
|
|
254
260
|
* @returns True, if the cookies are the same
|
|
255
261
|
*/
|
|
256
262
|
compare(a, b) {
|
|
257
|
-
return a.name === b.name && a.path === b.path && a.domain === b.domain
|
|
263
|
+
return a.name === b.name && a.path === b.path && a.domain === b.domain;
|
|
258
264
|
}
|
|
259
265
|
/**
|
|
260
266
|
* Checks if a cookie is expired
|
|
@@ -463,6 +463,12 @@ exports.services = {
|
|
|
463
463
|
"host": "smtp-relay.brevo.com",
|
|
464
464
|
"port": 587
|
|
465
465
|
},
|
|
466
|
+
"Sendora": {
|
|
467
|
+
"description": "Sendora",
|
|
468
|
+
"host": "smtp.sendora.se",
|
|
469
|
+
"port": 465,
|
|
470
|
+
"secure": true
|
|
471
|
+
},
|
|
466
472
|
"SendPulse": {
|
|
467
473
|
"description": "SendPulse",
|
|
468
474
|
"host": "smtp-pulse.com",
|
|
@@ -24,12 +24,13 @@ function unsupportedHashAlgoError(hashAlgo) {
|
|
|
24
24
|
*/
|
|
25
25
|
function sign(headers, hashAlgo, bodyHash, options) {
|
|
26
26
|
options = options || {};
|
|
27
|
-
// all listed fields from RFC4871 #5.5
|
|
27
|
+
// all listed fields from RFC4871 #5.5, plus List-Unsubscribe-Post: RFC 8058 only allows
|
|
28
|
+
// one-click unsubscribe when the signature covers it next to List-Unsubscribe
|
|
28
29
|
const defaultFieldNames = 'From:Sender:Reply-To:Subject:Date:Message-ID:To:' +
|
|
29
30
|
'Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:' +
|
|
30
31
|
'Content-Description:Resent-Date:Resent-From:Resent-Sender:' +
|
|
31
32
|
'Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:' +
|
|
32
|
-
'List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:' +
|
|
33
|
+
'List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post:List-Subscribe:List-Post:' +
|
|
33
34
|
'List-Owner:List-Archive:OTP-Token';
|
|
34
35
|
const fieldNames = options.headerFieldNames || defaultFieldNames;
|
|
35
36
|
const canonicalizedHeaderData = relaxedHeaders(headers, fieldNames, options.skipFields);
|
|
@@ -71,7 +71,9 @@ declare class Cookies {
|
|
|
71
71
|
*/
|
|
72
72
|
add(cookie: Cookie): boolean;
|
|
73
73
|
/**
|
|
74
|
-
* Checks if two cookie objects are the same
|
|
74
|
+
* Checks if two cookie objects are the same cookie. A cookie is identified by its
|
|
75
|
+
* name, domain and path (RFC 6265 section 5.3), the Secure and HttpOnly flags are
|
|
76
|
+
* attributes of the stored cookie that an update replaces
|
|
75
77
|
*
|
|
76
78
|
* @param a Cookie to check against
|
|
77
79
|
* @param b Cookie to check against
|
|
@@ -51,6 +51,10 @@ class Cookies {
|
|
|
51
51
|
if (!cookie.expires) {
|
|
52
52
|
cookie.expires = new Date(Date.now() + (Number(this.options.sessionTimeout || SESSION_TIMEOUT) || SESSION_TIMEOUT) * 1000);
|
|
53
53
|
}
|
|
54
|
+
// a non-secure url can not set a Secure cookie, nor overwrite or delete one (RFC 6265bis section 5.7)
|
|
55
|
+
if (urlparts.protocol !== 'https:' && (cookie.secure || this.cookies.some(stored => stored.secure && this.compare(stored, cookie)))) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
54
58
|
return this.add(cookie);
|
|
55
59
|
}
|
|
56
60
|
/**
|
|
@@ -209,14 +213,16 @@ class Cookies {
|
|
|
209
213
|
return true;
|
|
210
214
|
}
|
|
211
215
|
/**
|
|
212
|
-
* Checks if two cookie objects are the same
|
|
216
|
+
* Checks if two cookie objects are the same cookie. A cookie is identified by its
|
|
217
|
+
* name, domain and path (RFC 6265 section 5.3), the Secure and HttpOnly flags are
|
|
218
|
+
* attributes of the stored cookie that an update replaces
|
|
213
219
|
*
|
|
214
220
|
* @param a Cookie to check against
|
|
215
221
|
* @param b Cookie to check against
|
|
216
222
|
* @returns True, if the cookies are the same
|
|
217
223
|
*/
|
|
218
224
|
compare(a, b) {
|
|
219
|
-
return a.name === b.name && a.path === b.path && a.domain === b.domain
|
|
225
|
+
return a.name === b.name && a.path === b.path && a.domain === b.domain;
|
|
220
226
|
}
|
|
221
227
|
/**
|
|
222
228
|
* Checks if a cookie is expired
|
|
@@ -460,6 +460,12 @@ export const services = {
|
|
|
460
460
|
"host": "smtp-relay.brevo.com",
|
|
461
461
|
"port": 587
|
|
462
462
|
},
|
|
463
|
+
"Sendora": {
|
|
464
|
+
"description": "Sendora",
|
|
465
|
+
"host": "smtp.sendora.se",
|
|
466
|
+
"port": 465,
|
|
467
|
+
"secure": true
|
|
468
|
+
},
|
|
463
469
|
"SendPulse": {
|
|
464
470
|
"description": "SendPulse",
|
|
465
471
|
"host": "smtp-pulse.com",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodemailer",
|
|
3
|
-
"version": "10.6.
|
|
3
|
+
"version": "10.6.1",
|
|
4
4
|
"description": "Easy as cake e-mail sending from your Node.js applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/nodemailer.js",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
},
|
|
155
155
|
"homepage": "https://nodemailer.com/",
|
|
156
156
|
"devDependencies": {
|
|
157
|
-
"@aws-sdk/client-sesv2": "3.
|
|
157
|
+
"@aws-sdk/client-sesv2": "3.1173.0",
|
|
158
158
|
"@types/node": "20.19.43",
|
|
159
159
|
"bunyan": "1.8.15",
|
|
160
160
|
"c8": "12.0.0",
|
|
@@ -162,16 +162,16 @@
|
|
|
162
162
|
"eslint-config-prettier": "10.1.8",
|
|
163
163
|
"globals": "17.14.0",
|
|
164
164
|
"libbase64": "1.4.1",
|
|
165
|
-
"libmime": "5.6.
|
|
166
|
-
"libqp": "3.0.
|
|
167
|
-
"mailauth": "8.0
|
|
165
|
+
"libmime": "5.6.5",
|
|
166
|
+
"libqp": "3.0.2",
|
|
167
|
+
"mailauth": "8.1.0",
|
|
168
168
|
"prettier": "3.10.1",
|
|
169
169
|
"proxy": "1.0.2",
|
|
170
170
|
"proxy-test-server": "1.0.0",
|
|
171
|
-
"smtp-server": "3.21.
|
|
171
|
+
"smtp-server": "3.21.6",
|
|
172
172
|
"tsx": "4.23.15",
|
|
173
173
|
"typescript": "6.0.3",
|
|
174
|
-
"typescript-eslint": "8.
|
|
174
|
+
"typescript-eslint": "8.73.0"
|
|
175
175
|
},
|
|
176
176
|
"engines": {
|
|
177
177
|
"node": ">=20.0.0"
|
package/package.json
CHANGED
|
@@ -79,15 +79,15 @@
|
|
|
79
79
|
"constructs": "^10.5.1"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@aws-sdk/client-cloudwatch-logs": "^3.
|
|
83
|
-
"@aws-sdk/client-route-53": "^3.
|
|
84
|
-
"@aws-sdk/client-s3": "^3.
|
|
85
|
-
"@aws-sdk/client-ses": "^3.
|
|
86
|
-
"@aws-sdk/client-ssm": "^3.
|
|
87
|
-
"@mavogel/mvc-projen": "^0.0.
|
|
82
|
+
"@aws-sdk/client-cloudwatch-logs": "^3.1175.0",
|
|
83
|
+
"@aws-sdk/client-route-53": "^3.1175.0",
|
|
84
|
+
"@aws-sdk/client-s3": "^3.1175.0",
|
|
85
|
+
"@aws-sdk/client-ses": "^3.1175.0",
|
|
86
|
+
"@aws-sdk/client-ssm": "^3.1175.0",
|
|
87
|
+
"@mavogel/mvc-projen": "^0.0.80",
|
|
88
88
|
"cdk-nag": "^3.0.1",
|
|
89
89
|
"constructs": "^10.5.1",
|
|
90
|
-
"mailparser": "^3.
|
|
90
|
+
"mailparser": "^3.15.0",
|
|
91
91
|
"uuid": "^14.0.3"
|
|
92
92
|
},
|
|
93
93
|
"bundledDependencies": [
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"publishConfig": {
|
|
123
123
|
"access": "public"
|
|
124
124
|
},
|
|
125
|
-
"version": "0.1.
|
|
125
|
+
"version": "0.1.58",
|
|
126
126
|
"jest": {
|
|
127
127
|
"coverageProvider": "v8",
|
|
128
128
|
"transformIgnorePatterns": [
|