stacks 0.46.4 → 0.47.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/.gitignore +4 -0
- package/README.md +2 -1
- package/buddy/README.md +2 -1
- package/buddy/package.json +13 -4
- package/buddy/src/cli.ts +37 -20
- package/buddy/src/commands/create.ts +13 -13
- package/buddy/src/commands/key.ts +12 -2
- package/buddy/src/index.ts +3 -0
- package/components/vue/package.json +1 -1
- package/components/web/package.json +1 -1
- package/core/actions/package.json +5 -4
- package/core/actions/src/helpers/package-json.ts +1 -1
- package/core/actions/src/key-generate.ts +10 -0
- package/core/ai/package.json +3 -3
- package/core/alias/package.json +3 -3
- package/core/arrays/package.json +3 -3
- package/core/auth/package.json +3 -3
- package/core/build/package.json +3 -3
- package/core/cache/package.json +4 -4
- package/core/chat/README.md +89 -0
- package/core/chat/node_modules/.bin/maizzle +17 -0
- package/core/chat/node_modules/.bin/mkdist +17 -0
- package/{buddy/node_modules/.bin/pnpm → core/chat/node_modules/.bin/tsc} +2 -2
- package/core/chat/node_modules/.bin/tsserver +17 -0
- package/core/chat/package.json +62 -0
- package/core/chat/src/drivers/discord.ts +15 -0
- package/core/chat/src/drivers/slack.ts +22 -0
- package/core/chat/src/index.ts +2 -0
- package/core/chat/tests/example.test.ts +7 -0
- package/core/cli/package.json +3 -3
- package/core/cloud/package.json +3 -3
- package/core/collections/package.json +3 -3
- package/core/config/package.json +3 -3
- package/core/config/src/index.ts +1 -1
- package/core/dashboard/package.json +3 -3
- package/core/database/package.json +3 -3
- package/core/datetime/package.json +3 -3
- package/core/desktop/package.json +3 -3
- package/core/docs/package.json +3 -3
- package/core/domains/package.json +3 -3
- package/core/drivers/package.json +3 -3
- package/core/email/dist/utils/template.html +8 -0
- package/core/email/node_modules/.bin/maizzle +17 -0
- package/core/email/package.json +15 -3
- package/core/email/src/drivers/actions/send.ts +36 -0
- package/core/email/src/drivers/emailjs.ts +21 -0
- package/core/email/src/drivers/mailgun.ts +19 -0
- package/core/email/src/drivers/mailjet.ts +18 -0
- package/core/email/src/drivers/mandrill.ts +17 -0
- package/core/email/src/drivers/netcore.ts +17 -0
- package/core/email/src/drivers/nodemailer.ts +21 -0
- package/core/email/src/drivers/postmark.ts +17 -0
- package/core/email/src/drivers/sendgrid.ts +18 -0
- package/core/email/src/drivers/ses.ts +19 -0
- package/core/email/src/index.ts +9 -1
- package/core/email/src/utils/config.ts +5 -0
- package/core/email/src/utils/template.html +8 -0
- package/core/error-handling/package.json +3 -3
- package/core/events/README.md +76 -0
- package/core/events/build.config.ts +15 -0
- package/core/events/node_modules/.bin/mkdist +17 -0
- package/{buddy/node_modules/.bin/pnpx → core/events/node_modules/.bin/tsc} +2 -2
- package/core/events/node_modules/.bin/tsserver +17 -0
- package/core/events/package.json +55 -0
- package/core/events/src/index.ts +30 -0
- package/core/events/tests/example.test.ts +7 -0
- package/core/git/package.json +3 -3
- package/core/health/package.json +3 -3
- package/core/lint/package.json +3 -3
- package/core/logging/package.json +3 -3
- package/core/modules/package.json +3 -3
- package/core/notifications/package.json +24 -24
- package/core/objects/package.json +3 -3
- package/core/path/package.json +3 -3
- package/core/path/src/index.ts +1 -0
- package/core/payments/package.json +3 -3
- package/core/push/README.md +89 -0
- package/core/push/node_modules/.bin/maizzle +17 -0
- package/core/push/node_modules/.bin/mkdist +17 -0
- package/core/push/node_modules/.bin/tsc +17 -0
- package/core/push/node_modules/.bin/tsserver +17 -0
- package/core/push/package.json +60 -0
- package/core/push/src/drivers/expo.ts +19 -0
- package/core/push/src/drivers/fcm.ts +19 -0
- package/core/push/src/index.ts +2 -0
- package/core/push/tests/example.test.ts +7 -0
- package/core/realtime/package.json +3 -3
- package/core/router/package.json +3 -3
- package/core/search-engine/package.json +4 -4
- package/core/security/package.json +3 -3
- package/core/security/src/crypt.ts +2 -2
- package/core/server/package.json +3 -3
- package/core/sms/README.md +89 -0
- package/core/sms/node_modules/.bin/maizzle +17 -0
- package/core/sms/node_modules/.bin/mkdist +17 -0
- package/core/sms/node_modules/.bin/tsc +17 -0
- package/core/sms/node_modules/.bin/tsserver +17 -0
- package/core/sms/package.json +68 -0
- package/core/sms/src/drivers/gupshup.ts +21 -0
- package/core/sms/src/drivers/nexmo.ts +22 -0
- package/core/sms/src/drivers/plivo.ts +22 -0
- package/core/sms/src/drivers/sms77.ts +21 -0
- package/core/sms/src/drivers/sns.ts +22 -0
- package/core/sms/src/drivers/telnyx.ts +22 -0
- package/core/sms/src/drivers/termii.ts +21 -0
- package/core/sms/src/drivers/twilio.ts +22 -0
- package/core/sms/src/index.ts +8 -0
- package/core/sms/tests/example.test.ts +7 -0
- package/core/storage/package.json +3 -3
- package/core/strings/package.json +3 -3
- package/core/testing/node_modules/.bin/playwright +17 -0
- package/core/testing/package.json +4 -3
- package/core/testing/src/index.ts +2 -1
- package/core/types/node_modules/.bin/vitepress +2 -2
- package/core/types/package.json +5 -5
- package/core/types/src/app.ts +0 -9
- package/core/types/src/cli.ts +1 -0
- package/core/types/src/debug.ts +1 -1
- package/core/types/src/deploy.ts +1 -1
- package/core/types/src/events.ts +22 -0
- package/core/types/src/index.ts +1 -0
- package/core/types/src/notifications.ts +2 -4
- package/core/types/src/ui.ts +28 -19
- package/core/ui/node_modules/.bin/vue-tsc +2 -2
- package/core/ui/package.json +4 -4
- package/core/utils/package.json +6 -6
- package/core/x-ray/package.json +3 -3
- package/functions/package.json +1 -1
- package/package.json +6 -4
- package/tests/feature/example.spec.ts +20 -0
- package/tests/unit/example.test.ts +7 -0
- package/tsconfig.json +2 -0
- package/core/actions/src/key.ts +0 -48
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/error-handling",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.47.1",
|
|
5
|
+
"packageManager": "pnpm@7.21.0",
|
|
6
6
|
"description": "Type safe error handling.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=v18.12.1",
|
|
38
|
-
"pnpm": ">=7.
|
|
38
|
+
"pnpm": ">=7.21.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "mkdist -d",
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Stacks Events
|
|
2
|
+
|
|
3
|
+
Functional event emitting.
|
|
4
|
+
|
|
5
|
+
## ☘️ Features
|
|
6
|
+
|
|
7
|
+
- Functional event emitting
|
|
8
|
+
|
|
9
|
+
## 🤖 Usage
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm i -D @stacksjs/events
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Now, you can use it in your project:
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import { all, dispatch, listen, off } from '@stacksjs/events'
|
|
19
|
+
|
|
20
|
+
// listen to an event
|
|
21
|
+
listen('foo', e => console.log('foo', e))
|
|
22
|
+
|
|
23
|
+
// listen to all events
|
|
24
|
+
listen('*', (type, e) => console.log(type, e))
|
|
25
|
+
|
|
26
|
+
// fire an event
|
|
27
|
+
dispatch('foo', { a: 'b' })
|
|
28
|
+
|
|
29
|
+
// clearing all events
|
|
30
|
+
all.clear()
|
|
31
|
+
|
|
32
|
+
// working with handler references:
|
|
33
|
+
function onFoo() {}
|
|
34
|
+
listen('foo', onFoo) // listen
|
|
35
|
+
off('foo', onFoo) // unlisten
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
For improved type inference, ensure to configure `./config/events.ts`. To view the full documentation, please visit [https://stacksjs.dev/events](https://stacksjs.dev/events).
|
|
39
|
+
|
|
40
|
+
## 🧪 Testing
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pnpm test
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## 📈 Changelog
|
|
47
|
+
|
|
48
|
+
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
|
|
49
|
+
|
|
50
|
+
## 💪🏼 Contributing
|
|
51
|
+
|
|
52
|
+
Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
|
|
53
|
+
|
|
54
|
+
## 🏝 Community
|
|
55
|
+
|
|
56
|
+
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
|
|
57
|
+
|
|
58
|
+
[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
|
|
59
|
+
|
|
60
|
+
For casual chit-chat with others using this package:
|
|
61
|
+
|
|
62
|
+
[Join the Stacks Discord Server](https://discord.ow3.org)
|
|
63
|
+
|
|
64
|
+
## 🙏🏼 Credits
|
|
65
|
+
|
|
66
|
+
Many thanks to the following core technologies & people who have contributed to this package:
|
|
67
|
+
|
|
68
|
+
- [mitt](https://github.com/developit/mitt)
|
|
69
|
+
- [Chris Breuer](https://github.com/chrisbbreuer)
|
|
70
|
+
- [All Contributors](../../contributors)
|
|
71
|
+
|
|
72
|
+
## 📄 License
|
|
73
|
+
|
|
74
|
+
The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
|
|
75
|
+
|
|
76
|
+
Made with ❤️
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineBuildConfig } from 'unbuild'
|
|
2
|
+
import { alias } from '@stacksjs/alias'
|
|
3
|
+
|
|
4
|
+
export default defineBuildConfig({
|
|
5
|
+
alias,
|
|
6
|
+
entries: [
|
|
7
|
+
'./src/index',
|
|
8
|
+
],
|
|
9
|
+
declaration: true,
|
|
10
|
+
clean: true,
|
|
11
|
+
rollup: {
|
|
12
|
+
emitCJS: true,
|
|
13
|
+
inlineDependencies: true,
|
|
14
|
+
},
|
|
15
|
+
})
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
|
+
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsc" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsc" "$@"
|
|
17
17
|
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsserver" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsserver" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stacksjs/events",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.47.1",
|
|
5
|
+
"packageManager": "pnpm@7.21.0",
|
|
6
|
+
"description": "Functional event emitting.",
|
|
7
|
+
"author": "Chris Breuer",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"funding": "https://github.com/sponsors/chrisbbreuer",
|
|
10
|
+
"homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/events#readme",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
14
|
+
"directory": "./.stacks/core/events"
|
|
15
|
+
},
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/stacksjs/stacks/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"events",
|
|
21
|
+
"functional",
|
|
22
|
+
"functions",
|
|
23
|
+
"mitt",
|
|
24
|
+
"stacks"
|
|
25
|
+
],
|
|
26
|
+
"main": "dist/index.mjs",
|
|
27
|
+
"module": "dist/index.mjs",
|
|
28
|
+
"types": "dist/index.d.ts",
|
|
29
|
+
"contributors": [
|
|
30
|
+
"Chris Breuer <chris@ow3.org>"
|
|
31
|
+
],
|
|
32
|
+
"files": [
|
|
33
|
+
"dist",
|
|
34
|
+
"README.md"
|
|
35
|
+
],
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=v18.12.1",
|
|
38
|
+
"pnpm": ">=7.21.0"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "mkdist -d",
|
|
42
|
+
"dev": "mkdist -d",
|
|
43
|
+
"prepublishOnly": "pnpm run build",
|
|
44
|
+
"typecheck": "tsc --noEmit"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@stacksjs/alias": "workspace:*",
|
|
48
|
+
"mitt": "^3.0.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@stacksjs/testing": "workspace:*",
|
|
52
|
+
"mkdist": "^1.0.0",
|
|
53
|
+
"typescript": "^4.9.4"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import mitt from 'mitt'
|
|
2
|
+
import type { Events } from '@stacksjs/types'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This module provides a simple, yet powerful, event bus for the application.
|
|
6
|
+
*
|
|
7
|
+
* @example To fire an event, you may use any of the following approaches:
|
|
8
|
+
* ```ts
|
|
9
|
+
* useEvent('user:registered', { name: 'Chris'})
|
|
10
|
+
* dispatch('user:registered', { name: 'Chris'})
|
|
11
|
+
* ````
|
|
12
|
+
|
|
13
|
+
* @example To capture an event, you may use any of the following approaches:
|
|
14
|
+
* ```ts
|
|
15
|
+
* useListen('user:registered', (user) => console.log(user))
|
|
16
|
+
* listen('user:registered', (user) => console.log(user))
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const events = mitt
|
|
21
|
+
|
|
22
|
+
const emitter = events<Events>()
|
|
23
|
+
|
|
24
|
+
const useEvent = emitter.emit
|
|
25
|
+
const dispatch = emitter.emit
|
|
26
|
+
const listen = emitter.on
|
|
27
|
+
const off = emitter.off
|
|
28
|
+
const all = emitter.all
|
|
29
|
+
|
|
30
|
+
export { useEvent, dispatch, listen, all, off, events, mitt, Events }
|
package/core/git/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/git",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.47.1",
|
|
5
|
+
"packageManager": "pnpm@7.21.0",
|
|
6
6
|
"description": "The Stacks git utilities & conventions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=v18.12.1",
|
|
38
|
-
"pnpm": ">=7.
|
|
38
|
+
"pnpm": ">=7.21.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "mkdist -d",
|
package/core/health/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/health",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.47.1",
|
|
5
|
+
"packageManager": "pnpm@7.21.0",
|
|
6
6
|
"description": "The Stacks Health services.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=v18.12.1",
|
|
38
|
-
"pnpm": ">=7.
|
|
38
|
+
"pnpm": ">=7.21.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "mkdist -d",
|
package/core/lint/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/lint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.47.1",
|
|
5
|
+
"packageManager": "pnpm@7.21.0",
|
|
6
6
|
"description": "The Stacks way to lint.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=v18.12.1",
|
|
39
|
-
"pnpm": ">=7.
|
|
39
|
+
"pnpm": ">=7.21.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "mkdist -d",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/logging",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.47.1",
|
|
5
|
+
"packageManager": "pnpm@7.21.0",
|
|
6
6
|
"description": "The Stacks logging system.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=v18.12.1",
|
|
38
|
-
"pnpm": ">=7.
|
|
38
|
+
"pnpm": ">=7.21.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "mkdist -d",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/modules",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.47.1",
|
|
5
|
+
"packageManager": "pnpm@7.21.0",
|
|
6
6
|
"description": "The Stacks framework modules.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
],
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=v18.12.1",
|
|
35
|
-
"pnpm": ">=7.
|
|
35
|
+
"pnpm": ">=7.21.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "mkdist -d",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/notifications",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.47.1",
|
|
5
|
+
"packageManager": "pnpm@7.21.0",
|
|
6
6
|
"description": "The Stacks notifications integration.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
],
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=v18.12.1",
|
|
46
|
-
"pnpm": ">=7.
|
|
46
|
+
"pnpm": ">=7.21.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "unbuild",
|
|
@@ -53,27 +53,27 @@
|
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@maizzle/framework": "latest",
|
|
56
|
-
"@novu/discord": "^0.
|
|
57
|
-
"@novu/emailjs": "^0.
|
|
58
|
-
"@novu/gupshup": "^0.
|
|
59
|
-
"@novu/mailgun": "^0.
|
|
60
|
-
"@novu/mailjet": "^0.
|
|
61
|
-
"@novu/mandrill": "^0.
|
|
62
|
-
"@novu/netcore": "^0.
|
|
63
|
-
"@novu/nexmo": "^0.
|
|
64
|
-
"@novu/node": "^0.
|
|
65
|
-
"@novu/nodemailer": "^0.
|
|
66
|
-
"@novu/plivo": "^0.
|
|
67
|
-
"@novu/postmark": "^0.
|
|
68
|
-
"@novu/sendgrid": "^0.
|
|
69
|
-
"@novu/ses": "^0.
|
|
70
|
-
"@novu/slack": "^0.
|
|
71
|
-
"@novu/sms77": "^0.
|
|
72
|
-
"@novu/sns": "^0.
|
|
73
|
-
"@novu/stateless": "^0.
|
|
74
|
-
"@novu/telnyx": "^0.
|
|
75
|
-
"@novu/termii": "^0.
|
|
76
|
-
"@novu/twilio": "^0.
|
|
56
|
+
"@novu/discord": "^0.10.0",
|
|
57
|
+
"@novu/emailjs": "^0.10.0",
|
|
58
|
+
"@novu/gupshup": "^0.10.0",
|
|
59
|
+
"@novu/mailgun": "^0.10.0",
|
|
60
|
+
"@novu/mailjet": "^0.10.0",
|
|
61
|
+
"@novu/mandrill": "^0.10.0",
|
|
62
|
+
"@novu/netcore": "^0.10.0",
|
|
63
|
+
"@novu/nexmo": "^0.10.0",
|
|
64
|
+
"@novu/node": "^0.10.0",
|
|
65
|
+
"@novu/nodemailer": "^0.10.0",
|
|
66
|
+
"@novu/plivo": "^0.10.0",
|
|
67
|
+
"@novu/postmark": "^0.10.0",
|
|
68
|
+
"@novu/sendgrid": "^0.10.0",
|
|
69
|
+
"@novu/ses": "^0.10.0",
|
|
70
|
+
"@novu/slack": "^0.10.0",
|
|
71
|
+
"@novu/sms77": "^0.10.0",
|
|
72
|
+
"@novu/sns": "^0.10.0",
|
|
73
|
+
"@novu/stateless": "^0.10.0",
|
|
74
|
+
"@novu/telnyx": "^0.10.0",
|
|
75
|
+
"@novu/termii": "^0.10.0",
|
|
76
|
+
"@novu/twilio": "^0.10.0",
|
|
77
77
|
"@stacksjs/cli": "workspace:*",
|
|
78
78
|
"@stacksjs/config": "workspace:*",
|
|
79
79
|
"@stacksjs/error-handling": "workspace:*",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/objects",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.47.1",
|
|
5
|
+
"packageManager": "pnpm@7.21.0",
|
|
6
6
|
"description": "The Stacks objects.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=v18.12.1",
|
|
37
|
-
"pnpm": ">=7.
|
|
37
|
+
"pnpm": ">=7.21.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "mkdist -d",
|
package/core/path/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/path",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.47.1",
|
|
5
|
+
"packageManager": "pnpm@7.21.0",
|
|
6
6
|
"description": "The Stacks path.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=v18.12.1",
|
|
39
|
-
"pnpm": ">=7.
|
|
39
|
+
"pnpm": ">=7.21.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "mkdist -d",
|
package/core/path/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { basename, delimiter, dirname, extname, format, isAbsolute, join, normal
|
|
|
7
7
|
*
|
|
8
8
|
* @param path - relative path to the file or directory
|
|
9
9
|
* @returns string - absolute path to the file or directory
|
|
10
|
+
*
|
|
10
11
|
* @example
|
|
11
12
|
* ```ts
|
|
12
13
|
* import { aiPath } from '@stacks/paths'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/payments",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@7.
|
|
4
|
+
"version": "0.47.1",
|
|
5
|
+
"packageManager": "pnpm@7.21.0",
|
|
6
6
|
"description": "The Stacks payments package. Currently supporting Stripe.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=v18.12.1",
|
|
39
|
-
"pnpm": ">=7.
|
|
39
|
+
"pnpm": ">=7.21.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "mkdist -d",
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Stacks Notifications
|
|
2
|
+
|
|
3
|
+
wip
|
|
4
|
+
|
|
5
|
+
## ☘️ Features
|
|
6
|
+
|
|
7
|
+
wip
|
|
8
|
+
|
|
9
|
+
- ⚡️
|
|
10
|
+
|
|
11
|
+
wip
|
|
12
|
+
|
|
13
|
+
## 🤖 Usage
|
|
14
|
+
|
|
15
|
+
wip
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pnpm i -D @stacksjs/notifications
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Now, you can use it in your project:
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import notifications from '@stacksjs/notifications'
|
|
25
|
+
|
|
26
|
+
// wip
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## 🤖 Drivers
|
|
30
|
+
|
|
31
|
+
### Email
|
|
32
|
+
|
|
33
|
+
- Sendgrid
|
|
34
|
+
- Mailgun
|
|
35
|
+
- Mailjet
|
|
36
|
+
- Netcore
|
|
37
|
+
- Nodemailer
|
|
38
|
+
- Post Mark
|
|
39
|
+
- Ses
|
|
40
|
+
- Mandrill
|
|
41
|
+
- EmailJS
|
|
42
|
+
|
|
43
|
+
### SMS
|
|
44
|
+
|
|
45
|
+
- Twilio
|
|
46
|
+
- Nexmo
|
|
47
|
+
- Gupshup
|
|
48
|
+
- Plivo
|
|
49
|
+
- SMS77
|
|
50
|
+
- SNS
|
|
51
|
+
- Telnyx
|
|
52
|
+
- Termii
|
|
53
|
+
|
|
54
|
+
### Chat
|
|
55
|
+
|
|
56
|
+
- Discord
|
|
57
|
+
- Slack
|
|
58
|
+
|
|
59
|
+
Learn more in the docs.
|
|
60
|
+
|
|
61
|
+
## 🧪 Testing
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
pnpm test
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## 📈 Changelog
|
|
68
|
+
|
|
69
|
+
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
|
|
70
|
+
|
|
71
|
+
## 💪🏼 Contributing
|
|
72
|
+
|
|
73
|
+
Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
|
|
74
|
+
|
|
75
|
+
## 🏝 Community
|
|
76
|
+
|
|
77
|
+
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
|
|
78
|
+
|
|
79
|
+
[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
|
|
80
|
+
|
|
81
|
+
For casual chit-chat with others using this package:
|
|
82
|
+
|
|
83
|
+
[Join the Stacks Discord Server](https://discord.ow3.org)
|
|
84
|
+
|
|
85
|
+
## 📄 License
|
|
86
|
+
|
|
87
|
+
The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
|
|
88
|
+
|
|
89
|
+
Made with ❤️
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/@maizzle+framework@4.3.1_glob@7.2.3/node_modules/@maizzle/framework/bin/maizzle" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/@maizzle+framework@4.3.1_glob@7.2.3/node_modules/@maizzle/framework/bin/maizzle" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsc" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/typescript@4.9.4/node_modules/typescript/bin/tsc" "$@"
|
|
17
|
+
fi
|