@webiny/aws-sdk 5.39.2 → 5.39.3-beta.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/client-eventbridge/index.d.ts +0 -1
- package/client-eventbridge/index.js +0 -19
- package/client-eventbridge/index.js.map +1 -1
- package/client-s3/index.d.ts +1 -1
- package/client-s3/index.js +12 -0
- package/client-s3/index.js.map +1 -1
- package/lib-storage/index.d.ts +1 -1
- package/lib-storage/index.js +30 -0
- package/lib-storage/index.js.map +1 -1
- package/package.json +5 -5
- package/client-eventbridge/types.d.ts +0 -29
- package/client-eventbridge/types.js +0 -7
- package/client-eventbridge/types.js.map +0 -1
|
@@ -3,13 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
EventBridgeClient: true,
|
|
8
|
-
PutEventsRequestEntry: true,
|
|
9
|
-
PutEventsCommand: true,
|
|
10
|
-
PutEventsCommandInput: true,
|
|
11
|
-
PutEventsCommandOutput: true
|
|
12
|
-
};
|
|
13
6
|
Object.defineProperty(exports, "EventBridgeClient", {
|
|
14
7
|
enumerable: true,
|
|
15
8
|
get: function get() {
|
|
@@ -41,17 +34,5 @@ Object.defineProperty(exports, "PutEventsRequestEntry", {
|
|
|
41
34
|
}
|
|
42
35
|
});
|
|
43
36
|
var _clientEventbridge = require("@aws-sdk/client-eventbridge");
|
|
44
|
-
var _types = require("./types");
|
|
45
|
-
Object.keys(_types).forEach(function (key) {
|
|
46
|
-
if (key === "default" || key === "__esModule") return;
|
|
47
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
48
|
-
if (key in exports && exports[key] === _types[key]) return;
|
|
49
|
-
Object.defineProperty(exports, key, {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function get() {
|
|
52
|
-
return _types[key];
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
37
|
|
|
57
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clientEventbridge","require"
|
|
1
|
+
{"version":3,"names":["_clientEventbridge","require"],"sources":["index.ts"],"sourcesContent":["export {\n EventBridgeClient,\n PutEventsRequestEntry,\n PutEventsCommand,\n PutEventsCommandInput,\n PutEventsCommandOutput\n} from \"@aws-sdk/client-eventbridge\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA"}
|
package/client-s3/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S3, S3ClientConfig } from "@aws-sdk/client-s3";
|
|
2
|
-
export { CompleteMultipartUploadCommandOutput, CompleteMultipartUploadOutput, DeleteObjectOutput, GetObjectCommand, GetObjectOutput, HeadObjectCommand, HeadObjectOutput, ListObjectsOutput, ListPartsCommand, ListPartsCommandOutput, ListPartsOutput, ObjectCannedACL, Part, PutObjectCommand, PutObjectCommandInput, PutObjectCommandOutput, PutObjectRequest, S3, S3Client, UploadPartCommand } from "@aws-sdk/client-s3";
|
|
2
|
+
export { CompleteMultipartUploadCommand, CompleteMultipartUploadCommandOutput, AbortMultipartUploadCommandOutput, CompleteMultipartUploadOutput, DeleteObjectOutput, GetObjectCommand, GetObjectOutput, HeadObjectCommand, HeadObjectOutput, ListObjectsOutput, ListPartsCommand, ListPartsCommandOutput, ListPartsOutput, ObjectCannedACL, Part, PutObjectCommand, PutObjectCommandInput, PutObjectCommandOutput, PutObjectRequest, S3, S3Client, UploadPartCommand } from "@aws-sdk/client-s3";
|
|
3
3
|
export { createPresignedPost } from "@aws-sdk/s3-presigned-post";
|
|
4
4
|
export { PresignedPost, PresignedPostOptions } from "@aws-sdk/s3-presigned-post";
|
|
5
5
|
export { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
package/client-s3/index.js
CHANGED
|
@@ -4,6 +4,18 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
+
Object.defineProperty(exports, "AbortMultipartUploadCommandOutput", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _clientS.AbortMultipartUploadCommandOutput;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "CompleteMultipartUploadCommand", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _clientS.CompleteMultipartUploadCommand;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
7
19
|
Object.defineProperty(exports, "CompleteMultipartUploadCommandOutput", {
|
|
8
20
|
enumerable: true,
|
|
9
21
|
get: function get() {
|
package/client-s3/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_clientS","require","_utils","_s3PresignedPost","_s3RequestPresigner","clients","Map","createS3Client","initial","options","_objectSpread2","default","region","process","env","AWS_REGION","key","createCacheKey","has","get","instance","S3","set","exports"],"sources":["index.ts"],"sourcesContent":["import { S3, S3ClientConfig } from \"@aws-sdk/client-s3\";\nimport { createCacheKey } from \"@webiny/utils\";\n\nexport {\n CompleteMultipartUploadCommandOutput,\n CompleteMultipartUploadOutput,\n DeleteObjectOutput,\n GetObjectCommand,\n GetObjectOutput,\n HeadObjectCommand,\n HeadObjectOutput,\n ListObjectsOutput,\n ListPartsCommand,\n ListPartsCommandOutput,\n ListPartsOutput,\n ObjectCannedACL,\n Part,\n PutObjectCommand,\n PutObjectCommandInput,\n PutObjectCommandOutput,\n PutObjectRequest,\n S3,\n S3Client,\n UploadPartCommand\n} from \"@aws-sdk/client-s3\";\n\nexport { createPresignedPost } from \"@aws-sdk/s3-presigned-post\";\nexport { PresignedPost, PresignedPostOptions } from \"@aws-sdk/s3-presigned-post\";\n\nexport { getSignedUrl } from \"@aws-sdk/s3-request-presigner\";\n\nconst clients = new Map<string, S3>();\n\nexport const createS3Client = (initial?: S3ClientConfig): S3 => {\n const options = {\n region: process.env.AWS_REGION,\n ...initial\n };\n const key = createCacheKey(options);\n if (clients.has(key)) {\n return clients.get(key) as S3;\n }\n\n const instance = new S3(options);\n clients.set(key, instance);\n return instance;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_clientS","require","_utils","_s3PresignedPost","_s3RequestPresigner","clients","Map","createS3Client","initial","options","_objectSpread2","default","region","process","env","AWS_REGION","key","createCacheKey","has","get","instance","S3","set","exports"],"sources":["index.ts"],"sourcesContent":["import { S3, S3ClientConfig } from \"@aws-sdk/client-s3\";\nimport { createCacheKey } from \"@webiny/utils\";\n\nexport {\n CompleteMultipartUploadCommand,\n CompleteMultipartUploadCommandOutput,\n AbortMultipartUploadCommandOutput,\n CompleteMultipartUploadOutput,\n DeleteObjectOutput,\n GetObjectCommand,\n GetObjectOutput,\n HeadObjectCommand,\n HeadObjectOutput,\n ListObjectsOutput,\n ListPartsCommand,\n ListPartsCommandOutput,\n ListPartsOutput,\n ObjectCannedACL,\n Part,\n PutObjectCommand,\n PutObjectCommandInput,\n PutObjectCommandOutput,\n PutObjectRequest,\n S3,\n S3Client,\n UploadPartCommand\n} from \"@aws-sdk/client-s3\";\n\nexport { createPresignedPost } from \"@aws-sdk/s3-presigned-post\";\nexport { PresignedPost, PresignedPostOptions } from \"@aws-sdk/s3-presigned-post\";\n\nexport { getSignedUrl } from \"@aws-sdk/s3-request-presigner\";\n\nconst clients = new Map<string, S3>();\n\nexport const createS3Client = (initial?: S3ClientConfig): S3 => {\n const options = {\n region: process.env.AWS_REGION,\n ...initial\n };\n const key = createCacheKey(options);\n if (clients.has(key)) {\n return clients.get(key) as S3;\n }\n\n const instance = new S3(options);\n clients.set(key, instance);\n return instance;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AA2BA,IAAAE,gBAAA,GAAAF,OAAA;AAGA,IAAAG,mBAAA,GAAAH,OAAA;AAEA,IAAMI,OAAO,GAAG,IAAIC,GAAG,CAAa,CAAC;AAE9B,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,OAAwB,EAAS;EAC5D,IAAMC,OAAO,OAAAC,cAAA,CAAAC,OAAA;IACTC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAACC;EAAU,GAC3BP,OAAO,CACb;EACD,IAAMQ,GAAG,GAAG,IAAAC,qBAAc,EAACR,OAAO,CAAC;EACnC,IAAIJ,OAAO,CAACa,GAAG,CAACF,GAAG,CAAC,EAAE;IAClB,OAAOX,OAAO,CAACc,GAAG,CAACH,GAAG,CAAC;EAC3B;EAEA,IAAMI,QAAQ,GAAG,IAAIC,WAAE,CAACZ,OAAO,CAAC;EAChCJ,OAAO,CAACiB,GAAG,CAACN,GAAG,EAAEI,QAAQ,CAAC;EAC1B,OAAOA,QAAQ;AACnB,CAAC;AAACG,OAAA,CAAAhB,cAAA,GAAAA,cAAA"}
|
package/lib-storage/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Upload } from "@aws-sdk/lib-storage";
|
|
1
|
+
export { Upload, Options, Progress, BodyDataTypes, RawDataPart, Configuration } from "@aws-sdk/lib-storage";
|
package/lib-storage/index.js
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "BodyDataTypes", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _libStorage.BodyDataTypes;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "Configuration", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _libStorage.Configuration;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "Options", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _libStorage.Options;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "Progress", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _libStorage.Progress;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "RawDataPart", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _libStorage.RawDataPart;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
6
36
|
Object.defineProperty(exports, "Upload", {
|
|
7
37
|
enumerable: true,
|
|
8
38
|
get: function get() {
|
package/lib-storage/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_libStorage","require"],"sources":["index.ts"],"sourcesContent":["export {
|
|
1
|
+
{"version":3,"names":["_libStorage","require"],"sources":["index.ts"],"sourcesContent":["export {\n Upload,\n Options,\n Progress,\n BodyDataTypes,\n RawDataPart,\n Configuration\n} from \"@aws-sdk/lib-storage\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/aws-sdk",
|
|
3
|
-
"version": "5.39.
|
|
3
|
+
"version": "5.39.3-beta.0",
|
|
4
4
|
"description": "Wrapper for AWS SDK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"@aws-sdk/s3-presigned-post": "3.425.0",
|
|
26
26
|
"@aws-sdk/s3-request-presigner": "3.425.0",
|
|
27
27
|
"@aws-sdk/util-dynamodb": "3.425.0",
|
|
28
|
-
"@webiny/utils": "5.39.
|
|
28
|
+
"@webiny/utils": "5.39.3-beta.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/cli": "7.22.6",
|
|
32
32
|
"@babel/core": "7.22.8",
|
|
33
|
-
"@webiny/cli": "5.39.
|
|
34
|
-
"@webiny/project-utils": "5.39.
|
|
33
|
+
"@webiny/cli": "5.39.3-beta.0",
|
|
34
|
+
"@webiny/project-utils": "5.39.3-beta.0",
|
|
35
35
|
"rimraf": "3.0.2",
|
|
36
36
|
"typescript": "4.7.4"
|
|
37
37
|
},
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"build": "yarn webiny run build",
|
|
44
44
|
"watch": "yarn webiny run watch"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "bb0a2c8b43b2caa88f7a2d745a88039a520d124c"
|
|
47
47
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface EventBridgeClientSendResponseEntry {
|
|
2
|
-
EventId: string;
|
|
3
|
-
}
|
|
4
|
-
export interface EventBridgeClientSendResponse {
|
|
5
|
-
$metadata: {
|
|
6
|
-
httpStatusCode: number;
|
|
7
|
-
requestId: string;
|
|
8
|
-
attempts: number;
|
|
9
|
-
totalRetryDelay: number;
|
|
10
|
-
};
|
|
11
|
-
Entries: EventBridgeClientSendResponseEntry[];
|
|
12
|
-
FailedEntryCount: number;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* This is what the event looks like when it's received from EventBridge.
|
|
16
|
-
*/
|
|
17
|
-
export interface IIncomingEventBridgeEvent {
|
|
18
|
-
version: `${number}`;
|
|
19
|
-
id: string;
|
|
20
|
-
"detail-type": string;
|
|
21
|
-
source: string;
|
|
22
|
-
account: string;
|
|
23
|
-
time: string;
|
|
24
|
-
region: string;
|
|
25
|
-
resources: unknown[];
|
|
26
|
-
detail: {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export interface EventBridgeClientSendResponseEntry {\n EventId: string;\n}\n\nexport interface EventBridgeClientSendResponse {\n $metadata: {\n httpStatusCode: number;\n requestId: string;\n attempts: number;\n totalRetryDelay: number;\n };\n Entries: EventBridgeClientSendResponseEntry[];\n FailedEntryCount: number;\n}\n\n/**\n * This is what the event looks like when it's received from EventBridge.\n */\nexport interface IIncomingEventBridgeEvent {\n version: `${number}`;\n id: string;\n \"detail-type\": string;\n source: string;\n account: string;\n time: string;\n region: string;\n resources: unknown[];\n detail: {\n [key: string]: any;\n };\n}\n"],"mappings":""}
|