stacks 0.52.9 → 0.53.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/nitro.config.ts +2 -2
- package/api/routes/index.ts +1 -1
- package/auto-imports.d.ts +6 -0
- package/core/actions/package.json +1 -5
- package/core/actions/src/clean.ts +1 -1
- package/core/actions/src/dev/index.ts +0 -9
- package/core/actions/src/generate/index.ts +3 -3
- package/core/actions/src/generate/settings.ts +3 -3
- package/core/actions/src/helpers/lib-entries.ts +11 -12
- package/core/actions/src/helpers/utils.ts +1 -1
- package/core/actions/src/make.ts +1 -1
- package/core/actions/src/release.ts +4 -2
- package/core/actions/src/upgrade/framework.ts +29 -29
- package/core/actions/src/upgrade/index.ts +13 -15
- package/core/actions/src/upgrade/node.ts +4 -4
- package/core/actions/src/upgrade/package-manager.ts +4 -4
- package/core/actions/src/upgrade.ts +1 -1
- package/core/ai/package.json +1 -1
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/cli.ts +3 -26
- package/core/buddy/src/commands/fresh.ts +1 -1
- package/core/buddy/src/commands/lint.ts +2 -2
- package/core/buddy/src/commands/onboarding.ts +9 -15
- package/core/buddy/src/commands/setting.ts +10 -12
- package/core/buddy/src/commands/version.ts +7 -19
- package/core/buddy/src/index.ts +0 -21
- package/core/build/package.json +3 -3
- package/core/build/src/functions.ts +3 -3
- package/core/build/src/stacks.ts +3 -6
- package/core/build/src/web-components.ts +1 -1
- package/core/cache/package.json +2 -2
- package/core/cache/src/drivers/redis.ts +2 -2
- package/core/chat/package.json +1 -1
- package/core/cli/package.json +1 -1
- package/core/cli/src/run.ts +2 -2
- package/core/cloud/package.json +1 -1
- package/core/collections/package.json +1 -1
- package/core/config/package.json +1 -1
- package/core/database/package.json +1 -1
- package/core/database/src/factory/index.ts +2 -2
- package/core/database/src/migrations/index.ts +2 -2
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/development/package.json +1 -1
- package/core/docs/node_modules/.bin/vitepress +4 -4
- package/core/docs/package.json +2 -2
- package/core/domains/package.json +1 -1
- package/core/email/package.json +1 -1
- package/core/email/src/actions/send.ts +2 -0
- package/core/email/src/tailwind.config.ts +3 -3
- package/core/error-handling/package.json +2 -2
- package/core/events/package.json +1 -1
- package/core/faker/package.json +1 -1
- package/core/git/package.json +1 -1
- package/core/health/package.json +1 -1
- package/core/lint/node_modules/.bin/publint +4 -4
- package/core/lint/package.json +4 -4
- package/core/logging/package.json +2 -2
- package/core/modules/package.json +1 -1
- package/core/notifications/package.json +1 -1
- package/core/notifications/tests/chat/Slack.test.ts +35 -35
- package/core/notifications/tests/email/Mailgun.test.ts +41 -41
- package/core/notifications/tests/email/Sendgrid.test.ts +41 -41
- package/core/notifications/tests/sms/Twilio.test.ts +38 -38
- package/core/objects/package.json +1 -1
- package/core/objects/src/index.ts +2 -1
- package/core/orm/package.json +1 -1
- package/core/pages/package.json +1 -1
- package/core/pages/src/index.ts +39 -39
- package/core/path/package.json +1 -1
- package/core/path/src/index.ts +14 -4
- package/core/payments/package.json +1 -1
- package/core/push/package.json +1 -1
- package/core/query-builder/package.json +2 -2
- package/core/queue/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/router/package.json +1 -1
- package/core/scheduler/package.json +1 -1
- package/core/search-engine/package.json +2 -2
- package/core/search-engine/src/helpers.ts +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +2 -1
- package/core/server/src/index.ts +2 -5
- package/core/server/src/nitro.config.ts +2 -2
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/package.json +1 -1
- package/core/sms/src/drivers/gupshup.ts +1 -1
- package/core/sms/src/drivers/nexmo.ts +3 -2
- package/core/sms/src/drivers/plivo.ts +3 -2
- package/core/sms/src/drivers/sms77.ts +3 -2
- package/core/sms/src/drivers/sns.ts +1 -1
- package/core/sms/src/drivers/telnyx.ts +3 -2
- package/core/sms/src/drivers/termii.ts +3 -2
- package/core/sms/src/drivers/twilio.ts +3 -2
- package/core/storage/package.json +1 -1
- package/core/storage/src/index.ts +3 -5
- package/core/strings/package.json +1 -1
- package/core/testing/node_modules/.bin/playwright +4 -4
- package/core/testing/package.json +2 -2
- package/core/tinker/package.json +1 -1
- package/core/types/node_modules/.bin/vite +4 -4
- package/core/types/node_modules/.bin/vitepress +4 -4
- package/core/types/package.json +8 -8
- package/core/types/src/cli.ts +9 -11
- package/core/types/src/fs.ts +5 -0
- package/core/types/src/model.ts +0 -1
- package/core/ui/package.json +3 -3
- package/core/utils/package.json +3 -3
- package/core/utils/src/guards.ts +3 -3
- package/core/utils/src/helpers.ts +26 -8
- package/core/utils/src/vendors.ts +1 -0
- package/core/validation/package.json +1 -1
- package/docs/node_modules/.bin/vitepress +4 -4
- package/docs/package.json +1 -1
- package/package.json +91 -91
- package/pages/web/main.ts +26 -26
- package/core/actions/src/generate/package-jsons.ts +0 -11
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
import { email, useEmail } from '@stacksjs/notifications'
|
|
3
|
-
import { notification as env } from '@stacksjs/utils'
|
|
4
|
-
|
|
5
|
-
describe('Mailgun Test', () => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
})
|
|
1
|
+
// import { describe, expect, it } from 'vitest'
|
|
2
|
+
// import { email, useEmail } from '@stacksjs/notifications'
|
|
3
|
+
// import { notification as env } from '@stacksjs/utils'
|
|
4
|
+
//
|
|
5
|
+
// describe('Mailgun Test', () => {
|
|
6
|
+
// it('should not send email', async () => {
|
|
7
|
+
// const notification = email.mailgun
|
|
8
|
+
// const test = await notification.send({
|
|
9
|
+
// from: 'repuestobrian2@gmail.com',
|
|
10
|
+
// to: 'repuestobrian@gmail',
|
|
11
|
+
// subject: 'Test Email',
|
|
12
|
+
// html: '<p> Test </p>',
|
|
13
|
+
// })
|
|
14
|
+
//
|
|
15
|
+
// expect(test).toBeDefined()
|
|
16
|
+
// })
|
|
17
|
+
//
|
|
18
|
+
// it('should send email using useEmail', async () => {
|
|
19
|
+
// const notification = useEmail('mailgun')
|
|
20
|
+
// const test = await notification.send({
|
|
21
|
+
// from: 'repuestobrian2@gmail.com',
|
|
22
|
+
// to: 'repuestobrian@gmail',
|
|
23
|
+
// subject: 'Test Email',
|
|
24
|
+
// html: '<p> Test </p>',
|
|
25
|
+
// })
|
|
26
|
+
//
|
|
27
|
+
// expect(test).toBeDefined()
|
|
28
|
+
// })
|
|
29
|
+
//
|
|
30
|
+
// it('should not send email when receiver is empty', async () => {
|
|
31
|
+
// const notification = email.mailgun
|
|
32
|
+
// const test = await notification.send({
|
|
33
|
+
// from: env.email.sendgrid.from,
|
|
34
|
+
// to: '',
|
|
35
|
+
// subject: 'Test Email',
|
|
36
|
+
// html: '<p> Test Email using SG!</p>',
|
|
37
|
+
// })
|
|
38
|
+
//
|
|
39
|
+
// expect(test.error).toThrowError(Error)
|
|
40
|
+
// })
|
|
41
|
+
// })
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
import { email, useEmail } from '@stacksjs/notifications'
|
|
3
|
-
import { notification as env } from '@stacksjs/config'
|
|
4
|
-
|
|
5
|
-
describe('Sendgrid Test', () => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
})
|
|
1
|
+
// import { describe, expect, it } from 'vitest'
|
|
2
|
+
// import { email, useEmail } from '@stacksjs/notifications'
|
|
3
|
+
// import { notification as env } from '@stacksjs/config'
|
|
4
|
+
//
|
|
5
|
+
// describe('Sendgrid Test', () => {
|
|
6
|
+
// it('should send email', async () => {
|
|
7
|
+
// const notification = email.sendgrid
|
|
8
|
+
// const test = await notification.send({
|
|
9
|
+
// from: env.email.sendgrid.from,
|
|
10
|
+
// to: 'repuestobrian2@gmail.com',
|
|
11
|
+
// subject: 'Test Email',
|
|
12
|
+
// html: '<p> Test Email using SG!</p>',
|
|
13
|
+
// })
|
|
14
|
+
//
|
|
15
|
+
// expect(test).toBeDefined()
|
|
16
|
+
// })
|
|
17
|
+
//
|
|
18
|
+
// it('should send email using useEmail', async () => {
|
|
19
|
+
// const notification = useEmail('sendgrid')
|
|
20
|
+
// const test = await notification.send({
|
|
21
|
+
// from: env.email.sendgrid.from,
|
|
22
|
+
// to: 'repuestobrian2@gmail.com',
|
|
23
|
+
// subject: 'Test Email',
|
|
24
|
+
// html: '<p> Test Email using SG!</p>',
|
|
25
|
+
// })
|
|
26
|
+
//
|
|
27
|
+
// expect(test).toBeDefined()
|
|
28
|
+
// })
|
|
29
|
+
//
|
|
30
|
+
// it('should not send email when receiver is empty', async () => {
|
|
31
|
+
// const notification = email.sendgrid
|
|
32
|
+
// const test = await notification.send({
|
|
33
|
+
// from: env.email.sendgrid.from,
|
|
34
|
+
// to: '',
|
|
35
|
+
// subject: 'Test Email',
|
|
36
|
+
// html: '<p> Test Email using SG!</p>',
|
|
37
|
+
// })
|
|
38
|
+
//
|
|
39
|
+
// expect(test.error).toThrowError(Error)
|
|
40
|
+
// })
|
|
41
|
+
// })
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest'
|
|
2
|
-
import { sms, useSMS } from '@stacksjs/notifications'
|
|
3
|
-
import { notification } from '@stacksjs/config'
|
|
4
|
-
|
|
5
|
-
describe('Twilio Test', () => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
})
|
|
1
|
+
// import { describe, expect, it } from 'vitest'
|
|
2
|
+
// import { sms, useSMS } from '@stacksjs/notifications'
|
|
3
|
+
// import { notification } from '@stacksjs/config'
|
|
4
|
+
//
|
|
5
|
+
// describe('Twilio Test', () => {
|
|
6
|
+
// it('should send sms', async () => {
|
|
7
|
+
// const notif = sms.twilio
|
|
8
|
+
// const test = await notif.send({
|
|
9
|
+
// content: 'Test SMS from Stacks',
|
|
10
|
+
// to: notification.sms.twilio.to,
|
|
11
|
+
// from: notification.sms.twilio.from,
|
|
12
|
+
// })
|
|
13
|
+
//
|
|
14
|
+
// expect(test).toBeDefined()
|
|
15
|
+
// })
|
|
16
|
+
//
|
|
17
|
+
// it('should send sms using useSMS', async () => {
|
|
18
|
+
// const notif = useSMS('twilio')
|
|
19
|
+
// const test = await notif.send({
|
|
20
|
+
// content: 'Test SMS from Stacks',
|
|
21
|
+
// to: notification.sms.twilio.to,
|
|
22
|
+
// from: notification.sms.twilio.from,
|
|
23
|
+
// })
|
|
24
|
+
//
|
|
25
|
+
// expect(test).toBeDefined()
|
|
26
|
+
// })
|
|
27
|
+
//
|
|
28
|
+
// it('should not send sms if receiver is empty', async () => {
|
|
29
|
+
// const notif = sms.twilio
|
|
30
|
+
// const test = await notif.send({
|
|
31
|
+
// content: 'Test SMS from Stacks',
|
|
32
|
+
// to: '',
|
|
33
|
+
// from: notification.sms.twilio.from,
|
|
34
|
+
// })
|
|
35
|
+
//
|
|
36
|
+
// expect(test.error).toThrowError(Error)
|
|
37
|
+
// })
|
|
38
|
+
// })
|
package/core/orm/package.json
CHANGED
package/core/pages/package.json
CHANGED
package/core/pages/src/index.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { page as config } from '@stacksjs/config'
|
|
2
|
-
import { filesystem } from '@stacksjs/storage'
|
|
3
|
-
|
|
4
|
-
const { fs } = filesystem
|
|
5
|
-
|
|
6
|
-
function generateSettings() {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function generateOnboarding() {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
1
|
+
// import { page as config } from '@stacksjs/config'
|
|
2
|
+
// import { filesystem } from '@stacksjs/storage'
|
|
3
|
+
//
|
|
4
|
+
// const { fs } = filesystem
|
|
5
|
+
//
|
|
6
|
+
// function generateSettings() {
|
|
7
|
+
// config.settings?.pages.forEach((page: string) => {
|
|
8
|
+
// fs.appendFile(
|
|
9
|
+
// `${config.settings?.path}/${page}.vue`,
|
|
10
|
+
// '',
|
|
11
|
+
// (err) => {
|
|
12
|
+
// if (err)
|
|
13
|
+
// throw err
|
|
14
|
+
// // eslint-disable-next-line no-console
|
|
15
|
+
// console.log(`${page}.vue was generated successfully!`)
|
|
16
|
+
// },
|
|
17
|
+
// )
|
|
18
|
+
// })
|
|
19
|
+
// }
|
|
20
|
+
//
|
|
21
|
+
// function generateOnboarding() {
|
|
22
|
+
// config.onboarding?.pages.forEach((page: string) => {
|
|
23
|
+
// fs.appendFile(
|
|
24
|
+
// `${config.onboarding?.path}/${page}.vue`,
|
|
25
|
+
// '',
|
|
26
|
+
// (err) => {
|
|
27
|
+
// if (err)
|
|
28
|
+
// throw err
|
|
29
|
+
// // eslint-disable-next-line no-console
|
|
30
|
+
// console.log(`${page}.vue was generated successfully!`)
|
|
31
|
+
// },
|
|
32
|
+
// )
|
|
33
|
+
// })
|
|
34
|
+
// }
|
|
35
|
+
//
|
|
36
|
+
// export {
|
|
37
|
+
// generateSettings,
|
|
38
|
+
// generateOnboarding,
|
|
39
|
+
// }
|
package/core/path/package.json
CHANGED
package/core/path/src/index.ts
CHANGED
|
@@ -103,7 +103,7 @@ export function collectionsPath(path?: string) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
export function componentsPath(path?: string) {
|
|
106
|
-
return
|
|
106
|
+
return resourcesPath(`components/${path || ''}`)
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
export function configPath(path?: string) {
|
|
@@ -179,7 +179,7 @@ export function storagePath(path?: string) {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
export function functionsPath(path?: string) {
|
|
182
|
-
return
|
|
182
|
+
return resourcesPath(`functions/${path || ''}`)
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
export function gitPath(path?: string) {
|
|
@@ -187,7 +187,7 @@ export function gitPath(path?: string) {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
export function langPath(path?: string) {
|
|
190
|
-
return
|
|
190
|
+
return resourcesPath(`lang/${path || ''}`)
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
export function libraryEntryPath(type: 'vue-components' | 'web-components' | 'functions') {
|
|
@@ -244,7 +244,7 @@ export function packageJsonPath(type: 'vue-components' | 'web-components' | 'fun
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
export function pagesPath(path?: string) {
|
|
247
|
-
return
|
|
247
|
+
return resourcesPath(`pages/${path || ''}`)
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
export function pathPath(path?: string) {
|
|
@@ -305,6 +305,14 @@ export function signalsPath(path?: string) {
|
|
|
305
305
|
return corePath(`signals/${path || ''}`)
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
+
export function storesPath(path?: string) {
|
|
309
|
+
return resourcesPath(`stores/${path || ''}`)
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export function resourcesPath(path?: string) {
|
|
313
|
+
return projectPath(`resources/${path || ''}`)
|
|
314
|
+
}
|
|
315
|
+
|
|
308
316
|
export function routesPath(path?: string) {
|
|
309
317
|
return projectPath(`routes/${path || ''}`)
|
|
310
318
|
}
|
|
@@ -415,6 +423,7 @@ const path = {
|
|
|
415
423
|
queryBuilderPath,
|
|
416
424
|
queuePath,
|
|
417
425
|
realtimePath,
|
|
426
|
+
resourcesPath,
|
|
418
427
|
routerPath,
|
|
419
428
|
routesPath,
|
|
420
429
|
searchEnginePath,
|
|
@@ -428,6 +437,7 @@ const path = {
|
|
|
428
437
|
serverlessPath,
|
|
429
438
|
stacksPath,
|
|
430
439
|
stringsPath,
|
|
440
|
+
storesPath,
|
|
431
441
|
tablesPath,
|
|
432
442
|
testingPath,
|
|
433
443
|
testsPath,
|
package/core/push/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/query-builder",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.1",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks Query Builder integration",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@stacksjs/types": "workspace:*",
|
|
46
46
|
"kysely": "^0.24.2",
|
|
47
|
-
"mysql2": "^3.3.
|
|
47
|
+
"mysql2": "^3.3.2",
|
|
48
48
|
"pg": "^8.11.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
package/core/queue/package.json
CHANGED
package/core/router/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/search-engine",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.1",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks search engine integrations.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"typecheck": "tsc --noEmit"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"meilisearch": "^0.32.
|
|
54
|
+
"meilisearch": "^0.32.4"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@stacksjs/cli": "workspace:*",
|
|
@@ -122,7 +122,7 @@ export function determineState(): SearchEngineStore {
|
|
|
122
122
|
const ls = localStorage.getItem('search-engine')
|
|
123
123
|
|
|
124
124
|
if (isString(ls))
|
|
125
|
-
return JSON.parse(ls)
|
|
125
|
+
return JSON.parse(ls) as any
|
|
126
126
|
|
|
127
127
|
return { // default state
|
|
128
128
|
source: 'http://127.0.0.1:7700',
|
package/core/server/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/server",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.1",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "Local development and production-ready.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@stacksjs/config": "workspace:*",
|
|
52
52
|
"@stacksjs/path": "workspace:*",
|
|
53
|
+
"@stacksjs/validation": "workspace:*",
|
|
53
54
|
"nitropack": "^2.4.1",
|
|
54
55
|
"vite": "^4.3.8"
|
|
55
56
|
},
|
package/core/server/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineServerConfig } from '@stacksjs/server'
|
|
2
2
|
import { projectPath } from '@stacksjs/path'
|
|
3
3
|
|
|
4
|
-
export default
|
|
4
|
+
export default defineServerConfig({
|
|
5
5
|
preset: 'aws-lambda',
|
|
6
6
|
srcDir: projectPath(),
|
|
7
7
|
})
|
package/core/slug/package.json
CHANGED
package/core/sms/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/sms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.1",
|
|
5
5
|
"packageManager": "pnpm@8.5.1",
|
|
6
6
|
"description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -4,7 +4,7 @@ import type { SmsOptions } from '@stacksjs/types'
|
|
|
4
4
|
import { ResultAsync } from '@stacksjs/error-handling'
|
|
5
5
|
import { notification } from '@stacksjs/config'
|
|
6
6
|
|
|
7
|
-
const env = notification.sms?.gupshup
|
|
7
|
+
const env = notification.sms?.drivers.gupshup
|
|
8
8
|
|
|
9
9
|
const provider = new GupshupSmsProvider({
|
|
10
10
|
userId: env?.user || '',
|