@aws-amplify/ui-react-storage 3.7.0 → 3.7.1

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/dist/browser.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var createAmplifyAuthAdapter = require('./createAmplifyAuthAdapter-C4RcR9wH.js');
5
+ var createAmplifyAuthAdapter = require('./createAmplifyAuthAdapter-D6MKiBgI.js');
6
6
  var internals = require('@aws-amplify/storage/internals');
7
7
  require('@aws-amplify/ui');
8
8
  require('aws-amplify/storage');
@@ -32,7 +32,7 @@ function _interopNamespace(e) {
32
32
 
33
33
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
34
34
 
35
- const VERSION = '3.7.0';
35
+ const VERSION = '3.7.1';
36
36
 
37
37
  const constructBucket = ({ bucket: bucketName, region, }) => ({ bucketName, region });
38
38
  const parseAccessGrantLocation = (location) => {
@@ -159,6 +159,8 @@ const copyHandler = (input) => {
159
159
  };
160
160
  };
161
161
 
162
+ const DEFAULT_CHECKSUM_ALGORITHM = 'crc-32';
163
+
162
164
  const createFolderHandler = (input) => {
163
165
  const { config, data, options } = input;
164
166
  const { accountId, credentials, customEndpoint } = config;
@@ -178,6 +180,7 @@ const createFolderHandler = (input) => {
178
180
  onProgress(data, getProgress(event));
179
181
  },
180
182
  preventOverwrite,
183
+ checksumAlgorithm: DEFAULT_CHECKSUM_ALGORITHM,
181
184
  },
182
185
  });
183
186
  return {
@@ -348,7 +351,6 @@ const isFileTooBig = (file) => file.size > UPLOAD_FILE_SIZE_LIMIT;
348
351
  // 5MB for multipart upload
349
352
  // https://github.com/aws-amplify/amplify-js/blob/1a5366d113c9af4ce994168653df3aadb142c581/packages/storage/src/providers/s3/utils/constants.ts#L16
350
353
  const MULTIPART_UPLOAD_THRESHOLD_BYTES = 5 * 1024 * 1024;
351
- const DEFAULT_CHECKSUM_ALGORITHM = 'crc-32';
352
354
  const UNDEFINED_CALLBACKS = {
353
355
  cancel: undefined,
354
356
  pause: undefined,
@@ -0,0 +1,3 @@
1
+ const DEFAULT_CHECKSUM_ALGORITHM = 'crc-32';
2
+
3
+ export { DEFAULT_CHECKSUM_ALGORITHM };
@@ -1,6 +1,7 @@
1
1
  import { isFunction } from '@aws-amplify/ui';
2
2
  import { uploadData } from '@aws-amplify/storage/internals';
3
3
  import { getProgress, constructBucket } from './utils.mjs';
4
+ import { DEFAULT_CHECKSUM_ALGORITHM } from './constants.mjs';
4
5
 
5
6
  const createFolderHandler = (input) => {
6
7
  const { config, data, options } = input;
@@ -21,6 +22,7 @@ const createFolderHandler = (input) => {
21
22
  onProgress(data, getProgress(event));
22
23
  },
23
24
  preventOverwrite,
25
+ checksumAlgorithm: DEFAULT_CHECKSUM_ALGORITHM,
24
26
  },
25
27
  });
26
28
  return {
@@ -2,11 +2,11 @@ import { isCancelError } from 'aws-amplify/storage';
2
2
  import { isFunction } from '@aws-amplify/ui';
3
3
  import { uploadData } from '@aws-amplify/storage/internals';
4
4
  import { constructBucket, getProgress } from './utils.mjs';
5
+ import { DEFAULT_CHECKSUM_ALGORITHM } from './constants.mjs';
5
6
 
6
7
  // 5MB for multipart upload
7
8
  // https://github.com/aws-amplify/amplify-js/blob/1a5366d113c9af4ce994168653df3aadb142c581/packages/storage/src/providers/s3/utils/constants.ts#L16
8
9
  const MULTIPART_UPLOAD_THRESHOLD_BYTES = 5 * 1024 * 1024;
9
- const DEFAULT_CHECKSUM_ALGORITHM = 'crc-32';
10
10
  const UNDEFINED_CALLBACKS = {
11
11
  cancel: undefined,
12
12
  pause: undefined,
@@ -55,4 +55,4 @@ const uploadHandler = ({ config, data, options }) => {
55
55
  };
56
56
  };
57
57
 
58
- export { DEFAULT_CHECKSUM_ALGORITHM, MULTIPART_UPLOAD_THRESHOLD_BYTES, UNDEFINED_CALLBACKS, uploadHandler };
58
+ export { MULTIPART_UPLOAD_THRESHOLD_BYTES, UNDEFINED_CALLBACKS, uploadHandler };
@@ -1,3 +1,3 @@
1
- const VERSION = '3.7.0';
1
+ const VERSION = '3.7.1';
2
2
 
3
3
  export { VERSION };
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ var uiReactCore = require('@aws-amplify/ui-react-core');
9
9
  var auth = require('aws-amplify/auth');
10
10
  var storage = require('aws-amplify/storage');
11
11
  var internal = require('@aws-amplify/ui-react/internal');
12
- var createAmplifyAuthAdapter = require('./createAmplifyAuthAdapter-C4RcR9wH.js');
12
+ var createAmplifyAuthAdapter = require('./createAmplifyAuthAdapter-D6MKiBgI.js');
13
13
  require('@aws-amplify/storage/internals');
14
14
  require('@aws-amplify/ui-react-core/elements');
15
15
  require('aws-amplify');
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_CHECKSUM_ALGORITHM = "crc-32";
@@ -16,7 +16,6 @@ export interface UploadHandlerOutput extends TaskHandlerOutput<{
16
16
  export interface UploadHandler extends TaskHandler<UploadHandlerInput, UploadHandlerOutput> {
17
17
  }
18
18
  export declare const MULTIPART_UPLOAD_THRESHOLD_BYTES: number;
19
- export declare const DEFAULT_CHECKSUM_ALGORITHM = "crc-32";
20
19
  export declare const UNDEFINED_CALLBACKS: {
21
20
  cancel: undefined;
22
21
  pause: undefined;
@@ -1 +1 @@
1
- export declare const VERSION = "3.7.0";
1
+ export declare const VERSION = "3.7.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui-react-storage",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -47,9 +47,9 @@
47
47
  "typecheck": "tsc --noEmit"
48
48
  },
49
49
  "dependencies": {
50
- "@aws-amplify/ui": "6.8.0",
51
- "@aws-amplify/ui-react": "6.9.0",
52
- "@aws-amplify/ui-react-core": "3.3.0",
50
+ "@aws-amplify/ui": "6.8.1",
51
+ "@aws-amplify/ui-react": "6.9.1",
52
+ "@aws-amplify/ui-react-core": "3.3.1",
53
53
  "tslib": "^2.5.2"
54
54
  },
55
55
  "peerDependencies": {