stacks 0.52.9 → 0.53.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/api/nitro.config.ts +2 -2
- package/api/routes/index.ts +1 -1
- package/auto-imports.d.ts +6 -0
- package/core/actions/package.json +1 -5
- package/core/actions/src/clean.ts +1 -1
- package/core/actions/src/dev/index.ts +0 -9
- package/core/actions/src/generate/index.ts +3 -3
- package/core/actions/src/generate/settings.ts +3 -3
- package/core/actions/src/helpers/lib-entries.ts +11 -12
- package/core/actions/src/helpers/utils.ts +1 -1
- package/core/actions/src/make.ts +1 -1
- package/core/actions/src/release.ts +4 -2
- package/core/actions/src/upgrade/framework.ts +29 -29
- package/core/actions/src/upgrade/index.ts +13 -15
- package/core/actions/src/upgrade/node.ts +4 -4
- package/core/actions/src/upgrade/package-manager.ts +4 -4
- package/core/actions/src/upgrade.ts +1 -1
- package/core/ai/package.json +1 -1
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/cli.ts +3 -26
- package/core/buddy/src/commands/fresh.ts +1 -1
- package/core/buddy/src/commands/lint.ts +2 -2
- package/core/buddy/src/commands/onboarding.ts +9 -15
- package/core/buddy/src/commands/setting.ts +10 -12
- package/core/buddy/src/commands/version.ts +7 -19
- package/core/buddy/src/index.ts +0 -21
- package/core/build/package.json +3 -3
- package/core/build/src/functions.ts +3 -3
- package/core/build/src/stacks.ts +3 -6
- package/core/build/src/web-components.ts +1 -1
- package/core/cache/package.json +2 -2
- package/core/cache/src/drivers/redis.ts +2 -2
- package/core/chat/package.json +1 -1
- package/core/cli/package.json +1 -1
- package/core/cli/src/run.ts +2 -2
- package/core/cloud/package.json +1 -1
- package/core/collections/package.json +1 -1
- package/core/config/package.json +1 -1
- package/core/database/package.json +1 -1
- package/core/database/src/factory/index.ts +2 -2
- package/core/database/src/migrations/index.ts +2 -2
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/development/package.json +1 -1
- package/core/docs/node_modules/.bin/vitepress +4 -4
- package/core/docs/package.json +2 -2
- package/core/domains/package.json +1 -1
- package/core/email/package.json +1 -1
- package/core/email/src/actions/send.ts +2 -0
- package/core/email/src/tailwind.config.ts +3 -3
- package/core/error-handling/package.json +2 -2
- package/core/events/package.json +1 -1
- package/core/faker/package.json +1 -1
- package/core/git/package.json +1 -1
- package/core/health/package.json +1 -1
- package/core/lint/node_modules/.bin/publint +4 -4
- package/core/lint/package.json +4 -4
- package/core/logging/package.json +2 -2
- package/core/modules/package.json +1 -1
- package/core/notifications/package.json +1 -1
- package/core/notifications/tests/chat/Slack.test.ts +35 -35
- package/core/notifications/tests/email/Mailgun.test.ts +41 -41
- package/core/notifications/tests/email/Sendgrid.test.ts +41 -41
- package/core/notifications/tests/sms/Twilio.test.ts +38 -38
- package/core/objects/package.json +1 -1
- package/core/objects/src/index.ts +2 -1
- package/core/orm/package.json +1 -1
- package/core/pages/package.json +1 -1
- package/core/pages/src/index.ts +39 -39
- package/core/path/package.json +1 -1
- package/core/path/src/index.ts +14 -4
- package/core/payments/package.json +1 -1
- package/core/push/package.json +1 -1
- package/core/query-builder/package.json +2 -2
- package/core/queue/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/router/package.json +1 -1
- package/core/scheduler/package.json +1 -1
- package/core/search-engine/package.json +2 -2
- package/core/search-engine/src/helpers.ts +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +2 -1
- package/core/server/src/index.ts +2 -5
- package/core/server/src/nitro.config.ts +2 -2
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/package.json +1 -1
- package/core/sms/src/drivers/gupshup.ts +1 -1
- package/core/sms/src/drivers/nexmo.ts +3 -2
- package/core/sms/src/drivers/plivo.ts +3 -2
- package/core/sms/src/drivers/sms77.ts +3 -2
- package/core/sms/src/drivers/sns.ts +1 -1
- package/core/sms/src/drivers/telnyx.ts +3 -2
- package/core/sms/src/drivers/termii.ts +3 -2
- package/core/sms/src/drivers/twilio.ts +3 -2
- package/core/storage/package.json +1 -1
- package/core/storage/src/index.ts +3 -5
- package/core/strings/package.json +1 -1
- package/core/testing/node_modules/.bin/playwright +4 -4
- package/core/testing/package.json +2 -2
- package/core/tinker/package.json +1 -1
- package/core/types/node_modules/.bin/vite +4 -4
- package/core/types/node_modules/.bin/vitepress +4 -4
- package/core/types/package.json +8 -8
- package/core/types/src/cli.ts +9 -11
- package/core/types/src/fs.ts +5 -0
- package/core/types/src/model.ts +0 -1
- package/core/ui/package.json +3 -3
- package/core/utils/package.json +3 -3
- package/core/utils/src/guards.ts +3 -3
- package/core/utils/src/helpers.ts +26 -8
- package/core/utils/src/vendors.ts +1 -0
- package/core/validation/package.json +1 -1
- package/docs/node_modules/.bin/vitepress +4 -4
- package/docs/package.json +1 -1
- package/package.json +91 -91
- package/pages/web/main.ts +26 -26
- package/core/actions/src/generate/package-jsons.ts +0 -11
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import type { CLI } from '@stacksjs/types'
|
|
2
2
|
import { bold, dim, green, intro } from '@stacksjs/cli'
|
|
3
|
-
import { filesystem } from '@stacksjs/storage'
|
|
4
3
|
import { log } from '@stacksjs/logging'
|
|
5
|
-
import {
|
|
4
|
+
import { storage } from '@stacksjs/storage'
|
|
6
5
|
|
|
7
6
|
async function version(buddy: CLI) {
|
|
8
|
-
// maybe use type-fest?
|
|
9
|
-
interface PackageJson {
|
|
10
|
-
engines: {
|
|
11
|
-
node: string
|
|
12
|
-
pnpm: string
|
|
13
|
-
}
|
|
14
|
-
version: string
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const { fs } = filesystem
|
|
18
|
-
|
|
19
7
|
const descriptions = {
|
|
20
8
|
version: 'Retrieving Stacks build version',
|
|
21
9
|
}
|
|
@@ -25,15 +13,15 @@ async function version(buddy: CLI) {
|
|
|
25
13
|
.action(async () => {
|
|
26
14
|
await intro('buddy version')
|
|
27
15
|
|
|
28
|
-
const
|
|
29
|
-
const nodeVersion =
|
|
30
|
-
const pnpmVersion =
|
|
31
|
-
const stacksVersion =
|
|
16
|
+
const pkg = await storage.readPackageJson('./package.json')
|
|
17
|
+
const nodeVersion = pkg.engines.node.replace('>=v', '')
|
|
18
|
+
const pnpmVersion = pkg.engines.pnpm.replace('>=', '')
|
|
19
|
+
const stacksVersion = pkg.version
|
|
32
20
|
|
|
33
|
-
log.info(green(bold('Stacks: ')) + dim(` ${stacksVersion
|
|
21
|
+
log.info(green(bold('Stacks: ')) + dim(` ${stacksVersion}`))
|
|
34
22
|
log.info(green(bold('node: ')) + dim(` ${nodeVersion}`))
|
|
35
23
|
log.info(green(bold('pnpm: ')) + dim(` ${pnpmVersion}`))
|
|
36
|
-
|
|
24
|
+
// redis (or other cache/s), mysql (or other database/s),
|
|
37
25
|
})
|
|
38
26
|
}
|
|
39
27
|
|
package/core/buddy/src/index.ts
CHANGED
|
@@ -1,22 +1 @@
|
|
|
1
1
|
export * from './commands'
|
|
2
|
-
export * from '@stacksjs/alias'
|
|
3
|
-
// export * from '@stacksjs/ai'
|
|
4
|
-
export * from '@stacksjs/arrays'
|
|
5
|
-
export * from '@stacksjs/build'
|
|
6
|
-
export * from '@stacksjs/cli'
|
|
7
|
-
export * from '@stacksjs/cloud'
|
|
8
|
-
export * from '@stacksjs/collections'
|
|
9
|
-
export * from '@stacksjs/config'
|
|
10
|
-
export * from '@stacksjs/faker'
|
|
11
|
-
// export * from '@stacksjs/events'
|
|
12
|
-
// export * from '@stacksjs/desktop'
|
|
13
|
-
// export * from '@stacksjs/notifications'
|
|
14
|
-
export * from '@stacksjs/storage'
|
|
15
|
-
export * from '@stacksjs/router'
|
|
16
|
-
export * from '@stacksjs/server'
|
|
17
|
-
export * from '@stacksjs/strings'
|
|
18
|
-
export * from '@stacksjs/types'
|
|
19
|
-
export * from '@stacksjs/objects'
|
|
20
|
-
export * from '@stacksjs/path'
|
|
21
|
-
export * from '@stacksjs/ui'
|
|
22
|
-
// export * from '@stacksjs/utils'
|
package/core/build/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/build",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.1",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks framework build tools and configurations.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"markdown-it-link-attributes": "^4.0.1",
|
|
59
59
|
"markdown-it-shiki": "^0.9.0",
|
|
60
60
|
"unbuild": "^1.2.1",
|
|
61
|
-
"unplugin-auto-import": "^0.16.
|
|
61
|
+
"unplugin-auto-import": "^0.16.2",
|
|
62
62
|
"unplugin-vue-components": "^0.24.1",
|
|
63
63
|
"vite": "^4.3.8",
|
|
64
|
-
"vite-plugin-inspect": "^0.7.
|
|
64
|
+
"vite-plugin-inspect": "^0.7.28",
|
|
65
65
|
"vite-plugin-pages": "^0.30.1",
|
|
66
66
|
"vite-plugin-pwa": "^0.15.0",
|
|
67
67
|
"vite-plugin-vue-layouts": "^0.8.0",
|
|
@@ -26,11 +26,11 @@ export function functionsBuildOptions(): ViteBuildOptions {
|
|
|
26
26
|
return {
|
|
27
27
|
outDir: frameworkPath('functions/dist'),
|
|
28
28
|
emptyOutDir: true,
|
|
29
|
-
sourcemap: library.functions
|
|
29
|
+
sourcemap: library.functions?.shouldGenerateSourcemap,
|
|
30
30
|
lib: {
|
|
31
31
|
entry: buildEntriesPath('functions.ts'),
|
|
32
|
-
name: library.functions
|
|
33
|
-
formats: library.functions
|
|
32
|
+
name: library.functions?.name,
|
|
33
|
+
formats: library.functions?.shouldBuildIife ? ['cjs', 'es', 'iife'] : ['cjs', 'es'],
|
|
34
34
|
fileName: (format: string) => {
|
|
35
35
|
if (format === 'es')
|
|
36
36
|
return 'index.mjs'
|
package/core/build/src/stacks.ts
CHANGED
|
@@ -14,9 +14,6 @@ import { defu } from 'defu'
|
|
|
14
14
|
import type { AutoImportsOptions, ComponentOptions, InspectOptions, LayoutOptions, MarkdownOptions, PagesOption } from '@stacksjs/types'
|
|
15
15
|
import { path as p, resolve } from '@stacksjs/path'
|
|
16
16
|
|
|
17
|
-
// it is important to note that path references within this file
|
|
18
|
-
// are relative to the ./build folder
|
|
19
|
-
|
|
20
17
|
function inspect(options?: InspectOptions) {
|
|
21
18
|
return Inspect(options)
|
|
22
19
|
}
|
|
@@ -44,7 +41,7 @@ function components(options?: ComponentOptions): PluginOption {
|
|
|
44
41
|
|
|
45
42
|
// https://github.com/hannoeru/vite-plugin-pages
|
|
46
43
|
function pages(options?: PagesOption) {
|
|
47
|
-
const defaultOptions
|
|
44
|
+
const defaultOptions = {
|
|
48
45
|
extensions: ['vue', 'md'],
|
|
49
46
|
dirs: [
|
|
50
47
|
p.pagesPath(),
|
|
@@ -57,10 +54,10 @@ function pages(options?: PagesOption) {
|
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
function markdown(options?: MarkdownOptions) {
|
|
60
|
-
const defaultOptions
|
|
57
|
+
const defaultOptions = {
|
|
61
58
|
wrapperClasses: 'prose prose-sm m-auto text-left',
|
|
62
59
|
headEnabled: true,
|
|
63
|
-
markdownItSetup(md) {
|
|
60
|
+
markdownItSetup(md: any) {
|
|
64
61
|
// https://prismjs.com/
|
|
65
62
|
md.use(Shiki, {
|
|
66
63
|
theme: 'nord',
|
|
@@ -37,7 +37,7 @@ export function webComponentsBuildOptions(): ViteBuildOptions {
|
|
|
37
37
|
emptyOutDir: true,
|
|
38
38
|
lib: {
|
|
39
39
|
entry: buildEntriesPath('web-components.ts'),
|
|
40
|
-
name: library.webComponents
|
|
40
|
+
name: library.webComponents?.name,
|
|
41
41
|
formats: ['cjs', 'es'],
|
|
42
42
|
fileName: (format: string) => {
|
|
43
43
|
if (format === 'es')
|
package/core/cache/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/cache",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.1",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks way of caching.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"typecheck": "tsc --noEmit"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
67
|
+
"@aws-sdk/client-dynamodb": "^3.338.0",
|
|
68
68
|
"@stacksjs/config": "workspace:*",
|
|
69
69
|
"@types/memjs": "^1.3.0",
|
|
70
70
|
"memcached": "^2.2.2",
|
package/core/chat/package.json
CHANGED
package/core/cli/package.json
CHANGED
package/core/cli/src/run.ts
CHANGED
|
@@ -46,7 +46,7 @@ export function execSync(command: string) {
|
|
|
46
46
|
* @returns The result of the command.
|
|
47
47
|
*/
|
|
48
48
|
export async function runCommand(command: string, options?: CliOptions): Promise<ResultAsync<CommandReturnValue, Error>> {
|
|
49
|
-
return
|
|
49
|
+
return exec(command, options)
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
@@ -75,7 +75,7 @@ export async function runCommands(commands: string[], options?: CliOptions): Pro
|
|
|
75
75
|
}
|
|
76
76
|
else if (result.isErr()) {
|
|
77
77
|
if (spinner) {
|
|
78
|
-
log.error(new Error(
|
|
78
|
+
log.error(new Error(`Failed to run command ${italic(command)}`))
|
|
79
79
|
process.exit(ExitCode.FatalError)
|
|
80
80
|
}
|
|
81
81
|
|
package/core/cloud/package.json
CHANGED
package/core/config/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { storage } from '@stacksjs/storage'
|
|
2
2
|
|
|
3
|
-
const { fs } =
|
|
3
|
+
const { fs } = storage
|
|
4
4
|
|
|
5
5
|
function generateFactoryFile(modelName: string, fileName: string, path: string): void {
|
|
6
6
|
const generateMethodName = 'generate'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// import {
|
|
1
|
+
// import { storage } from '@stacksjs/storage'
|
|
2
2
|
// import { frameworkPath, projectPath } from '@stacksjs/path'
|
|
3
3
|
// import type { Model, SchemaOptions } from '@stacksjs/types'
|
|
4
4
|
// import { titleCase } from '@stacksjs/strings'
|
|
5
5
|
|
|
6
|
-
// const { fs } =
|
|
6
|
+
// const { fs } = storage
|
|
7
7
|
|
|
8
8
|
// function generatePrismaSchema(models: Model[], path: string, options: SchemaOptions): void {
|
|
9
9
|
// let schema = `datasource db {
|
|
@@ -6,12 +6,12 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/vitepress@1.0.0-
|
|
9
|
+
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/vitepress@1.0.0-beta.1_@algolia+client-search@4.17.0_@types+node@18.16.14/node_modules/vitepress/bin/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/vitepress@1.0.0-beta.1_@algolia+client-search@4.17.0_@types+node@18.16.14/node_modules/vitepress/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/vitepress@1.0.0-beta.1_@algolia+client-search@4.17.0_@types+node@18.16.14/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/vitepress@1.0.0-
|
|
11
|
+
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/vitepress@1.0.0-beta.1_@algolia+client-search@4.17.0_@types+node@18.16.14/node_modules/vitepress/bin/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/vitepress@1.0.0-beta.1_@algolia+client-search@4.17.0_@types+node@18.16.14/node_modules/vitepress/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/vitepress@1.0.0-beta.1_@algolia+client-search@4.17.0_@types+node@18.16.14/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-beta.1_@algolia+client-search@4.17.0_@types+node@18.16.14/node_modules/vitepress/bin/vitepress.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/vitepress@1.0.0-beta.1_@algolia+client-search@4.17.0_@types+node@18.16.14/node_modules/vitepress/bin/vitepress.js" "$@"
|
|
17
17
|
fi
|
package/core/docs/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/docs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.1",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks way to document.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"typecheck": "tsc --noEmit"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"vitepress": "1.0.0-
|
|
47
|
+
"vitepress": "1.0.0-beta.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@stacksjs/alias": "workspace:*",
|
package/core/email/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/email",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.1",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -2,6 +2,8 @@ import type { EmailOptions } from '@stacksjs/types'
|
|
|
2
2
|
import { italic } from '@stacksjs/cli'
|
|
3
3
|
import { log } from '@stacksjs/logging'
|
|
4
4
|
import { ResultAsync } from '@stacksjs/error-handling'
|
|
5
|
+
|
|
6
|
+
// @ts-expect-error check if types are available
|
|
5
7
|
import * as Maizzle from '@maizzle/framework'
|
|
6
8
|
import * as maizzleConfig from '../utils/config'
|
|
7
9
|
import { config } from '../tailwind.config'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { notification } from '@stacksjs/config'
|
|
1
|
+
// import { notification } from '@stacksjs/config'
|
|
2
2
|
|
|
3
|
-
const email = notification.email
|
|
3
|
+
// const email = notification.email
|
|
4
4
|
|
|
5
5
|
export const config = {
|
|
6
|
-
...email?.build,
|
|
6
|
+
// ...email?.build,
|
|
7
7
|
theme: {
|
|
8
8
|
screens: {
|
|
9
9
|
sm: '480px',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/error-handling",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.1",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "Type safe error handling.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typecheck": "tsc --noEmit"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@ow3/eslint-config": "^0.
|
|
49
|
+
"@ow3/eslint-config": "^0.43.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"neverthrow": "^6.0.0"
|
package/core/events/package.json
CHANGED
package/core/faker/package.json
CHANGED
package/core/git/package.json
CHANGED
package/core/health/package.json
CHANGED
|
@@ -6,12 +6,12 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/publint@0.1.
|
|
9
|
+
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/publint@0.1.12/node_modules/publint/lib/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/publint@0.1.12/node_modules/publint/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/publint@0.1.12/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/publint@0.1.
|
|
11
|
+
export NODE_PATH="/home/runner/work/stacks/stacks/node_modules/.pnpm/publint@0.1.12/node_modules/publint/lib/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/publint@0.1.12/node_modules/publint/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/publint@0.1.12/node_modules:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/publint@0.1.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/publint@0.1.12/node_modules/publint/lib/cli.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/publint@0.1.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/publint@0.1.12/node_modules/publint/lib/cli.js" "$@"
|
|
17
17
|
fi
|
package/core/lint/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/lint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.1",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks way to lint.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"typecheck": "tsc --noEmit"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@ow3/eslint-config": "^0.
|
|
50
|
-
"@types/eslint": "^8.
|
|
49
|
+
"@ow3/eslint-config": "^0.43.0",
|
|
50
|
+
"@types/eslint": "^8.40.0",
|
|
51
51
|
"eslint": "^8.41.0",
|
|
52
52
|
"lint-staged": "^13.2.2",
|
|
53
|
-
"publint": "^0.1.
|
|
53
|
+
"publint": "^0.1.12"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@stacksjs/development": "workspace:*"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/logging",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.1",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks logging system.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"consola": "^3.1.0",
|
|
50
|
-
"node-ray": "1.20.
|
|
50
|
+
"node-ray": "1.20.11",
|
|
51
51
|
"vue-ray": "^1.17.4"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
import { chat, useChat } from '@stacksjs/notifications'
|
|
3
|
-
import { Err } from '@stacksjs/types'
|
|
4
|
-
|
|
5
|
-
describe('Slack Test', () => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
})
|
|
1
|
+
// import { describe, expect, it } from 'vitest'
|
|
2
|
+
// import { chat, useChat } from '@stacksjs/notifications'
|
|
3
|
+
// import { Err } from '@stacksjs/types'
|
|
4
|
+
//
|
|
5
|
+
// describe('Slack Test', () => {
|
|
6
|
+
// it('should send chat', async () => {
|
|
7
|
+
// const notification = chat.slack
|
|
8
|
+
// const test = await notification.send({
|
|
9
|
+
// content: 'Test Slack Message!',
|
|
10
|
+
// webhookUrl: 'https://hooks.slack.com/services/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',
|
|
11
|
+
// })
|
|
12
|
+
//
|
|
13
|
+
// expect(test).toBeDefined()
|
|
14
|
+
// })
|
|
15
|
+
//
|
|
16
|
+
// it('should send chat using useChat', async () => {
|
|
17
|
+
// const notification = useChat('slack')
|
|
18
|
+
// const test = await notification.send({
|
|
19
|
+
// content: 'Test Slack Message!',
|
|
20
|
+
// webhookUrl: 'https://hooks.slack.com/services/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',
|
|
21
|
+
// })
|
|
22
|
+
//
|
|
23
|
+
// expect(test).toBeDefined()
|
|
24
|
+
// })
|
|
25
|
+
//
|
|
26
|
+
// it('should not send chat if webhook is empty', async () => {
|
|
27
|
+
// const notification = chat.slack
|
|
28
|
+
// const test = await notification.send({
|
|
29
|
+
// content: 'Test Slack Message!',
|
|
30
|
+
// webhookUrl: '',
|
|
31
|
+
// })
|
|
32
|
+
//
|
|
33
|
+
// expect(test).toBeInstanceOf(Err)
|
|
34
|
+
// })
|
|
35
|
+
// })
|