@aws-amplify/storage 6.0.3 → 6.0.4-unstable.4d80239.0

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/package.json CHANGED
@@ -1,165 +1,165 @@
1
1
  {
2
- "name": "@aws-amplify/storage",
3
- "version": "6.0.3",
4
- "description": "Storage category of aws-amplify",
5
- "main": "./dist/cjs/index.js",
6
- "module": "./dist/esm/index.mjs",
7
- "react-native": {
8
- "./dist/cjs/index": "./src/index.ts",
9
- "fast-xml-parser": "fast-xml-parser",
10
- "buffer": "buffer"
11
- },
12
- "typings": "./dist/esm/index.d.ts",
13
- "browser": {
14
- "./dist/esm/providers/s3/utils/client/runtime/base64/index.native.mjs": "./dist/esm/providers/s3/utils/client/runtime/base64/index.browser.mjs",
15
- "./dist/esm/providers/s3/utils/client/runtime/s3TransferHandler/fetch.mjs": "./dist/esm/providers/s3/utils/client/runtime/s3TransferHandler/xhr.mjs",
16
- "./dist/esm/providers/s3/utils/client/runtime/xmlParser/pureJs.mjs": "./dist/esm/providers/s3/utils/client/runtime/xmlParser/dom.mjs",
17
- "fast-xml-parser": false,
18
- "buffer": false
19
- },
20
- "sideEffects": false,
21
- "publishConfig": {
22
- "access": "public"
23
- },
24
- "scripts": {
25
- "test": "npm run lint && jest -w 1 --coverage",
26
- "build-with-test": "npm test && npm run build",
27
- "build:umd": "webpack && webpack --config ./webpack.config.dev.js",
28
- "build:esm-cjs": "rollup -c rollup.config.mjs",
29
- "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch",
30
- "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch",
31
- "build": "npm run clean && npm run build:esm-cjs && npm run build:umd",
32
- "clean": "npm run clean:size && rimraf lib-esm lib dist",
33
- "clean:size": "rimraf dual-publish-tmp tmp*",
34
- "format": "echo \"Not implemented\"",
35
- "lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
36
- "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 90.31"
37
- },
38
- "typesVersions": {
39
- ">=4.2": {
40
- "s3": [
41
- "./dist/esm/providers/s3/index.d.ts"
42
- ],
43
- "server": [
44
- "./dist/esm/server.d.ts"
45
- ],
46
- "s3/server": [
47
- "./dist/esm/providers/s3/server.d.ts"
48
- ]
49
- }
50
- },
51
- "repository": {
52
- "type": "git",
53
- "url": "https://github.com/aws-amplify/amplify-js.git"
54
- },
55
- "author": "Amazon Web Services",
56
- "license": "Apache-2.0",
57
- "bugs": {
58
- "url": "https://github.com/aws/aws-amplify/issues"
59
- },
60
- "homepage": "https://aws-amplify.github.io/",
61
- "files": [
62
- "dist/cjs",
63
- "dist/esm",
64
- "src",
65
- "server",
66
- "s3"
67
- ],
68
- "dependencies": {
69
- "@aws-sdk/types": "3.398.0",
70
- "@smithy/md5-js": "2.0.7",
71
- "buffer": "4.9.2",
72
- "fast-xml-parser": "^4.2.5",
73
- "tslib": "^2.5.0"
74
- },
75
- "exports": {
76
- ".": {
77
- "types": "./dist/esm/index.d.ts",
78
- "import": "./dist/esm/index.mjs",
79
- "require": "./dist/cjs/index.js",
80
- "react-native": "./src/index.ts"
81
- },
82
- "./server": {
83
- "types": "./dist/esm/server.d.ts",
84
- "import": "./dist/esm/server.mjs",
85
- "require": "./dist/cjs/server.js"
86
- },
87
- "./s3": {
88
- "types": "./dist/esm/providers/s3/index.d.ts",
89
- "import": "./dist/esm/providers/s3/index.mjs",
90
- "require": "./dist/cjs/providers/s3/index.js",
91
- "react-native": "./src/providers/s3/index.ts"
92
- },
93
- "./s3/server": {
94
- "types": "./dist/esm/providers/s3/server.d.ts",
95
- "import": "./dist/esm/providers/s3/server.mjs",
96
- "require": "./dist/cjs/providers/s3/server.js"
97
- },
98
- "./package.json": "./package.json"
99
- },
100
- "peerDependencies": {
101
- "@aws-amplify/core": "^6.0.0"
102
- },
103
- "devDependencies": {
104
- "@aws-amplify/core": "6.0.3",
105
- "@aws-amplify/react-native": "1.0.3",
106
- "@rollup/plugin-json": "6.0.1",
107
- "@rollup/plugin-typescript": "11.1.5",
108
- "rollup": "3.29.4",
109
- "typescript": "5.0.2"
110
- },
111
- "jest": {
112
- "globals": {
113
- "ts-jest": {
114
- "diagnostics": {
115
- "pathRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$"
116
- },
117
- "tsConfig": {
118
- "downlevelIteration": true,
119
- "allowJs": true,
120
- "types": [
121
- "@types/jest"
122
- ],
123
- "outDir": "./tsconfig.json",
124
- "noEmitOnError": false,
125
- "noImplicitAny": false,
126
- "skipLibCheck": true
127
- }
128
- }
129
- },
130
- "transform": {
131
- "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
132
- },
133
- "testRegex": "(/__tests__/.*|\\.test|spec)\\.(tsx?|jsx?)$",
134
- "testPathIgnorePatterns": [
135
- "xmlParser-fixture.ts",
136
- "testUtils",
137
- "cases"
138
- ],
139
- "modulePathIgnorePatterns": [
140
- "dist"
141
- ],
142
- "moduleFileExtensions": [
143
- "ts",
144
- "tsx",
145
- "js",
146
- "json",
147
- "jsx"
148
- ],
149
- "testEnvironment": "jsdom",
150
- "testURL": "http://localhost/",
151
- "coverageThreshold": {
152
- "global": {
153
- "branches": 0,
154
- "functions": 0,
155
- "lines": 0,
156
- "statements": 0
157
- }
158
- },
159
- "coveragePathIgnorePatterns": [
160
- "/node_modules/",
161
- "dist"
162
- ]
163
- },
164
- "gitHead": "eee3310b3cba27ca5f10e2f8c4317603dde174f3"
2
+ "name": "@aws-amplify/storage",
3
+ "version": "6.0.4-unstable.4d80239.0+4d80239",
4
+ "description": "Storage category of aws-amplify",
5
+ "main": "./dist/cjs/index.js",
6
+ "module": "./dist/esm/index.mjs",
7
+ "react-native": {
8
+ "./dist/cjs/index": "./src/index.ts",
9
+ "fast-xml-parser": "fast-xml-parser",
10
+ "buffer": "buffer"
11
+ },
12
+ "typings": "./dist/esm/index.d.ts",
13
+ "browser": {
14
+ "./dist/esm/providers/s3/utils/client/runtime/base64/index.native.mjs": "./dist/esm/providers/s3/utils/client/runtime/base64/index.browser.mjs",
15
+ "./dist/esm/providers/s3/utils/client/runtime/s3TransferHandler/fetch.mjs": "./dist/esm/providers/s3/utils/client/runtime/s3TransferHandler/xhr.mjs",
16
+ "./dist/esm/providers/s3/utils/client/runtime/xmlParser/pureJs.mjs": "./dist/esm/providers/s3/utils/client/runtime/xmlParser/dom.mjs",
17
+ "fast-xml-parser": false,
18
+ "buffer": false
19
+ },
20
+ "sideEffects": false,
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "scripts": {
25
+ "test": "npm run lint && jest -w 1 --coverage",
26
+ "build-with-test": "npm test && npm run build",
27
+ "build:umd": "webpack && webpack --config ./webpack.config.dev.js",
28
+ "build:esm-cjs": "rollup -c rollup.config.mjs",
29
+ "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch",
30
+ "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch",
31
+ "build": "npm run clean && npm run build:esm-cjs && npm run build:umd",
32
+ "clean": "npm run clean:size && rimraf lib-esm lib dist",
33
+ "clean:size": "rimraf dual-publish-tmp tmp*",
34
+ "format": "echo \"Not implemented\"",
35
+ "lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
36
+ "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 90.31"
37
+ },
38
+ "typesVersions": {
39
+ ">=4.2": {
40
+ "s3": [
41
+ "./dist/esm/providers/s3/index.d.ts"
42
+ ],
43
+ "server": [
44
+ "./dist/esm/server.d.ts"
45
+ ],
46
+ "s3/server": [
47
+ "./dist/esm/providers/s3/server.d.ts"
48
+ ]
49
+ }
50
+ },
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "https://github.com/aws-amplify/amplify-js.git"
54
+ },
55
+ "author": "Amazon Web Services",
56
+ "license": "Apache-2.0",
57
+ "bugs": {
58
+ "url": "https://github.com/aws/aws-amplify/issues"
59
+ },
60
+ "homepage": "https://aws-amplify.github.io/",
61
+ "files": [
62
+ "dist/cjs",
63
+ "dist/esm",
64
+ "src",
65
+ "server",
66
+ "s3"
67
+ ],
68
+ "dependencies": {
69
+ "@aws-sdk/types": "3.398.0",
70
+ "@smithy/md5-js": "2.0.7",
71
+ "buffer": "4.9.2",
72
+ "fast-xml-parser": "^4.2.5",
73
+ "tslib": "^2.5.0"
74
+ },
75
+ "exports": {
76
+ ".": {
77
+ "types": "./dist/esm/index.d.ts",
78
+ "import": "./dist/esm/index.mjs",
79
+ "require": "./dist/cjs/index.js",
80
+ "react-native": "./src/index.ts"
81
+ },
82
+ "./server": {
83
+ "types": "./dist/esm/server.d.ts",
84
+ "import": "./dist/esm/server.mjs",
85
+ "require": "./dist/cjs/server.js"
86
+ },
87
+ "./s3": {
88
+ "types": "./dist/esm/providers/s3/index.d.ts",
89
+ "import": "./dist/esm/providers/s3/index.mjs",
90
+ "require": "./dist/cjs/providers/s3/index.js",
91
+ "react-native": "./src/providers/s3/index.ts"
92
+ },
93
+ "./s3/server": {
94
+ "types": "./dist/esm/providers/s3/server.d.ts",
95
+ "import": "./dist/esm/providers/s3/server.mjs",
96
+ "require": "./dist/cjs/providers/s3/server.js"
97
+ },
98
+ "./package.json": "./package.json"
99
+ },
100
+ "peerDependencies": {
101
+ "@aws-amplify/core": "6.0.4-unstable.4d80239.0+4d80239"
102
+ },
103
+ "devDependencies": {
104
+ "@aws-amplify/core": "6.0.4-unstable.4d80239.0+4d80239",
105
+ "@aws-amplify/react-native": "1.0.4-unstable.4d80239.0+4d80239",
106
+ "@rollup/plugin-json": "6.0.1",
107
+ "@rollup/plugin-typescript": "11.1.5",
108
+ "rollup": "3.29.4",
109
+ "typescript": "5.0.2"
110
+ },
111
+ "jest": {
112
+ "globals": {
113
+ "ts-jest": {
114
+ "diagnostics": {
115
+ "pathRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$"
116
+ },
117
+ "tsConfig": {
118
+ "downlevelIteration": true,
119
+ "allowJs": true,
120
+ "types": [
121
+ "@types/jest"
122
+ ],
123
+ "outDir": "./tsconfig.json",
124
+ "noEmitOnError": false,
125
+ "noImplicitAny": false,
126
+ "skipLibCheck": true
127
+ }
128
+ }
129
+ },
130
+ "transform": {
131
+ "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
132
+ },
133
+ "testRegex": "(/__tests__/.*|\\.test|spec)\\.(tsx?|jsx?)$",
134
+ "testPathIgnorePatterns": [
135
+ "xmlParser-fixture.ts",
136
+ "testUtils",
137
+ "cases"
138
+ ],
139
+ "modulePathIgnorePatterns": [
140
+ "dist"
141
+ ],
142
+ "moduleFileExtensions": [
143
+ "ts",
144
+ "tsx",
145
+ "js",
146
+ "json",
147
+ "jsx"
148
+ ],
149
+ "testEnvironment": "jsdom",
150
+ "testURL": "http://localhost/",
151
+ "coverageThreshold": {
152
+ "global": {
153
+ "branches": 0,
154
+ "functions": 0,
155
+ "lines": 0,
156
+ "statements": 0
157
+ }
158
+ },
159
+ "coveragePathIgnorePatterns": [
160
+ "/node_modules/",
161
+ "dist"
162
+ ]
163
+ },
164
+ "gitHead": "4d802390635cd931e23091007d42559ec13031e9"
165
165
  }
@@ -18,8 +18,8 @@ export const parseXmlError: ErrorParser = async (response?: HttpResponse) => {
18
18
  const code = body?.['Code']
19
19
  ? (body.Code as string)
20
20
  : statusCode === 404
21
- ? 'NotFound'
22
- : statusCode.toString();
21
+ ? 'NotFound'
22
+ : statusCode.toString();
23
23
  const message = body?.['message'] ?? body?.['Message'] ?? code;
24
24
  const error = new Error(message);
25
25
  return Object.assign(error, {
@@ -21,7 +21,7 @@ export type StorageRemoveInput<Options extends StorageOptions> = {
21
21
  };
22
22
 
23
23
  export type StorageListInput<
24
- Options extends StorageListAllOptions | StorageListPaginateOptions
24
+ Options extends StorageListAllOptions | StorageListPaginateOptions,
25
25
  > = {
26
26
  prefix?: string;
27
27
  options?: Options;
@@ -40,7 +40,7 @@ export type StorageUploadDataInput<Options extends StorageOptions> =
40
40
 
41
41
  export type StorageCopyInput<
42
42
  SourceOptions extends StorageOptions,
43
- DestinationOptions extends StorageOptions
43
+ DestinationOptions extends StorageOptions,
44
44
  > = {
45
45
  source: SourceOptions;
46
46
  destination: DestinationOptions;