@stacksjs/push 0.61.24 → 0.63.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/index.js +5 -10
- package/dist/index.js.map +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12,24 +12,19 @@ var __export = (target, all) => {
|
|
|
12
12
|
// src/drivers/expo.ts
|
|
13
13
|
var exports_expo = {};
|
|
14
14
|
__export(exports_expo, {
|
|
15
|
-
expoWip: () =>
|
|
16
|
-
{
|
|
17
|
-
return expoWip;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
15
|
+
expoWip: () => expoWip
|
|
20
16
|
});
|
|
21
17
|
var expoWip = 1;
|
|
22
18
|
// src/drivers/fcm.ts
|
|
23
19
|
var exports_fcm = {};
|
|
24
20
|
__export(exports_fcm, {
|
|
25
|
-
fcmWip: () =>
|
|
26
|
-
{
|
|
27
|
-
return fcmWip;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
21
|
+
fcmWip: () => fcmWip
|
|
30
22
|
});
|
|
31
23
|
var fcmWip = 1;
|
|
32
24
|
export {
|
|
33
25
|
exports_fcm as fcm,
|
|
34
26
|
exports_expo as expo
|
|
35
27
|
};
|
|
28
|
+
|
|
29
|
+
//# debugId=214FDADAED1D321464756E2164756E21
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/drivers/expo.ts", "../src/drivers/fcm.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"// import { Novu } from '@novu/node'\n// import notification from '~/config/notification'\n// import type { ExpoPushNotificationOptions } from '@stacksjs/types'\n// import { ResultAsync } from '@stacksjs/error-handling'\n// import { italic } from '@stacksjs/cli'\n\n// const novu = new Novu(notification.novu.key)\n\n// function send(options: ExpoPushNotificationOptions) {\n// return ResultAsync.fromPromise(\n// novu.trigger(options.eventName, {\n// to: options.to,\n// payload: options.payload,\n// }),\n// () => new Error(`Failed to send message using provider: ${italic('Expo')}`),\n// )\n// }\n\n// export { send as Send, send }\n\nexport const expoWip = 1\n",
|
|
6
|
+
"// import { Novu } from '@novu/node'\n// import { notification } from '@stacksjs/config'\n// import type { FCMPushNotificationOptions } from '@stacksjs/types'\n// import { ResultAsync } from '@stacksjs/error-handling'\n// import { italic } from '@stacksjs/cli'\n\n// const novu = new Novu(notification.novu.key)\n\n// function send(options: FCMPushNotificationOptions) {\n// return ResultAsync.fromPromise(\n// novu.trigger(options.eventName, {\n// to: options.to,\n// payload: options.payload,\n// }),\n// () => new Error(`Failed to send message using provider: ${italic('FCM')}`),\n// )\n// }\n\n// export { send as Send, send }\n\nexport const fcmWip = 1\n"
|
|
7
|
+
],
|
|
8
|
+
"mappings": ";;;;;;;;;;;;;;;;AAoBO,IAAM,UAAU;;;;;;ACAhB,IAAM,SAAS;",
|
|
9
|
+
"debugId": "214FDADAED1D321464756E2164756E21",
|
|
10
|
+
"names": []
|
|
11
|
+
}
|