stacks 0.58.63 → 0.58.64

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.
Files changed (138) hide show
  1. package/core/actions/dist/src/database/seed.js +0 -3
  2. package/core/actions/dist/src/deploy/index.js +1 -1
  3. package/core/actions/dist/src/index.js +3 -0
  4. package/core/actions/dist/src/release.js +5 -2
  5. package/core/actions/dist/src/upgrade.js +1 -1
  6. package/core/actions/package.json +1 -1
  7. package/core/actions/src/action.ts +4 -1
  8. package/core/actions/src/copy-types.ts +1 -1
  9. package/core/actions/src/database/seed.ts +3 -3
  10. package/core/actions/src/deploy/index.ts +1 -1
  11. package/core/actions/src/helpers/utils.ts +2 -2
  12. package/core/ai/package.json +1 -1
  13. package/core/alias/package.json +1 -1
  14. package/core/analytics/package.json +1 -1
  15. package/core/api/package.json +1 -1
  16. package/core/arrays/package.json +1 -1
  17. package/core/arrays/src/helpers.ts +3 -3
  18. package/core/auth/package.json +1 -1
  19. package/core/buddy/dist/cli.js +1 -1
  20. package/core/buddy/package.json +1 -1
  21. package/core/buddy/src/cli.ts +1 -1
  22. package/core/build/package.json +1 -1
  23. package/core/bun-create/bud/package.json +1 -1
  24. package/core/bun-create/buddy/package.json +1 -1
  25. package/core/bun-create/stack/package.json +1 -1
  26. package/core/bun-create/stacks/package.json +1 -1
  27. package/core/bun-create/stx/package.json +1 -1
  28. package/core/bun-plugin-yaml/package.json +1 -1
  29. package/core/cache/package.json +1 -1
  30. package/core/cache/tests/DynamoDB.test.ts +125 -125
  31. package/core/cache/tests/Memcached.test.ts +51 -51
  32. package/core/cache/tests/Redis.test.ts +84 -84
  33. package/core/chat/package.json +1 -1
  34. package/core/cli/dist/index.js +1 -1
  35. package/core/cli/package.json +1 -1
  36. package/core/cli/src/exec.ts +2 -2
  37. package/core/cloud/dist/index.js +7 -7
  38. package/core/cloud/package.json +1 -1
  39. package/core/cloud/src/cloud/ai.ts +3 -3
  40. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
  41. package/core/cloud/src/cloud/cli.ts +1 -1
  42. package/core/cloud/src/cloud/deployment.ts +3 -3
  43. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  44. package/core/collections/package.json +1 -1
  45. package/core/config/dist/index.js +4 -0
  46. package/core/config/package.json +1 -1
  47. package/core/database/package.json +1 -1
  48. package/core/database/src/kysely-bun-worker/driver.ts +1 -1
  49. package/core/datetime/package.json +1 -1
  50. package/core/desktop/package.json +1 -1
  51. package/core/development/package.json +1 -1
  52. package/core/dns/package.json +1 -1
  53. package/core/docs/package.json +1 -1
  54. package/core/email/package.json +2 -2
  55. package/core/enums/package.json +1 -1
  56. package/core/env/package.json +1 -1
  57. package/core/error-handling/package.json +1 -1
  58. package/core/error-handling/src/handler.ts +1 -1
  59. package/core/eslint-config/package.json +1 -1
  60. package/core/events/package.json +1 -1
  61. package/core/faker/package.json +1 -1
  62. package/core/git/package.json +1 -1
  63. package/core/health/package.json +1 -1
  64. package/core/http/package.json +1 -1
  65. package/core/lint/package.json +1 -1
  66. package/core/logging/package.json +1 -1
  67. package/core/notifications/package.json +1 -1
  68. package/core/objects/package.json +1 -1
  69. package/core/orm/package.json +1 -1
  70. package/core/path/dist/index.js +30 -0
  71. package/core/path/package.json +1 -1
  72. package/core/path/src/index.ts +30 -0
  73. package/core/payments/package.json +1 -1
  74. package/core/push/package.json +1 -1
  75. package/core/query-builder/package.json +1 -1
  76. package/core/queue/package.json +1 -1
  77. package/core/raycast/package.json +1 -1
  78. package/core/realtime/package.json +1 -1
  79. package/core/repl/package.json +1 -1
  80. package/core/router/dist/index.js +40 -2
  81. package/core/router/package.json +1 -1
  82. package/core/router/src/router.ts +21 -1
  83. package/core/router/src/server.ts +0 -2
  84. package/core/scheduler/dist/index.js +1 -2
  85. package/core/scheduler/package.json +2 -1
  86. package/core/scheduler/src/index.ts +1 -1
  87. package/core/scheduler/src/job.ts +2 -2
  88. package/core/scheduler/src/schedule.ts +2 -2
  89. package/core/scheduler/tests/cron.test.ts +1243 -1243
  90. package/core/scheduler/tests/crontime.test.ts +780 -778
  91. package/core/search-engine/dist/index.js +1 -3
  92. package/core/search-engine/package.json +1 -1
  93. package/core/search-engine/src/index.ts +5 -5
  94. package/core/security/package.json +1 -1
  95. package/core/server/package.json +1 -1
  96. package/core/signals/package.json +1 -1
  97. package/core/slug/package.json +1 -1
  98. package/core/sms/package.json +1 -1
  99. package/core/storage/dist/index.js +0 -1
  100. package/core/storage/package.json +1 -1
  101. package/core/storage/src/files.ts +2 -5
  102. package/core/storage/src/hash.ts +0 -2
  103. package/core/strings/package.json +1 -1
  104. package/core/tables/package.json +1 -1
  105. package/core/testing/dist/index.js +14978 -1
  106. package/core/testing/package.json +1 -1
  107. package/core/testing/src/index.ts +12 -2
  108. package/core/tinker/package.json +1 -1
  109. package/core/tunnel/package.json +1 -1
  110. package/core/types/package.json +1 -1
  111. package/core/types/src/cli.ts +1 -1
  112. package/core/types/src/cron-jobs.ts +0 -5
  113. package/core/types/src/errors.ts +1 -1
  114. package/core/types/src/router.ts +7 -5
  115. package/core/ui/package.json +1 -1
  116. package/core/utils/dist/index.js +4 -8
  117. package/core/utils/package.json +1 -1
  118. package/core/utils/scripts/export-size.ts +3 -3
  119. package/core/utils/src/base.ts +4 -4
  120. package/core/utils/src/helpers.ts +3 -3
  121. package/core/utils/src/retry.ts +2 -2
  122. package/core/validation/package.json +1 -1
  123. package/core/vite/dist/index.js +1 -1
  124. package/core/vite/package.json +1 -1
  125. package/core/vite/src/functions.ts +0 -1
  126. package/core/vite/src/index.ts +1 -1
  127. package/core/vite/src/plugin/docs.ts +2 -0
  128. package/core/vite/src/plugin/stacks.ts +3 -2
  129. package/core/vite/src/web-components.ts +2 -2
  130. package/core/whois/package.json +1 -1
  131. package/core/whois/src/index.ts +2 -2
  132. package/core/x-ray/package.json +1 -1
  133. package/core/zsh-buddy/package.json +1 -1
  134. package/ide/vscode/package.json +1 -1
  135. package/package.json +1 -1
  136. package/core/actions/src/database/mydb.sqlite +0 -0
  137. package/core/actions/src/database/stacks.sqlite +0 -0
  138. package/core/server/src/api.ts +0 -5
@@ -1,51 +1,51 @@
1
- import { expect, it } from '@stacksjs/testing'
2
- import Memcached, { type Client } from 'memjs'
3
-
4
- const client: Client = Memcached.Client.create('127.0.0.1:11211')
5
-
6
- // TODO: needs to be imported to cache package
7
- async function set(key: string, value: any, duration: number): Promise<void> {
8
- await client.set(key, value, { expires: duration })
9
- }
10
-
11
- // TODO: needs to be imported to cache package
12
- async function get(key: string): Promise<any> {
13
- const value = await client.get(key)
14
-
15
- const result = value.value ? value.value.toString() : null
16
-
17
- return result
18
- }
19
-
20
- async function del(key: string): Promise<void> {
21
- await client.delete(key)
22
- }
23
-
24
- // TODO: needs to be imported to cache package
25
- async function flush(): Promise<void> {
26
- await client.flush()
27
- }
28
-
29
- describe('memcachedTest', () => {
30
- it('it should set memcached cache', async () => {
31
- await set('test', 'test', 10 * 60)
32
- expect(await get('test')).toBe('test')
33
- })
34
-
35
- it('it should get memcached cache', async () => {
36
- await set('test', 'test', 10 * 60)
37
- expect(await get('test')).toBe('test')
38
- })
39
-
40
- it('it should delete memcached cache', async () => {
41
- await set('test', 'test', 10 * 60)
42
- await del('test')
43
- expect(await get('test')).toBe(null)
44
- })
45
-
46
- it('it should flush memcached cache', async () => {
47
- await set('test', 'test', 10 * 60)
48
- await flush()
49
- expect(await get('test')).toBe(null)
50
- })
51
- })
1
+ // import { expect, it } from '@stacksjs/testing'
2
+ // import Memcached, { type Client } from 'memjs'
3
+ //
4
+ // const client: Client = Memcached.Client.create('127.0.0.1:11211')
5
+ //
6
+ // // TODO: needs to be imported to cache package
7
+ // async function set(key: string, value: any, duration: number): Promise<void> {
8
+ // await client.set(key, value, { expires: duration })
9
+ // }
10
+ //
11
+ // // TODO: needs to be imported to cache package
12
+ // async function get(key: string): Promise<any> {
13
+ // const value = await client.get(key)
14
+ //
15
+ // const result = value.value ? value.value.toString() : null
16
+ //
17
+ // return result
18
+ // }
19
+ //
20
+ // async function del(key: string): Promise<void> {
21
+ // await client.delete(key)
22
+ // }
23
+ //
24
+ // // TODO: needs to be imported to cache package
25
+ // async function flush(): Promise<void> {
26
+ // await client.flush()
27
+ // }
28
+ //
29
+ // describe('memcachedTest', () => {
30
+ // it('it should set memcached cache', async () => {
31
+ // await set('test', 'test', 10 * 60)
32
+ // expect(await get('test')).toBe('test')
33
+ // })
34
+ //
35
+ // it('it should get memcached cache', async () => {
36
+ // await set('test', 'test', 10 * 60)
37
+ // expect(await get('test')).toBe('test')
38
+ // })
39
+ //
40
+ // it('it should delete memcached cache', async () => {
41
+ // await set('test', 'test', 10 * 60)
42
+ // await del('test')
43
+ // expect(await get('test')).toBe(null)
44
+ // })
45
+ //
46
+ // it('it should flush memcached cache', async () => {
47
+ // await set('test', 'test', 10 * 60)
48
+ // await flush()
49
+ // expect(await get('test')).toBe(null)
50
+ // })
51
+ // })
@@ -1,84 +1,84 @@
1
- import { expect, it } from '@stacksjs/testing'
2
-
3
- import { createClient } from 'redis'
4
-
5
- // TODO: needs to be imported from cache package
6
-
7
- const client: any = createClient({
8
- socket: {
9
- host: '127.0.0.1',
10
- port: 6379,
11
- },
12
- password: '',
13
- })
14
-
15
- // TODO: needs to be moved to cache package
16
- await client.connect()
17
-
18
- // TODO: needs to be imported to cache package
19
- async function set(key: any, value: any): Promise<void> {
20
- await client.set(key, value)
21
- }
22
-
23
- // TODO: needs to be imported to cache package
24
- async function get(key: string): Promise<any> {
25
- const value = await client.get(key)
26
-
27
- return value
28
- }
29
-
30
- // TODO: needs to be imported to cache package
31
- async function remove(key: string): Promise<void> {
32
- await client.del(key)
33
- }
34
-
35
- // TODO: needs to be imported to cache package
36
- async function del(key: string): Promise<void> {
37
- await client.del(key)
38
- }
39
-
40
- // TODO: needs to be imported to cache package
41
- async function flushAll(): Promise<void> {
42
- await client.sendCommand(['FLUSHALL', 'ASYNC'])
43
- }
44
-
45
- // TODO: needs to be imported to cache package
46
- async function flushDB(): Promise<void> {
47
- await client.sendCommand(['FLUSHDB', 'ASYNC'])
48
- }
49
-
50
- describe('redisTest', () => {
51
- it('it should set redis cache', async () => {
52
- await set('test', 'test')
53
- expect(await get('test')).toBe('test')
54
- })
55
-
56
- it('it should get redis cache', async () => {
57
- await set('test', 'test')
58
- expect(await get('test')).toBe('test')
59
- })
60
-
61
- it('it should remove cache', async () => {
62
- await set('test', 'test')
63
- await remove('test')
64
- expect(await get('test')).toBe(null)
65
- })
66
-
67
- it('it should del cache', async () => {
68
- await set('test', 'test')
69
- await del('test')
70
- expect(await get('test')).toBe(null)
71
- })
72
-
73
- it('it should flush all cache', async () => {
74
- await set('test', 'test')
75
- await flushAll()
76
- expect(await get('test')).toBe(null)
77
- })
78
-
79
- it('it should flush all DB', async () => {
80
- await set('test', 'test')
81
- await flushDB()
82
- expect(await get('test')).toBe(null)
83
- })
84
- })
1
+ // import { expect, it } from '@stacksjs/testing'
2
+ //
3
+ // import { createClient } from 'redis'
4
+ //
5
+ // // TODO: needs to be imported from cache package
6
+ //
7
+ // const client: any = createClient({
8
+ // socket: {
9
+ // host: '127.0.0.1',
10
+ // port: 6379,
11
+ // },
12
+ // password: '',
13
+ // })
14
+ //
15
+ // // TODO: needs to be moved to cache package
16
+ // await client.connect()
17
+ //
18
+ // // TODO: needs to be imported to cache package
19
+ // async function set(key: any, value: any): Promise<void> {
20
+ // await client.set(key, value)
21
+ // }
22
+ //
23
+ // // TODO: needs to be imported to cache package
24
+ // async function get(key: string): Promise<any> {
25
+ // const value = await client.get(key)
26
+ //
27
+ // return value
28
+ // }
29
+ //
30
+ // // TODO: needs to be imported to cache package
31
+ // async function remove(key: string): Promise<void> {
32
+ // await client.del(key)
33
+ // }
34
+ //
35
+ // // TODO: needs to be imported to cache package
36
+ // async function del(key: string): Promise<void> {
37
+ // await client.del(key)
38
+ // }
39
+ //
40
+ // // TODO: needs to be imported to cache package
41
+ // async function flushAll(): Promise<void> {
42
+ // await client.sendCommand(['FLUSHALL', 'ASYNC'])
43
+ // }
44
+ //
45
+ // // TODO: needs to be imported to cache package
46
+ // async function flushDB(): Promise<void> {
47
+ // await client.sendCommand(['FLUSHDB', 'ASYNC'])
48
+ // }
49
+ //
50
+ // describe('redisTest', () => {
51
+ // it('it should set redis cache', async () => {
52
+ // await set('test', 'test')
53
+ // expect(await get('test')).toBe('test')
54
+ // })
55
+ //
56
+ // it('it should get redis cache', async () => {
57
+ // await set('test', 'test')
58
+ // expect(await get('test')).toBe('test')
59
+ // })
60
+ //
61
+ // it('it should remove cache', async () => {
62
+ // await set('test', 'test')
63
+ // await remove('test')
64
+ // expect(await get('test')).toBe(null)
65
+ // })
66
+ //
67
+ // it('it should del cache', async () => {
68
+ // await set('test', 'test')
69
+ // await del('test')
70
+ // expect(await get('test')).toBe(null)
71
+ // })
72
+ //
73
+ // it('it should flush all cache', async () => {
74
+ // await set('test', 'test')
75
+ // await flushAll()
76
+ // expect(await get('test')).toBe(null)
77
+ // })
78
+ //
79
+ // it('it should flush all DB', async () => {
80
+ // await set('test', 'test')
81
+ // await flushDB()
82
+ // expect(await get('test')).toBe(null)
83
+ // })
84
+ // })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/chat",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "Easily interact with chat APIs.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -502,7 +502,7 @@ import {log as log3} from "@stacksjs/logging";
502
502
  import {ExitCode as ExitCode2} from "@stacksjs/types";
503
503
  import {bgCyan as bgCyan2, bold as bold2, cyan as cyan2, dim as dim2, gray as gray2, green as green2, italic as italic2} from "kolorist";
504
504
  // package.json
505
- var version = "0.58.63";
505
+ var version = "0.58.64";
506
506
 
507
507
  // src/helpers.ts
508
508
  async function intro(command2, options) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cli",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "TypeScript framework for CLI artisans. Build beautiful console apps with ease.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  import process from 'node:process'
2
2
  import { type Result, err, handleError, ok } from '@stacksjs/error-handling'
3
- import type { CliOptions, StacksError, Subprocess } from '@stacksjs/types'
3
+ import type { CliOptions, Subprocess } from '@stacksjs/types'
4
4
  import { ExitCode } from '@stacksjs/types'
5
5
  import { log } from './'
6
6
 
@@ -24,7 +24,7 @@ import { log } from './'
24
24
  * const result = await exec('ls', { cwd: '/home' })
25
25
  * ```
26
26
  */
27
- export async function exec(command: string | string[], options?: CliOptions): Promise<Result<Subprocess, StacksError>> {
27
+ export async function exec(command: string | string[], options?: CliOptions): Promise<Result<Subprocess, Error>> {
28
28
  const cmd = Array.isArray(command)
29
29
  ? command
30
30
  : command.match(/(?:[^\s"]+|"[^"]*")+/g)
@@ -407,7 +407,7 @@ class AiStack {
407
407
  summarizeAiUrl;
408
408
  constructor(scope, props) {
409
409
  const awsSdkLayer = new lambda.LayerVersion(scope, "AwsSdkLayer", {
410
- code: lambda.Code.fromAsset("src/cloud/aws-sdk-layer"),
410
+ code: lambda.Code.fromAsset("../core/cloud/src/cloud/aws-sdk-layer"),
411
411
  compatibleRuntimes: [lambda.Runtime.NODEJS_20_X],
412
412
  description: "Layer with aws-sdk"
413
413
  });
@@ -431,7 +431,7 @@ class AiStack {
431
431
  description: "Lambda function to invoke the AI model",
432
432
  runtime: lambda.Runtime.NODEJS_20_X,
433
433
  handler: "index.handler",
434
- code: lambda.Code.fromAsset("src/cloud/lambda/ask"),
434
+ code: lambda.Code.fromAsset("../core/cloud/src/cloud/lambda/ask"),
435
435
  layers: [awsSdkLayer],
436
436
  role: bedrockAccessRole,
437
437
  timeout: Duration.seconds(30)
@@ -448,7 +448,7 @@ class AiStack {
448
448
  description: "Lambda function to summarize any given text",
449
449
  runtime: lambda.Runtime.NODEJS_20_X,
450
450
  handler: "index.handler",
451
- code: lambda.Code.fromAsset("src/cloud/lambda/summarize"),
451
+ code: lambda.Code.fromAsset("../core/cloud/src/cloud/lambda/summarize"),
452
452
  layers: [awsSdkLayer],
453
453
  role: bedrockAccessRole,
454
454
  timeout: Duration.seconds(30)
@@ -823,7 +823,7 @@ class CliStack {
823
823
  description: "Lambda function that triggers setup script for a Stacks project",
824
824
  runtime: lambda2.Runtime.NODEJS_20_X,
825
825
  handler: "index.handler",
826
- code: lambda2.Code.fromAsset("src/cloud/lambda/cli-setup"),
826
+ code: lambda2.Code.fromAsset("../core/cloud/src/cloud/lambda/cli-setup"),
827
827
  timeout: Duration3.seconds(30)
828
828
  });
829
829
  this.cliSetupUrl = new lambda2.FunctionUrl(scope, "CliSetupFunctionUrl", {
@@ -1173,9 +1173,9 @@ class DeploymentStack {
1173
1173
  docsSource;
1174
1174
  websiteSource;
1175
1175
  constructor(scope, props) {
1176
- this.privateSource = "../../../private";
1177
- this.docsSource = "../../docs/dist/";
1178
- this.websiteSource = config12.app.docMode === true ? this.docsSource : "../../views/dist/";
1176
+ this.privateSource = "../../private";
1177
+ this.docsSource = "../docs/dist/";
1178
+ this.websiteSource = config12.app.docMode === true ? this.docsSource : "../views/dist/";
1179
1179
  new s3deploy.BucketDeployment(scope, "Website", {
1180
1180
  sources: [s3deploy.Source.asset(this.websiteSource, {
1181
1181
  assetHash: websiteSourceHash,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cloud",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks cloud/serverless integration & implementation.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -14,7 +14,7 @@ export class AiStack {
14
14
  constructor(scope: Construct, props: AiStackProps) {
15
15
  // Define the Lambda Layer for aws-sdk
16
16
  const awsSdkLayer = new lambda.LayerVersion(scope, 'AwsSdkLayer', {
17
- code: lambda.Code.fromAsset('src/cloud/aws-sdk-layer'),
17
+ code: lambda.Code.fromAsset('../core/cloud/src/cloud/aws-sdk-layer'), // path is relative to frameworkCloudPath()
18
18
  compatibleRuntimes: [lambda.Runtime.NODEJS_20_X],
19
19
  description: 'Layer with aws-sdk',
20
20
  })
@@ -42,7 +42,7 @@ export class AiStack {
42
42
  description: 'Lambda function to invoke the AI model',
43
43
  runtime: lambda.Runtime.NODEJS_20_X,
44
44
  handler: 'index.handler',
45
- code: lambda.Code.fromAsset('src/cloud/lambda/ask'), // path relative to the cloud root package dir
45
+ code: lambda.Code.fromAsset('../core/cloud/src/cloud/lambda/ask'), // path is relative to frameworkCloudPath()
46
46
  layers: [awsSdkLayer],
47
47
  role: bedrockAccessRole,
48
48
  timeout: Duration.seconds(30),
@@ -61,7 +61,7 @@ export class AiStack {
61
61
  description: 'Lambda function to summarize any given text',
62
62
  runtime: lambda.Runtime.NODEJS_20_X,
63
63
  handler: 'index.handler',
64
- code: lambda.Code.fromAsset('src/cloud/lambda/summarize'),
64
+ code: lambda.Code.fromAsset('../core/cloud/src/cloud/lambda/summarize'), // path is relative to frameworkCloudPath()
65
65
  layers: [awsSdkLayer],
66
66
  role: bedrockAccessRole,
67
67
  timeout: Duration.seconds(30),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-sdk-layer",
3
- "version": "0.58.63",
3
+ "version": "0.58.64",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -15,7 +15,7 @@ export class CliStack {
15
15
  description: 'Lambda function that triggers setup script for a Stacks project',
16
16
  runtime: lambda.Runtime.NODEJS_20_X,
17
17
  handler: 'index.handler',
18
- code: lambda.Code.fromAsset('src/cloud/lambda/cli-setup'), // path relative to the cloud root package dir
18
+ code: lambda.Code.fromAsset('../core/cloud/src/cloud/lambda/cli-setup'), // path relative to the cloud root package dir
19
19
  timeout: Duration.seconds(30),
20
20
  })
21
21
 
@@ -19,9 +19,9 @@ export class DeploymentStack {
19
19
 
20
20
  constructor(scope: Construct, props: DeploymentStackProps) {
21
21
  // following paths are relative to where the command is run from
22
- this.privateSource = '../../../private'
23
- this.docsSource = '../../docs/dist/'
24
- this.websiteSource = config.app.docMode === true ? this.docsSource : '../../views/dist/'
22
+ this.privateSource = '../../private'
23
+ this.docsSource = '../docs/dist/'
24
+ this.websiteSource = config.app.docMode === true ? this.docsSource : '../views/dist/'
25
25
 
26
26
  new s3deploy.BucketDeployment(scope, 'Website', {
27
27
  sources: [s3deploy.Source.asset(this.websiteSource, {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stacks-router-layer",
3
- "version": "0.58.63",
3
+ "version": "0.58.64",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -10,6 +10,6 @@
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
11
11
  },
12
12
  "dependencies": {
13
- "@stacksjs/router": "^0.58.59"
13
+ "@stacksjs/router": "^0.58.63"
14
14
  }
15
15
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/collections",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks collections.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -874,6 +874,10 @@ var dns_default = {
874
874
  // /home/runner/work/stacks/stacks/config/docs.ts
875
875
  import {SocialLinkIcon} from "@stacksjs/types";
876
876
  var nav = [
877
+ {
878
+ text: "Docs",
879
+ link: "/guide/intro"
880
+ },
877
881
  {
878
882
  text: "Changelog",
879
883
  link: "https://github.com/stacksjs/stacks/blob/main/CHANGELOG.md"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/config",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks config helper methods.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/database",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks database integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -136,7 +136,7 @@ class BunWorkerConnection implements DatabaseConnection {
136
136
  if (!this.mitt)
137
137
  reject('kysely instance has been destroyed')
138
138
 
139
- this.mitt.once('run', ({ data, err }) => {
139
+ this.mitt!.once('run', ({ data, err }) => {
140
140
  (!err && data) ? resolve(data) : reject(err)
141
141
  })
142
142
  })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/datetime",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks datetime helpers.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/desktop",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks Desktop engine.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/development",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks development dependencies.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/dns",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "Easily manage your DNS.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/docs",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks way to document.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/email",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -71,7 +71,7 @@
71
71
  "@stacksjs/error-handling": "workspace:*",
72
72
  "@stacksjs/types": "workspace:*",
73
73
  "@types/mailparser": "^3.4.4",
74
- "aws-sdk": "^2.1555.0",
74
+ "aws-sdk": "^2.1556.0",
75
75
  "mailparser": "^3.6.7",
76
76
  "mime": "^4.0.1",
77
77
  "moment": "^2.30.1",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/enums",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "Stacks enums.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/env",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "Stacks env helper methods.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/error-handling",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "Type safe error handling.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -10,7 +10,7 @@ export class ErrorHandler {
10
10
  static logFile = logsPath('errors.log')
11
11
 
12
12
  static handle(err: ErrorDescription | Error, options?: ErrorOptions | Error) {
13
- // lets only write to the console if we are not in silent mode
13
+ // let's only write to the console if we are not in silent mode
14
14
  if (!(options instanceof Error) && options?.silent !== false)
15
15
  this.writeErrorToConsole(err, options)
16
16
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/eslint-config",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks.js ESLint config preset, heavily inspired by Anthony's ESLint config.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/events",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.64",
5
5
  "description": "Functional event emitting.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",