Skip to content

Commit a752cd6

Browse files
authored
Merge branch 'main' into fix/appsync_connect
2 parents c946cf7 + f94a30b commit a752cd6

File tree

5 files changed

+21
-13
lines changed

5 files changed

+21
-13
lines changed

packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/constants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export const DEFAULT_SERVICE_CLIENT_API_CONFIG = {
1414
service: COGNITO_IDP_SERVICE_NAME,
1515
retryDecider: getRetryDecider(parseJsonError),
1616
computeDelay: jitteredBackoff,
17-
userAgentValue: getAmplifyUserAgent(),
17+
get userAgentValue() {
18+
return getAmplifyUserAgent();
19+
},
1820
cache: 'no-store',
1921
};

packages/aws-amplify/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
"name": "[Analytics] identifyUser (Pinpoint)",
332332
"path": "./dist/esm/analytics/index.mjs",
333333
"import": "{ identifyUser }",
334-
"limit": "16.41 kB"
334+
"limit": "16.42 kB"
335335
},
336336
{
337337
"name": "[Analytics] enable",
@@ -367,7 +367,7 @@
367367
"name": "[Auth] resetPassword (Cognito)",
368368
"path": "./dist/esm/auth/index.mjs",
369369
"import": "{ resetPassword }",
370-
"limit": "13.31 kB"
370+
"limit": "13.32 kB"
371371
},
372372
{
373373
"name": "[Auth] confirmResetPassword (Cognito)",
@@ -421,7 +421,7 @@
421421
"name": "[Auth] updatePassword (Cognito)",
422422
"path": "./dist/esm/auth/index.mjs",
423423
"import": "{ updatePassword }",
424-
"limit": "13.61 kB"
424+
"limit": "13.62 kB"
425425
},
426426
{
427427
"name": "[Auth] setUpTOTP (Cognito)",
@@ -451,7 +451,7 @@
451451
"name": "[Auth] signInWithRedirect (Cognito)",
452452
"path": "./dist/esm/auth/index.mjs",
453453
"import": "{ signInWithRedirect }",
454-
"limit": "19.35 kB"
454+
"limit": "19.37 kB"
455455
},
456456
{
457457
"name": "[Auth] fetchUserAttributes (Cognito)",
@@ -469,7 +469,7 @@
469469
"name": "[Auth] OAuth Auth Flow (Cognito)",
470470
"path": "./dist/esm/auth/index.mjs",
471471
"import": "{ signInWithRedirect, signOut, fetchAuthSession }",
472-
"limit": "19.92 kB"
472+
"limit": "19.93 kB"
473473
},
474474
{
475475
"name": "[Auth] Associate WebAuthN Credential (Cognito)",
@@ -493,19 +493,19 @@
493493
"name": "[Storage] copy (S3)",
494494
"path": "./dist/esm/storage/index.mjs",
495495
"import": "{ copy }",
496-
"limit": "16.91 kB"
496+
"limit": "16.93 kB"
497497
},
498498
{
499499
"name": "[Storage] downloadData (S3)",
500500
"path": "./dist/esm/storage/index.mjs",
501501
"import": "{ downloadData }",
502-
"limit": "17.28 kB"
502+
"limit": "17.29 kB"
503503
},
504504
{
505505
"name": "[Storage] getProperties (S3)",
506506
"path": "./dist/esm/storage/index.mjs",
507507
"import": "{ getProperties }",
508-
"limit": "16.50 kB"
508+
"limit": "16.51 kB"
509509
},
510510
{
511511
"name": "[Storage] getUrl (S3)",
@@ -523,7 +523,7 @@
523523
"name": "[Storage] remove (S3)",
524524
"path": "./dist/esm/storage/index.mjs",
525525
"import": "{ remove }",
526-
"limit": "16.40 kB"
526+
"limit": "16.41 kB"
527527
},
528528
{
529529
"name": "[Storage] uploadData (S3)",

packages/core/src/awsClients/pinpoint/base.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export const defaultConfig = {
3131
endpointResolver,
3232
retryDecider: getRetryDecider(parseJsonError),
3333
computeDelay: jitteredBackoff,
34-
userAgentValue: getAmplifyUserAgent(),
34+
get userAgentValue() {
35+
return getAmplifyUserAgent();
36+
},
3537
};
3638

3739
/**

packages/storage/src/providers/s3/utils/client/s3control/base.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ export const defaultConfig = {
107107
endpointResolver,
108108
retryDecider,
109109
computeDelay: jitteredBackoff,
110-
userAgentValue: getAmplifyUserAgent(),
110+
get userAgentValue() {
111+
return getAmplifyUserAgent();
112+
},
111113
uriEscapePath: false, // Required by S3. See https://github.com/aws/aws-sdk-js-v3/blob/9ba012dfa3a3429aa2db0f90b3b0b3a7a31f9bc3/packages/signature-v4/src/SignatureV4.ts#L76-L83
112114
};

packages/storage/src/providers/s3/utils/client/s3data/base.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ export const defaultConfig = {
153153
endpointResolver,
154154
retryDecider,
155155
computeDelay: jitteredBackoff,
156-
userAgentValue: getAmplifyUserAgent(),
156+
get userAgentValue() {
157+
return getAmplifyUserAgent();
158+
},
157159
useAccelerateEndpoint: false,
158160
uriEscapePath: false, // Required by S3. See https://github.com/aws/aws-sdk-js-v3/blob/9ba012dfa3a3429aa2db0f90b3b0b3a7a31f9bc3/packages/signature-v4/src/SignatureV4.ts#L76-L83
159161
};

0 commit comments

Comments
 (0)