@arkstack/notifications 0.17.21 → 0.17.22

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 CHANGED
@@ -319,13 +319,13 @@ declare class MailNotification extends NotificationContract {
319
319
  *
320
320
  * @param attachments
321
321
  */
322
- attachments(attachments: Attachment[]): void;
322
+ attachments(attachments: Attachment[]): this;
323
323
  /**
324
324
  * A single attachemnt to send with the mail
325
325
  *
326
326
  * @param attachment
327
327
  */
328
- attachment(attachment: Attachment): void;
328
+ attachment(attachment: Attachment): this;
329
329
  /**
330
330
  * Set email the notification recipeint
331
331
  *
package/dist/index.js CHANGED
@@ -312,6 +312,7 @@ var MailNotification = class extends NotificationContract {
312
312
  */
313
313
  attachments(attachments) {
314
314
  this.attachmentList = attachments;
315
+ return this;
315
316
  }
316
317
  /**
317
318
  * A single attachemnt to send with the mail
@@ -320,6 +321,7 @@ var MailNotification = class extends NotificationContract {
320
321
  */
321
322
  attachment(attachment) {
322
323
  this.attachmentList = [...this.attachmentList ?? [], attachment];
324
+ return this;
323
325
  }
324
326
  /**
325
327
  * Set email the notification recipeint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/notifications",
3
- "version": "0.17.21",
3
+ "version": "0.17.22",
4
4
  "type": "module",
5
5
  "description": "Framework-agnostic notification module for Arkstack and Nodejs, providing support for multi-channel notification delivery.",
6
6
  "homepage": "https://arkstack.toneflix.net/guide/notifications",
@@ -34,16 +34,16 @@
34
34
  "africastalking": "^0.8.0",
35
35
  "nodemailer": "^9.0.3",
36
36
  "twilio": "^6.0.2",
37
- "@arkstack/common": "^0.17.21"
37
+ "@arkstack/common": "^0.17.22"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@kanun-hq/plugin-phone": "^0.1.8",
41
41
  "firebase-admin": "^13.0.0",
42
42
  "pusher": "^5.2.0",
43
- "@arkstack/contract": "^0.17.21",
44
- "@arkstack/database": "^0.17.21",
45
- "@arkstack/driver-h3": "^0.17.21",
46
- "@arkstack/driver-express": "^0.17.21"
43
+ "@arkstack/contract": "^0.17.22",
44
+ "@arkstack/database": "^0.17.22",
45
+ "@arkstack/driver-express": "^0.17.22",
46
+ "@arkstack/driver-h3": "^0.17.22"
47
47
  },
48
48
  "peerDependenciesMeta": {
49
49
  "@arkstack/driver-express": {