@arkstack/notifications 0.6.1 → 0.6.2
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 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ declare class Notification<D extends keyof DriverMap = keyof DriverMap> {
|
|
|
162
162
|
static email(options?: MailDriverOptions): MailNotification;
|
|
163
163
|
static sms(options?: SmsDriverOptions): SmsNotification;
|
|
164
164
|
static db(): DbNotification;
|
|
165
|
-
static channel(channel?: NotificationChannel | 'email', options?: MailDriverOptions | SmsDriverOptions):
|
|
165
|
+
static channel(channel?: NotificationChannel | 'email', options?: MailDriverOptions | SmsDriverOptions): MailNotification | SmsNotification | DbNotification;
|
|
166
166
|
prepare(recipient?: null | MailRecipient | NotificationRecipient | NotificationUser, data?: NotificationData): DriverMap[D];
|
|
167
167
|
private static createDriver;
|
|
168
168
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/notifications",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
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",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"africastalking": "^0.8.0",
|
|
34
34
|
"nodemailer": "^8.0.7",
|
|
35
35
|
"twilio": "^6.0.0",
|
|
36
|
-
"@arkstack/common": "^0.6.
|
|
36
|
+
"@arkstack/common": "^0.6.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@arkstack/database": "^0.6.
|
|
39
|
+
"@arkstack/database": "^0.6.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/nodemailer": "^7.0.11"
|