@stacksjs/push 0.62.0 → 0.63.1

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 CHANGED
@@ -1,27 +1,4 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, {
5
- get: all[name],
6
- enumerable: true,
7
- configurable: true,
8
- set: (newValue) => all[name] = () => newValue
9
- });
10
- };
1
+ var p=Object.defineProperty;var i=(r,o)=>{for(var t in o)p(r,t,{get:o[t],enumerable:!0,configurable:!0,set:(e)=>o[t]=()=>e})};var n={};i(n,{expoWip:()=>a});var a=1;var s={};i(s,{fcmWip:()=>c});var c=1;export{s as fcm,n as expo};
11
2
 
12
- // src/drivers/expo.ts
13
- var exports_expo = {};
14
- __export(exports_expo, {
15
- expoWip: () => expoWip
16
- });
17
- var expoWip = 1;
18
- // src/drivers/fcm.ts
19
- var exports_fcm = {};
20
- __export(exports_fcm, {
21
- fcmWip: () => fcmWip
22
- });
23
- var fcmWip = 1;
24
- export {
25
- exports_fcm as fcm,
26
- exports_expo as expo
27
- };
3
+ //# debugId=2C739A563F08969564756E2164756E21
4
+ //# 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": "4JAoBO,IAAM,EAAU,+BCAhB,IAAM,EAAS",
9
+ "debugId": "2C739A563F08969564756E2164756E21",
10
+ "names": []
11
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/push",
3
3
  "type": "module",
4
- "version": "0.62.0",
4
+ "version": "0.63.1",
5
5
  "description": "The Stacks Push integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -45,11 +45,6 @@
45
45
  "typecheck": "bun --bun tsc --noEmit",
46
46
  "prepublishOnly": "bun run build"
47
47
  },
48
- "peerDependencies": {
49
- "@stacksjs/cli": "latest",
50
- "@stacksjs/config": "latest",
51
- "@stacksjs/error-handling": "latest"
52
- },
53
48
  "dependencies": {
54
49
  "@stacksjs/cli": "latest",
55
50
  "@stacksjs/config": "latest",