@kaushverse/rabbitmq-core 1.0.7 → 1.0.10
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/index.d.ts +1 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,10 +39,7 @@ declare function publishMessage({ exchange, type, routingKey, message, headers,
|
|
|
39
39
|
type BootstrapOptions = {
|
|
40
40
|
serviceName: string;
|
|
41
41
|
start: () => void | Promise<void>;
|
|
42
|
-
rabbit:
|
|
43
|
-
url: string;
|
|
44
|
-
tls?: RabbitTLSOptions;
|
|
45
|
-
};
|
|
42
|
+
rabbit: RabbitConnectionOptions;
|
|
46
43
|
};
|
|
47
44
|
declare function bootstrap({ serviceName, rabbit, start, }: BootstrapOptions): Promise<void>;
|
|
48
45
|
|
package/dist/index.js
CHANGED
|
@@ -241,7 +241,7 @@ async function bootstrap({
|
|
|
241
241
|
process.on("SIGTERM", shutdown);
|
|
242
242
|
} catch (err) {
|
|
243
243
|
logger.error("\u{1F4A5} Startup failed", {
|
|
244
|
-
error: err instanceof Error ? err
|
|
244
|
+
error: err instanceof Error ? err : err
|
|
245
245
|
});
|
|
246
246
|
process.exit(1);
|
|
247
247
|
}
|