stacks 0.58.59 → 0.58.61
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/core/actions/dist/src/clean.js +2 -2
- package/core/actions/dist/src/lint/fix.js +4 -1
- package/core/actions/dist/src/upgrade.js +10 -7
- package/core/actions/package.json +1 -1
- package/core/actions/src/action.ts +18 -8
- package/core/actions/src/clean.ts +2 -2
- package/core/actions/src/dev/api.ts +1 -2
- package/core/actions/src/domains/add.ts +12 -27
- package/core/actions/src/lint/fix.ts +6 -1
- package/core/actions/src/migrate/dns.ts +1 -1
- package/core/actions/src/upgrade.ts +5 -2
- package/core/ai/package.json +2 -2
- package/core/alias/package.json +4 -4
- package/core/analytics/package.json +1 -1
- package/core/api/package.json +4 -4
- package/core/arrays/package.json +4 -4
- package/core/auth/package.json +1 -1
- package/core/buddy/dist/{chunk-7b24d1e3e585766e.js → chunk-6658b07ce4c24cac.js} +62 -1
- package/core/buddy/dist/cli.js +1 -1
- package/core/buddy/dist/index.js +1 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/commands/build.ts +25 -25
- package/core/buddy/src/commands/deploy.ts +1 -1
- package/core/buddy/src/commands/dev.ts +33 -34
- package/core/buddy/src/commands/upgrade.ts +23 -24
- package/core/build/package.json +1 -1
- package/core/bun-create/bud/package.json +1 -1
- package/core/bun-create/buddy/package.json +1 -1
- package/core/bun-create/stack/package.json +1 -1
- package/core/bun-create/stacks/package.json +1 -1
- package/core/bun-create/stx/package.json +1 -1
- package/core/bun-create/tmp.json +0 -0
- package/core/bun-plugin-yaml/package.json +4 -4
- package/core/cache/package.json +4 -4
- package/core/chat/package.json +10 -10
- package/core/cli/dist/index.js +27 -20
- package/core/cli/package.json +1 -1
- package/core/cli/src/console.ts +18 -18
- package/core/cli/src/exec.ts +9 -6
- package/core/cli/src/parse.ts +3 -3
- package/core/cloud/dist/index.js +2 -2
- package/core/cloud/package.json +2 -2
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +1 -1
- package/core/cloud/src/cloud/dashboard.ts +86 -85
- package/core/cloud/src/cloud/docs.ts +2 -2
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
- package/core/cloud/zip.ts +1 -1
- package/core/collections/package.json +2 -2
- package/core/collections/tmp.json +0 -0
- package/core/config/dist/index.js +3 -3
- package/core/config/package.json +1 -1
- package/core/config/src/defaults.ts +4 -2
- package/core/database/package.json +1 -1
- package/core/database/src/kysely-bun-worker/worker.ts +0 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/development/package.json +1 -1
- package/core/dns/package.json +13 -13
- package/core/docs/package.json +1 -1
- package/core/email/package.json +2 -1
- package/core/email/src/server/converter.ts +19 -19
- package/core/email/src/server/inbound.ts +24 -8
- package/core/email/src/server/outbound.ts +17 -17
- package/core/enums/package.json +1 -1
- package/core/env/dist/index.js +1 -1
- package/core/env/package.json +4 -4
- package/core/env/tmp.json +0 -0
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/build.ts +1 -1
- package/core/eslint-config/package.json +3 -1
- package/core/eslint-config/test/cli.spec.ts +2 -1
- package/core/eslint-config/tsconfig.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/http/package.json +1 -1
- package/core/lint/package.json +1 -1
- package/core/logging/build.ts +1 -1
- package/core/logging/dist/index.js +13 -11043
- package/core/logging/package.json +5 -5
- package/core/notifications/package.json +1 -1
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +8 -8
- package/core/path/dist/index.js +5 -0
- package/core/path/package.json +3 -3
- package/core/path/src/index.ts +5 -0
- package/core/path/tmp.json +0 -0
- package/core/payments/package.json +1 -1
- package/core/push/package.json +1 -1
- package/core/query-builder/package.json +1 -1
- package/core/queue/package.json +2 -2
- package/core/queue/tmp.json +0 -0
- package/core/raycast/package.json +1 -1
- package/core/raycast/tmp.json +0 -0
- package/core/realtime/package.json +1 -1
- package/core/repl/package.json +4 -4
- package/core/router/dist/index.js +4 -0
- package/core/router/package.json +1 -1
- package/core/scheduler/package.json +3 -2
- package/core/scheduler/tests/cron.test.ts +11 -9
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +9 -9
- package/core/server/package.json +1 -1
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/package.json +11 -11
- package/core/storage/package.json +13 -13
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +6 -6
- package/core/testing/package.json +6 -4
- package/core/tinker/package.json +4 -4
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +1 -1
- package/core/types/src/app.ts +1 -1
- package/core/types/src/docs.ts +3 -3
- package/core/types/src/team.ts +1 -1
- package/core/ui/package.json +2 -2
- package/core/utils/dist/index.js +15 -13
- package/core/utils/package.json +21 -21
- package/core/utils/src/clean.ts +3 -3
- package/core/utils/src/hash.ts +9 -9
- package/core/validation/package.json +7 -7
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +1 -1
- package/core/vite/src/example-wc.ts +1 -4
- package/core/vite/src/plugin/auto-imports.ts +1 -2
- package/core/vite/src/plugin/components.ts +1 -2
- package/core/vite/src/plugin/docs.ts +1 -1
- package/core/whois/package.json +4 -4
- package/core/x-ray/package.json +4 -4
- package/core/zsh-buddy/package.json +3 -3
- package/ide/vscode/package.json +3 -4
- package/package.json +1 -1
- package/core/cloud/cdk.json +0 -62
- package/core/cloud/deploy.ts +0 -85
|
@@ -18,7 +18,7 @@ const ses = new AWS.SES({
|
|
|
18
18
|
|
|
19
19
|
// This lambda will read outgoing emails formatted in JSON, convert them
|
|
20
20
|
// in to a raw email, send them using SES, and store them in S3.
|
|
21
|
-
exports.handler = (event) => {
|
|
21
|
+
exports.handler = (event: any) => {
|
|
22
22
|
// This JS object will contain all the data within the chain
|
|
23
23
|
const container = {
|
|
24
24
|
bucket: event.Records[0].s3.bucket.name,
|
|
@@ -56,7 +56,7 @@ exports.handler = (event) => {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// Load the JSON email that triggered this Lambda.
|
|
59
|
-
function load_the_email(container) {
|
|
59
|
+
function load_the_email(container: any) {
|
|
60
60
|
return new Promise((resolve, reject) => {
|
|
61
61
|
console.info('load_the_email')
|
|
62
62
|
|
|
@@ -67,7 +67,7 @@ function load_the_email(container) {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
// -> Execute the query.
|
|
70
|
-
s3.getObject(params, (error, data) => {
|
|
70
|
+
s3.getObject(params, (error: any, data: any) => {
|
|
71
71
|
// 1. Check for internal errors.
|
|
72
72
|
if (error)
|
|
73
73
|
return reject(error)
|
|
@@ -82,7 +82,7 @@ function load_the_email(container) {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
// Extract all the data necessary to organize the incoming emails.
|
|
85
|
-
function extract_data(container) {
|
|
85
|
+
function extract_data(container: any) {
|
|
86
86
|
return new Promise((resolve, reject) => {
|
|
87
87
|
console.info('extract_data')
|
|
88
88
|
|
|
@@ -116,7 +116,7 @@ function extract_data(container) {
|
|
|
116
116
|
|
|
117
117
|
// 6. Create a human readable time stamp that matches the format
|
|
118
118
|
// S3 Provides in its Event.
|
|
119
|
-
date = moment().format('ddd, DD MMM YYYY HH:MM:SS ZZ')
|
|
119
|
+
const date = moment().format('ddd, DD MMM YYYY HH:MM:SS ZZ')
|
|
120
120
|
|
|
121
121
|
// 7. Create the path where the email needs to be moved
|
|
122
122
|
// so it is properly organized.
|
|
@@ -145,7 +145,7 @@ function extract_data(container) {
|
|
|
145
145
|
|
|
146
146
|
// From the JSON file that we loaded in to memory we generate a RAW version that
|
|
147
147
|
// can be used by SES, and later on stored and converted in multiple formats
|
|
148
|
-
function generate_the_raw_email(container
|
|
148
|
+
function generate_the_raw_email(container: any) {
|
|
149
149
|
return new Promise((resolve, reject) => {
|
|
150
150
|
console.info('generate_the_raw_email')
|
|
151
151
|
|
|
@@ -154,7 +154,7 @@ function generate_the_raw_email(container, callback) {
|
|
|
154
154
|
const mail = new MailComposer(container.email.json)
|
|
155
155
|
|
|
156
156
|
// 2. Take the email and compile it down to its text form for storage.
|
|
157
|
-
mail.compile().build((error, raw_message) => {
|
|
157
|
+
mail.compile().build((error: any, raw_message: any) => {
|
|
158
158
|
// 1. Check if there was an error
|
|
159
159
|
if (error)
|
|
160
160
|
return reject(error)
|
|
@@ -169,7 +169,7 @@ function generate_the_raw_email(container, callback) {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
// Use the newly generated RAW email and send it using SES.
|
|
172
|
-
function send_email(container) {
|
|
172
|
+
function send_email(container: any) {
|
|
173
173
|
return new Promise((resolve, reject) => {
|
|
174
174
|
console.info('send_email')
|
|
175
175
|
|
|
@@ -181,7 +181,7 @@ function send_email(container) {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
// -> Send the email out
|
|
184
|
-
ses.sendRawEmail(params, (error, data) => {
|
|
184
|
+
ses.sendRawEmail(params, (error: any, data: any) => {
|
|
185
185
|
// 1. Check if there was an error
|
|
186
186
|
if (error)
|
|
187
187
|
return reject(error)
|
|
@@ -202,7 +202,7 @@ function send_email(container) {
|
|
|
202
202
|
// and then we copy the object to the final destination, which triggers
|
|
203
203
|
// the Convert action, and once the convert action makes a PUT nothing else
|
|
204
204
|
// happens.
|
|
205
|
-
function save_raw_email(container) {
|
|
205
|
+
function save_raw_email(container: any) {
|
|
206
206
|
return new Promise((resolve, reject) => {
|
|
207
207
|
console.info('save_raw_email')
|
|
208
208
|
|
|
@@ -214,7 +214,7 @@ function save_raw_email(container) {
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
// -> Execute the query.
|
|
217
|
-
s3.putObject(params, (error, data) => {
|
|
217
|
+
s3.putObject(params, (error: any, data: any) => {
|
|
218
218
|
// 1. Check for internal errors.
|
|
219
219
|
if (error)
|
|
220
220
|
return reject(error)
|
|
@@ -226,7 +226,7 @@ function save_raw_email(container) {
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
// Now that we have our RAW email saved we do a copy event so it will trigger the Conversion Lambda
|
|
229
|
-
function copy_raw_email(container) {
|
|
229
|
+
function copy_raw_email(container: any) {
|
|
230
230
|
return new Promise((resolve, reject) => {
|
|
231
231
|
console.info('copy_raw_email')
|
|
232
232
|
|
|
@@ -238,7 +238,7 @@ function copy_raw_email(container) {
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
// -> Execute the query.
|
|
241
|
-
s3.copyObject(params, (error, data) => {
|
|
241
|
+
s3.copyObject(params, (error: any, data: any) => {
|
|
242
242
|
// 1. Check for internal errors.
|
|
243
243
|
if (error)
|
|
244
244
|
return reject(error)
|
|
@@ -250,7 +250,7 @@ function copy_raw_email(container) {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
// And before we finish we clean up the environment by deleting the JSON email,
|
|
253
|
-
function delete_json_email(container) {
|
|
253
|
+
function delete_json_email(container: any) {
|
|
254
254
|
return new Promise((resolve, reject) => {
|
|
255
255
|
console.info('delete_json_email')
|
|
256
256
|
|
|
@@ -261,7 +261,7 @@ function delete_json_email(container) {
|
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
// -> Execute the query.
|
|
264
|
-
s3.deleteObject(params, (error, data) => {
|
|
264
|
+
s3.deleteObject(params, (error: any, data: any) => {
|
|
265
265
|
// 1. Check for internal errors.
|
|
266
266
|
if (error)
|
|
267
267
|
return reject(error)
|
|
@@ -273,7 +273,7 @@ function delete_json_email(container) {
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
// And the temporary RAW email.
|
|
276
|
-
function delete_raw_email(container) {
|
|
276
|
+
function delete_raw_email(container: any) {
|
|
277
277
|
return new Promise((resolve, reject) => {
|
|
278
278
|
console.info('delete_raw_email')
|
|
279
279
|
|
|
@@ -284,7 +284,7 @@ function delete_raw_email(container) {
|
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
// -> Execute the query.
|
|
287
|
-
s3.deleteObject(params, (error, data) => {
|
|
287
|
+
s3.deleteObject(params, (error: any, data: any) => {
|
|
288
288
|
// 1. Check for internal errors.
|
|
289
289
|
if (error)
|
|
290
290
|
return reject(error)
|
package/core/enums/package.json
CHANGED
package/core/env/dist/index.js
CHANGED
|
@@ -135,7 +135,7 @@ import {validator} from "@stacksjs/validation";
|
|
|
135
135
|
import {validate} from "@stacksjs/validation";
|
|
136
136
|
var env_default = {
|
|
137
137
|
APP_NAME: validate.string(),
|
|
138
|
-
APP_ENV: validate.enum(["
|
|
138
|
+
APP_ENV: validate.enum(["local", "dev", "stage", "prod"]),
|
|
139
139
|
APP_KEY: validate.string(),
|
|
140
140
|
APP_URL: validate.string(),
|
|
141
141
|
APP_PORT: validate.number(),
|
package/core/env/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/env",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.61",
|
|
5
5
|
"description": "Stacks env helper methods.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"prepublishOnly": "bun --bun run build"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@stacksjs/validation": "
|
|
47
|
+
"@stacksjs/validation": "latest",
|
|
48
48
|
"fs-extra": "^11.2.0",
|
|
49
49
|
"std-env": "^3.7.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@stacksjs/development": "
|
|
53
|
-
"@stacksjs/path": "
|
|
52
|
+
"@stacksjs/development": "latest",
|
|
53
|
+
"@stacksjs/path": "latest"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.61",
|
|
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",
|
|
@@ -102,6 +102,8 @@
|
|
|
102
102
|
"yaml-eslint-parser": "^1.2.2"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
+
"@stacksjs/cli": "workspace:*",
|
|
106
|
+
"@stacksjs/development": "workspace:*",
|
|
105
107
|
"@stacksjs/eslint-config": "workspace:*",
|
|
106
108
|
"@stacksjs/utils": "workspace:*",
|
|
107
109
|
"@stylistic/eslint-plugin-migrate": "^1.6.1",
|
|
@@ -48,7 +48,8 @@ it('package.json updated', async () => {
|
|
|
48
48
|
|
|
49
49
|
it('esm eslint.config.js', async () => {
|
|
50
50
|
const pkgContent = await fs.readFile('package.json', 'utf-8')
|
|
51
|
-
|
|
51
|
+
const options = JSON.parse(pkgContent)
|
|
52
|
+
await fs.writeFile(join(genPath, 'package.json'), JSON.stringify({ ...options, type: 'module' }, null, 2))
|
|
52
53
|
|
|
53
54
|
const { stdout } = await run()
|
|
54
55
|
|
package/core/events/package.json
CHANGED
package/core/faker/package.json
CHANGED
package/core/git/package.json
CHANGED
package/core/health/package.json
CHANGED
package/core/http/package.json
CHANGED
package/core/lint/package.json
CHANGED
package/core/logging/build.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { log, runCommand } from '../cli/src'
|
|
2
2
|
|
|
3
|
-
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external @stacksjs/types --external @stacksjs/cli --external @stacksjs/path --external consola --target bun', {
|
|
3
|
+
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external @stacksjs/types --external @stacksjs/cli --external @stacksjs/path --external consola --external @stacksjs/error-handling --external @stacksjs/types --external @stacksjs/config --target bun', {
|
|
4
4
|
cwd: import.meta.dir,
|
|
5
5
|
})
|
|
6
6
|
|