@webiny/aws-sdk 6.4.6 → 6.4.7
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SchedulerClientConfig as BaseSchedulerClientConfig } from "@aws-sdk/client-scheduler";
|
|
2
2
|
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
3
|
-
export { SchedulerClient, GetScheduleCommand, CreateScheduleCommand, UpdateScheduleCommand, DeleteScheduleCommand } from "@aws-sdk/client-scheduler";
|
|
3
|
+
export { SchedulerClient, GetScheduleCommand, CreateScheduleCommand, UpdateScheduleCommand, DeleteScheduleCommand, ResourceNotFoundException } from "@aws-sdk/client-scheduler";
|
|
4
4
|
export type { GetScheduleCommandInput, GetScheduleCommandOutput, CreateScheduleCommandInput, CreateScheduleCommandOutput, UpdateScheduleCommandInput, UpdateScheduleCommandOutput, DeleteScheduleCommandInput, DeleteScheduleCommandOutput } from "@aws-sdk/client-scheduler";
|
|
5
5
|
export interface SchedulerClientConfig extends BaseSchedulerClientConfig {
|
|
6
6
|
cache?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createCacheKey } from "@webiny/utils";
|
|
2
|
-
import { CreateScheduleCommand, DeleteScheduleCommand, GetScheduleCommand, SchedulerClient, UpdateScheduleCommand } from "@aws-sdk/client-scheduler";
|
|
2
|
+
import { CreateScheduleCommand, DeleteScheduleCommand, GetScheduleCommand, ResourceNotFoundException, SchedulerClient, UpdateScheduleCommand } from "@aws-sdk/client-scheduler";
|
|
3
3
|
const clients = {};
|
|
4
4
|
const createSchedulerClient = (input = {})=>{
|
|
5
5
|
const options = {
|
|
@@ -15,6 +15,6 @@ const createSchedulerClient = (input = {})=>{
|
|
|
15
15
|
clients[key] = client;
|
|
16
16
|
return client;
|
|
17
17
|
};
|
|
18
|
-
export { CreateScheduleCommand, DeleteScheduleCommand, GetScheduleCommand, SchedulerClient, UpdateScheduleCommand, createSchedulerClient };
|
|
18
|
+
export { CreateScheduleCommand, DeleteScheduleCommand, GetScheduleCommand, ResourceNotFoundException, SchedulerClient, UpdateScheduleCommand, createSchedulerClient };
|
|
19
19
|
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-scheduler/index.js","sources":["../../src/client-scheduler/index.ts"],"sourcesContent":["import { createCacheKey } from \"@webiny/utils\";\nimport type { SchedulerClientConfig as BaseSchedulerClientConfig } from \"@aws-sdk/client-scheduler\";\nimport { SchedulerClient } from \"@aws-sdk/client-scheduler\";\n\nexport {\n SchedulerClient,\n GetScheduleCommand,\n CreateScheduleCommand,\n UpdateScheduleCommand,\n DeleteScheduleCommand\n} from \"@aws-sdk/client-scheduler\";\n\nexport type {\n GetScheduleCommandInput,\n GetScheduleCommandOutput,\n CreateScheduleCommandInput,\n CreateScheduleCommandOutput,\n UpdateScheduleCommandInput,\n UpdateScheduleCommandOutput,\n DeleteScheduleCommandInput,\n DeleteScheduleCommandOutput\n} from \"@aws-sdk/client-scheduler\";\n\nconst clients: Record<string, SchedulerClient> = {};\n\nexport interface SchedulerClientConfig extends BaseSchedulerClientConfig {\n cache?: boolean;\n}\n\nexport const createSchedulerClient = (\n input: Partial<SchedulerClientConfig> = {}\n): SchedulerClient => {\n const options: SchedulerClientConfig = {\n region: process.env.AWS_REGION,\n ...input\n };\n\n const skipCache = options.cache === false;\n delete options.cache;\n if (skipCache) {\n return new SchedulerClient(options);\n }\n\n const key = createCacheKey(options);\n\n if (clients[key]) {\n return clients[key];\n }\n\n const client = new SchedulerClient(options);\n\n clients[key] = client;\n\n return client;\n};\n"],"names":["clients","createSchedulerClient","input","options","process","skipCache","SchedulerClient","key","createCacheKey","client"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"client-scheduler/index.js","sources":["../../src/client-scheduler/index.ts"],"sourcesContent":["import { createCacheKey } from \"@webiny/utils\";\nimport type { SchedulerClientConfig as BaseSchedulerClientConfig } from \"@aws-sdk/client-scheduler\";\nimport { SchedulerClient } from \"@aws-sdk/client-scheduler\";\n\nexport {\n SchedulerClient,\n GetScheduleCommand,\n CreateScheduleCommand,\n UpdateScheduleCommand,\n DeleteScheduleCommand,\n ResourceNotFoundException\n} from \"@aws-sdk/client-scheduler\";\n\nexport type {\n GetScheduleCommandInput,\n GetScheduleCommandOutput,\n CreateScheduleCommandInput,\n CreateScheduleCommandOutput,\n UpdateScheduleCommandInput,\n UpdateScheduleCommandOutput,\n DeleteScheduleCommandInput,\n DeleteScheduleCommandOutput\n} from \"@aws-sdk/client-scheduler\";\n\nconst clients: Record<string, SchedulerClient> = {};\n\nexport interface SchedulerClientConfig extends BaseSchedulerClientConfig {\n cache?: boolean;\n}\n\nexport const createSchedulerClient = (\n input: Partial<SchedulerClientConfig> = {}\n): SchedulerClient => {\n const options: SchedulerClientConfig = {\n region: process.env.AWS_REGION,\n ...input\n };\n\n const skipCache = options.cache === false;\n delete options.cache;\n if (skipCache) {\n return new SchedulerClient(options);\n }\n\n const key = createCacheKey(options);\n\n if (clients[key]) {\n return clients[key];\n }\n\n const client = new SchedulerClient(options);\n\n clients[key] = client;\n\n return client;\n};\n"],"names":["clients","createSchedulerClient","input","options","process","skipCache","SchedulerClient","key","createCacheKey","client"],"mappings":";;AAwBA,MAAMA,UAA2C,CAAC;AAM3C,MAAMC,wBAAwB,CACjCC,QAAwC,CAAC,CAAC;IAE1C,MAAMC,UAAiC;QACnC,QAAQC,QAAQ,GAAG,CAAC,UAAU;QAC9B,GAAGF,KAAK;IACZ;IAEA,MAAMG,YAAYF,AAAkB,UAAlBA,QAAQ,KAAK;IAC/B,OAAOA,QAAQ,KAAK;IACpB,IAAIE,WACA,OAAO,IAAIC,gBAAgBH;IAG/B,MAAMI,MAAMC,eAAeL;IAE3B,IAAIH,OAAO,CAACO,IAAI,EACZ,OAAOP,OAAO,CAACO,IAAI;IAGvB,MAAME,SAAS,IAAIH,gBAAgBH;IAEnCH,OAAO,CAACO,IAAI,GAAGE;IAEf,OAAOA;AACX"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/aws-sdk",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Wrapper for AWS SDK",
|
|
6
6
|
"exports": {
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"@aws-sdk/s3-request-presigner": "3.1083.0",
|
|
33
33
|
"@aws-sdk/util-dynamodb": "3.996.6",
|
|
34
34
|
"@types/aws-lambda": "8.10.162",
|
|
35
|
-
"@webiny/utils": "6.4.
|
|
35
|
+
"@webiny/utils": "6.4.7",
|
|
36
36
|
"aws-lambda": "1.0.7"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@webiny/build-tools": "6.4.
|
|
39
|
+
"@webiny/build-tools": "6.4.7",
|
|
40
40
|
"rimraf": "6.1.3",
|
|
41
41
|
"typescript": "6.0.3"
|
|
42
42
|
},
|