stacks 0.58.59 → 0.58.60

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 (123) hide show
  1. package/core/actions/dist/src/clean.js +2 -2
  2. package/core/actions/dist/src/lint/fix.js +4 -1
  3. package/core/actions/dist/src/upgrade.js +10 -7
  4. package/core/actions/package.json +1 -1
  5. package/core/actions/src/action.ts +18 -8
  6. package/core/actions/src/clean.ts +2 -2
  7. package/core/actions/src/dev/api.ts +1 -2
  8. package/core/actions/src/domains/add.ts +12 -27
  9. package/core/actions/src/lint/fix.ts +6 -1
  10. package/core/actions/src/migrate/dns.ts +1 -1
  11. package/core/actions/src/upgrade.ts +5 -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/auth/package.json +1 -1
  18. package/core/buddy/dist/{chunk-7b24d1e3e585766e.js → chunk-6658b07ce4c24cac.js} +62 -1
  19. package/core/buddy/dist/cli.js +1 -1
  20. package/core/buddy/dist/index.js +1 -1
  21. package/core/buddy/package.json +1 -1
  22. package/core/buddy/src/commands/build.ts +25 -25
  23. package/core/buddy/src/commands/deploy.ts +1 -1
  24. package/core/buddy/src/commands/dev.ts +33 -34
  25. package/core/buddy/src/commands/upgrade.ts +23 -24
  26. package/core/build/package.json +1 -1
  27. package/core/bun-create/bud/package.json +1 -1
  28. package/core/bun-create/buddy/package.json +1 -1
  29. package/core/bun-create/stack/package.json +1 -1
  30. package/core/bun-create/stacks/package.json +1 -1
  31. package/core/bun-create/stx/package.json +1 -1
  32. package/core/bun-plugin-yaml/package.json +1 -1
  33. package/core/cache/package.json +1 -1
  34. package/core/chat/package.json +1 -1
  35. package/core/cli/dist/index.js +27 -20
  36. package/core/cli/package.json +1 -1
  37. package/core/cli/src/console.ts +18 -18
  38. package/core/cli/src/exec.ts +9 -6
  39. package/core/cli/src/parse.ts +3 -3
  40. package/core/cloud/dist/index.js +1 -1
  41. package/core/cloud/package.json +2 -2
  42. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
  43. package/core/cloud/src/cloud/dashboard.ts +86 -85
  44. package/core/cloud/src/cloud/docs.ts +1 -1
  45. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  46. package/core/collections/package.json +1 -1
  47. package/core/config/dist/index.js +3 -3
  48. package/core/config/package.json +1 -1
  49. package/core/config/src/defaults.ts +4 -2
  50. package/core/database/package.json +1 -1
  51. package/core/database/src/kysely-bun-worker/worker.ts +0 -1
  52. package/core/datetime/package.json +1 -1
  53. package/core/desktop/package.json +1 -1
  54. package/core/development/package.json +1 -1
  55. package/core/dns/package.json +1 -1
  56. package/core/docs/package.json +1 -1
  57. package/core/email/package.json +2 -1
  58. package/core/email/src/server/converter.ts +19 -19
  59. package/core/email/src/server/inbound.ts +24 -8
  60. package/core/email/src/server/outbound.ts +17 -17
  61. package/core/enums/package.json +1 -1
  62. package/core/env/dist/index.js +1 -1
  63. package/core/env/package.json +1 -1
  64. package/core/error-handling/package.json +1 -1
  65. package/core/eslint-config/build.ts +1 -1
  66. package/core/eslint-config/package.json +3 -1
  67. package/core/eslint-config/test/cli.spec.ts +2 -1
  68. package/core/eslint-config/tsconfig.json +2 -2
  69. package/core/events/package.json +1 -1
  70. package/core/faker/package.json +1 -1
  71. package/core/git/package.json +1 -1
  72. package/core/health/package.json +1 -1
  73. package/core/http/package.json +1 -1
  74. package/core/lint/package.json +1 -1
  75. package/core/logging/build.ts +1 -1
  76. package/core/logging/dist/index.js +13 -11043
  77. package/core/logging/package.json +1 -1
  78. package/core/notifications/package.json +1 -1
  79. package/core/objects/package.json +1 -1
  80. package/core/orm/package.json +1 -1
  81. package/core/path/package.json +1 -1
  82. package/core/payments/package.json +1 -1
  83. package/core/push/package.json +1 -1
  84. package/core/query-builder/package.json +1 -1
  85. package/core/queue/package.json +1 -1
  86. package/core/raycast/package.json +1 -1
  87. package/core/realtime/package.json +1 -1
  88. package/core/repl/package.json +1 -1
  89. package/core/router/package.json +1 -1
  90. package/core/scheduler/package.json +2 -1
  91. package/core/scheduler/tests/cron.test.ts +11 -9
  92. package/core/search-engine/package.json +1 -1
  93. package/core/security/package.json +1 -1
  94. package/core/server/package.json +1 -1
  95. package/core/signals/package.json +1 -1
  96. package/core/slug/package.json +1 -1
  97. package/core/sms/package.json +1 -1
  98. package/core/storage/package.json +1 -1
  99. package/core/strings/package.json +1 -1
  100. package/core/tables/package.json +1 -1
  101. package/core/testing/package.json +5 -3
  102. package/core/tinker/package.json +1 -1
  103. package/core/tunnel/package.json +1 -1
  104. package/core/types/package.json +1 -1
  105. package/core/types/src/app.ts +1 -1
  106. package/core/types/src/docs.ts +3 -3
  107. package/core/types/src/team.ts +1 -1
  108. package/core/ui/package.json +2 -2
  109. package/core/utils/dist/index.js +12 -10
  110. package/core/utils/package.json +1 -1
  111. package/core/utils/src/hash.ts +9 -9
  112. package/core/validation/package.json +1 -1
  113. package/core/vite/dist/index.js +1 -1
  114. package/core/vite/package.json +1 -1
  115. package/core/vite/src/example-wc.ts +1 -4
  116. package/core/vite/src/plugin/auto-imports.ts +1 -2
  117. package/core/vite/src/plugin/components.ts +1 -2
  118. package/core/vite/src/plugin/docs.ts +1 -1
  119. package/core/whois/package.json +3 -3
  120. package/core/x-ray/package.json +1 -1
  121. package/core/zsh-buddy/package.json +3 -3
  122. package/ide/vscode/package.json +3 -4
  123. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/logging",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks logging system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/notifications",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks notifications integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/objects",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks objects.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/orm",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks ORM integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/payments",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks payments package. Currently supporting Stripe.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/push",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks Push integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/query-builder",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks Query Builder integration",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/queue",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks Queue system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stacks-raycast",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks Raycast plugin.",
6
6
  "scripts": {
7
7
  "build": "echo 'No build step required yet.'"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/realtime",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks realtime integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/repl",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "A Stacks optimized TS & Vue REPL.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/router",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks framework router.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/scheduler",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks scheduler.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -54,6 +54,7 @@
54
54
  "luxon": "^3.4.4"
55
55
  },
56
56
  "devDependencies": {
57
+ "@fast-check/jest": "^1.8.0",
57
58
  "@stacksjs/development": "workspace:*",
58
59
  "sinon": "^17.0.1"
59
60
  }
@@ -1,5 +1,7 @@
1
1
  /* eslint-disable no-new */
2
2
  import { DateTime } from 'luxon'
3
+
4
+ // @ts-expect-error types aren't there
3
5
  import sinon from 'sinon'
4
6
  import { CronJob, CronTime } from '../src'
5
7
 
@@ -19,7 +21,7 @@ describe('cron', () => {
19
21
  expect(callback).toHaveBeenCalledTimes(1)
20
22
  })
21
23
 
22
- it('should run second with onComplete (* * * * * *)', (done) => {
24
+ it('should run second with onComplete (* * * * * *)', (done: any) => {
23
25
  const clock = sinon.useFakeTimers()
24
26
  const callback = jest.fn()
25
27
 
@@ -63,7 +65,7 @@ describe('cron', () => {
63
65
  expect(callback).toHaveBeenCalledTimes(5)
64
66
  })
65
67
 
66
- it('should run every second for 5 seconds with onComplete (* * * * * *)', (done) => {
68
+ it('should run every second for 5 seconds with onComplete (* * * * * *)', (done: any) => {
67
69
  const callback = jest.fn()
68
70
  const clock = sinon.useFakeTimers()
69
71
  const job = new CronJob(
@@ -110,7 +112,7 @@ describe('cron', () => {
110
112
  expect(callback).toHaveBeenCalledTimes(2)
111
113
  })
112
114
 
113
- it('should run every second for 5 seconds with onComplete (*/1 * * * * *)', (done) => {
115
+ it('should run every second for 5 seconds with onComplete (*/1 * * * * *)', (done: any) => {
114
116
  const clock = sinon.useFakeTimers()
115
117
  const callback = jest.fn()
116
118
  const job = new CronJob(
@@ -137,7 +139,7 @@ describe('cron', () => {
137
139
  expect(callback).toHaveBeenCalledTimes(8)
138
140
  })
139
141
 
140
- it('should run every second for a range ([start]-[end] * * * * *) with onComplete', (done) => {
142
+ it('should run every second for a range ([start]-[end] * * * * *) with onComplete', (done: any) => {
141
143
  const clock = sinon.useFakeTimers()
142
144
  const callback = jest.fn()
143
145
  const job = new CronJob(
@@ -154,7 +156,7 @@ describe('cron', () => {
154
156
  clock.restore()
155
157
  })
156
158
 
157
- it('should default to full range when upper range not provided (1/2 * * * * *)', (done) => {
159
+ it('should default to full range when upper range not provided (1/2 * * * * *)', (done: any) => {
158
160
  const clock = sinon.useFakeTimers()
159
161
  const callback = jest.fn()
160
162
  const job = new CronJob(
@@ -185,7 +187,7 @@ describe('cron', () => {
185
187
  expect(callback).toHaveBeenCalledTimes(1)
186
188
  })
187
189
 
188
- it('should run every second with onComplete (* * * * * *) using the object constructor', (done) => {
190
+ it('should run every second with onComplete (* * * * * *) using the object constructor', (done: any) => {
189
191
  const clock = sinon.useFakeTimers()
190
192
  const callback = jest.fn()
191
193
  const job = CronJob.from({
@@ -236,7 +238,7 @@ describe('cron', () => {
236
238
  expect(callback).toHaveBeenCalledTimes(4)
237
239
  })
238
240
 
239
- it('should run every 45 minutes for 2 hours (0 */45 * * * *) with onComplete', (done) => {
241
+ it('should run every 45 minutes for 2 hours (0 */45 * * * *) with onComplete', (done: any) => {
240
242
  const clock = sinon.useFakeTimers()
241
243
  const callback = jest.fn()
242
244
  const job = new CronJob(
@@ -254,7 +256,7 @@ describe('cron', () => {
254
256
  })
255
257
  })
256
258
 
257
- it('should start and stop job from outside', (done) => {
259
+ it('should start and stop job from outside', (done: any) => {
258
260
  const clock = sinon.useFakeTimers()
259
261
  const callback = jest.fn()
260
262
  const job = new CronJob(
@@ -273,7 +275,7 @@ describe('cron', () => {
273
275
  job.stop()
274
276
  })
275
277
 
276
- it('should start and stop job from inside (default context)', (done) => {
278
+ it('should start and stop job from inside (default context)', (done: any) => {
277
279
  const clock = sinon.useFakeTimers()
278
280
  const callback = jest.fn()
279
281
  new CronJob(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks search engine integrations.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/security",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks framework security.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/server",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "Local development and production-ready.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/signals",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks signals integration, based on Maverick.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/slug",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks slug functionality.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks file system.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/strings",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks string utilities.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacksjs/tables",
3
- "version": "0.58.59",
3
+ "version": "0.58.60",
4
4
  "description": "The easy & modern way to work with tables. Facet filtering, searching, pagination, ...",
5
5
  "author": "Open Web Labs",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/testing",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks way of testing.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -52,10 +52,12 @@
52
52
  "prepublishOnly": "bun --bun run build"
53
53
  },
54
54
  "peerDependencies": {
55
- "@playwright/test": "^1.41.2"
55
+ "@playwright/test": "^1.41.2",
56
+ "vitest": "^1.2.2"
56
57
  },
57
58
  "dependencies": {
58
- "@playwright/test": "^1.41.2"
59
+ "@playwright/test": "^1.41.2",
60
+ "vitest": "^1.2.2"
59
61
  },
60
62
  "devDependencies": {
61
63
  "@stacksjs/development": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tinker",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "All you need to tinker.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/tunnel",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "Local development tunnel.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- export type AppEnvType = 'local' | 'dev' | 'stage' | 'prod'
1
+ export type AppEnvType = 'local' | 'dev' | 'stage' | 'prod' | string
2
2
 
3
3
  interface Ports {
4
4
  frontend: number
@@ -1,11 +1,11 @@
1
1
  import type { UserConfig } from 'vitepress'
2
2
 
3
- interface DeployedUserConfig extends UserConfig {
3
+ export interface DocsUserConfig extends UserConfig {
4
4
  deploy: boolean
5
5
  }
6
6
 
7
- export type DocsConfig = DeployedUserConfig
8
- export type DocsOptions = DocsConfig
7
+ export type DocsConfig = DocsUserConfig
8
+ export type DocsOptions = Partial<DocsConfig>
9
9
 
10
10
  export interface SocialLink {
11
11
  icon: SocialLinkIcon
@@ -1,6 +1,6 @@
1
1
  type TeamMemberName = string
2
2
  type Email = string
3
- type TeamMembers = Record<TeamMemberName, Email>[]
3
+ type TeamMembers = Record<TeamMemberName, Email>
4
4
 
5
5
  export interface Team {
6
6
  name: string
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ui",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks UI engine.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -73,7 +73,7 @@
73
73
  "@iconify-json/heroicons": "^1.1.19",
74
74
  "@iconify-json/heroicons-outline": "^1.1.10",
75
75
  "@iconify-json/heroicons-solid": "^1.1.11",
76
- "@iconify/json": "^2.2.181",
76
+ "@iconify/json": "^2.2.182",
77
77
  "@julr/unocss-preset-forms": "^0.1.0",
78
78
  "@stacksjs/build": "workspace:*",
79
79
  "@stacksjs/config": "workspace:*",
@@ -147,12 +147,14 @@ function isTruthy(v) {
147
147
  import {hashPaths} from "@stacksjs/storage";
148
148
  import {path as p2} from "@stacksjs/path";
149
149
  import {config as config2} from "@stacksjs/config";
150
- var originRequestFunctionHash;
151
- try {
152
- originRequestFunctionHash = hashPaths(p2.cloudPath("src/edge"));
153
- } catch (error) {
154
- console.error("Are we in a Docker container? Failed to hash paths:", error);
155
- originRequestFunctionHash = null;
150
+ function originRequestFunctionHash() {
151
+ try {
152
+ return hashPaths(p2.cloudPath("src/edge"));
153
+ } catch (error) {
154
+ log.error("Are we in a Docker container? Failed to hash paths. Error below:");
155
+ log.error(error);
156
+ return;
157
+ }
156
158
  }
157
159
  var docsSrc = [
158
160
  p2.projectPath("docs"),
@@ -163,7 +165,7 @@ var websiteSrc = [
163
165
  ];
164
166
  var websiteSourceHash = config2.app.docMode === true ? hashPaths(docsSrc) : hashPaths(websiteSrc);
165
167
  // src/helpers.ts
166
- import {log, runCommand} from "@stacksjs/cli";
168
+ import {log as log2, runCommand} from "@stacksjs/cli";
167
169
  import {err, handleError, ok} from "@stacksjs/error-handling";
168
170
  import {frameworkPath, projectPath} from "@stacksjs/path";
169
171
  import * as storage2 from "@stacksjs/storage";
@@ -176,13 +178,13 @@ async function packageManager() {
176
178
  }
177
179
  async function initProject() {
178
180
  if (app.env !== "production")
179
- log.info("Project not yet initialized, generating application key...");
181
+ log2.info("Project not yet initialized, generating application key...");
180
182
  else
181
183
  handleError("Please run `buddy key:generate` to generate an application key");
182
184
  const result = await runAction(Action.KeyGenerate, { cwd: projectPath() });
183
185
  if (result.isErr())
184
186
  return err(handleError(result.error));
185
- log.info("Application key generated.");
187
+ log2.info("Application key generated.");
186
188
  return ok(result.value);
187
189
  }
188
190
  async function ensureProjectIsInitialized() {
@@ -920,7 +922,7 @@ function prettyBytes(number, options) {
920
922
  return prefix + numberString + separator + unit;
921
923
  }
922
924
  // package.json
923
- var version = "0.58.59";
925
+ var version = "0.58.60";
924
926
  export {
925
927
  wordChar,
926
928
  wordBoundary,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/utils",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks helper functions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -2,16 +2,16 @@ import { hashPaths } from '@stacksjs/storage'
2
2
  import { path as p } from '@stacksjs/path'
3
3
  import { config } from '@stacksjs/config'
4
4
 
5
- // eslint-disable-next-line import/no-mutable-exports
6
- let originRequestFunctionHash
7
- try {
8
- originRequestFunctionHash = hashPaths(p.cloudPath('src/edge'))
5
+ export function originRequestFunctionHash() {
6
+ try {
7
+ return hashPaths(p.cloudPath('src/edge'))
8
+ }
9
+ catch (error: any) {
10
+ log.error('Are we in a Docker container? Failed to hash paths. Error below:')
11
+ log.error(error)
12
+ return undefined
13
+ }
9
14
  }
10
- catch (error) {
11
- console.error('Are we in a Docker container? Failed to hash paths:', error)
12
- originRequestFunctionHash = null // or some default/fallback value
13
- }
14
- export { originRequestFunctionHash }
15
15
 
16
16
  const docsSrc = [
17
17
  p.projectPath('docs'),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/validation",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks Validation ways.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -609,7 +609,7 @@ var web_components_default = defineConfig6(({ command }) => {
609
609
  // src/plugin/docs.ts
610
610
  import {kolorist as c2} from "@stacksjs/cli";
611
611
  // package.json
612
- var version = "0.58.59";
612
+ var version = "0.58.60";
613
613
 
614
614
  // src/plugin/docs.ts
615
615
  var docsEngine = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/vite",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks Vite plugin.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -1,12 +1,9 @@
1
- import type { ViteConfig } from '@stacksjs/types'
2
1
  import { examplesPath } from '@stacksjs/path'
3
2
  import { server } from '@stacksjs/server'
4
3
  import { alias } from '@stacksjs/alias'
5
4
  import { defineConfig } from 'vite'
6
5
 
7
- // import { uiEngine } from '.'
8
-
9
- export const webComponentsExampleConfig: ViteConfig = {
6
+ export const webComponentsExampleConfig = {
10
7
  root: examplesPath('web-components'),
11
8
 
12
9
  resolve: {
@@ -2,10 +2,9 @@ import { path as p } from '@stacksjs/path'
2
2
  import type { AutoImportsOptions } from '@stacksjs/types'
3
3
  import { unheadVueComposablesImports as VueHeadImports } from '@unhead/vue'
4
4
  import AutoImport from 'unplugin-auto-import/vite'
5
- import type { Plugin } from 'vite'
6
5
  import { VueRouterAutoImports } from 'unplugin-vue-router'
7
6
 
8
- export function autoImports(options?: AutoImportsOptions): Plugin {
7
+ export function autoImports(options?: AutoImportsOptions) {
9
8
  return AutoImport({
10
9
  include: /\.(stx|js|ts|mdx?|elm|html)($|\?)/,
11
10
  imports: [
@@ -1,9 +1,8 @@
1
1
  import Components from 'unplugin-vue-components/vite'
2
2
  import { path as p } from '@stacksjs/path'
3
3
  import type { ComponentOptions } from '@stacksjs/types'
4
- import type { Plugin } from 'vite'
5
4
 
6
- export function components(options?: ComponentOptions): Plugin {
5
+ export function components(options?: ComponentOptions) {
7
6
  return Components({
8
7
  extensions: ['stx', 'vue', 'md'],
9
8
  include: /\.(stx|vue|md)($|\?)/,
@@ -1,5 +1,5 @@
1
1
  import { kolorist as c } from '@stacksjs/cli'
2
- import type { ViteDevServer } from '..'
2
+ import type { ViteDevServer } from 'vite'
3
3
  import { version } from '../../package.json'
4
4
 
5
5
  export const docsEngine = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/whois",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "Easily get whois info.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -49,11 +49,11 @@
49
49
  },
50
50
  "peerDependencies": {
51
51
  "node-fetch": "^3.3.2",
52
- "socks": "^2.7.1"
52
+ "socks": "^2.7.3"
53
53
  },
54
54
  "dependencies": {
55
55
  "node-fetch": "^3.3.2",
56
- "socks": "^2.7.1"
56
+ "socks": "^2.7.3"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@stacksjs/development": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/x-ray",
3
3
  "type": "module",
4
- "version": "0.58.59",
4
+ "version": "0.58.60",
5
5
  "description": "All you need to debug, log & analyze.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",