@stacksjs/push 0.51.0 → 0.52.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/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
- ## 💪🏼 Contributing
45
+ ## 🚜 Contributing
46
46
 
47
47
  Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
48
48
 
@@ -0,0 +1 @@
1
+ export {};
@@ -1,15 +1 @@
1
- import { Novu } from "@novu/node";
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 {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,15 +1 @@
1
- import { Novu } from "@novu/node";
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.51.0",
5
- "packageManager": "pnpm@7.26.3",
4
+ "version": "0.52.1",
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
- "main": "dist/index.mjs",
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.11.0",
42
- "@novu/stateless": "^0.11.0",
43
- "@stacksjs/cli": "0.51.0",
44
- "@stacksjs/config": "0.51.0",
45
- "@stacksjs/error-handling": "0.51.0",
46
- "@stacksjs/types": "0.51.0"
40
+ "@novu/node": "^0.15.0",
41
+ "@novu/stateless": "^0.15.0",
42
+ "@stacksjs/cli": "0.52.1",
43
+ "@stacksjs/config": "0.52.1",
44
+ "@stacksjs/error-handling": "0.52.1",
45
+ "@stacksjs/types": "0.52.1"
47
46
  },
48
47
  "devDependencies": {
49
- "mkdist": "^1.1.0",
50
- "typescript": "^4.9.5",
51
- "@stacksjs/testing": "0.51.0"
48
+ "@stacksjs/development": "0.52.1"
52
49
  },
53
50
  "scripts": {
54
- "build": "mkdist -d",
55
- "dev": "mkdist -d",
51
+ "build": "unbuild",
52
+ "dev": "unbuild --stub",
56
53
  "typecheck": "tsc --noEmit"
57
54
  }
58
55
  }