@arkstack/notifications 0.12.10 → 0.12.11

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -6
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -381,19 +381,16 @@ var SmsNotification = class extends NotificationContract {
381
381
  const driverConfig = configure("drivers.sms", {});
382
382
  const transport = options.transport ?? driverConfig.transport ?? "twilio";
383
383
  const transportConfig = configure(`transports.${transport}`, {});
384
- const legacySmsConfig = configure("sms", {});
385
- const from = options.from ?? driverConfig.from ?? legacySmsConfig.from;
384
+ const from = options.from ?? driverConfig.from;
386
385
  this.fromValue = from;
387
386
  this.driver = transport === "twilio" ? new TwilioSmsDriver({
388
- ...legacySmsConfig.twilio,
389
387
  ...transportConfig,
390
388
  ...options.twilio,
391
- from: options.twilio?.from ?? transportConfig.from ?? legacySmsConfig.twilio?.from ?? from
389
+ from: options.twilio?.from ?? transportConfig.from ?? from
392
390
  }) : new AfricasTalkingSmsDriver({
393
- ...legacySmsConfig.africastalking,
394
391
  ...transportConfig,
395
392
  ...options.africastalking,
396
- senderId: options.africastalking?.senderId ?? transportConfig.senderId ?? legacySmsConfig.africastalking?.senderId ?? from
393
+ senderId: options.africastalking?.senderId ?? transportConfig.senderId ?? from
397
394
  });
398
395
  }
399
396
  from(from) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/notifications",
3
- "version": "0.12.10",
3
+ "version": "0.12.11",
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,11 +34,11 @@
34
34
  "africastalking": "^0.8.0",
35
35
  "nodemailer": "^8.0.7",
36
36
  "twilio": "^6.0.0",
37
- "@arkstack/common": "^0.12.10"
37
+ "@arkstack/common": "^0.12.11"
38
38
  },
39
39
  "peerDependencies": {
40
- "@arkstack/database": "^0.12.10",
41
- "@arkstack/contract": "^0.12.10"
40
+ "@arkstack/database": "^0.12.11",
41
+ "@arkstack/contract": "^0.12.11"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/nodemailer": "^7.0.11"