sst 2.48.1 → 2.48.2
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/node/event-bus/index.d.ts +2 -1
- package/node/event-bus/index.js +1 -1
- package/package.json +2 -2
- package/package.json.bak +2 -2
- package/util/process.d.ts +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface EventBusResources {
|
|
2
2
|
}
|
|
3
3
|
export declare const EventBus: EventBusResources;
|
|
4
|
-
import { PutEventsCommandOutput } from "@aws-sdk/client-eventbridge";
|
|
4
|
+
import { EventBridgeClient, PutEventsCommandOutput } from "@aws-sdk/client-eventbridge";
|
|
5
5
|
import { EventBridgeEvent } from "aws-lambda";
|
|
6
6
|
import { ZodObject, ZodSchema, z } from "zod";
|
|
7
7
|
/**
|
|
@@ -23,6 +23,7 @@ export declare function createEventBuilder<Bus extends keyof typeof EventBus, Me
|
|
|
23
23
|
metadata?: MetadataSchema;
|
|
24
24
|
metadataFn?: MetadataFunction;
|
|
25
25
|
validator: Validator;
|
|
26
|
+
client?: EventBridgeClient;
|
|
26
27
|
}): <Type extends string, Schema extends Parameters<Validator>[0]>(type: Type, schema: Schema) => {
|
|
27
28
|
publish: undefined extends MetadataSchema ? (properties: inferParser<Schema>["in"], options?: PublishOptions) => Promise<PutEventsCommandOutput> : (properties: inferParser<Schema>["in"], metadata: inferParser<MetadataSchema>["in"], options?: PublishOptions) => Promise<void>;
|
|
28
29
|
type: Type;
|
package/node/event-bus/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { EventBridgeClient, PutEventsCommand, } from "@aws-sdk/client-eventbridg
|
|
|
5
5
|
import { useLoader } from "../util/loader.js";
|
|
6
6
|
import { Config } from "../config/index.js";
|
|
7
7
|
export function createEventBuilder(input) {
|
|
8
|
-
const client = new EventBridgeClient({});
|
|
8
|
+
const client = input.client || new EventBridgeClient({});
|
|
9
9
|
const validator = input.validator;
|
|
10
10
|
const metadataValidator = input.metadata ? validator(input.metadata) : null;
|
|
11
11
|
return function event(type, schema) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"sideEffects": false,
|
|
3
3
|
"name": "sst",
|
|
4
|
-
"version": "2.48.
|
|
4
|
+
"version": "2.48.2",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sst": "cli/sst.js"
|
|
7
7
|
},
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"dotenv": "^16.0.3",
|
|
70
70
|
"esbuild": "0.18.13",
|
|
71
71
|
"express": "^4.18.2",
|
|
72
|
-
"fast-jwt": "^
|
|
72
|
+
"fast-jwt": "^5.0.5",
|
|
73
73
|
"get-port": "^6.1.2",
|
|
74
74
|
"glob": "^10.0.0",
|
|
75
75
|
"graphql": "*",
|
package/package.json.bak
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
},
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"name": "sst",
|
|
8
|
-
"version": "2.48.
|
|
8
|
+
"version": "2.48.2",
|
|
9
9
|
"bin": {
|
|
10
10
|
"sst": "cli/sst.js"
|
|
11
11
|
},
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"dotenv": "^16.0.3",
|
|
80
80
|
"esbuild": "0.18.13",
|
|
81
81
|
"express": "^4.18.2",
|
|
82
|
-
"fast-jwt": "^
|
|
82
|
+
"fast-jwt": "^5.0.5",
|
|
83
83
|
"get-port": "^6.1.2",
|
|
84
84
|
"glob": "^10.0.0",
|
|
85
85
|
"graphql": "*",
|
package/util/process.d.ts
CHANGED