@serve.zone/coremail 1.0.2 → 1.1.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/ts/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { CoreMail } from './classes.coremail.js';
2
+ import { logCoreMailFailure } from './coremail.log.js';
2
3
 
3
4
  export { CoreMail } from './classes.coremail.js';
4
5
  export { readCoreMailConfig } from './classes.config.js';
@@ -15,7 +16,9 @@ export const runCli = async (): Promise<void> => {
15
16
  try {
16
17
  await coreMail.stop();
17
18
  process.exitCode = 0;
18
- } catch {
19
+ } catch (error) {
20
+ await logCoreMailFailure('lifecycle', 'SHUTDOWN_FAILED', error)
21
+ .catch(() => undefined);
19
22
  process.exitCode = 1;
20
23
  }
21
24
  };
package/ts/interfaces.ts CHANGED
@@ -95,7 +95,8 @@ export interface ICoreMailReadiness {
95
95
 
96
96
  export interface ICoreMailAuthLimiterSnapshot {
97
97
  inFlight: number;
98
- tokens: number;
98
+ waiting: number;
99
+ identities: number;
99
100
  }
100
101
 
101
102
  export interface ICoreMailPeer {