@stacksjs/push 0.66.0 → 0.67.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 +0 -3
- package/package.json +6 -8
- package/dist/index.js.map +0 -11
- package/src/drivers/expo.ts +0 -21
- package/src/drivers/fcm.ts +0 -21
- package/src/drivers/index.ts +0 -2
- package/src/index.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
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};
|
|
2
|
-
|
|
3
|
-
//# debugId=B66BF1E31D8B380164756E2164756E21
|
|
4
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/push",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.67.0",
|
|
5
5
|
"description": "The Stacks Push integration",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
|
|
@@ -19,28 +19,26 @@
|
|
|
19
19
|
"keywords": ["push", "aws", "stacks"],
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
|
-
"bun": "./src/index.ts",
|
|
23
22
|
"import": "./dist/index.js"
|
|
24
23
|
},
|
|
25
24
|
"./*": {
|
|
26
|
-
"bun": "./src/*",
|
|
27
25
|
"import": "./dist/*"
|
|
28
26
|
}
|
|
29
27
|
},
|
|
30
28
|
"module": "dist/index.js",
|
|
31
29
|
"types": "dist/index.d.ts",
|
|
32
|
-
"files": ["README.md", "dist"
|
|
30
|
+
"files": ["README.md", "dist"],
|
|
33
31
|
"scripts": {
|
|
34
32
|
"build": "bun build.ts",
|
|
35
33
|
"typecheck": "bun tsc --noEmit",
|
|
36
34
|
"prepublishOnly": "bun run build"
|
|
37
35
|
},
|
|
38
36
|
"dependencies": {
|
|
39
|
-
"@stacksjs/cli": "0.
|
|
40
|
-
"@stacksjs/config": "0.
|
|
41
|
-
"@stacksjs/error-handling": "0.
|
|
37
|
+
"@stacksjs/cli": "0.67.0",
|
|
38
|
+
"@stacksjs/config": "0.67.0",
|
|
39
|
+
"@stacksjs/error-handling": "0.67.0"
|
|
42
40
|
},
|
|
43
41
|
"devDependencies": {
|
|
44
|
-
"@stacksjs/development": "0.
|
|
42
|
+
"@stacksjs/development": "0.67.0"
|
|
45
43
|
}
|
|
46
44
|
}
|
package/dist/index.js.map
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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": "B66BF1E31D8B380164756E2164756E21",
|
|
10
|
-
"names": []
|
|
11
|
-
}
|
package/src/drivers/expo.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// import { Novu } from '@novu/node'
|
|
2
|
-
// import notification from '~/config/notification'
|
|
3
|
-
// import type { ExpoPushNotificationOptions } from '@stacksjs/types'
|
|
4
|
-
// import { ResultAsync } from '@stacksjs/error-handling'
|
|
5
|
-
// import { italic } from '@stacksjs/cli'
|
|
6
|
-
|
|
7
|
-
// const novu = new Novu(notification.novu.key)
|
|
8
|
-
|
|
9
|
-
// function send(options: ExpoPushNotificationOptions) {
|
|
10
|
-
// return ResultAsync.fromPromise(
|
|
11
|
-
// novu.trigger(options.eventName, {
|
|
12
|
-
// to: options.to,
|
|
13
|
-
// payload: options.payload,
|
|
14
|
-
// }),
|
|
15
|
-
// () => new Error(`Failed to send message using provider: ${italic('Expo')}`),
|
|
16
|
-
// )
|
|
17
|
-
// }
|
|
18
|
-
|
|
19
|
-
// export { send as Send, send }
|
|
20
|
-
|
|
21
|
-
export const expoWip = 1
|
package/src/drivers/fcm.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// import { Novu } from '@novu/node'
|
|
2
|
-
// import { notification } from '@stacksjs/config'
|
|
3
|
-
// import type { FCMPushNotificationOptions } from '@stacksjs/types'
|
|
4
|
-
// import { ResultAsync } from '@stacksjs/error-handling'
|
|
5
|
-
// import { italic } from '@stacksjs/cli'
|
|
6
|
-
|
|
7
|
-
// const novu = new Novu(notification.novu.key)
|
|
8
|
-
|
|
9
|
-
// function send(options: FCMPushNotificationOptions) {
|
|
10
|
-
// return ResultAsync.fromPromise(
|
|
11
|
-
// novu.trigger(options.eventName, {
|
|
12
|
-
// to: options.to,
|
|
13
|
-
// payload: options.payload,
|
|
14
|
-
// }),
|
|
15
|
-
// () => new Error(`Failed to send message using provider: ${italic('FCM')}`),
|
|
16
|
-
// )
|
|
17
|
-
// }
|
|
18
|
-
|
|
19
|
-
// export { send as Send, send }
|
|
20
|
-
|
|
21
|
-
export const fcmWip = 1
|
package/src/drivers/index.ts
DELETED
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './drivers'
|