@forinda/kickjs-mailer 1.6.0 → 1.7.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/dist/adapter.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type AppAdapter, type Container } from '@forinda/kickjs-core';
1
+ import { type AppAdapter, type AdapterContext } from '@forinda/kickjs-core';
2
2
  import type { MailerOptions } from './types';
3
3
  /**
4
4
  * Mailer adapter — registers MailerService in the DI container.
@@ -22,7 +22,7 @@ export declare class MailerAdapter implements AppAdapter {
22
22
  name: string;
23
23
  private mailer;
24
24
  constructor(options: MailerOptions);
25
- afterStart(_server: any, container: Container): void;
25
+ afterStart({ container }: AdapterContext): void;
26
26
  shutdown(): Promise<void>;
27
27
  }
28
28
  //# sourceMappingURL=adapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI5C;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,aAAc,YAAW,UAAU;IAIlC,OAAO,CAAC,OAAO;IAH3B,IAAI,SAAkB;IACtB,OAAO,CAAC,MAAM,CAAe;gBAET,OAAO,EAAE,aAAa;IAI1C,UAAU,CAAC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAO9C,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAIhC"}
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAEnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI5C;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,aAAc,YAAW,UAAU;IAIlC,OAAO,CAAC,OAAO;IAH3B,IAAI,SAAkB;IACtB,OAAO,CAAC,MAAM,CAAe;gBAET,OAAO,EAAE,aAAa;IAI1C,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,cAAc,GAAG,IAAI;IAOzC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAIhC"}
package/dist/index.js CHANGED
@@ -46,8 +46,8 @@ var h = f.for("MailerAdapter"), v = class {
46
46
  constructor(t) {
47
47
  this.options = t, this.mailer = new u(t);
48
48
  }
49
- afterStart(t, r) {
50
- r.registerInstance(p, this.mailer), h.info(`Mail provider: ${this.options.provider.name}${this.options.enabled === !1 ? " (disabled)" : ""}`);
49
+ afterStart({ container: t }) {
50
+ t.registerInstance(p, this.mailer), h.info(`Mail provider: ${this.options.provider.name}${this.options.enabled === !1 ? " (disabled)" : ""}`);
51
51
  }
52
52
  async shutdown() {
53
53
  await this.mailer.shutdown(), h.info("Mailer shut down");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forinda/kickjs-mailer",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Pluggable email sending for KickJS — nodemailer, Resend, SES, and custom providers",
5
5
  "keywords": [
6
6
  "kickjs",
@@ -52,7 +52,7 @@
52
52
  ],
53
53
  "dependencies": {
54
54
  "reflect-metadata": "^0.2.2",
55
- "@forinda/kickjs-core": "1.6.0"
55
+ "@forinda/kickjs-core": "1.7.0"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "nodemailer": ">=7.0.11"