@digipair/skill-push-notification 0.43.3 → 0.43.5
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/index.cjs.js
CHANGED
|
@@ -8807,7 +8807,7 @@ var src = {
|
|
|
8807
8807
|
|
|
8808
8808
|
let PushNotificationService = class PushNotificationService {
|
|
8809
8809
|
async sendPush(params, _pinsSettingsList, context) {
|
|
8810
|
-
const { payload, subscription, mailto = context.privates.PUSH_NOTIFICATION_MAILTO,
|
|
8810
|
+
const { payload, subscription, mailto = context.privates.PUSH_NOTIFICATION_MAILTO, publicKey = context.variables.PUSH_NOTIFICATION_PUBLIC_KEY || context.privates.PUSH_NOTIFICATION_PUBLIC_KEY, privateKey = context.privates.PUSH_NOTIFICATION_PRIVATE_KEY } = params;
|
|
8811
8811
|
src.setVapidDetails(`mailto:${mailto}`, publicKey, privateKey);
|
|
8812
8812
|
try {
|
|
8813
8813
|
const response = await src.sendNotification(subscription, payload);
|
package/index.esm.js
CHANGED
|
@@ -8788,7 +8788,7 @@ var src = {
|
|
|
8788
8788
|
|
|
8789
8789
|
let PushNotificationService = class PushNotificationService {
|
|
8790
8790
|
async sendPush(params, _pinsSettingsList, context) {
|
|
8791
|
-
const { payload, subscription, mailto = context.privates.PUSH_NOTIFICATION_MAILTO,
|
|
8791
|
+
const { payload, subscription, mailto = context.privates.PUSH_NOTIFICATION_MAILTO, publicKey = context.variables.PUSH_NOTIFICATION_PUBLIC_KEY || context.privates.PUSH_NOTIFICATION_PUBLIC_KEY, privateKey = context.privates.PUSH_NOTIFICATION_PRIVATE_KEY } = params;
|
|
8792
8792
|
src.setVapidDetails(`mailto:${mailto}`, publicKey, privateKey);
|
|
8793
8793
|
try {
|
|
8794
8794
|
const response = await src.sendNotification(subscription, payload);
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|