@socket.tech/dl-common 1.0.3-test.14 → 1.0.3-test.15
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.
|
@@ -10,6 +10,9 @@ exports.initEventBridgeClient = initEventBridgeClient;
|
|
|
10
10
|
const sendEvents = async (events) => {
|
|
11
11
|
// async/await.
|
|
12
12
|
try {
|
|
13
|
+
if (!client) {
|
|
14
|
+
throw new Error("EventBridge client is not initialized. Call initEventBridgeClient first.");
|
|
15
|
+
}
|
|
13
16
|
let entries = events.map((event) => {
|
|
14
17
|
let { eventBus, source, detailType, data } = event;
|
|
15
18
|
return {
|
package/dist/services/index.d.ts
CHANGED
package/dist/services/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./queueService"), exports);
|
|
18
18
|
__exportStar(require("./cacheService"), exports);
|
|
19
|
+
__exportStar(require("./eventBridgeService"), exports);
|
|
19
20
|
// export * from "./apiService";
|