@stacksjs/push 0.51.0 → 0.52.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/README.md +1 -1
- package/dist/drivers/expo.d.ts +1 -0
- package/dist/drivers/expo.mjs +1 -15
- package/dist/drivers/fcm.d.ts +1 -0
- package/dist/drivers/fcm.mjs +1 -15
- package/package.json +17 -20
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ pnpm test
|
|
|
42
42
|
|
|
43
43
|
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
|
|
44
44
|
|
|
45
|
-
##
|
|
45
|
+
## 🚜 Contributing
|
|
46
46
|
|
|
47
47
|
Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
|
|
48
48
|
|
package/dist/drivers/expo.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/drivers/expo.mjs
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { notification } from "@stacksjs/config";
|
|
3
|
-
import { ResultAsync } from "@stacksjs/error-handling";
|
|
4
|
-
import { italic } from "@stacksjs/cli";
|
|
5
|
-
const novu = new Novu(notification.novu.key);
|
|
6
|
-
function send(options) {
|
|
7
|
-
return ResultAsync.fromPromise(
|
|
8
|
-
novu.trigger(options.eventName, {
|
|
9
|
-
to: options.to,
|
|
10
|
-
payload: options.payload
|
|
11
|
-
}),
|
|
12
|
-
() => new Error(`Failed to send message using provider: ${italic("Expo")}`)
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
export { send as Send, send };
|
|
1
|
+
export {};
|
package/dist/drivers/fcm.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/drivers/fcm.mjs
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { notification } from "@stacksjs/config";
|
|
3
|
-
import { ResultAsync } from "@stacksjs/error-handling";
|
|
4
|
-
import { italic } from "@stacksjs/cli";
|
|
5
|
-
const novu = new Novu(notification.novu.key);
|
|
6
|
-
function send(options) {
|
|
7
|
-
return ResultAsync.fromPromise(
|
|
8
|
-
novu.trigger(options.eventName, {
|
|
9
|
-
to: options.to,
|
|
10
|
-
payload: options.payload
|
|
11
|
-
}),
|
|
12
|
-
() => new Error(`Failed to send message using provider: ${italic("FCM")}`)
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
export { send as Send, send };
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/push",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@
|
|
4
|
+
"version": "0.52.0",
|
|
5
|
+
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks Push integration",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -18,12 +18,15 @@
|
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"push",
|
|
21
|
-
"ses",
|
|
22
21
|
"aws",
|
|
23
|
-
"maizzle",
|
|
24
22
|
"stacks"
|
|
25
23
|
],
|
|
26
|
-
"
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"import": "./dist/index.mjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
27
30
|
"module": "dist/index.mjs",
|
|
28
31
|
"types": "dist/index.d.ts",
|
|
29
32
|
"contributors": [
|
|
@@ -33,26 +36,20 @@
|
|
|
33
36
|
"dist",
|
|
34
37
|
"README.md"
|
|
35
38
|
],
|
|
36
|
-
"engines": {
|
|
37
|
-
"node": ">=v18.14.0",
|
|
38
|
-
"pnpm": ">=7.26.3"
|
|
39
|
-
},
|
|
40
39
|
"peerDependencies": {
|
|
41
|
-
"@novu/node": "^0.
|
|
42
|
-
"@novu/stateless": "^0.
|
|
43
|
-
"@stacksjs/cli": "0.
|
|
44
|
-
"@stacksjs/config": "0.
|
|
45
|
-
"@stacksjs/error-handling": "0.
|
|
46
|
-
"@stacksjs/types": "0.
|
|
40
|
+
"@novu/node": "^0.14.0",
|
|
41
|
+
"@novu/stateless": "^0.14.0",
|
|
42
|
+
"@stacksjs/cli": "0.52.0",
|
|
43
|
+
"@stacksjs/config": "0.52.0",
|
|
44
|
+
"@stacksjs/error-handling": "0.52.0",
|
|
45
|
+
"@stacksjs/types": "0.52.0"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
|
-
"
|
|
50
|
-
"typescript": "^4.9.5",
|
|
51
|
-
"@stacksjs/testing": "0.51.0"
|
|
48
|
+
"@stacksjs/development": "0.52.0"
|
|
52
49
|
},
|
|
53
50
|
"scripts": {
|
|
54
|
-
"build": "
|
|
55
|
-
"dev": "
|
|
51
|
+
"build": "unbuild",
|
|
52
|
+
"dev": "unbuild --stub",
|
|
56
53
|
"typecheck": "tsc --noEmit"
|
|
57
54
|
}
|
|
58
55
|
}
|