stacks 0.58.57 → 0.58.59
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/build.js +18 -26
- package/core/actions/dist/src/bump.js +9 -3
- package/core/actions/dist/src/changelog.js +11 -3
- package/core/actions/dist/src/dev/index.js +18 -26
- package/core/actions/dist/src/generate/index.js +18 -26
- package/core/actions/dist/src/helpers/index.js +18 -26
- package/core/actions/dist/src/helpers/utils.js +18 -26
- package/core/actions/dist/src/index.js +35 -37
- package/core/actions/dist/src/lint/fix.js +3 -2
- package/core/actions/dist/src/release.js +39 -38
- package/core/actions/dist/src/upgrade/index.js +18 -26
- package/core/actions/dist/src/upgrade.js +1 -1
- package/core/actions/package.json +1 -1
- package/core/actions/src/action.ts +11 -3
- package/core/actions/src/bump.ts +13 -6
- package/core/actions/src/changelog.ts +14 -4
- package/core/actions/src/helpers/utils.ts +24 -36
- package/core/actions/src/lint/fix.ts +3 -2
- package/core/actions/src/release.ts +4 -1
- package/core/ai/dist/index.js +31 -29
- package/core/ai/package.json +3 -3
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/api/dist/index.js +6 -3
- package/core/api/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/buddy/dist/chunk-59a9de11428ba763.js +993 -0
- package/core/buddy/dist/{chunk-e9c0ec1a3b7be088.js → chunk-7b24d1e3e585766e.js} +594 -563
- package/core/buddy/dist/cli.js +3916 -19
- package/core/buddy/dist/index.js +2 -5
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/cli.ts +91 -17
- package/core/buddy/src/commands/add.ts +3 -0
- package/core/buddy/src/commands/build.ts +42 -27
- package/core/buddy/src/commands/changelog.ts +13 -6
- package/core/buddy/src/commands/clean.ts +3 -1
- package/core/buddy/src/commands/cloud.ts +14 -2
- package/core/buddy/src/commands/commit.ts +2 -0
- package/core/buddy/src/commands/configure.ts +6 -3
- package/core/buddy/src/commands/create.ts +3 -1
- package/core/buddy/src/commands/deploy.ts +3 -1
- package/core/buddy/src/commands/dev.ts +50 -36
- package/core/buddy/src/commands/dns.ts +7 -1
- package/core/buddy/src/commands/domains.ts +7 -1
- package/core/buddy/src/commands/fresh.ts +4 -2
- package/core/buddy/src/commands/generate.ts +36 -26
- package/core/buddy/src/commands/http.ts +6 -4
- package/core/buddy/src/commands/index.ts +0 -2
- package/core/buddy/src/commands/install.ts +3 -1
- package/core/buddy/src/commands/key.ts +2 -0
- package/core/buddy/src/commands/lint.ts +4 -0
- package/core/buddy/src/commands/list.ts +6 -2
- package/core/buddy/src/commands/make.ts +52 -30
- package/core/buddy/src/commands/migrate.ts +6 -2
- package/core/buddy/src/commands/prepublish.ts +3 -0
- package/core/buddy/src/commands/release.ts +12 -2
- package/core/buddy/src/commands/seed.ts +3 -1
- package/core/buddy/src/commands/setup.ts +16 -8
- package/core/buddy/src/commands/tinker.ts +3 -1
- package/core/buddy/src/commands/types.ts +4 -2
- package/core/buddy/src/commands/upgrade.ts +37 -25
- package/core/buddy/src/commands/version.ts +7 -0
- 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-plugin-yaml/package.json +1 -1
- package/core/cache/package.json +2 -2
- package/core/chat/package.json +8 -8
- package/core/cli/dist/index.js +462 -87
- package/core/cli/package.json +1 -1
- package/core/cli/src/cli.ts +9 -31
- package/core/cli/src/console.ts +1 -1
- package/core/cli/src/exec.ts +28 -14
- package/core/cli/src/helpers.ts +3 -3
- package/core/cli/src/index.ts +1 -1
- package/core/cli/src/parse.ts +95 -17
- package/core/cli/src/run.ts +7 -7
- package/core/cli/src/utils.ts +62 -0
- package/core/cloud/dist/index.js +70 -41
- package/core/cloud/package.json +32 -32
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
- package/core/cloud/src/cloud/queue.ts +96 -55
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +2 -2
- package/core/collections/package.json +1 -1
- package/core/config/dist/index.js +49 -27
- package/core/config/package.json +1 -1
- package/core/config/src/config.ts +1 -1
- package/core/config/src/defaults.ts +28 -14
- package/core/config/src/overrides.ts +2 -0
- package/core/database/package.json +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +9 -9
- package/core/development/package.json +1 -1
- package/core/dns/package.json +7 -7
- package/core/docs/package.json +1 -1
- package/core/email/package.json +14 -14
- package/core/enums/dist/index.js +2 -2
- package/core/enums/package.json +1 -1
- package/core/enums/src/index.ts +2 -2
- package/core/env/package.json +3 -2
- package/core/env/src/utils.ts +1 -0
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/package.json +10 -10
- package/core/events/package.json +1 -1
- package/core/faker/package.json +2 -2
- 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 +10932 -1773
- package/core/logging/package.json +1 -1
- package/core/logging/src/index.ts +79 -13
- package/core/notifications/package.json +23 -23
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/path/dist/index.js +10 -0
- package/core/path/package.json +1 -1
- package/core/path/src/index.ts +10 -0
- package/core/payments/dist/index.js +34 -10
- package/core/payments/package.json +2 -2
- package/core/push/package.json +5 -5
- package/core/query-builder/package.json +1 -1
- package/core/queue/dist/index.js +3 -1
- package/core/queue/package.json +1 -1
- package/core/queue/src/index.ts +3 -1
- package/core/raycast/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/repl/package.json +1 -1
- package/core/router/dist/index.js +517 -14
- package/core/router/package.json +1 -1
- package/core/router/src/router.ts +10 -3
- package/core/scheduler/dist/index.js +4 -0
- package/core/scheduler/package.json +1 -1
- package/core/scheduler/src/index.ts +1 -0
- package/core/scheduler/src/schedule.ts +5 -0
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +2 -2
- 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 +1 -1
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +2 -2
- package/core/testing/package.json +1 -1
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/dist/index.js +1787 -6
- package/core/types/package.json +7 -7
- package/core/types/src/ai.ts +1 -0
- package/core/types/src/binary.ts +1 -0
- package/core/types/src/cli.ts +13 -3
- package/core/types/src/cron-jobs.ts +6 -1
- package/core/types/src/docs.ts +5 -1
- package/core/types/src/index.ts +1 -0
- package/core/types/src/logger.ts +54 -0
- package/core/types/src/router.ts +2 -1
- package/core/types/src/stacks.ts +10 -0
- package/core/types/src/team.ts +1 -1
- package/core/ui/package.json +6 -6
- package/core/utils/dist/index.js +39 -2
- package/core/utils/package.json +2 -2
- package/core/utils/src/hash.ts +10 -1
- package/core/utils/src/index.ts +1 -0
- package/core/utils/src/retry.ts +33 -0
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +4 -4
- package/core/whois/package.json +1 -1
- package/core/x-ray/package.json +1 -1
- package/core/zsh-buddy/buddy.plugin.zsh +4 -0
- package/core/zsh-buddy/package.json +1 -1
- package/ide/dictionary.txt +1 -0
- package/ide/vscode/package.json +1 -1
- package/package.json +1 -1
- package/core/buddy/src/commands/example.ts +0 -66
- package/core/buddy/src/commands/inspire.ts +0 -24
- package/core/cli/src/utilities.ts +0 -2
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import process from 'node:process'
|
|
2
|
-
import consola from 'consola'
|
|
2
|
+
import { consola, createConsola } from 'consola'
|
|
3
3
|
import { ExitCode } from '@stacksjs/types'
|
|
4
|
+
import { logger as logConfig } from '@stacksjs/config'
|
|
4
5
|
import { logsPath } from '@stacksjs/path'
|
|
6
|
+
import type { Prompt } from '@stacksjs/cli'
|
|
7
|
+
import { buddyOptions, prompt as getPrompt } from '@stacksjs/cli'
|
|
5
8
|
|
|
6
|
-
export
|
|
9
|
+
export function logLevel() {
|
|
10
|
+
/**
|
|
11
|
+
* This regex checks for:
|
|
12
|
+
* - --verbose true or --verbose=true exactly at the end of the string ($ denotes the end of the string).
|
|
13
|
+
* - --verbose - followed by optional spaces at the end.
|
|
14
|
+
* - --verbose followed by optional spaces at the end.
|
|
15
|
+
*
|
|
16
|
+
* .trim() is used on options to ensure any trailing spaces in the entire options string do not affect the regex match.
|
|
17
|
+
*/
|
|
18
|
+
const verboseRegex = /--verbose(?!(\s*=\s*false|\s+false))(\s+|=true)?($|\s)/
|
|
19
|
+
|
|
20
|
+
if (verboseRegex.test(buddyOptions().trim()))
|
|
21
|
+
return 4
|
|
22
|
+
return logConfig.level
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const logger = createConsola({
|
|
26
|
+
level: logLevel(),
|
|
27
|
+
// fancy: true,
|
|
28
|
+
// formatOptions: {
|
|
29
|
+
// columns: 80,
|
|
30
|
+
// colors: false,
|
|
31
|
+
// compact: false,
|
|
32
|
+
// date: false,
|
|
33
|
+
// },
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
export { consola }
|
|
7
37
|
|
|
8
38
|
export const logFilePath = logsPath('console.log')
|
|
9
39
|
|
|
@@ -27,35 +57,66 @@ async function writeToLogFile(message: string) {
|
|
|
27
57
|
}
|
|
28
58
|
}
|
|
29
59
|
|
|
30
|
-
export
|
|
31
|
-
info:
|
|
32
|
-
|
|
60
|
+
export interface Log {
|
|
61
|
+
info: (...args: any[]) => void
|
|
62
|
+
success: (msg: string) => void
|
|
63
|
+
error: (err: string | Error, options?: any) => void
|
|
64
|
+
warn: (arg: string) => void
|
|
65
|
+
debug: (...args: any[]) => void
|
|
66
|
+
// start: logger.Start
|
|
67
|
+
// box: logger.Box
|
|
68
|
+
start: any
|
|
69
|
+
box: any
|
|
70
|
+
prompt: Prompt
|
|
71
|
+
dump: (...args: any[]) => void
|
|
72
|
+
dd: (...args: any[]) => void
|
|
73
|
+
echo: (...args: any[]) => void
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const log: Log = {
|
|
77
|
+
async info(...arg: any) {
|
|
78
|
+
// @ts-expect-error intentional
|
|
79
|
+
logger.info(...arg)
|
|
33
80
|
await writeToLogFile(`INFO: ${arg}`)
|
|
34
81
|
},
|
|
35
82
|
|
|
36
|
-
|
|
37
|
-
|
|
83
|
+
async success(msg: string) {
|
|
84
|
+
logger.success(msg)
|
|
38
85
|
await writeToLogFile(`SUCCESS: ${msg}`)
|
|
39
86
|
},
|
|
40
87
|
|
|
41
|
-
|
|
88
|
+
async error(err: string | Error, options?: any) {
|
|
42
89
|
handleError(err, options) // Assuming handleError logs the error
|
|
43
90
|
await writeToLogFile(`ERROR: ${err}`)
|
|
44
91
|
},
|
|
45
92
|
|
|
46
|
-
|
|
47
|
-
|
|
93
|
+
async warn(arg: string) {
|
|
94
|
+
logger.warn(arg)
|
|
48
95
|
await writeToLogFile(`WARN: ${arg}`)
|
|
49
96
|
},
|
|
50
97
|
|
|
51
|
-
|
|
52
|
-
|
|
98
|
+
async debug(...arg: any) {
|
|
99
|
+
if (process.env.APP_ENV === 'production' || process.env.APP_ENV === 'prod')
|
|
100
|
+
return await writeToLogFile(`DEBUG: ${arg}`)
|
|
101
|
+
|
|
102
|
+
logger.debug(arg)
|
|
53
103
|
await writeToLogFile(`DEBUG: ${arg}`)
|
|
54
104
|
},
|
|
55
105
|
|
|
56
|
-
|
|
106
|
+
async start(...arg: any) {
|
|
107
|
+
logger.start(arg)
|
|
108
|
+
await writeToLogFile(`START: ${arg}`)
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
box: logger.box,
|
|
112
|
+
|
|
113
|
+
get prompt() {
|
|
114
|
+
return getPrompt()
|
|
115
|
+
},
|
|
116
|
+
|
|
57
117
|
dump,
|
|
58
118
|
dd,
|
|
119
|
+
echo,
|
|
59
120
|
}
|
|
60
121
|
|
|
61
122
|
export function dump(...args: any[]) {
|
|
@@ -68,3 +129,8 @@ export function dd(...args: any[]) {
|
|
|
68
129
|
// e.g. if used in a CDK script, we want it to fail the deployment
|
|
69
130
|
process.exit(ExitCode.FatalError)
|
|
70
131
|
}
|
|
132
|
+
|
|
133
|
+
export function echo(...args: any[]) {
|
|
134
|
+
// eslint-disable-next-line no-console
|
|
135
|
+
console.log(...args)
|
|
136
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/notifications",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.59",
|
|
5
5
|
"description": "The Stacks notifications integration.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@stacksjs/types": "workspace:*"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@maizzle/framework": "^4.7.
|
|
68
|
+
"@maizzle/framework": "^4.7.6",
|
|
69
69
|
"@stacksjs/chat": "workspace:*",
|
|
70
70
|
"@stacksjs/cli": "workspace:*",
|
|
71
71
|
"@stacksjs/config": "workspace:*",
|
|
@@ -76,27 +76,27 @@
|
|
|
76
76
|
"@stacksjs/types": "workspace:*"
|
|
77
77
|
},
|
|
78
78
|
"optionalDependencies": {
|
|
79
|
-
"@novu/discord": "^0.23.
|
|
80
|
-
"@novu/emailjs": "^0.23.
|
|
81
|
-
"@novu/gupshup": "^0.23.
|
|
82
|
-
"@novu/mailgun": "^0.23.
|
|
83
|
-
"@novu/mailjet": "^0.23.
|
|
84
|
-
"@novu/mandrill": "^0.23.
|
|
85
|
-
"@novu/netcore": "^0.23.
|
|
86
|
-
"@novu/nexmo": "^0.23.
|
|
87
|
-
"@novu/node": "^0.23.
|
|
88
|
-
"@novu/nodemailer": "^0.23.
|
|
89
|
-
"@novu/plivo": "^0.23.
|
|
90
|
-
"@novu/postmark": "^0.23.
|
|
91
|
-
"@novu/sendgrid": "^0.23.
|
|
92
|
-
"@novu/ses": "^0.23.
|
|
93
|
-
"@novu/slack": "^0.23.
|
|
94
|
-
"@novu/sms77": "^0.23.
|
|
95
|
-
"@novu/sns": "^0.23.
|
|
96
|
-
"@novu/stateless": "^0.23.
|
|
97
|
-
"@novu/telnyx": "^0.23.
|
|
98
|
-
"@novu/termii": "^0.23.
|
|
99
|
-
"@novu/twilio": "^0.23.
|
|
79
|
+
"@novu/discord": "^0.23.1",
|
|
80
|
+
"@novu/emailjs": "^0.23.1",
|
|
81
|
+
"@novu/gupshup": "^0.23.1",
|
|
82
|
+
"@novu/mailgun": "^0.23.1",
|
|
83
|
+
"@novu/mailjet": "^0.23.1",
|
|
84
|
+
"@novu/mandrill": "^0.23.1",
|
|
85
|
+
"@novu/netcore": "^0.23.1",
|
|
86
|
+
"@novu/nexmo": "^0.23.1",
|
|
87
|
+
"@novu/node": "^0.23.1",
|
|
88
|
+
"@novu/nodemailer": "^0.23.1",
|
|
89
|
+
"@novu/plivo": "^0.23.1",
|
|
90
|
+
"@novu/postmark": "^0.23.1",
|
|
91
|
+
"@novu/sendgrid": "^0.23.1",
|
|
92
|
+
"@novu/ses": "^0.23.1",
|
|
93
|
+
"@novu/slack": "^0.23.1",
|
|
94
|
+
"@novu/sms77": "^0.23.1",
|
|
95
|
+
"@novu/sns": "^0.23.1",
|
|
96
|
+
"@novu/stateless": "^0.23.1",
|
|
97
|
+
"@novu/telnyx": "^0.23.1",
|
|
98
|
+
"@novu/termii": "^0.23.1",
|
|
99
|
+
"@novu/twilio": "^0.23.1"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@stacksjs/development": "workspace:*"
|
package/core/orm/package.json
CHANGED
package/core/path/dist/index.js
CHANGED
|
@@ -65,6 +65,9 @@ function cloudPath(path) {
|
|
|
65
65
|
function collectionsPath(path) {
|
|
66
66
|
return corePath(`collections/${path || ""}`);
|
|
67
67
|
}
|
|
68
|
+
function commandsPath(path) {
|
|
69
|
+
return appPath(`Commands/${path || ""}`);
|
|
70
|
+
}
|
|
68
71
|
function componentsPath(path) {
|
|
69
72
|
return resourcesPath(`components/${path || ""}`);
|
|
70
73
|
}
|
|
@@ -146,6 +149,9 @@ function libraryEntryPath(type) {
|
|
|
146
149
|
function lintPath(path) {
|
|
147
150
|
return corePath(`lint/${path || ""}`);
|
|
148
151
|
}
|
|
152
|
+
function listenersPath(path) {
|
|
153
|
+
return appPath(`Listeners/${path || ""}`);
|
|
154
|
+
}
|
|
149
155
|
function eslintPath(path) {
|
|
150
156
|
return lintPath(`eslint/${path || ""}`);
|
|
151
157
|
}
|
|
@@ -319,6 +325,7 @@ var path = {
|
|
|
319
325
|
cliPath,
|
|
320
326
|
cloudPath,
|
|
321
327
|
collectionsPath,
|
|
328
|
+
commandsPath,
|
|
322
329
|
componentsPath,
|
|
323
330
|
configPath,
|
|
324
331
|
projectConfigPath,
|
|
@@ -347,6 +354,7 @@ var path = {
|
|
|
347
354
|
libsPath,
|
|
348
355
|
libraryEntryPath,
|
|
349
356
|
lintPath,
|
|
357
|
+
listenersPath,
|
|
350
358
|
loggingPath,
|
|
351
359
|
jobsPath,
|
|
352
360
|
modulesPath,
|
|
@@ -465,6 +473,7 @@ export {
|
|
|
465
473
|
modelsPath,
|
|
466
474
|
logsPath,
|
|
467
475
|
loggingPath,
|
|
476
|
+
listenersPath,
|
|
468
477
|
lintPath,
|
|
469
478
|
libsPath,
|
|
470
479
|
libsEntriesPath,
|
|
@@ -500,6 +509,7 @@ export {
|
|
|
500
509
|
coreEnvPath,
|
|
501
510
|
configPath,
|
|
502
511
|
componentsPath,
|
|
512
|
+
commandsPath,
|
|
503
513
|
collectionsPath,
|
|
504
514
|
cloudPath,
|
|
505
515
|
cliPath,
|
package/core/path/package.json
CHANGED
package/core/path/src/index.ts
CHANGED
|
@@ -128,6 +128,10 @@ export function collectionsPath(path?: string) {
|
|
|
128
128
|
return corePath(`collections/${path || ''}`)
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
export function commandsPath(path?: string) {
|
|
132
|
+
return appPath(`Commands/${path || ''}`)
|
|
133
|
+
}
|
|
134
|
+
|
|
131
135
|
export function componentsPath(path?: string) {
|
|
132
136
|
return resourcesPath(`components/${path || ''}`)
|
|
133
137
|
}
|
|
@@ -238,6 +242,10 @@ export function lintPath(path?: string) {
|
|
|
238
242
|
return corePath(`lint/${path || ''}`)
|
|
239
243
|
}
|
|
240
244
|
|
|
245
|
+
export function listenersPath(path?: string) {
|
|
246
|
+
return appPath(`Listeners/${path || ''}`)
|
|
247
|
+
}
|
|
248
|
+
|
|
241
249
|
export function eslintPath(path?: string) {
|
|
242
250
|
return lintPath(`eslint/${path || ''}`)
|
|
243
251
|
}
|
|
@@ -465,6 +473,7 @@ export const path = {
|
|
|
465
473
|
cliPath,
|
|
466
474
|
cloudPath,
|
|
467
475
|
collectionsPath,
|
|
476
|
+
commandsPath,
|
|
468
477
|
componentsPath,
|
|
469
478
|
configPath,
|
|
470
479
|
projectConfigPath,
|
|
@@ -493,6 +502,7 @@ export const path = {
|
|
|
493
502
|
libsPath,
|
|
494
503
|
libraryEntryPath,
|
|
495
504
|
lintPath,
|
|
505
|
+
listenersPath,
|
|
496
506
|
loggingPath,
|
|
497
507
|
jobsPath,
|
|
498
508
|
modulesPath,
|
|
@@ -26,11 +26,26 @@ var __export = (target, all) => {
|
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
// /home/runner/work/stacks/stacks/node_modules/es-errors/index.js
|
|
30
|
+
var require_es_errors = __commonJS((exports, module) => {
|
|
31
|
+
module.exports = Error;
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// /home/runner/work/stacks/stacks/node_modules/es-errors/eval.js
|
|
35
|
+
var require_eval = __commonJS((exports, module) => {
|
|
36
|
+
module.exports = EvalError;
|
|
37
|
+
});
|
|
38
|
+
|
|
29
39
|
// /home/runner/work/stacks/stacks/node_modules/es-errors/range.js
|
|
30
40
|
var require_range = __commonJS((exports, module) => {
|
|
31
41
|
module.exports = RangeError;
|
|
32
42
|
});
|
|
33
43
|
|
|
44
|
+
// /home/runner/work/stacks/stacks/node_modules/es-errors/ref.js
|
|
45
|
+
var require_ref = __commonJS((exports, module) => {
|
|
46
|
+
module.exports = ReferenceError;
|
|
47
|
+
});
|
|
48
|
+
|
|
34
49
|
// /home/runner/work/stacks/stacks/node_modules/es-errors/syntax.js
|
|
35
50
|
var require_syntax = __commonJS((exports, module) => {
|
|
36
51
|
module.exports = SyntaxError;
|
|
@@ -41,6 +56,11 @@ var require_type = __commonJS((exports, module) => {
|
|
|
41
56
|
module.exports = TypeError;
|
|
42
57
|
});
|
|
43
58
|
|
|
59
|
+
// /home/runner/work/stacks/stacks/node_modules/es-errors/uri.js
|
|
60
|
+
var require_uri = __commonJS((exports, module) => {
|
|
61
|
+
module.exports = URIError;
|
|
62
|
+
});
|
|
63
|
+
|
|
44
64
|
// /home/runner/work/stacks/stacks/node_modules/has-symbols/shams.js
|
|
45
65
|
var require_shams = __commonJS((exports, module) => {
|
|
46
66
|
module.exports = function hasSymbols() {
|
|
@@ -206,9 +226,13 @@ var require_hasown = __commonJS((exports, module) => {
|
|
|
206
226
|
// /home/runner/work/stacks/stacks/node_modules/get-intrinsic/index.js
|
|
207
227
|
var require_get_intrinsic = __commonJS((exports, module) => {
|
|
208
228
|
var undefined2;
|
|
229
|
+
var $Error = require_es_errors();
|
|
230
|
+
var $EvalError = require_eval();
|
|
209
231
|
var $RangeError = require_range();
|
|
232
|
+
var $ReferenceError = require_ref();
|
|
210
233
|
var $SyntaxError = require_syntax();
|
|
211
234
|
var $TypeError = require_type();
|
|
235
|
+
var $URIError = require_uri();
|
|
212
236
|
var $Function = Function;
|
|
213
237
|
var getEvalledConstructor = function(expressionSyntax) {
|
|
214
238
|
try {
|
|
@@ -268,9 +292,9 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
268
292
|
"%decodeURIComponent%": decodeURIComponent,
|
|
269
293
|
"%encodeURI%": encodeURI,
|
|
270
294
|
"%encodeURIComponent%": encodeURIComponent,
|
|
271
|
-
"%Error%": Error,
|
|
295
|
+
"%Error%": $Error,
|
|
272
296
|
"%eval%": eval,
|
|
273
|
-
"%EvalError%": EvalError,
|
|
297
|
+
"%EvalError%": $EvalError,
|
|
274
298
|
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
275
299
|
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
276
300
|
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
@@ -293,7 +317,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
293
317
|
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
294
318
|
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
295
319
|
"%RangeError%": $RangeError,
|
|
296
|
-
"%ReferenceError%": ReferenceError,
|
|
320
|
+
"%ReferenceError%": $ReferenceError,
|
|
297
321
|
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
298
322
|
"%RegExp%": RegExp,
|
|
299
323
|
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
@@ -310,7 +334,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
310
334
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
311
335
|
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
312
336
|
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
313
|
-
"%URIError%": URIError,
|
|
337
|
+
"%URIError%": $URIError,
|
|
314
338
|
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
315
339
|
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
316
340
|
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
|
|
@@ -563,8 +587,8 @@ var require_define_data_property = __commonJS((exports, module) => {
|
|
|
563
587
|
$defineProperty = false;
|
|
564
588
|
}
|
|
565
589
|
}
|
|
566
|
-
var $SyntaxError =
|
|
567
|
-
var $TypeError =
|
|
590
|
+
var $SyntaxError = require_syntax();
|
|
591
|
+
var $TypeError = require_type();
|
|
568
592
|
var gopd = require_gopd();
|
|
569
593
|
module.exports = function defineDataProperty(obj, property, value) {
|
|
570
594
|
if (!obj || typeof obj !== "object" && typeof obj !== "function") {
|
|
@@ -611,7 +635,7 @@ var require_set_function_length = __commonJS((exports, module) => {
|
|
|
611
635
|
var define = require_define_data_property();
|
|
612
636
|
var hasDescriptors = require_has_property_descriptors()();
|
|
613
637
|
var gOPD = require_gopd();
|
|
614
|
-
var $TypeError =
|
|
638
|
+
var $TypeError = require_type();
|
|
615
639
|
var $floor = GetIntrinsic("%Math.floor%");
|
|
616
640
|
module.exports = function setFunctionLength(fn, length) {
|
|
617
641
|
if (typeof fn !== "function") {
|
|
@@ -648,7 +672,7 @@ var require_call_bind = __commonJS((exports, module) => {
|
|
|
648
672
|
var bind = require_function_bind();
|
|
649
673
|
var GetIntrinsic = require_get_intrinsic();
|
|
650
674
|
var setFunctionLength = require_set_function_length();
|
|
651
|
-
var $TypeError =
|
|
675
|
+
var $TypeError = require_type();
|
|
652
676
|
var $apply = GetIntrinsic("%Function.prototype.apply%");
|
|
653
677
|
var $call = GetIntrinsic("%Function.prototype.call%");
|
|
654
678
|
var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
|
|
@@ -1215,7 +1239,7 @@ var require_side_channel = __commonJS((exports, module) => {
|
|
|
1215
1239
|
var GetIntrinsic = require_get_intrinsic();
|
|
1216
1240
|
var callBound = require_callBound();
|
|
1217
1241
|
var inspect = require_object_inspect();
|
|
1218
|
-
var $TypeError =
|
|
1242
|
+
var $TypeError = require_type();
|
|
1219
1243
|
var $WeakMap = GetIntrinsic("%WeakMap%", true);
|
|
1220
1244
|
var $Map = GetIntrinsic("%Map%", true);
|
|
1221
1245
|
var $weakMapGet = callBound("WeakMap.prototype.get", true);
|
|
@@ -5956,7 +5980,7 @@ function createWebhooks(platformFunctions) {
|
|
|
5956
5980
|
|
|
5957
5981
|
// /home/runner/work/stacks/stacks/node_modules/stripe/esm/stripe.core.js
|
|
5958
5982
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
5959
|
-
Stripe.PACKAGE_VERSION = "14.
|
|
5983
|
+
Stripe.PACKAGE_VERSION = "14.16.0";
|
|
5960
5984
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: "node", publisher: "stripe", uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
5961
5985
|
Stripe.StripeResource = StripeResource;
|
|
5962
5986
|
Stripe.resources = exports_resources;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/payments",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.59",
|
|
5
5
|
"description": "The Stacks payments package. Currently supporting Stripe.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@stacksjs/utils": "workspace:*",
|
|
54
54
|
"@stripe/stripe-js": "^2.4.0",
|
|
55
|
-
"stripe": "^14.
|
|
55
|
+
"stripe": "^14.16.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@stacksjs/config": "workspace:*",
|
package/core/push/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/push",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.59",
|
|
5
5
|
"description": "The Stacks Push integration",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"prepublishOnly": "bun --bun run build"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@novu/node": "^0.23.
|
|
50
|
-
"@novu/stateless": "^0.23.
|
|
49
|
+
"@novu/node": "^0.23.1",
|
|
50
|
+
"@novu/stateless": "^0.23.1",
|
|
51
51
|
"@stacksjs/cli": "workspace:*",
|
|
52
52
|
"@stacksjs/config": "workspace:*",
|
|
53
53
|
"@stacksjs/error-handling": "workspace:*"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@novu/node": "^0.23.
|
|
57
|
-
"@novu/stateless": "^0.23.
|
|
56
|
+
"@novu/node": "^0.23.1",
|
|
57
|
+
"@novu/stateless": "^0.23.1",
|
|
58
58
|
"@stacksjs/cli": "workspace:*",
|
|
59
59
|
"@stacksjs/config": "workspace:*",
|
|
60
60
|
"@stacksjs/error-handling": "workspace:*"
|
package/core/queue/dist/index.js
CHANGED
|
@@ -8,7 +8,8 @@ class Job {
|
|
|
8
8
|
rate;
|
|
9
9
|
tries;
|
|
10
10
|
backoff;
|
|
11
|
-
|
|
11
|
+
enabled;
|
|
12
|
+
constructor({ name, description, handle, rate, tries, backoff, action, enabled }) {
|
|
12
13
|
this.name = name;
|
|
13
14
|
this.description = description;
|
|
14
15
|
this.handle = handle;
|
|
@@ -16,6 +17,7 @@ class Job {
|
|
|
16
17
|
this.action = action;
|
|
17
18
|
this.tries = tries;
|
|
18
19
|
this.backoff = backoff;
|
|
20
|
+
this.enabled = enabled;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
export {
|
package/core/queue/package.json
CHANGED
package/core/queue/src/index.ts
CHANGED
|
@@ -8,8 +8,9 @@ export class Job {
|
|
|
8
8
|
rate: JobOptions['rate']
|
|
9
9
|
tries: JobOptions['tries']
|
|
10
10
|
backoff: JobOptions['backoff']
|
|
11
|
+
enabled: JobOptions['enabled']
|
|
11
12
|
|
|
12
|
-
constructor({ name, description, handle, rate, tries, backoff, action }: JobOptions) {
|
|
13
|
+
constructor({ name, description, handle, rate, tries, backoff, action, enabled }: JobOptions) {
|
|
13
14
|
this.name = name
|
|
14
15
|
this.description = description
|
|
15
16
|
this.handle = handle
|
|
@@ -17,5 +18,6 @@ export class Job {
|
|
|
17
18
|
this.action = action
|
|
18
19
|
this.tries = tries
|
|
19
20
|
this.backoff = backoff
|
|
21
|
+
this.enabled = enabled
|
|
20
22
|
}
|
|
21
23
|
}
|