@mavogel/awscdk-rootmail 0.1.15 → 0.1.17
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/dist-cjs/index.js +1 -1
- 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 +1 -1
- package/node_modules/@aws-sdk/client-ssm/package.json +3 -3
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +12 -3
- 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/mailparser/.release-please-manifest.json +1 -1
- package/node_modules/mailparser/CHANGELOG.md +7 -0
- package/node_modules/mailparser/package.json +2 -2
- package/node_modules/nodemailer/CHANGELOG.md +27 -0
- package/node_modules/nodemailer/dist/cjs/base64/index.d.ts +3 -0
- package/node_modules/nodemailer/dist/cjs/base64/index.js +80 -41
- package/node_modules/nodemailer/dist/cjs/dkim/index.js +43 -29
- package/node_modules/nodemailer/dist/cjs/dkim/message-parser.js +2 -2
- package/node_modules/nodemailer/dist/cjs/errors.d.ts +17 -0
- package/node_modules/nodemailer/dist/cjs/errors.js +12 -1
- package/node_modules/nodemailer/dist/cjs/fetch/index.js +23 -3
- package/node_modules/nodemailer/dist/cjs/mailer/index.js +23 -7
- package/node_modules/nodemailer/dist/cjs/mailer/mail-message.d.ts +5 -0
- package/node_modules/nodemailer/dist/cjs/mailer/mail-message.js +20 -0
- package/node_modules/nodemailer/dist/cjs/mime-node/index.d.ts +1 -1
- package/node_modules/nodemailer/dist/cjs/mime-node/index.js +165 -105
- package/node_modules/nodemailer/dist/cjs/nodemailer.js +12 -9
- 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/qp/index.d.ts +2 -0
- package/node_modules/nodemailer/dist/cjs/qp/index.js +103 -33
- package/node_modules/nodemailer/dist/cjs/sendmail-transport/index.js +54 -14
- package/node_modules/nodemailer/dist/cjs/shared/index.d.ts +32 -1
- package/node_modules/nodemailer/dist/cjs/shared/index.js +212 -115
- package/node_modules/nodemailer/dist/cjs/smtp-connection/http-proxy-client.d.ts +3 -1
- package/node_modules/nodemailer/dist/cjs/smtp-connection/http-proxy-client.js +88 -68
- package/node_modules/nodemailer/dist/cjs/smtp-connection/index.d.ts +7 -1
- package/node_modules/nodemailer/dist/cjs/smtp-connection/index.js +348 -136
- package/node_modules/nodemailer/dist/cjs/smtp-pool/index.d.ts +3 -0
- package/node_modules/nodemailer/dist/cjs/smtp-pool/index.js +7 -1
- package/node_modules/nodemailer/dist/cjs/smtp-pool/pool-resource.js +106 -17
- package/node_modules/nodemailer/dist/cjs/smtp-transport/index.js +8 -2
- package/node_modules/nodemailer/dist/esm/base64/index.d.ts +3 -0
- package/node_modules/nodemailer/dist/esm/base64/index.js +80 -41
- package/node_modules/nodemailer/dist/esm/dkim/index.js +43 -29
- package/node_modules/nodemailer/dist/esm/dkim/message-parser.js +2 -2
- package/node_modules/nodemailer/dist/esm/errors.d.ts +17 -0
- package/node_modules/nodemailer/dist/esm/errors.js +10 -0
- package/node_modules/nodemailer/dist/esm/fetch/index.js +23 -3
- package/node_modules/nodemailer/dist/esm/mailer/index.js +23 -7
- package/node_modules/nodemailer/dist/esm/mailer/mail-message.d.ts +5 -0
- package/node_modules/nodemailer/dist/esm/mailer/mail-message.js +20 -0
- package/node_modules/nodemailer/dist/esm/mime-node/index.d.ts +1 -1
- package/node_modules/nodemailer/dist/esm/mime-node/index.js +166 -106
- package/node_modules/nodemailer/dist/esm/nodemailer.js +12 -9
- 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/qp/index.d.ts +2 -0
- package/node_modules/nodemailer/dist/esm/qp/index.js +103 -33
- package/node_modules/nodemailer/dist/esm/sendmail-transport/index.js +54 -14
- package/node_modules/nodemailer/dist/esm/shared/index.d.ts +32 -1
- package/node_modules/nodemailer/dist/esm/shared/index.js +207 -115
- package/node_modules/nodemailer/dist/esm/smtp-connection/http-proxy-client.d.ts +3 -1
- package/node_modules/nodemailer/dist/esm/smtp-connection/http-proxy-client.js +88 -68
- package/node_modules/nodemailer/dist/esm/smtp-connection/index.d.ts +7 -1
- package/node_modules/nodemailer/dist/esm/smtp-connection/index.js +348 -136
- package/node_modules/nodemailer/dist/esm/smtp-pool/index.d.ts +3 -0
- package/node_modules/nodemailer/dist/esm/smtp-pool/index.js +7 -1
- package/node_modules/nodemailer/dist/esm/smtp-pool/pool-resource.js +106 -17
- package/node_modules/nodemailer/dist/esm/smtp-transport/index.js +8 -2
- package/node_modules/nodemailer/package.json +1 -1
- package/package.json +12 -11
- package/renovate.json5 +1 -0
package/.jsii
CHANGED
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
10
|
"bundled": {
|
|
11
|
-
"@aws-sdk/client-cloudwatch-logs": "^3.
|
|
12
|
-
"@aws-sdk/client-route-53": "^3.
|
|
13
|
-
"@aws-sdk/client-s3": "^3.
|
|
14
|
-
"@aws-sdk/client-ses": "^3.
|
|
15
|
-
"@aws-sdk/client-ssm": "^3.
|
|
11
|
+
"@aws-sdk/client-cloudwatch-logs": "^3.1150.0",
|
|
12
|
+
"@aws-sdk/client-route-53": "^3.1150.0",
|
|
13
|
+
"@aws-sdk/client-s3": "^3.1150.0",
|
|
14
|
+
"@aws-sdk/client-ses": "^3.1150.0",
|
|
15
|
+
"@aws-sdk/client-ssm": "^3.1150.0",
|
|
16
16
|
"cdk-nag": "^3.0.1",
|
|
17
|
-
"mailparser": "^3.9.
|
|
17
|
+
"mailparser": "^3.9.38",
|
|
18
18
|
"uuid": "^14.0.3"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@mavogel/mvc-projen": "^0.0.
|
|
21
|
+
"@mavogel/mvc-projen": "^0.0.59",
|
|
22
22
|
"aws-cdk-lib": "^2.263.0",
|
|
23
23
|
"constructs": "^10.5.1"
|
|
24
24
|
},
|
|
@@ -9167,7 +9167,7 @@
|
|
|
9167
9167
|
"stability": "experimental"
|
|
9168
9168
|
},
|
|
9169
9169
|
"homepage": "https://github.com/mavogel/awscdk-rootmail",
|
|
9170
|
-
"jsiiVersion": "5.9.
|
|
9170
|
+
"jsiiVersion": "5.9.56 (build 0265a5f)",
|
|
9171
9171
|
"keywords": [
|
|
9172
9172
|
"aws",
|
|
9173
9173
|
"cdk",
|
|
@@ -9620,6 +9620,6 @@
|
|
|
9620
9620
|
"symbolId": "src/ses-receive:SESReceiveProps"
|
|
9621
9621
|
}
|
|
9622
9622
|
},
|
|
9623
|
-
"version": "0.1.
|
|
9624
|
-
"fingerprint": "
|
|
9623
|
+
"version": "0.1.17",
|
|
9624
|
+
"fingerprint": "801EIHJwX7nRiI/6bqk44F74FC7JPJb4XHGrP5+yrHg="
|
|
9625
9625
|
}
|
package/lib/rootmail.js
CHANGED
|
@@ -11,7 +11,7 @@ const ses_receive_1 = require("./ses-receive");
|
|
|
11
11
|
* Rootmail construct
|
|
12
12
|
*/
|
|
13
13
|
class Rootmail extends constructs_1.Construct {
|
|
14
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.Rootmail", version: "0.1.
|
|
14
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.Rootmail", version: "0.1.17" };
|
|
15
15
|
/**
|
|
16
16
|
* The name parameter in SSM to store the domain name server.
|
|
17
17
|
*/
|
package/lib/ses-receive.js
CHANGED
|
@@ -11,7 +11,7 @@ const ses_receipt_ruleset_activation_1 = require("./ses-receipt-ruleset-activati
|
|
|
11
11
|
* SES Receive construct
|
|
12
12
|
*/
|
|
13
13
|
class SESReceive extends constructs_1.Construct {
|
|
14
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.SESReceive", version: "0.1.
|
|
14
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.SESReceive", version: "0.1.17" };
|
|
15
15
|
constructor(scope, id, props) {
|
|
16
16
|
super(scope, id);
|
|
17
17
|
const filteredEmailSubjects = props.filteredEmailSubjects || [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/checksums",
|
|
3
|
-
"version": "3.1001.
|
|
3
|
+
"version": "3.1001.3",
|
|
4
4
|
"description": "Checksum algorithms and flexible checksums middleware for the AWS SDK",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/checksums",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@aws-sdk/core": "^3.978.
|
|
116
|
+
"@aws-sdk/core": "^3.978.3",
|
|
117
117
|
"@aws-sdk/types": "^3.974.6",
|
|
118
118
|
"@smithy/core": "^3.35.2",
|
|
119
119
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudwatch-logs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1150.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudwatch-logs",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aws-sdk/core": "^3.978.
|
|
56
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
55
|
+
"@aws-sdk/core": "^3.978.3",
|
|
56
|
+
"@aws-sdk/credential-provider-node": "^3.972.86",
|
|
57
57
|
"@aws-sdk/types": "^3.974.6",
|
|
58
58
|
"@smithy/core": "^3.35.2",
|
|
59
59
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-route-53",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1150.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aws-sdk/core": "^3.978.
|
|
56
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
55
|
+
"@aws-sdk/core": "^3.978.3",
|
|
56
|
+
"@aws-sdk/credential-provider-node": "^3.972.86",
|
|
57
57
|
"@aws-sdk/middleware-sdk-route53": "^3.972.27",
|
|
58
58
|
"@aws-sdk/types": "^3.974.6",
|
|
59
59
|
"@smithy/core": "^3.35.2",
|
|
@@ -4779,7 +4779,7 @@ var WriteGetObjectResponse$ = [9, n0, _WGOR,
|
|
|
4779
4779
|
class CreateSessionCommand extends command(_ep4, _mw0, "CreateSession", CreateSession$) {
|
|
4780
4780
|
}
|
|
4781
4781
|
|
|
4782
|
-
var version = "3.
|
|
4782
|
+
var version = "3.1149.0";
|
|
4783
4783
|
var packageInfo = {
|
|
4784
4784
|
version: version};
|
|
4785
4785
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1150.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@aws-sdk/checksums": "^3.1001.
|
|
58
|
-
"@aws-sdk/core": "^3.978.
|
|
59
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
60
|
-
"@aws-sdk/middleware-sdk-s3": "^3.972.
|
|
57
|
+
"@aws-sdk/checksums": "^3.1001.3",
|
|
58
|
+
"@aws-sdk/core": "^3.978.3",
|
|
59
|
+
"@aws-sdk/credential-provider-node": "^3.972.86",
|
|
60
|
+
"@aws-sdk/middleware-sdk-s3": "^3.972.79",
|
|
61
61
|
"@aws-sdk/signature-v4-multi-region": "^3.996.48",
|
|
62
62
|
"@aws-sdk/types": "^3.974.6",
|
|
63
63
|
"@smithy/core": "^3.35.2",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tslib": "^2.6.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
70
|
+
"@aws-sdk/signature-v4-crt": "3.1150.0",
|
|
71
71
|
"@smithy/snapshot-testing": "^2.3.2",
|
|
72
72
|
"@tsconfig/node20": "20.1.8",
|
|
73
73
|
"@types/node": "^20.14.8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ses",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1150.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Ses Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ses",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aws-sdk/core": "^3.978.
|
|
56
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
55
|
+
"@aws-sdk/core": "^3.978.3",
|
|
56
|
+
"@aws-sdk/credential-provider-node": "^3.972.86",
|
|
57
57
|
"@aws-sdk/types": "^3.974.6",
|
|
58
58
|
"@smithy/core": "^3.35.2",
|
|
59
59
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1150.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@aws-sdk/core": "^3.978.
|
|
52
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
51
|
+
"@aws-sdk/core": "^3.978.3",
|
|
52
|
+
"@aws-sdk/credential-provider-node": "^3.972.86",
|
|
53
53
|
"@aws-sdk/types": "^3.974.6",
|
|
54
54
|
"@smithy/core": "^3.35.2",
|
|
55
55
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
@@ -3,6 +3,7 @@ const { setCredentialFeature } = require("@aws-sdk/core/client");
|
|
|
3
3
|
const { normalizeProvider, memoizeIdentityProvider, isIdentityExpired, doesIdentityRequireRefresh } = require("@smithy/core");
|
|
4
4
|
const { SignatureV4 } = require("@smithy/signature-v4");
|
|
5
5
|
const { HttpResponse, HttpRequest } = require("@smithy/core/protocols");
|
|
6
|
+
const { SMITHY_CONTEXT_KEY } = require("@smithy/types");
|
|
6
7
|
|
|
7
8
|
const getDateHeader = (response) => HttpResponse.isInstance(response) ? (response.headers?.date ?? response.headers?.Date) : undefined;
|
|
8
9
|
const getAgeHeader = (response) => HttpResponse.isInstance(response) ? (response.headers?.age ?? response.headers?.Age) : undefined;
|
|
@@ -30,6 +31,12 @@ const throwSigningPropertyError = (name, property) => {
|
|
|
30
31
|
}
|
|
31
32
|
return property;
|
|
32
33
|
};
|
|
34
|
+
const hasEventStreamOutput = (signingProperties) => {
|
|
35
|
+
const context = signingProperties.context;
|
|
36
|
+
const eventStream = context?.[SMITHY_CONTEXT_KEY]
|
|
37
|
+
?.eventStream;
|
|
38
|
+
return eventStream?.output === true;
|
|
39
|
+
};
|
|
33
40
|
const validateSigningProperties = async (signingProperties) => {
|
|
34
41
|
const context = throwSigningPropertyError("context", signingProperties.context);
|
|
35
42
|
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
@@ -65,7 +72,9 @@ class AwsSdkSigV4Signer {
|
|
|
65
72
|
}
|
|
66
73
|
const noSkewCorrection = (await config.disableClockSkewCorrection?.()) === true;
|
|
67
74
|
signingProperties._disableClockSkewCorrection = noSkewCorrection;
|
|
68
|
-
|
|
75
|
+
const skipSkewSampling = noSkewCorrection || hasEventStreamOutput(signingProperties);
|
|
76
|
+
signingProperties._skipClockSkewSampling = skipSkewSampling;
|
|
77
|
+
if (!skipSkewSampling) {
|
|
69
78
|
signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
|
|
70
79
|
signingProperties._requestSentAt = Date.now();
|
|
71
80
|
}
|
|
@@ -79,7 +88,7 @@ class AwsSdkSigV4Signer {
|
|
|
79
88
|
errorHandler(signingProperties) {
|
|
80
89
|
return (error) => {
|
|
81
90
|
const errorException = error;
|
|
82
|
-
if (!signingProperties._disableClockSkewCorrection) {
|
|
91
|
+
if (!signingProperties._skipClockSkewSampling && !signingProperties._disableClockSkewCorrection) {
|
|
83
92
|
const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
|
|
84
93
|
if (serverTime) {
|
|
85
94
|
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
@@ -100,7 +109,7 @@ class AwsSdkSigV4Signer {
|
|
|
100
109
|
};
|
|
101
110
|
}
|
|
102
111
|
successHandler(httpResponse, signingProperties) {
|
|
103
|
-
if (signingProperties._disableClockSkewCorrection) {
|
|
112
|
+
if (signingProperties._skipClockSkewSampling || signingProperties._disableClockSkewCorrection) {
|
|
104
113
|
return;
|
|
105
114
|
}
|
|
106
115
|
const dateHeader = getDateHeader(httpResponse);
|
package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpRequest } from "@smithy/core/protocols";
|
|
2
|
+
import { SMITHY_CONTEXT_KEY } from "@smithy/types";
|
|
2
3
|
import { getAgeHeader, getDateHeader, getSkewCorrectedDate, getUpdatedSystemClockOffset } from "../utils";
|
|
3
4
|
const throwSigningPropertyError = (name, property) => {
|
|
4
5
|
if (!property) {
|
|
@@ -6,6 +7,12 @@ const throwSigningPropertyError = (name, property) => {
|
|
|
6
7
|
}
|
|
7
8
|
return property;
|
|
8
9
|
};
|
|
10
|
+
const hasEventStreamOutput = (signingProperties) => {
|
|
11
|
+
const context = signingProperties.context;
|
|
12
|
+
const eventStream = context?.[SMITHY_CONTEXT_KEY]
|
|
13
|
+
?.eventStream;
|
|
14
|
+
return eventStream?.output === true;
|
|
15
|
+
};
|
|
9
16
|
export const validateSigningProperties = async (signingProperties) => {
|
|
10
17
|
const context = throwSigningPropertyError("context", signingProperties.context);
|
|
11
18
|
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
@@ -41,7 +48,9 @@ export class AwsSdkSigV4Signer {
|
|
|
41
48
|
}
|
|
42
49
|
const noSkewCorrection = (await config.disableClockSkewCorrection?.()) === true;
|
|
43
50
|
signingProperties._disableClockSkewCorrection = noSkewCorrection;
|
|
44
|
-
|
|
51
|
+
const skipSkewSampling = noSkewCorrection || hasEventStreamOutput(signingProperties);
|
|
52
|
+
signingProperties._skipClockSkewSampling = skipSkewSampling;
|
|
53
|
+
if (!skipSkewSampling) {
|
|
45
54
|
signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
|
|
46
55
|
signingProperties._requestSentAt = Date.now();
|
|
47
56
|
}
|
|
@@ -55,7 +64,7 @@ export class AwsSdkSigV4Signer {
|
|
|
55
64
|
errorHandler(signingProperties) {
|
|
56
65
|
return (error) => {
|
|
57
66
|
const errorException = error;
|
|
58
|
-
if (!signingProperties._disableClockSkewCorrection) {
|
|
67
|
+
if (!signingProperties._skipClockSkewSampling && !signingProperties._disableClockSkewCorrection) {
|
|
59
68
|
const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
|
|
60
69
|
if (serverTime) {
|
|
61
70
|
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
@@ -76,7 +85,7 @@ export class AwsSdkSigV4Signer {
|
|
|
76
85
|
};
|
|
77
86
|
}
|
|
78
87
|
successHandler(httpResponse, signingProperties) {
|
|
79
|
-
if (signingProperties._disableClockSkewCorrection) {
|
|
88
|
+
if (signingProperties._skipClockSkewSampling || signingProperties._disableClockSkewCorrection) {
|
|
80
89
|
return;
|
|
81
90
|
}
|
|
82
91
|
const dateHeader = getDateHeader(httpResponse);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.978.
|
|
3
|
+
"version": "3.978.3",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-env",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.74",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from known environment variables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"test:watch": "yarn g:vitest watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@aws-sdk/core": "^3.978.
|
|
46
|
+
"@aws-sdk/core": "^3.978.3",
|
|
47
47
|
"@aws-sdk/types": "^3.974.6",
|
|
48
48
|
"@smithy/core": "^3.35.2",
|
|
49
49
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-http",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.76",
|
|
4
4
|
"description": "AWS credential provider for containers and HTTP sources",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@aws-sdk/core": "^3.978.
|
|
56
|
+
"@aws-sdk/core": "^3.978.3",
|
|
57
57
|
"@aws-sdk/types": "^3.974.6",
|
|
58
58
|
"@smithy/core": "^3.35.2",
|
|
59
59
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.973.
|
|
3
|
+
"version": "3.973.19",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@aws-sdk/core": "^3.978.
|
|
49
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
50
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
51
|
-
"@aws-sdk/credential-provider-login": "^3.972.
|
|
52
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
53
|
-
"@aws-sdk/credential-provider-sso": "^3.973.
|
|
54
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
55
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
48
|
+
"@aws-sdk/core": "^3.978.3",
|
|
49
|
+
"@aws-sdk/credential-provider-env": "^3.972.74",
|
|
50
|
+
"@aws-sdk/credential-provider-http": "^3.972.76",
|
|
51
|
+
"@aws-sdk/credential-provider-login": "^3.972.81",
|
|
52
|
+
"@aws-sdk/credential-provider-process": "^3.972.74",
|
|
53
|
+
"@aws-sdk/credential-provider-sso": "^3.973.18",
|
|
54
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.80",
|
|
55
|
+
"@aws-sdk/nested-clients": "^3.997.48",
|
|
56
56
|
"@aws-sdk/types": "^3.974.6",
|
|
57
57
|
"@smithy/core": "^3.35.2",
|
|
58
58
|
"@smithy/credential-provider-imds": "^4.5.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-login",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.81",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from aws login cached tokens",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"test:watch": "yarn g:vitest watch"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@aws-sdk/core": "^3.978.
|
|
49
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
48
|
+
"@aws-sdk/core": "^3.978.3",
|
|
49
|
+
"@aws-sdk/nested-clients": "^3.997.48",
|
|
50
50
|
"@aws-sdk/types": "^3.974.6",
|
|
51
51
|
"@smithy/core": "^3.35.2",
|
|
52
52
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.86",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
49
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
50
|
-
"@aws-sdk/credential-provider-ini": "^3.973.
|
|
51
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
52
|
-
"@aws-sdk/credential-provider-sso": "^3.973.
|
|
53
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
48
|
+
"@aws-sdk/credential-provider-env": "^3.972.74",
|
|
49
|
+
"@aws-sdk/credential-provider-http": "^3.972.76",
|
|
50
|
+
"@aws-sdk/credential-provider-ini": "^3.973.19",
|
|
51
|
+
"@aws-sdk/credential-provider-process": "^3.972.74",
|
|
52
|
+
"@aws-sdk/credential-provider-sso": "^3.973.18",
|
|
53
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.80",
|
|
54
54
|
"@aws-sdk/types": "^3.974.6",
|
|
55
55
|
"@smithy/core": "^3.35.2",
|
|
56
56
|
"@smithy/credential-provider-imds": "^4.5.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.74",
|
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"test:watch": "yarn g:vitest watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@aws-sdk/core": "^3.978.
|
|
46
|
+
"@aws-sdk/core": "^3.978.3",
|
|
47
47
|
"@aws-sdk/types": "^3.974.6",
|
|
48
48
|
"@smithy/core": "^3.35.2",
|
|
49
49
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.973.
|
|
3
|
+
"version": "3.973.18",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@aws-sdk/core": "^3.978.
|
|
49
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
50
|
-
"@aws-sdk/token-providers": "3.
|
|
48
|
+
"@aws-sdk/core": "^3.978.3",
|
|
49
|
+
"@aws-sdk/nested-clients": "^3.997.48",
|
|
50
|
+
"@aws-sdk/token-providers": "3.1150.0",
|
|
51
51
|
"@aws-sdk/types": "^3.974.6",
|
|
52
52
|
"@smithy/core": "^3.35.2",
|
|
53
53
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.80",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"test:watch": "yarn g:vitest watch"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@aws-sdk/core": "^3.978.
|
|
54
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
53
|
+
"@aws-sdk/core": "^3.978.3",
|
|
54
|
+
"@aws-sdk/nested-clients": "^3.997.48",
|
|
55
55
|
"@aws-sdk/types": "^3.974.6",
|
|
56
56
|
"@smithy/core": "^3.35.2",
|
|
57
57
|
"@smithy/types": "^4.19.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-s3",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.79",
|
|
4
4
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-sdk-s3",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"test:types": "tsc -p tsconfig.test.json"
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@aws-sdk/core": "^3.978.
|
|
97
|
+
"@aws-sdk/core": "^3.978.3",
|
|
98
98
|
"@aws-sdk/signature-v4-multi-region": "^3.996.48",
|
|
99
99
|
"@aws-sdk/types": "^3.974.6",
|
|
100
100
|
"@smithy/core": "^3.35.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.997.
|
|
3
|
+
"version": "3.997.48",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"test:watch": "yarn g:vitest watch"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@aws-sdk/core": "^3.978.
|
|
103
|
+
"@aws-sdk/core": "^3.978.3",
|
|
104
104
|
"@aws-sdk/signature-v4-multi-region": "^3.996.48",
|
|
105
105
|
"@aws-sdk/types": "^3.974.6",
|
|
106
106
|
"@smithy/core": "^3.35.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1150.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@aws-sdk/core": "^3.978.
|
|
52
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
51
|
+
"@aws-sdk/core": "^3.978.3",
|
|
52
|
+
"@aws-sdk/nested-clients": "^3.997.48",
|
|
53
53
|
"@aws-sdk/types": "^3.974.6",
|
|
54
54
|
"@smithy/core": "^3.35.2",
|
|
55
55
|
"@smithy/types": "^4.19.0",
|