Skip to content

Commit 14a23f7

Browse files
committed
chore: minor update & bundlesize
1 parent ba3d3b2 commit 14a23f7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/aws-amplify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@
515515
"name": "[Storage] uploadData (S3)",
516516
"path": "./dist/esm/storage/index.mjs",
517517
"import": "{ uploadData }",
518-
"limit": "22.87 kB"
518+
"limit": "22.95 kB"
519519
}
520520
]
521521
}

packages/storage/__tests__/providers/s3/apis/internal/uploadData/multipartHandlers.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ const bucket = 'bucket';
4444
const region = 'region';
4545
const defaultKey = 'key';
4646
const defaultContentType = 'application/octet-stream';
47-
const defaultCacheKey =
48-
'o6a/Qw==_8388608_application/octet-stream_bucket_public_key';
47+
const emptyOptionHash = 'o6a/Qw=='; // crc32 for '{}'
48+
const defaultCacheKey = `${emptyOptionHash}_8388608_application/octet-stream_bucket_public_key`;
4949
const testPath = 'testPath/object';
50-
const testPathCacheKey = `o6a/Qw==_8388608_${defaultContentType}_${bucket}_custom_${testPath}`;
50+
const testPathCacheKey = `${emptyOptionHash}_8388608_${defaultContentType}_${bucket}_custom_${testPath}`;
5151

5252
const mockCreateMultipartUpload = jest.mocked(createMultipartUpload);
5353
const mockUploadPart = jest.mocked(uploadPart);
@@ -545,7 +545,7 @@ describe('getMultipartUploadHandlers with key', () => {
545545
describe('cache validation', () => {
546546
it.each([
547547
{
548-
name: 'mismatch part count between cached upload and actual upload',
548+
name: 'mismatched part count between cached upload and actual upload',
549549
parts: [{ PartNumber: 1 }, { PartNumber: 2 }, { PartNumber: 3 }],
550550
},
551551
{
@@ -693,7 +693,7 @@ describe('getMultipartUploadHandlers with key', () => {
693693
expect(Object.keys(cacheValue)).toEqual([
694694
expect.stringMatching(
695695
// \d{13} is the file lastModified property of a file
696-
/someName_\d{13}_o6a\/Qw==_8388608_application\/octet-stream_bucket_public_key/,
696+
new RegExp(`someName_\\d{13}_${defaultCacheKey}`),
697697
),
698698
]);
699699
});

0 commit comments

Comments
 (0)