@aws-amplify/storage 6.8.4 → 6.8.5-local-stack.00864ae.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/dist/cjs/errors/types/validation.js +1 -1
- package/dist/cjs/errors/types/validation.js.map +1 -1
- package/dist/cjs/errors/utils/assertValidationError.js +1 -2
- package/dist/cjs/errors/utils/assertValidationError.js.map +1 -1
- package/dist/cjs/internals/apis/list.js +1 -2
- package/dist/cjs/internals/apis/list.js.map +1 -1
- package/dist/cjs/providers/s3/apis/copy.js +1 -2
- package/dist/cjs/providers/s3/apis/copy.js.map +1 -1
- package/dist/cjs/providers/s3/apis/downloadData.js +1 -2
- package/dist/cjs/providers/s3/apis/downloadData.js.map +1 -1
- package/dist/cjs/providers/s3/apis/getProperties.js +1 -2
- package/dist/cjs/providers/s3/apis/getProperties.js.map +1 -1
- package/dist/cjs/providers/s3/apis/getUrl.js +1 -2
- package/dist/cjs/providers/s3/apis/getUrl.js.map +1 -1
- package/dist/cjs/providers/s3/apis/internal/copy.js +1 -1
- package/dist/cjs/providers/s3/apis/internal/copy.js.map +1 -1
- package/dist/cjs/providers/s3/apis/internal/uploadData/multipart/uploadCache.js +1 -1
- package/dist/cjs/providers/s3/apis/internal/uploadData/multipart/uploadCache.js.map +1 -1
- package/dist/cjs/providers/s3/apis/list.js +1 -2
- package/dist/cjs/providers/s3/apis/list.js.map +1 -1
- package/dist/cjs/providers/s3/apis/remove.js +1 -2
- package/dist/cjs/providers/s3/apis/remove.js.map +1 -1
- package/dist/cjs/providers/s3/apis/server/copy.js +1 -2
- package/dist/cjs/providers/s3/apis/server/copy.js.map +1 -1
- package/dist/cjs/providers/s3/apis/server/getProperties.js +1 -2
- package/dist/cjs/providers/s3/apis/server/getProperties.js.map +1 -1
- package/dist/cjs/providers/s3/apis/server/getUrl.js +1 -2
- package/dist/cjs/providers/s3/apis/server/getUrl.js.map +1 -1
- package/dist/cjs/providers/s3/apis/server/list.js +1 -2
- package/dist/cjs/providers/s3/apis/server/list.js.map +1 -1
- package/dist/cjs/providers/s3/apis/server/remove.js +1 -2
- package/dist/cjs/providers/s3/apis/server/remove.js.map +1 -1
- package/dist/cjs/providers/s3/apis/uploadData.js +1 -2
- package/dist/cjs/providers/s3/apis/uploadData.js.map +1 -1
- package/dist/cjs/providers/s3/utils/client/runtime/base64/index.browser.js +1 -2
- package/dist/cjs/providers/s3/utils/client/runtime/base64/index.browser.js.map +1 -1
- package/dist/cjs/providers/s3/utils/client/runtime/base64/index.native.js +1 -2
- package/dist/cjs/providers/s3/utils/client/runtime/base64/index.native.js.map +1 -1
- package/dist/cjs/providers/s3/utils/client/utils/serializeHelpers.js +2 -2
- package/dist/cjs/providers/s3/utils/client/utils/serializeHelpers.js.map +1 -1
- package/dist/cjs/providers/s3/utils/userAgent.js +1 -2
- package/dist/cjs/providers/s3/utils/userAgent.js.map +1 -1
- package/dist/cjs/providers/s3/utils/validateMultipartUploadXML.js +1 -2
- package/dist/cjs/providers/s3/utils/validateMultipartUploadXML.js.map +1 -1
- package/dist/cjs/providers/s3/utils/validateObjectUrl.js +1 -2
- package/dist/cjs/providers/s3/utils/validateObjectUrl.js.map +1 -1
- package/dist/esm/internals/apis/copy.d.ts +2 -1
- package/dist/esm/internals/apis/getUrl.d.ts +2 -1
- package/dist/esm/internals/apis/listPaths/resolveLocationsForCurrentSession.d.ts +2 -2
- package/dist/esm/internals/apis/uploadData.d.ts +2 -1
- package/dist/esm/providers/s3/apis/internal/copy.mjs +1 -1
- package/dist/esm/providers/s3/apis/internal/copy.mjs.map +1 -1
- package/dist/esm/providers/s3/apis/internal/downloadData.d.ts +1 -1
- package/dist/esm/providers/s3/apis/internal/uploadData/multipart/uploadCache.d.ts +2 -2
- package/dist/esm/providers/s3/apis/internal/uploadData/multipart/uploadCache.mjs +1 -1
- package/dist/esm/providers/s3/apis/internal/uploadData/multipart/uploadCache.mjs.map +1 -1
- package/dist/esm/providers/s3/utils/client/s3control/getDataAccess.d.ts +2 -2
- package/dist/esm/providers/s3/utils/client/s3control/listCallerAccessGrants.d.ts +2 -2
- package/dist/esm/providers/s3/utils/client/s3data/abortMultipartUpload.d.ts +4 -4
- package/dist/esm/providers/s3/utils/client/s3data/completeMultipartUpload.d.ts +4 -4
- package/dist/esm/providers/s3/utils/client/s3data/copyObject.d.ts +4 -4
- package/dist/esm/providers/s3/utils/client/s3data/createMultipartUpload.d.ts +4 -4
- package/dist/esm/providers/s3/utils/client/s3data/deleteObject.d.ts +4 -4
- package/dist/esm/providers/s3/utils/client/s3data/getObject.d.ts +4 -4
- package/dist/esm/providers/s3/utils/client/s3data/headObject.d.ts +4 -4
- package/dist/esm/providers/s3/utils/client/s3data/listObjectsV2.d.ts +4 -4
- package/dist/esm/providers/s3/utils/client/s3data/listParts.d.ts +4 -4
- package/dist/esm/providers/s3/utils/client/s3data/putObject.d.ts +4 -4
- package/dist/esm/providers/s3/utils/client/s3data/uploadPart.d.ts +4 -4
- package/dist/esm/providers/s3/utils/client/utils/deserializeHelpers.d.ts +1 -1
- package/dist/esm/providers/s3/utils/client/utils/integrityHelpers.d.ts +2 -2
- package/dist/esm/providers/s3/utils/client/utils/parsePayload.d.ts +1 -1
- package/dist/esm/providers/s3/utils/hexUtils.d.ts +2 -2
- package/package.json +117 -118
|
@@ -6,17 +6,17 @@ export declare const putObject: (config: {
|
|
|
6
6
|
responseType?: "blob" | "text" | undefined;
|
|
7
7
|
service?: string | undefined;
|
|
8
8
|
endpointResolver?: (((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions, input?: any) => Endpoint) & ((options: import("./base").S3EndpointResolverOptions, apiInput?: {
|
|
9
|
-
Bucket?: string
|
|
10
|
-
}
|
|
9
|
+
Bucket?: string;
|
|
10
|
+
}) => {
|
|
11
11
|
url: URL;
|
|
12
12
|
})) | undefined;
|
|
13
|
-
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
13
|
+
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & import("../utils/createRetryDecider").RetryDecider) | undefined;
|
|
14
14
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
15
15
|
userAgentValue?: string | undefined;
|
|
16
16
|
useAccelerateEndpoint?: boolean | undefined;
|
|
17
17
|
uriEscapePath?: boolean | undefined;
|
|
18
18
|
} & {
|
|
19
|
-
credentials: import("@aws-amplify/core/internals/aws-client-utils").Credentials | ((options?: import("@aws-amplify/core/internals/aws-client-utils").CredentialsProviderOptions
|
|
19
|
+
credentials: import("@aws-amplify/core/internals/aws-client-utils").Credentials | ((options?: import("@aws-amplify/core/internals/aws-client-utils").CredentialsProviderOptions) => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
|
|
20
20
|
region: string;
|
|
21
21
|
onDownloadProgress?: ((event: import("../../../../..").TransferProgressEvent) => void) | undefined;
|
|
22
22
|
onUploadProgress?: ((event: import("../../../../..").TransferProgressEvent) => void) | undefined;
|
|
@@ -6,17 +6,17 @@ export declare const uploadPart: (config: {
|
|
|
6
6
|
responseType?: "blob" | "text" | undefined;
|
|
7
7
|
service?: string | undefined;
|
|
8
8
|
endpointResolver?: (((options: import("@aws-amplify/core/internals/aws-client-utils").EndpointResolverOptions, input?: any) => Endpoint) & ((options: import("./base").S3EndpointResolverOptions, apiInput?: {
|
|
9
|
-
Bucket?: string
|
|
10
|
-
}
|
|
9
|
+
Bucket?: string;
|
|
10
|
+
}) => {
|
|
11
11
|
url: URL;
|
|
12
12
|
})) | undefined;
|
|
13
|
-
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext
|
|
13
|
+
retryDecider?: (((response?: HttpResponse | undefined, error?: unknown, middlewareContext?: import("@aws-amplify/core/internals/aws-client-utils").MiddlewareContext) => Promise<import("@aws-amplify/core/internals/aws-client-utils").RetryDeciderOutput>) & import("../utils/createRetryDecider").RetryDecider) | undefined;
|
|
14
14
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
15
15
|
userAgentValue?: string | undefined;
|
|
16
16
|
useAccelerateEndpoint?: boolean | undefined;
|
|
17
17
|
uriEscapePath?: boolean | undefined;
|
|
18
18
|
} & {
|
|
19
|
-
credentials: import("@aws-amplify/core/internals/aws-client-utils").Credentials | ((options?: import("@aws-amplify/core/internals/aws-client-utils").CredentialsProviderOptions
|
|
19
|
+
credentials: import("@aws-amplify/core/internals/aws-client-utils").Credentials | ((options?: import("@aws-amplify/core/internals/aws-client-utils").CredentialsProviderOptions) => Promise<import("@aws-amplify/core/internals/aws-client-utils").Credentials>);
|
|
20
20
|
region: string;
|
|
21
21
|
onDownloadProgress?: ((event: import("../../../../..").TransferProgressEvent) => void) | undefined;
|
|
22
22
|
onUploadProgress?: ((event: import("../../../../..").TransferProgressEvent) => void) | undefined;
|
|
@@ -37,7 +37,7 @@ type InferInstructionResultType<T extends Instruction<any>> = (T extends Propert
|
|
|
37
37
|
*
|
|
38
38
|
* @internal
|
|
39
39
|
*/
|
|
40
|
-
export declare const map: <Instructions extends Record<string, Instruction<any>>>(obj: Record<string, any>, instructions: Instructions) => { [K in keyof Instructions]: Instructions[K]
|
|
40
|
+
export declare const map: <Instructions extends Record<string, Instruction<any>>>(obj: Record<string, any>, instructions: Instructions) => { [K in keyof Instructions]: InferInstructionResultType<Instructions[K]>; };
|
|
41
41
|
/**
|
|
42
42
|
* Deserializes a string to a number. Returns undefined if input is undefined.
|
|
43
43
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const isNil: <T>(value?: T
|
|
1
|
+
export declare const isNil: <T>(value?: T) => boolean;
|
|
2
2
|
export declare const bothNilOrEqual: (original?: string, output?: string) => boolean;
|
|
3
3
|
/**
|
|
4
4
|
* This function is used to determine if a value is an object.
|
|
@@ -7,7 +7,7 @@ export declare const bothNilOrEqual: (original?: string, output?: string) => boo
|
|
|
7
7
|
* @param value
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
export declare const isObject: <T>(value?: T
|
|
10
|
+
export declare const isObject: <T>(value?: T) => boolean;
|
|
11
11
|
/**
|
|
12
12
|
* This function is used to compare two objects and determine if they are equal.
|
|
13
13
|
* It handles nested objects and arrays as well.
|
|
@@ -13,6 +13,6 @@ import { ErrorParser, HttpResponse } from '@aws-amplify/core/internals/aws-clien
|
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
15
15
|
export declare const createXmlErrorParser: ({ noErrorWrapping, }?: {
|
|
16
|
-
noErrorWrapping?: boolean
|
|
16
|
+
noErrorWrapping?: boolean;
|
|
17
17
|
}) => ErrorParser;
|
|
18
18
|
export declare const parseXmlBody: (response: HttpResponse) => Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const hexToUint8Array: (hexString: string) => Uint8Array
|
|
2
|
-
export declare const hexToArrayBuffer: (hexString: string) =>
|
|
1
|
+
export declare const hexToUint8Array: (hexString: string) => Uint8Array<ArrayBuffer>;
|
|
2
|
+
export declare const hexToArrayBuffer: (hexString: string) => ArrayBuffer;
|
|
3
3
|
export declare const hexToBase64: (hexString: string) => string;
|
package/package.json
CHANGED
|
@@ -1,120 +1,119 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"gitHead": "f2ac9929610f7f878f124083ceaf03465113cd44"
|
|
2
|
+
"name": "@aws-amplify/storage",
|
|
3
|
+
"version": "6.8.5-local-stack.00864ae.0+00864ae",
|
|
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 --logHeapUsage",
|
|
26
|
+
"build-with-test": "npm test && npm run build",
|
|
27
|
+
"build:umd": "webpack && webpack --config ./webpack.config.dev.js",
|
|
28
|
+
"build:esm-cjs": "rollup --forceExit -c rollup.config.mjs",
|
|
29
|
+
"build:watch": "npm run build:esm-cjs -- --watch",
|
|
30
|
+
"build": "npm run clean && npm run build:esm-cjs && npm run build:umd",
|
|
31
|
+
"clean": "npm run clean:size && rimraf lib-esm lib dist",
|
|
32
|
+
"clean:size": "rimraf dual-publish-tmp tmp*",
|
|
33
|
+
"format": "echo \"Not implemented\"",
|
|
34
|
+
"lint": "eslint '**/*.{ts,tsx}' && npm run ts-coverage",
|
|
35
|
+
"lint:fix": "eslint '**/*.{ts,tsx}' --fix",
|
|
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
|
+
"internals": [
|
|
44
|
+
"./dist/esm/internals/index.d.ts"
|
|
45
|
+
],
|
|
46
|
+
"server": [
|
|
47
|
+
"./dist/esm/server.d.ts"
|
|
48
|
+
],
|
|
49
|
+
"s3/server": [
|
|
50
|
+
"./dist/esm/providers/s3/server.d.ts"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "https://github.com/aws-amplify/amplify-js.git"
|
|
57
|
+
},
|
|
58
|
+
"author": "Amazon Web Services",
|
|
59
|
+
"license": "Apache-2.0",
|
|
60
|
+
"bugs": {
|
|
61
|
+
"url": "https://github.com/aws/aws-amplify/issues"
|
|
62
|
+
},
|
|
63
|
+
"homepage": "https://aws-amplify.github.io/",
|
|
64
|
+
"files": [
|
|
65
|
+
"dist/cjs",
|
|
66
|
+
"dist/esm",
|
|
67
|
+
"internals",
|
|
68
|
+
"src",
|
|
69
|
+
"server",
|
|
70
|
+
"s3"
|
|
71
|
+
],
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@aws-sdk/types": "3.398.0",
|
|
74
|
+
"@smithy/md5-js": "2.0.7",
|
|
75
|
+
"buffer": "4.9.2",
|
|
76
|
+
"crc-32": "1.2.2",
|
|
77
|
+
"fast-xml-parser": "^4.4.1",
|
|
78
|
+
"tslib": "^2.5.0"
|
|
79
|
+
},
|
|
80
|
+
"exports": {
|
|
81
|
+
".": {
|
|
82
|
+
"react-native": "./dist/cjs/index.js",
|
|
83
|
+
"types": "./dist/esm/index.d.ts",
|
|
84
|
+
"import": "./dist/esm/index.mjs",
|
|
85
|
+
"require": "./dist/cjs/index.js"
|
|
86
|
+
},
|
|
87
|
+
"./internals": {
|
|
88
|
+
"types": "./dist/esm/internals/index.d.ts",
|
|
89
|
+
"import": "./dist/esm/internals/index.mjs",
|
|
90
|
+
"require": "./dist/cjs/internals/index.js"
|
|
91
|
+
},
|
|
92
|
+
"./server": {
|
|
93
|
+
"types": "./dist/esm/server.d.ts",
|
|
94
|
+
"import": "./dist/esm/server.mjs",
|
|
95
|
+
"require": "./dist/cjs/server.js"
|
|
96
|
+
},
|
|
97
|
+
"./s3": {
|
|
98
|
+
"react-native": "./dist/cjs/providers/s3/index.js",
|
|
99
|
+
"types": "./dist/esm/providers/s3/index.d.ts",
|
|
100
|
+
"import": "./dist/esm/providers/s3/index.mjs",
|
|
101
|
+
"require": "./dist/cjs/providers/s3/index.js"
|
|
102
|
+
},
|
|
103
|
+
"./s3/server": {
|
|
104
|
+
"types": "./dist/esm/providers/s3/server.d.ts",
|
|
105
|
+
"import": "./dist/esm/providers/s3/server.mjs",
|
|
106
|
+
"require": "./dist/cjs/providers/s3/server.js"
|
|
107
|
+
},
|
|
108
|
+
"./package.json": "./package.json"
|
|
109
|
+
},
|
|
110
|
+
"peerDependencies": {
|
|
111
|
+
"@aws-amplify/core": "6.11.5-local-stack.00864ae.0+00864ae"
|
|
112
|
+
},
|
|
113
|
+
"devDependencies": {
|
|
114
|
+
"@aws-amplify/core": "6.11.5-local-stack.00864ae.0+00864ae",
|
|
115
|
+
"@aws-amplify/react-native": "1.1.10-local-stack.00864ae.0+00864ae",
|
|
116
|
+
"@types/node": "20.14.12"
|
|
117
|
+
},
|
|
118
|
+
"gitHead": "00864aec571d0509655eea0673e896d69d434972"
|
|
120
119
|
}
|