stacks 0.44.11 → 0.45.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 +4 -3
- package/buddy/README.md +4 -3
- package/buddy/package.json +7 -6
- package/buddy/src/commands/add.ts +12 -12
- package/buddy/src/commands/build.ts +55 -31
- package/buddy/src/commands/clean.ts +6 -6
- package/buddy/src/commands/commit.ts +6 -6
- package/buddy/src/commands/create.ts +14 -14
- package/buddy/src/commands/dev.ts +15 -15
- package/buddy/src/commands/example.ts +11 -11
- package/buddy/src/commands/fresh.ts +21 -10
- package/buddy/src/commands/generate.ts +20 -20
- package/buddy/src/commands/key.ts +2 -2
- package/buddy/src/commands/lint.ts +29 -11
- package/buddy/src/commands/make.ts +33 -33
- package/buddy/src/commands/preinstall.ts +6 -6
- package/buddy/src/commands/prepublish.ts +6 -6
- package/buddy/src/commands/release.ts +4 -4
- package/buddy/src/commands/setup.ts +8 -8
- package/buddy/src/commands/test.ts +11 -11
- package/buddy/src/commands/types.ts +8 -8
- package/buddy/src/commands/update.ts +20 -20
- package/buddy/src/index.ts +1 -0
- package/core/actions/package.json +2 -2
- package/core/actions/src/build-component-libs.ts +15 -0
- package/core/actions/src/build-core.ts +7 -0
- package/core/actions/src/build-stacks.ts +9 -0
- package/core/actions/src/bump.ts +10 -0
- package/core/actions/src/fix-lint-issues.ts +4 -0
- package/core/actions/src/fresh.ts +6 -26
- package/core/actions/src/{generate-package-json.ts → generate-package-jsons.ts} +0 -0
- package/core/actions/src/generate.ts +5 -5
- package/core/actions/src/helpers/lib-entries.ts +1 -1
- package/core/actions/src/helpers/package-json.ts +1 -1
- package/core/actions/src/helpers/utils.ts +31 -6
- package/core/actions/src/lint-fix.ts +8 -0
- package/core/actions/src/lint.ts +6 -30
- package/core/actions/src/make.ts +8 -8
- package/core/actions/src/release.ts +9 -28
- package/core/ai/package.json +1 -1
- package/core/alias/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/build/node_modules/.bin/vite +2 -2
- package/core/build/node_modules/.bin/vite-ssg +2 -2
- package/core/build/package.json +3 -3
- package/core/cache/package.json +2 -2
- package/core/cache/tests/Redis.test.ts +0 -1
- package/core/cli/package.json +1 -1
- package/core/cli/src/actions/run.ts +24 -11
- package/core/cli/src/helpers.ts +6 -6
- package/core/cloud/package.json +1 -1
- package/core/collections/package.json +1 -1
- package/core/config/package.json +1 -1
- package/core/dashboard/package.json +1 -1
- package/core/database/package.json +2 -2
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/docs/node_modules/.bin/vitepress +2 -2
- package/core/docs/package.json +2 -2
- package/core/domains/package.json +1 -1
- package/core/drivers/package.json +1 -1
- package/core/email/package.json +1 -1
- package/core/error-handling/package.json +2 -2
- package/core/git/package.json +1 -1
- package/core/{cloud/dist/actions → health}/README.md +11 -8
- package/core/health/node_modules/.bin/mkdist +17 -0
- package/core/health/node_modules/.bin/tsc +17 -0
- package/core/health/node_modules/.bin/tsserver +17 -0
- package/core/health/package.json +54 -0
- package/core/health/src/drivers/ohdear.ts +1 -0
- package/core/health/src/index.ts +1 -0
- package/core/health/src/notifications/index.ts +1 -0
- package/core/{notifications → health}/tests/example.test.ts +0 -0
- package/core/lint/node_modules/.bin/eslint +2 -2
- package/core/lint/package.json +3 -3
- package/core/logging/package.json +1 -1
- package/core/modules/package.json +1 -1
- package/core/modules/src/nprogress.ts +3 -1
- package/core/notifications/README.md +205 -30
- package/core/notifications/package.json +1 -1
- package/core/notifications/src/drivers/chat/slack.ts +1 -1
- package/core/notifications/src/drivers/email/actions/send.ts +1 -1
- package/core/notifications/src/drivers/push/expo.ts +19 -0
- package/core/notifications/src/drivers/push/fcm.ts +19 -0
- package/core/notifications/src/index.ts +17 -22
- package/core/notifications/tests/chat/Slack.test.ts +12 -2
- package/core/notifications/tests/email/Mailgun.test.ts +14 -3
- package/core/notifications/tests/email/Sendgrid.test.ts +15 -4
- package/core/notifications/tests/sms/Twilio.test.ts +13 -2
- package/core/objects/package.json +1 -1
- package/core/path/package.json +1 -1
- package/core/payments/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/router/package.json +1 -1
- package/core/search-engine/package.json +2 -2
- package/core/security/package.json +1 -1
- package/core/server/node_modules/.bin/vite +2 -2
- package/core/server/package.json +2 -2
- package/core/storage/package.json +1 -1
- package/core/strings/package.json +1 -1
- package/core/testing/node_modules/.bin/mkdist +2 -2
- package/core/testing/node_modules/.bin/vitest +2 -2
- package/core/testing/package.json +5 -5
- package/core/types/node_modules/.bin/vitepress +2 -2
- package/core/types/package.json +4 -4
- package/core/types/src/cli.ts +33 -3
- package/core/types/src/notifications.ts +161 -0
- package/core/ui/node_modules/.bin/vue-tsc +2 -2
- package/core/ui/package.json +2 -2
- package/core/utils/package.json +5 -5
- package/core/utils/src/helpers.ts +1 -1
- package/core/x-ray/package.json +1 -1
- package/core/x-ray/src/desktop/app.vue +0 -1
- package/core/x-ray/src/ray.config.js +1 -0
- package/core/x-ray/src/types.ts +1 -0
- package/package.json +8 -8
- package/tsconfig.json +2 -2
- package/components/vue/dist/.gitkeep +0 -0
- package/components/web/dist/.gitkeep +0 -0
- package/core/actions/test.ts +0 -10
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import { describe, expect, it } from 'vitest'
|
|
2
|
-
import { email } from '@stacksjs/notifications'
|
|
2
|
+
import { email, useNotification } from '@stacksjs/notifications'
|
|
3
3
|
import { notification as env } from '@stacksjs/config'
|
|
4
4
|
|
|
5
|
-
const notification = email.sendgrid
|
|
6
|
-
|
|
7
5
|
describe('Sendgrid Test', () => {
|
|
8
6
|
it('should send email', async () => {
|
|
7
|
+
const notification = email.sendgrid
|
|
8
|
+
const test = await notification.send({
|
|
9
|
+
from: env.email.sendgrid.from,
|
|
10
|
+
to: 'repuestobrian2@gmail.com',
|
|
11
|
+
subject: 'Test Email',
|
|
12
|
+
html: '<p> Test Email using SG!</p>',
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
expect(test).toBeDefined()
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
it('should send email using useNotification', async () => {
|
|
19
|
+
const notification = useNotification().sendgrid
|
|
9
20
|
const test = await notification.send({
|
|
10
21
|
from: env.email.sendgrid.from,
|
|
11
22
|
to: 'repuestobrian2@gmail.com',
|
|
@@ -17,6 +28,7 @@ describe('Sendgrid Test', () => {
|
|
|
17
28
|
})
|
|
18
29
|
|
|
19
30
|
it('should not send email when receiver is empty', async () => {
|
|
31
|
+
const notification = email.sendgrid
|
|
20
32
|
const test = await notification.send({
|
|
21
33
|
from: env.email.sendgrid.from,
|
|
22
34
|
to: '',
|
|
@@ -27,4 +39,3 @@ describe('Sendgrid Test', () => {
|
|
|
27
39
|
expect(test.error).toThrowError(Error)
|
|
28
40
|
})
|
|
29
41
|
})
|
|
30
|
-
|
|
@@ -2,10 +2,20 @@ import { describe, expect, it } from 'vitest'
|
|
|
2
2
|
import { sms } from '@stacksjs/notifications'
|
|
3
3
|
import { notification } from '@stacksjs/config'
|
|
4
4
|
|
|
5
|
-
const notif = sms.twilio
|
|
6
|
-
|
|
7
5
|
describe('Twilio Test', () => {
|
|
8
6
|
it('should send sms', async () => {
|
|
7
|
+
const notif = sms.twilio
|
|
8
|
+
const test = await notif.send({
|
|
9
|
+
content: 'Test SMS from Stacks',
|
|
10
|
+
to: notification.sms.twilio.to,
|
|
11
|
+
from: notification.sms.twilio.from,
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
expect(test).toBeDefined()
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
it('should send sms using useNotification', async () => {
|
|
18
|
+
const notification = useNotification('sms').twilio
|
|
9
19
|
const test = await notif.send({
|
|
10
20
|
content: 'Test SMS from Stacks',
|
|
11
21
|
to: notification.sms.twilio.to,
|
|
@@ -16,6 +26,7 @@ describe('Twilio Test', () => {
|
|
|
16
26
|
})
|
|
17
27
|
|
|
18
28
|
it('should not send sms if receiver is empty', async () => {
|
|
29
|
+
const notif = sms.twilio
|
|
19
30
|
const test = await notif.send({
|
|
20
31
|
content: 'Test SMS from Stacks',
|
|
21
32
|
to: '',
|
package/core/path/package.json
CHANGED
package/core/router/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/search-engine",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.45.0",
|
|
5
5
|
"packageManager": "pnpm@7.18.2",
|
|
6
6
|
"description": "The Stacks search engine integrations.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@stacksjs/cli": "workspace:*",
|
|
54
54
|
"@stacksjs/config": "workspace:*",
|
|
55
|
-
"@vueuse/core": "^9.
|
|
55
|
+
"@vueuse/core": "^9.8.2",
|
|
56
56
|
"meilisearch": "^0.30.0",
|
|
57
57
|
"vue": "^3.2.45"
|
|
58
58
|
},
|
|
@@ -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/../../../../../node_modules/.pnpm/vite@4.0.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite@4.0.2/node_modules/vite/bin/vite.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/vite@4.0.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/vite@4.0.2/node_modules/vite/bin/vite.js" "$@"
|
|
17
17
|
fi
|
package/core/server/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.45.0",
|
|
5
5
|
"packageManager": "pnpm@7.18.2",
|
|
6
6
|
"description": "Local development and production-ready.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@stacksjs/config": "workspace:*",
|
|
50
50
|
"@stacksjs/path": "workspace:*",
|
|
51
51
|
"nitropack": "^1.0.0",
|
|
52
|
-
"vite": "^4.0.
|
|
52
|
+
"vite": "^4.0.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@stacksjs/testing": "workspace:*",
|
|
@@ -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/../../../../../node_modules/.pnpm/mkdist@0.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@0.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/mkdist@1.0.0_typescript@4.9.4/node_modules/mkdist/dist/cli.cjs" "$@"
|
|
17
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/../../../../../node_modules/.pnpm/vitest@0.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.26.1_@vitest+ui@0.26.1/node_modules/vitest/vitest.mjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.26.1_@vitest+ui@0.26.1/node_modules/vitest/vitest.mjs" "$@"
|
|
17
17
|
fi
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/testing",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.45.0",
|
|
5
5
|
"packageManager": "pnpm@7.18.2",
|
|
6
6
|
"description": "The Stacks way to test.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"typecheck": "tsc --noEmit"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@vitest/coverage-istanbul": "^0.
|
|
50
|
-
"@vitest/ui": "^0.
|
|
51
|
-
"vitest": "^0.
|
|
49
|
+
"@vitest/coverage-istanbul": "^0.26.0",
|
|
50
|
+
"@vitest/ui": "^0.26.1",
|
|
51
|
+
"vitest": "^0.26.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"mkdist": "^0.
|
|
54
|
+
"mkdist": "^1.0.0",
|
|
55
55
|
"typescript": "^4.9.4"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -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/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.32_o4l5fnurgl7shvybs3txghyb5a/node_modules/vitepress/bin/vitepress.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-alpha.32_o4l5fnurgl7shvybs3txghyb5a/node_modules/vitepress/bin/vitepress.js" "$@"
|
|
17
17
|
fi
|
package/core/types/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.45.0",
|
|
5
5
|
"packageManager": "pnpm@7.18.2",
|
|
6
6
|
"description": "The Stacks framework types.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@types/fs-extra": "^9.0.13",
|
|
54
54
|
"@types/markdown-it-link-attributes": "^3.0.1",
|
|
55
55
|
"@types/minimatch": "^5.1.2",
|
|
56
|
-
"@types/node": "^18.11.
|
|
56
|
+
"@types/node": "^18.11.17",
|
|
57
57
|
"@types/nprogress": "^0.2.0",
|
|
58
58
|
"@types/pluralize": "^0.0.29",
|
|
59
59
|
"@types/prompts": "^2.4.2",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"typescript": "^4.9.4",
|
|
64
64
|
"unplugin-auto-import": "^0.12.1",
|
|
65
65
|
"unplugin-vue-components": "^0.22.12",
|
|
66
|
-
"vite-plugin-inspect": "^0.7.
|
|
66
|
+
"vite-plugin-inspect": "^0.7.11",
|
|
67
67
|
"vite-plugin-vue-layouts": "^0.7.0",
|
|
68
68
|
"vite-ssg": "^0.22.1",
|
|
69
|
-
"vitepress": "1.0.0-alpha.
|
|
69
|
+
"vitepress": "1.0.0-alpha.32"
|
|
70
70
|
}
|
|
71
71
|
}
|
package/core/types/src/cli.ts
CHANGED
|
@@ -50,7 +50,7 @@ export interface CliOptions {
|
|
|
50
50
|
cwd?: string
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* **
|
|
53
|
+
* **Should show loading animation spinner?**
|
|
54
54
|
*
|
|
55
55
|
* Should the command show a loading animation?
|
|
56
56
|
* Please note, when debug mode is enabled,
|
|
@@ -58,7 +58,23 @@ export interface CliOptions {
|
|
|
58
58
|
*
|
|
59
59
|
* @default true
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
shouldShowSpinner?: boolean | SpinnerOptions
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* **Should the command be run inside a shell?**
|
|
65
|
+
*
|
|
66
|
+
* If `true`, runs `command` inside of a shell. Uses `/bin/sh` on UNIX and `cmd.exe`
|
|
67
|
+
* on Windows. A different shell can be specified as a string. The shell should
|
|
68
|
+
* understand the `-c` switch on UNIX or `/d /s /c` on Windows.
|
|
69
|
+
*
|
|
70
|
+
* We recommend against using this option since it is:
|
|
71
|
+
* - not cross-platform, encouraging shell-specific syntax.
|
|
72
|
+
* - slower, because of the additional shell interpretation.
|
|
73
|
+
* - unsafe, potentially allowing command injection.
|
|
74
|
+
*
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
shell?: boolean
|
|
62
78
|
}
|
|
63
79
|
|
|
64
80
|
export type { Ora as SpinnerOptions } from 'ora'
|
|
@@ -162,7 +178,7 @@ export const enum NpmScript {
|
|
|
162
178
|
UpdatePackageManager = 'update:package-manager',
|
|
163
179
|
UpdateNode = 'pnpm env use',
|
|
164
180
|
Lint = 'eslint .',
|
|
165
|
-
LintFix = '
|
|
181
|
+
LintFix = 'eslint . --fix',
|
|
166
182
|
MakeStack = 'make:stack',
|
|
167
183
|
Test = 'vitest --config .stacks/vitest.config.ts',
|
|
168
184
|
TestUi = 'vitest --config .stacks/vitest.config.ts --ui',
|
|
@@ -190,8 +206,22 @@ export const enum NpmScript {
|
|
|
190
206
|
}
|
|
191
207
|
|
|
192
208
|
export const enum Action {
|
|
209
|
+
Bump = 'bump',
|
|
193
210
|
Release = 'release',
|
|
194
211
|
Prepublish = 'prepublish',
|
|
212
|
+
BuildStacks = 'build-stacks',
|
|
213
|
+
BuildComponentLibs = 'build-component-libs',
|
|
214
|
+
BuildVueComponentLib = 'build-vue-component-lib',
|
|
215
|
+
BuildWebComponentLib = 'build-web-component-lib',
|
|
216
|
+
BuildCli = 'build-cli',
|
|
217
|
+
BuildCore = 'build-core',
|
|
218
|
+
BuildDocs = 'build-docs',
|
|
219
|
+
BuildFunctionLib = 'build-function-lib',
|
|
220
|
+
Fresh = 'fresh', // wip: spinner missing
|
|
221
|
+
GeneratePackageJsons = 'generate-package-jsons', // wip: loop issue
|
|
222
|
+
Lint = 'lint',
|
|
223
|
+
LintFix = 'lint-fix',
|
|
224
|
+
FixLintIssues = 'fix-lint-issues',
|
|
195
225
|
}
|
|
196
226
|
|
|
197
227
|
export type { CAC as CLI } from 'cac'
|
|
@@ -1,5 +1,130 @@
|
|
|
1
1
|
import type { IChatOptions, IEmailOptions, ISendMessageSuccessResponse, ISmsOptions } from '@novu/stateless'
|
|
2
2
|
|
|
3
|
+
export interface NotificationOptions {
|
|
4
|
+
driver?: string
|
|
5
|
+
|
|
6
|
+
novu: {
|
|
7
|
+
key: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
email: {
|
|
11
|
+
sendgrid: {
|
|
12
|
+
key: string
|
|
13
|
+
from: string
|
|
14
|
+
senderName: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
emailjs: {
|
|
18
|
+
from: string
|
|
19
|
+
host: string
|
|
20
|
+
user: string
|
|
21
|
+
password: string
|
|
22
|
+
port: number
|
|
23
|
+
secure: boolean
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
mailgun: {
|
|
27
|
+
key: string
|
|
28
|
+
domain: string
|
|
29
|
+
username: string
|
|
30
|
+
from: string
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
mailjet: {
|
|
34
|
+
key: string
|
|
35
|
+
secret: string
|
|
36
|
+
from: string
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
mandrill: {
|
|
40
|
+
key: string
|
|
41
|
+
from: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
netcore: {
|
|
45
|
+
key: string
|
|
46
|
+
from: string
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
nodemailer: {
|
|
50
|
+
from: string
|
|
51
|
+
host: string
|
|
52
|
+
user: string
|
|
53
|
+
password: string
|
|
54
|
+
port: number
|
|
55
|
+
secure: boolean
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
postmark: {
|
|
59
|
+
key: string
|
|
60
|
+
from: string
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
ses: {
|
|
64
|
+
region: string
|
|
65
|
+
key: string
|
|
66
|
+
secret: string
|
|
67
|
+
from: string
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
sms: {
|
|
72
|
+
twilio: {
|
|
73
|
+
sid: string
|
|
74
|
+
authToken: string
|
|
75
|
+
from: string
|
|
76
|
+
to: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
nexmo: {
|
|
80
|
+
key: string
|
|
81
|
+
secret: string
|
|
82
|
+
from: string
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
gupshup: {
|
|
86
|
+
user: string
|
|
87
|
+
password: string
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
plivo: {
|
|
91
|
+
sid: string
|
|
92
|
+
authToken: string
|
|
93
|
+
from: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
sms77: {
|
|
97
|
+
key: string
|
|
98
|
+
from: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
sns: {
|
|
102
|
+
region: string
|
|
103
|
+
key: string
|
|
104
|
+
secret: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
telnyx: {
|
|
108
|
+
key: string
|
|
109
|
+
messageProfileId: string
|
|
110
|
+
from: string
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
termii: {
|
|
114
|
+
key: string
|
|
115
|
+
from: string
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
chat: {
|
|
120
|
+
slack: {
|
|
121
|
+
appId: string
|
|
122
|
+
clientId: string
|
|
123
|
+
secret: string
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
3
128
|
export type EmailOptions = IEmailOptions
|
|
4
129
|
|
|
5
130
|
export type SendMessageSuccessResponse = ISendMessageSuccessResponse
|
|
@@ -7,3 +132,39 @@ export type SendMessageSuccessResponse = ISendMessageSuccessResponse
|
|
|
7
132
|
export type ChatOptions = IChatOptions
|
|
8
133
|
|
|
9
134
|
export type SmsOptions = ISmsOptions
|
|
135
|
+
export interface FCMPushNotificationOptions {
|
|
136
|
+
eventName: string
|
|
137
|
+
to: {
|
|
138
|
+
subscriberId: string
|
|
139
|
+
}
|
|
140
|
+
payload: {
|
|
141
|
+
deviceTokens: Array<string>
|
|
142
|
+
badge: boolean
|
|
143
|
+
clickAction: string
|
|
144
|
+
color: string
|
|
145
|
+
icon: string
|
|
146
|
+
sound: string
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface ExpoPushNotificationOptions {
|
|
151
|
+
eventName: string
|
|
152
|
+
to: {
|
|
153
|
+
subscriberId: string
|
|
154
|
+
}
|
|
155
|
+
payload: {
|
|
156
|
+
to: string[]
|
|
157
|
+
data: Object
|
|
158
|
+
title: string
|
|
159
|
+
body: string
|
|
160
|
+
ttl: number
|
|
161
|
+
expiration: number
|
|
162
|
+
priority: 'default' | 'normal' | 'high'
|
|
163
|
+
subtitle: string
|
|
164
|
+
sound: 'default' | null
|
|
165
|
+
badge: number
|
|
166
|
+
channelId: string
|
|
167
|
+
categoryId: string
|
|
168
|
+
mutableContent: boolean
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -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/../../../../../node_modules/.pnpm/vue-tsc@1.0.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vue-tsc@1.0.16_typescript@4.9.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/vue-tsc@1.0.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/vue-tsc@1.0.16_typescript@4.9.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
|
|
17
17
|
fi
|
package/core/ui/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.45.0",
|
|
5
5
|
"packageManager": "pnpm@7.18.2",
|
|
6
6
|
"description": "The Stacks atomic UI engine, powered by UnoCSS.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"pinia": "^2.0.28",
|
|
57
57
|
"unocss": "^0.47.6",
|
|
58
58
|
"vue": "^3.2.45",
|
|
59
|
-
"vue-tsc": "^1.0.
|
|
59
|
+
"vue-tsc": "^1.0.16"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@stacksjs/testing": "workspace:*",
|
package/core/utils/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.45.0",
|
|
5
5
|
"packageManager": "pnpm@7.18.2",
|
|
6
6
|
"description": "The Stacks helper functions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"@stacksjs/path": "workspace:*",
|
|
55
55
|
"@stacksjs/storage": "workspace:*",
|
|
56
56
|
"@stacksjs/types": "workspace:*",
|
|
57
|
-
"@vueuse/core": "^9.
|
|
57
|
+
"@vueuse/core": "^9.8.2",
|
|
58
58
|
"@vueuse/head": "^1.0.22",
|
|
59
|
-
"@vueuse/math": "^9.
|
|
60
|
-
"@vueuse/shared": "^9.
|
|
59
|
+
"@vueuse/math": "^9.8.2",
|
|
60
|
+
"@vueuse/shared": "^9.8.2",
|
|
61
61
|
"defu": "^6.1.1",
|
|
62
62
|
"detect-indent": "^7.0.1",
|
|
63
63
|
"detect-newline": "^4.0.0",
|
|
64
|
-
"dinero.js": "2.0.0-alpha.
|
|
64
|
+
"dinero.js": "2.0.0-alpha.13",
|
|
65
65
|
"esno": "^0.16.3",
|
|
66
66
|
"fast-glob": "^3.2.12",
|
|
67
67
|
"kolorist": "1.6.0",
|
|
@@ -109,7 +109,7 @@ export async function setEnvValue(key: string, value: string) {
|
|
|
109
109
|
export async function runNpmScript(script: NpmScript, options?: CliOptions) {
|
|
110
110
|
const { data: manifest } = await storage.readJsonFile('package.json', frameworkPath())
|
|
111
111
|
|
|
112
|
-
if (isManifest(manifest) && hasScript(manifest, script))
|
|
112
|
+
if (isManifest(manifest) && hasScript(manifest, script)) // simple, yet effective check to see if the script exists
|
|
113
113
|
return await runCommand(`pnpm run ${script}`, options)
|
|
114
114
|
|
|
115
115
|
log.error(`The specified npm script "${script}" does not exist in the package.json file.`)
|
package/core/x-ray/package.json
CHANGED
package/core/x-ray/src/types.ts
CHANGED