stacks 0.58.58 → 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 (197) hide show
  1. package/core/actions/dist/src/build.js +18 -26
  2. package/core/actions/dist/src/bump.js +9 -3
  3. package/core/actions/dist/src/changelog.js +11 -3
  4. package/core/actions/dist/src/clean.js +2 -2
  5. package/core/actions/dist/src/dev/index.js +18 -26
  6. package/core/actions/dist/src/generate/index.js +18 -26
  7. package/core/actions/dist/src/helpers/index.js +18 -26
  8. package/core/actions/dist/src/helpers/utils.js +18 -26
  9. package/core/actions/dist/src/index.js +26 -34
  10. package/core/actions/dist/src/lint/fix.js +6 -2
  11. package/core/actions/dist/src/release.js +30 -35
  12. package/core/actions/dist/src/upgrade/index.js +18 -26
  13. package/core/actions/dist/src/upgrade.js +10 -7
  14. package/core/actions/package.json +1 -1
  15. package/core/actions/src/action.ts +18 -8
  16. package/core/actions/src/bump.ts +13 -6
  17. package/core/actions/src/changelog.ts +14 -4
  18. package/core/actions/src/clean.ts +2 -2
  19. package/core/actions/src/dev/api.ts +1 -2
  20. package/core/actions/src/domains/add.ts +12 -27
  21. package/core/actions/src/helpers/utils.ts +24 -36
  22. package/core/actions/src/lint/fix.ts +8 -2
  23. package/core/actions/src/migrate/dns.ts +1 -1
  24. package/core/actions/src/release.ts +4 -1
  25. package/core/actions/src/upgrade.ts +5 -2
  26. package/core/ai/dist/index.js +31 -29
  27. package/core/ai/package.json +3 -3
  28. package/core/alias/package.json +1 -1
  29. package/core/analytics/package.json +1 -1
  30. package/core/api/dist/index.js +6 -3
  31. package/core/api/package.json +1 -1
  32. package/core/arrays/package.json +1 -1
  33. package/core/auth/package.json +1 -1
  34. package/core/buddy/dist/chunk-59a9de11428ba763.js +993 -0
  35. package/core/buddy/dist/{chunk-e9c0ec1a3b7be088.js → chunk-6658b07ce4c24cac.js} +604 -512
  36. package/core/buddy/dist/cli.js +3916 -19
  37. package/core/buddy/dist/index.js +2 -5
  38. package/core/buddy/package.json +1 -1
  39. package/core/buddy/src/cli.ts +91 -17
  40. package/core/buddy/src/commands/add.ts +3 -0
  41. package/core/buddy/src/commands/build.ts +18 -3
  42. package/core/buddy/src/commands/changelog.ts +13 -6
  43. package/core/buddy/src/commands/clean.ts +3 -1
  44. package/core/buddy/src/commands/cloud.ts +14 -2
  45. package/core/buddy/src/commands/commit.ts +2 -0
  46. package/core/buddy/src/commands/configure.ts +6 -3
  47. package/core/buddy/src/commands/create.ts +3 -1
  48. package/core/buddy/src/commands/deploy.ts +4 -2
  49. package/core/buddy/src/commands/dev.ts +17 -4
  50. package/core/buddy/src/commands/dns.ts +7 -1
  51. package/core/buddy/src/commands/domains.ts +7 -1
  52. package/core/buddy/src/commands/fresh.ts +4 -2
  53. package/core/buddy/src/commands/generate.ts +36 -26
  54. package/core/buddy/src/commands/http.ts +6 -4
  55. package/core/buddy/src/commands/index.ts +0 -2
  56. package/core/buddy/src/commands/install.ts +3 -1
  57. package/core/buddy/src/commands/key.ts +2 -0
  58. package/core/buddy/src/commands/lint.ts +4 -0
  59. package/core/buddy/src/commands/list.ts +6 -2
  60. package/core/buddy/src/commands/make.ts +52 -30
  61. package/core/buddy/src/commands/migrate.ts +6 -2
  62. package/core/buddy/src/commands/prepublish.ts +3 -0
  63. package/core/buddy/src/commands/release.ts +12 -2
  64. package/core/buddy/src/commands/seed.ts +3 -1
  65. package/core/buddy/src/commands/setup.ts +16 -8
  66. package/core/buddy/src/commands/tinker.ts +3 -1
  67. package/core/buddy/src/commands/types.ts +4 -2
  68. package/core/buddy/src/commands/upgrade.ts +14 -3
  69. package/core/buddy/src/commands/version.ts +7 -0
  70. package/core/build/package.json +1 -1
  71. package/core/bun-create/bud/package.json +1 -1
  72. package/core/bun-create/buddy/package.json +1 -1
  73. package/core/bun-create/stack/package.json +1 -1
  74. package/core/bun-create/stacks/package.json +1 -1
  75. package/core/bun-create/stx/package.json +1 -1
  76. package/core/bun-plugin-yaml/package.json +1 -1
  77. package/core/cache/package.json +2 -2
  78. package/core/chat/package.json +1 -1
  79. package/core/cli/dist/index.js +463 -81
  80. package/core/cli/package.json +1 -1
  81. package/core/cli/src/cli.ts +9 -31
  82. package/core/cli/src/console.ts +19 -19
  83. package/core/cli/src/exec.ts +25 -8
  84. package/core/cli/src/helpers.ts +3 -3
  85. package/core/cli/src/index.ts +1 -1
  86. package/core/cli/src/parse.ts +95 -17
  87. package/core/cli/src/run.ts +7 -7
  88. package/core/cli/src/utils.ts +62 -0
  89. package/core/cloud/dist/index.js +29 -30
  90. package/core/cloud/package.json +32 -32
  91. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
  92. package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
  93. package/core/cloud/src/cloud/dashboard.ts +86 -85
  94. package/core/cloud/src/cloud/docs.ts +1 -1
  95. package/core/cloud/src/cloud/queue.ts +35 -34
  96. package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
  97. package/core/collections/package.json +1 -1
  98. package/core/config/dist/index.js +52 -30
  99. package/core/config/package.json +1 -1
  100. package/core/config/src/config.ts +1 -1
  101. package/core/config/src/defaults.ts +32 -16
  102. package/core/config/src/overrides.ts +2 -0
  103. package/core/database/package.json +1 -1
  104. package/core/database/src/kysely-bun-worker/worker.ts +0 -1
  105. package/core/datetime/package.json +1 -1
  106. package/core/desktop/package.json +3 -3
  107. package/core/development/package.json +1 -1
  108. package/core/dns/package.json +7 -7
  109. package/core/docs/package.json +1 -1
  110. package/core/email/package.json +4 -3
  111. package/core/email/src/server/converter.ts +19 -19
  112. package/core/email/src/server/inbound.ts +24 -8
  113. package/core/email/src/server/outbound.ts +17 -17
  114. package/core/enums/dist/index.js +2 -2
  115. package/core/enums/package.json +1 -1
  116. package/core/enums/src/index.ts +2 -2
  117. package/core/env/dist/index.js +1 -1
  118. package/core/env/package.json +3 -2
  119. package/core/env/src/utils.ts +1 -0
  120. package/core/error-handling/package.json +1 -1
  121. package/core/eslint-config/build.ts +1 -1
  122. package/core/eslint-config/package.json +12 -10
  123. package/core/eslint-config/test/cli.spec.ts +2 -1
  124. package/core/eslint-config/tsconfig.json +2 -2
  125. package/core/events/package.json +1 -1
  126. package/core/faker/package.json +2 -2
  127. package/core/git/package.json +1 -1
  128. package/core/health/package.json +1 -1
  129. package/core/http/package.json +1 -1
  130. package/core/lint/package.json +1 -1
  131. package/core/logging/build.ts +1 -1
  132. package/core/logging/dist/index.js +44 -1915
  133. package/core/logging/package.json +1 -1
  134. package/core/logging/src/index.ts +79 -13
  135. package/core/notifications/package.json +2 -2
  136. package/core/objects/package.json +1 -1
  137. package/core/orm/package.json +1 -1
  138. package/core/path/dist/index.js +10 -0
  139. package/core/path/package.json +1 -1
  140. package/core/path/src/index.ts +10 -0
  141. package/core/payments/dist/index.js +34 -10
  142. package/core/payments/package.json +2 -2
  143. package/core/push/package.json +1 -1
  144. package/core/query-builder/package.json +1 -1
  145. package/core/queue/package.json +1 -1
  146. package/core/raycast/package.json +1 -1
  147. package/core/realtime/package.json +1 -1
  148. package/core/repl/package.json +1 -1
  149. package/core/router/dist/index.js +517 -14
  150. package/core/router/package.json +1 -1
  151. package/core/router/src/router.ts +10 -3
  152. package/core/scheduler/package.json +2 -1
  153. package/core/scheduler/tests/cron.test.ts +11 -9
  154. package/core/search-engine/package.json +1 -1
  155. package/core/security/package.json +1 -1
  156. package/core/server/package.json +2 -2
  157. package/core/signals/package.json +1 -1
  158. package/core/slug/package.json +1 -1
  159. package/core/sms/package.json +1 -1
  160. package/core/storage/package.json +1 -1
  161. package/core/strings/package.json +1 -1
  162. package/core/tables/package.json +2 -2
  163. package/core/testing/package.json +5 -3
  164. package/core/tinker/package.json +1 -1
  165. package/core/tunnel/package.json +1 -1
  166. package/core/types/dist/index.js +1787 -6
  167. package/core/types/package.json +6 -6
  168. package/core/types/src/ai.ts +1 -0
  169. package/core/types/src/app.ts +1 -1
  170. package/core/types/src/binary.ts +1 -0
  171. package/core/types/src/cli.ts +13 -3
  172. package/core/types/src/docs.ts +6 -2
  173. package/core/types/src/index.ts +1 -0
  174. package/core/types/src/logger.ts +54 -0
  175. package/core/types/src/router.ts +2 -1
  176. package/core/types/src/stacks.ts +10 -0
  177. package/core/ui/package.json +4 -4
  178. package/core/utils/dist/index.js +13 -5
  179. package/core/utils/package.json +2 -2
  180. package/core/utils/src/hash.ts +10 -1
  181. package/core/validation/package.json +1 -1
  182. package/core/vite/dist/index.js +1 -1
  183. package/core/vite/package.json +4 -4
  184. package/core/vite/src/example-wc.ts +1 -4
  185. package/core/vite/src/plugin/auto-imports.ts +1 -2
  186. package/core/vite/src/plugin/components.ts +1 -2
  187. package/core/vite/src/plugin/docs.ts +1 -1
  188. package/core/whois/package.json +3 -3
  189. package/core/x-ray/package.json +1 -1
  190. package/core/zsh-buddy/buddy.plugin.zsh +4 -0
  191. package/core/zsh-buddy/package.json +3 -3
  192. package/ide/dictionary.txt +1 -0
  193. package/ide/vscode/package.json +3 -4
  194. package/package.json +1 -1
  195. package/core/buddy/src/commands/example.ts +0 -66
  196. package/core/buddy/src/commands/inspire.ts +0 -24
  197. package/core/cli/src/utilities.ts +0 -2
@@ -63,6 +63,11 @@ __export(exports_config, {
63
63
  return notification2;
64
64
  }
65
65
  },
66
+ logger: () => {
67
+ {
68
+ return logger2;
69
+ }
70
+ },
66
71
  localUrl: () => {
67
72
  {
68
73
  return localUrl;
@@ -268,11 +273,6 @@ __export(exports_config, {
268
273
  return app2;
269
274
  }
270
275
  },
271
- api: () => {
272
- {
273
- return api;
274
- }
275
- },
276
276
  analytics: () => {
277
277
  {
278
278
  return analytics;
@@ -289,6 +289,7 @@ __export(exports_config, {
289
289
  import {path as p} from "@stacksjs/path";
290
290
  var defaults_default = {
291
291
  ai: {
292
+ deploy: false,
292
293
  models: [
293
294
  "amazon.titan-embed-text-v1",
294
295
  "amazon.titan-text-express-v1",
@@ -305,13 +306,6 @@ var defaults_default = {
305
306
  analytics: {
306
307
  driver: undefined
307
308
  },
308
- api: {
309
- prefix: "api",
310
- description: "Stacks API",
311
- prewarm: true,
312
- memorySize: 512,
313
- timeout: 30
314
- },
315
309
  app: {
316
310
  name: "Stacks",
317
311
  description: "A Stacks application.",
@@ -342,7 +336,8 @@ var defaults_default = {
342
336
  name: "My Custom CLI",
343
337
  command: "my-custom-cli",
344
338
  description: "Stacks is a full-stack framework for TypeScript.",
345
- source: p.appPath("commands")
339
+ source: p.appPath("commands"),
340
+ deploy: false
346
341
  },
347
342
  cache: {
348
343
  driver: "redis",
@@ -352,7 +347,9 @@ var defaults_default = {
352
347
  redis: {
353
348
  connection: "default",
354
349
  host: "localhost",
355
- port: 6379
350
+ port: 6379,
351
+ username: "",
352
+ password: ""
356
353
  }
357
354
  }
358
355
  },
@@ -383,12 +380,21 @@ var defaults_default = {
383
380
  cookies: [],
384
381
  headers: [],
385
382
  queryStrings: []
383
+ },
384
+ realtimeLogs: {
385
+ enabled: true,
386
+ samplingRate: 2
386
387
  }
387
388
  },
388
- ai: true,
389
- docs: true,
390
- api: true,
391
- fileSystem: true
389
+ api: {
390
+ deploy: false,
391
+ prefix: "api",
392
+ description: "Stacks API",
393
+ prewarm: true,
394
+ memorySize: 512,
395
+ timeout: 30
396
+ },
397
+ fileSystem: false
392
398
  },
393
399
  database: {
394
400
  default: "sqlite",
@@ -413,6 +419,7 @@ var defaults_default = {
413
419
  title: "Stacks",
414
420
  description: "Rapid application, cloud & library framework.",
415
421
  lastUpdated: true,
422
+ deploy: false,
416
423
  themeConfig: {
417
424
  editLink: {
418
425
  pattern: "https://github.com/stacksjs/stacks/edit/main/docs/docs/:path",
@@ -429,9 +436,9 @@ var defaults_default = {
429
436
  name: "Stacks",
430
437
  address: "no-reply@stacksjs.org"
431
438
  },
439
+ mailboxes: [],
432
440
  server: {
433
- scan: true,
434
- mailboxes: []
441
+ scan: true
435
442
  }
436
443
  },
437
444
  git: {
@@ -562,6 +569,11 @@ var defaults_default = {
562
569
  ]
563
570
  }
564
571
  },
572
+ logger: {
573
+ level: 3,
574
+ logFilePath: "storage/logs/console.log",
575
+ errorsPath: "storage/logs/errors.log"
576
+ },
565
577
  notification: {
566
578
  default: "email"
567
579
  },
@@ -645,9 +657,9 @@ var defaults_default = {
645
657
  },
646
658
  team: {
647
659
  name: "Stacks",
648
- members: [{
660
+ members: {
649
661
  "Chris Breuer": "chris@stacksjs.org"
650
- }]
662
+ }
651
663
  },
652
664
  ui: {
653
665
  shortcuts: [
@@ -686,7 +698,8 @@ var ai_default = {
686
698
  "amazon.titan-text-express-v1",
687
699
  "amazon.titan-text-lite-v1",
688
700
  "meta.llama2-70b-chat-v1"
689
- ]
701
+ ],
702
+ deploy: true
690
703
  };
691
704
 
692
705
  // /home/runner/work/stacks/stacks/config/app.ts
@@ -694,7 +707,7 @@ import {env as env2} from "@stacksjs/env";
694
707
  var app_default = {
695
708
  name: env2.APP_NAME || "Stacks",
696
709
  description: "Stacks is a full-stack framework for building modern web applications.",
697
- env: env2.APP_ENV || "development",
710
+ env: env2.APP_ENV || "local",
698
711
  url: env2.APP_URL || "stacks.localhost",
699
712
  redirectUrls: ["stacksjs.com"],
700
713
  debug: env2.DEBUG || false,
@@ -756,7 +769,8 @@ var cache_default = {
756
769
  var cli_default = {
757
770
  name: "My Custom CLI",
758
771
  command: "custom-cli",
759
- description: "This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more."
772
+ description: "This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more.",
773
+ deploy: true
760
774
  };
761
775
 
762
776
  // /home/runner/work/stacks/stacks/config/cloud.ts
@@ -808,9 +822,6 @@ var cloud_default = {
808
822
  prewarm: 10,
809
823
  timeout: 30
810
824
  },
811
- ai: true,
812
- cli: true,
813
- docs: true,
814
825
  fileSystem: true
815
826
  };
816
827
 
@@ -1175,6 +1186,8 @@ var sidebar = {
1175
1186
  },
1176
1187
  {
1177
1188
  text: "Project",
1189
+ collapsible: true,
1190
+ collapsed: true,
1178
1191
  items: [
1179
1192
  { text: "Roadmap", link: "/project/roadmap" },
1180
1193
  { text: "Contributing", link: "/project/contributing" },
@@ -1189,6 +1202,7 @@ var docs_default = {
1189
1202
  title: "Stacks",
1190
1203
  description: "Rapid application, cloud & library development framework.",
1191
1204
  lastUpdated: true,
1205
+ deploy: true,
1192
1206
  themeConfig: {
1193
1207
  logo: "https://raw.githubusercontent.com/stacksjs/stacks/main/public/logo-transparent.svg?https://raw.githubusercontent.com/stacksjs/stacks/main/public/logo-transparent.svg?asdas",
1194
1208
  nav,
@@ -1357,6 +1371,13 @@ var library_default = {
1357
1371
  }
1358
1372
  };
1359
1373
 
1374
+ // /home/runner/work/stacks/stacks/config/logger.ts
1375
+ var logger_default = {
1376
+ level: 3,
1377
+ logFilePath: "storage/logs/console.log",
1378
+ errorsPath: "storage/logs/errors.log"
1379
+ };
1380
+
1360
1381
  // /home/runner/work/stacks/stacks/config/queue.ts
1361
1382
  var queue_default = {
1362
1383
  default: "sync",
@@ -1489,6 +1510,7 @@ var overrides_default = {
1489
1510
  git: git_default,
1490
1511
  hashing: hashing_default,
1491
1512
  library: library_default,
1513
+ logger: logger_default,
1492
1514
  notification: notification_default,
1493
1515
  queue: queue_default,
1494
1516
  payment: payment_default,
@@ -1691,7 +1713,6 @@ var config = {
1691
1713
  var {
1692
1714
  ai: ai2,
1693
1715
  analytics,
1694
- api,
1695
1716
  app: app2,
1696
1717
  cache: cache2,
1697
1718
  cloud: cloud2,
@@ -1703,6 +1724,7 @@ var {
1703
1724
  git: git2,
1704
1725
  hashing: hashing2,
1705
1726
  library: library2,
1727
+ logger: logger2,
1706
1728
  notification: notification2,
1707
1729
  payment: payment2,
1708
1730
  queue: queue2,
@@ -1724,6 +1746,7 @@ export {
1724
1746
  payment2 as payment,
1725
1747
  overrides_default as overrides,
1726
1748
  notification2 as notification,
1749
+ logger2 as logger,
1727
1750
  localUrl,
1728
1751
  library2 as library,
1729
1752
  hashing2 as hashing,
@@ -1765,7 +1788,6 @@ export {
1765
1788
  cli2 as cli,
1766
1789
  cache2 as cache,
1767
1790
  app2 as app,
1768
- api,
1769
1791
  analytics,
1770
1792
  ai2 as ai
1771
1793
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/config",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks config helper methods.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -10,7 +10,6 @@ export const config: StacksOptions = {
10
10
  export const {
11
11
  ai,
12
12
  analytics,
13
- api,
14
13
  app,
15
14
  cache,
16
15
  cloud,
@@ -22,6 +21,7 @@ export const {
22
21
  git,
23
22
  hashing,
24
23
  library,
24
+ logger,
25
25
  notification,
26
26
  payment,
27
27
  queue,
@@ -5,6 +5,7 @@ import type { StacksOptions } from '@stacksjs/types'
5
5
 
6
6
  export default {
7
7
  ai: {
8
+ deploy: false,
8
9
  models: [
9
10
  'amazon.titan-embed-text-v1',
10
11
  'amazon.titan-text-express-v1',
@@ -23,15 +24,6 @@ export default {
23
24
  driver: undefined,
24
25
  },
25
26
 
26
- api: {
27
- prefix: 'api',
28
- description: 'Stacks API',
29
- prewarm: true,
30
- memorySize: 512,
31
- timeout: 30,
32
- // version: 'v1',
33
- },
34
-
35
27
  app: {
36
28
  name: 'Stacks',
37
29
  description: 'A Stacks application.',
@@ -64,6 +56,7 @@ export default {
64
56
  command: 'my-custom-cli',
65
57
  description: 'Stacks is a full-stack framework for TypeScript.',
66
58
  source: p.appPath('commands'),
59
+ deploy: false,
67
60
  },
68
61
 
69
62
  cache: {
@@ -76,6 +69,8 @@ export default {
76
69
  connection: 'default',
77
70
  host: 'localhost',
78
71
  port: 6379,
72
+ username: '',
73
+ password: '',
79
74
  },
80
75
  },
81
76
  },
@@ -112,12 +107,23 @@ export default {
112
107
  headers: [],
113
108
  queryStrings: [],
114
109
  },
110
+ realtimeLogs: {
111
+ enabled: true,
112
+ samplingRate: 2,
113
+ },
115
114
  },
116
115
 
117
- ai: true,
118
- docs: true,
119
- api: true,
120
- fileSystem: true,
116
+ api: {
117
+ deploy: false,
118
+ prefix: 'api',
119
+ description: 'Stacks API',
120
+ prewarm: true,
121
+ memorySize: 512,
122
+ timeout: 30,
123
+ // version: 'v1',
124
+ },
125
+
126
+ fileSystem: false,
121
127
  },
122
128
 
123
129
  database: {
@@ -147,6 +153,7 @@ export default {
147
153
  title: 'Stacks',
148
154
  description: 'Rapid application, cloud & library framework.',
149
155
  lastUpdated: true,
156
+ deploy: false,
150
157
 
151
158
  themeConfig: {
152
159
  editLink: {
@@ -174,9 +181,10 @@ export default {
174
181
  address: 'no-reply@stacksjs.org',
175
182
  },
176
183
 
184
+ mailboxes: [],
185
+
177
186
  server: {
178
187
  scan: true,
179
- mailboxes: [],
180
188
  },
181
189
  },
182
190
 
@@ -319,6 +327,12 @@ export default {
319
327
  },
320
328
  },
321
329
 
330
+ logger: {
331
+ level: 3,
332
+ logFilePath: 'storage/logs/console.log',
333
+ errorsPath: 'storage/logs/errors.log',
334
+ },
335
+
322
336
  notification: {
323
337
  default: 'email',
324
338
  },
@@ -419,16 +433,18 @@ export default {
419
433
 
420
434
  team: {
421
435
  name: 'Stacks',
422
- members: [{
436
+ members: {
423
437
  'Chris Breuer': 'chris@stacksjs.org',
424
- }],
438
+ },
425
439
  },
426
440
 
427
441
  ui: {
428
442
  shortcuts: [
429
443
  ['btn', 'inline-flex items-center px-4 py-2 ml-2 border border-transparent shadow-sm text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 cursor-pointer'],
430
444
  ],
445
+
431
446
  safelist: 'prose prose-sm m-auto text-left',
447
+
432
448
  trigger: ':stx:',
433
449
  classPrefix: 'stx-',
434
450
  reset: 'tailwind',
@@ -11,6 +11,7 @@ import email from 'config/email'
11
11
  import git from 'config/git'
12
12
  import hashing from 'config/hashing'
13
13
  import library from 'config/library'
14
+ import logger from 'config/logger'
14
15
  import queue from 'config/queue'
15
16
  import payment from 'config/payment'
16
17
  import notification from 'config/notification'
@@ -35,6 +36,7 @@ export default {
35
36
  git,
36
37
  hashing,
37
38
  library,
39
+ logger,
38
40
  notification,
39
41
  queue,
40
42
  payment,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/database",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks database integration.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -25,7 +25,6 @@ function run(mode: RunMode, sql: string, parameters?: readonly unknown[]): Query
25
25
  }
26
26
  }
27
27
 
28
- // @ts-expect-error bun worker
29
28
  onmessage = ({ data }: MessageEvent<MainMsg>) => {
30
29
  const ret: WorkerMsg = {
31
30
  type: data.type,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/datetime",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
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.58",
4
+ "version": "0.58.60",
5
5
  "description": "The Stacks Desktop engine.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -66,7 +66,7 @@
66
66
  "@tauri-apps/cli": "^1.5.9",
67
67
  "unified-network": "^0.6.4",
68
68
  "unstorage": "^1.10.1",
69
- "vue": "^3.4.16"
69
+ "vue": "^3.4.18"
70
70
  },
71
71
  "dependencies": {
72
72
  "@stacksjs/build": "workspace:*",
@@ -75,7 +75,7 @@
75
75
  "@tauri-apps/cli": "^1.5.9",
76
76
  "unified-network": "^0.6.4",
77
77
  "unstorage": "^1.10.1",
78
- "vue": "^3.4.16"
78
+ "vue": "^3.4.18"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@stacksjs/development": "workspace:*"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/development",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
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.58",
4
+ "version": "0.58.60",
5
5
  "description": "Easily manage your DNS.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -51,27 +51,27 @@
51
51
  "prepublishOnly": "bun --bun run build"
52
52
  },
53
53
  "peerDependencies": {
54
- "@aws-sdk/client-route-53": "^3.509.0",
55
- "@aws-sdk/client-route-53-domains": "^3.509.0",
54
+ "@aws-sdk/client-route-53": "^3.511.0",
55
+ "@aws-sdk/client-route-53-domains": "^3.511.0",
56
56
  "@stacksjs/actions": "workspace:*",
57
57
  "@stacksjs/error-handling": "workspace:*",
58
58
  "@stacksjs/path": "workspace:*",
59
59
  "@stacksjs/storage": "workspace:*",
60
60
  "@stacksjs/whois": "workspace:*",
61
- "aws-cdk-lib": "^2.126.0"
61
+ "aws-cdk-lib": "^2.127.0"
62
62
  },
63
63
  "dependencies": {
64
- "@aws-sdk/client-route-53": "^3.509.0",
64
+ "@aws-sdk/client-route-53": "^3.511.0",
65
65
  "@stacksjs/actions": "workspace:*",
66
66
  "@stacksjs/error-handling": "workspace:*",
67
67
  "@stacksjs/path": "workspace:*",
68
68
  "@stacksjs/storage": "workspace:*",
69
69
  "@stacksjs/strings": "workspace:*",
70
70
  "@stacksjs/whois": "workspace:*",
71
- "aws-cdk-lib": "^2.126.0"
71
+ "aws-cdk-lib": "^2.127.0"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@stacksjs/development": "workspace:*",
75
- "aws-cdk-lib": "^2.126.0"
75
+ "aws-cdk-lib": "^2.127.0"
76
76
  }
77
77
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/docs",
3
3
  "type": "module",
4
- "version": "0.58.58",
4
+ "version": "0.58.60",
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.58",
4
+ "version": "0.58.60",
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",
@@ -57,20 +57,21 @@
57
57
  "prepublishOnly": "bun --bun run build"
58
58
  },
59
59
  "peerDependencies": {
60
- "@maizzle/framework": "^4.7.5",
60
+ "@maizzle/framework": "^4.7.6",
61
61
  "@stacksjs/cli": "workspace:*",
62
62
  "@stacksjs/config": "workspace:*",
63
63
  "@stacksjs/error-handling": "workspace:*",
64
64
  "@stacksjs/types": "workspace:*"
65
65
  },
66
66
  "dependencies": {
67
- "@maizzle/framework": "^4.7.5",
67
+ "@maizzle/framework": "^4.7.6",
68
68
  "@novu/stateless": "^0.23.1",
69
69
  "@stacksjs/cli": "workspace:*",
70
70
  "@stacksjs/config": "workspace:*",
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
75
  "mailparser": "^3.6.7",
75
76
  "mime": "^4.0.1",
76
77
  "moment": "^2.30.1",
@@ -12,7 +12,7 @@ const s3 = new AWS.S3({
12
12
 
13
13
  // This lambda will read RAW emails and convert them in easy to read formats
14
14
  // like: HTML and text
15
- exports.handler = (event) => {
15
+ exports.handler = (event: any) => {
16
16
  // 1. We need to process the path received by S3 since AWS dose escape the
17
17
  // string in a special way. They escape the string in a HTML style
18
18
  // but for whatever reason they convert spaces in to +ses.
@@ -57,7 +57,7 @@ exports.handler = (event) => {
57
57
  }
58
58
 
59
59
  // Load the email that triggered the function from S3
60
- function load_the_email(container) {
60
+ function load_the_email(container: any) {
61
61
  return new Promise((resolve, reject) => {
62
62
  console.info('load_the_email')
63
63
 
@@ -68,7 +68,7 @@ function load_the_email(container) {
68
68
  }
69
69
 
70
70
  // -> Execute the query
71
- s3.getObject(params, (error, data) => {
71
+ s3.getObject(params, (error: any, data: any) => {
72
72
  // 1. Check for internal errors
73
73
  if (error)
74
74
  return reject(error)
@@ -84,7 +84,7 @@ function load_the_email(container) {
84
84
 
85
85
  // Since the raw email is saved with an extension we need to remove it
86
86
  // before we can save other converted versions.
87
- function remove_extension(container) {
87
+ function remove_extension(container: any) {
88
88
  return new Promise((resolve, reject) => {
89
89
  console.info('remove_extension')
90
90
 
@@ -105,11 +105,11 @@ function remove_extension(container) {
105
105
  }
106
106
 
107
107
  // Convert the raw email in to HTML and Text, and extract also the attachments
108
- function parse_the_email(container) {
108
+ function parse_the_email(container: any) {
109
109
  return new Promise((resolve, reject) => {
110
- // 1. Parse the email and extract all the it necessary.
111
- parser(container.raw_email, (error, parsed) => {
112
- // 1. Check for internal errors.
110
+ // 1. Parse the email and extract all the necessary
111
+ parser(container.raw_email, (error: any, parsed: any) => {
112
+ // 1. Check for internal errors
113
113
  if (error)
114
114
  return reject(error)
115
115
 
@@ -125,7 +125,7 @@ function parse_the_email(container) {
125
125
  }
126
126
 
127
127
  // After the conversion we save the Text version to S3.
128
- function save_text(container) {
128
+ function save_text(container: any) {
129
129
  return new Promise((resolve, reject) => {
130
130
  console.info('save_text')
131
131
 
@@ -137,7 +137,7 @@ function save_text(container) {
137
137
  }
138
138
 
139
139
  // -> Execute the query.
140
- s3.putObject(params, (error, data) => {
140
+ s3.putObject(params, (error: any, data: any) => {
141
141
  // 1. Check for internal errors.
142
142
  if (error)
143
143
  return reject(error)
@@ -149,10 +149,10 @@ function save_text(container) {
149
149
  }
150
150
 
151
151
  // Then if we have a HTML version we try to save that.
152
- function save_html(container) {
152
+ function save_html(container: any) {
153
153
  return new Promise((resolve, reject) => {
154
154
  // <>> When the body of an email have only one version, meaning it
155
- // dose have only the pure text version and no HTML.
155
+ // does have only the pure text version and no HTML.
156
156
  // Nodemailer won't generate the HTML for you, it just grabs
157
157
  // what is in the Email body.
158
158
  // So, this value will be false, when there is no HTML content in
@@ -174,7 +174,7 @@ function save_html(container) {
174
174
  }
175
175
 
176
176
  // -> Execute the query.
177
- s3.putObject(params, (error, data) => {
177
+ s3.putObject(params, (error: any, data: any) => {
178
178
  // 1. Check for internal errors.
179
179
  if (error)
180
180
  return reject(error)
@@ -187,12 +187,12 @@ function save_html(container) {
187
187
 
188
188
  // Last thing to do is to save the attachments if there are any. If the
189
189
  // array is empty the loop will skip itself.
190
- function save_attachments(container) {
190
+ function save_attachments(container: any) {
191
191
  return new Promise((resolve, reject) => {
192
192
  console.info('save_attachments')
193
193
 
194
194
  // Start the loop which save all the attachments.
195
- loop(1, (error) => {
195
+ loop(1, (error: any) => {
196
196
  // <<> Check if there was an error.
197
197
  if (error) {
198
198
  // -> Stop everything and surface the error.
@@ -204,7 +204,7 @@ function save_attachments(container) {
204
204
  })
205
205
 
206
206
  // This loop will upload all the individual attachments found in a email
207
- function loop(count, callback) {
207
+ function loop(count: any, callback: any) {
208
208
  // 1. Pop the last element in the array if any.
209
209
  const file = container.parsed.attachments.pop()
210
210
 
@@ -213,7 +213,7 @@ function save_attachments(container) {
213
213
  return callback()
214
214
 
215
215
  // 3. Get the file name which also contain the file extension.
216
- file_name = file.filename
216
+ let file_name = file.filename
217
217
 
218
218
  // 4. An email attachment is not required to have a name, this
219
219
  // mean we need to check if we have a file name and, if not
@@ -258,7 +258,7 @@ function save_attachments(container) {
258
258
  }
259
259
 
260
260
  // 8. Then save the buffer of the attachment.
261
- file_body = file.content
261
+ const file_body = file.content
262
262
 
263
263
  // 9. Split the S3 Key (path) so we can remove the last element. Since
264
264
  // we don't want the object name, we care only about the path.
@@ -292,7 +292,7 @@ function save_attachments(container) {
292
292
  }
293
293
 
294
294
  // -> Execute the query.
295
- s3.putObject(params, (error, data) => {
295
+ s3.putObject(params, (error: any, data: any) => {
296
296
  // 1. Check for internal errors.
297
297
  if (error)
298
298
  return callback(error)