stacks 0.58.60 → 0.58.62
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/upgrade.js +1 -1
- package/core/actions/package.json +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/api/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/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 +1 -1
- package/core/chat/package.json +1 -1
- package/core/cli/dist/index.js +1 -1
- package/core/cli/package.json +1 -1
- package/core/cloud/dist/index.js +1 -1
- package/core/cloud/package.json +3 -3
- 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/docs.ts +1 -1
- package/core/cloud/src/cloud/router-layer/nodejs/package.json +1 -1
- package/core/cloud/zip.ts +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/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/development/package.json +1 -1
- package/core/dns/package.json +2 -2
- package/core/docs/package.json +1 -1
- package/core/email/package.json +1 -1
- package/core/enums/package.json +1 -1
- package/core/env/package.json +1 -1
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/package.json +3 -3
- 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/package.json +1 -1
- package/core/notifications/package.json +1 -1
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/path/dist/index.js +5 -0
- package/core/path/package.json +1 -1
- package/core/path/src/index.ts +5 -0
- package/core/payments/package.json +2 -2
- package/core/push/package.json +1 -1
- package/core/query-builder/package.json +1 -1
- package/core/queue/package.json +1 -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 +4 -0
- package/core/router/package.json +1 -1
- package/core/scheduler/package.json +1 -1
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- 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 +1 -1
- package/core/storage/dist/index.js +1 -0
- package/core/storage/package.json +1 -1
- package/core/storage/src/hash.ts +2 -0
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +1 -1
- package/core/testing/package.json +1 -1
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +1 -1
- package/core/ui/package.json +1 -1
- package/core/utils/dist/index.js +4 -4
- package/core/utils/package.json +1 -1
- package/core/utils/src/clean.ts +3 -3
- package/core/validation/package.json +1 -1
- package/core/vite/dist/index.js +1 -1
- package/core/vite/package.json +1 -1
- package/core/whois/package.json +1 -1
- package/core/x-ray/package.json +1 -1
- package/core/zsh-buddy/package.json +1 -1
- package/ide/vscode/package.json +1 -1
- package/package.json +1 -1
- package/core/cloud/cdk.json +0 -62
- package/core/cloud/deploy.ts +0 -85
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/payments",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.62",
|
|
5
5
|
"description": "The Stacks payments package. Currently supporting Stripe.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@stacksjs/utils": "workspace:*",
|
|
54
|
-
"@stripe/stripe-js": "^
|
|
54
|
+
"@stripe/stripe-js": "^3.0.0",
|
|
55
55
|
"stripe": "^14.16.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
package/core/push/package.json
CHANGED
package/core/queue/package.json
CHANGED
package/core/repl/package.json
CHANGED
|
@@ -264,6 +264,9 @@ function cliPath(path2) {
|
|
|
264
264
|
function cloudPath(path2) {
|
|
265
265
|
return corePath(`cloud/${path2 || ""}`);
|
|
266
266
|
}
|
|
267
|
+
function frameworkCloudPath(path2) {
|
|
268
|
+
return frameworkPath(`cloud/${path2 || ""}`);
|
|
269
|
+
}
|
|
267
270
|
function collectionsPath(path2) {
|
|
268
271
|
return corePath(`collections/${path2 || ""}`);
|
|
269
272
|
}
|
|
@@ -517,6 +520,7 @@ var path2 = {
|
|
|
517
520
|
chatPath,
|
|
518
521
|
cliPath,
|
|
519
522
|
cloudPath,
|
|
523
|
+
frameworkCloudPath,
|
|
520
524
|
collectionsPath,
|
|
521
525
|
commandsPath,
|
|
522
526
|
componentsPath,
|
package/core/router/package.json
CHANGED
package/core/server/package.json
CHANGED
package/core/slug/package.json
CHANGED
package/core/sms/package.json
CHANGED
|
@@ -189,6 +189,7 @@ var folders = {
|
|
|
189
189
|
import {createHash} from "crypto";
|
|
190
190
|
import {path as p2} from "@stacksjs/path";
|
|
191
191
|
function hashFileOrDirectory(path4, hash) {
|
|
192
|
+
console.log("hashFileOrDirectory", path4);
|
|
192
193
|
if (fs.statSync(path4).isDirectory()) {
|
|
193
194
|
const files2 = fs.readdirSync(path4);
|
|
194
195
|
for (const file of files2) {
|
package/core/storage/src/hash.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { path as p } from '@stacksjs/path'
|
|
|
4
4
|
import { fs } from './fs'
|
|
5
5
|
|
|
6
6
|
export function hashFileOrDirectory(path: string, hash: Hash): void {
|
|
7
|
+
// eslint-disable-next-line no-console
|
|
8
|
+
console.log('hashFileOrDirectory', path)
|
|
7
9
|
if (fs.statSync(path).isDirectory()) {
|
|
8
10
|
const files = fs.readdirSync(path)
|
|
9
11
|
for (const file of files) {
|
package/core/tables/package.json
CHANGED
package/core/tinker/package.json
CHANGED
package/core/tunnel/package.json
CHANGED
package/core/types/package.json
CHANGED
package/core/ui/package.json
CHANGED
package/core/utils/dist/index.js
CHANGED
|
@@ -24,9 +24,9 @@ async function cleanProject() {
|
|
|
24
24
|
p.frameworkPath("node_modules"),
|
|
25
25
|
p.frameworkPath("**/dist"),
|
|
26
26
|
p.frameworkPath("**/node_modules"),
|
|
27
|
-
p.
|
|
28
|
-
p.
|
|
29
|
-
p.
|
|
27
|
+
p.frameworkCloudPath("cdk.out/"),
|
|
28
|
+
p.frameworkCloudPath("cdk.context.json"),
|
|
29
|
+
p.frameworkCloudPath("dist.zip")
|
|
30
30
|
]);
|
|
31
31
|
}
|
|
32
32
|
// src/config.ts
|
|
@@ -922,7 +922,7 @@ function prettyBytes(number, options) {
|
|
|
922
922
|
return prefix + numberString + separator + unit;
|
|
923
923
|
}
|
|
924
924
|
// package.json
|
|
925
|
-
var version = "0.58.
|
|
925
|
+
var version = "0.58.62";
|
|
926
926
|
export {
|
|
927
927
|
wordChar,
|
|
928
928
|
wordBoundary,
|
package/core/utils/package.json
CHANGED
package/core/utils/src/clean.ts
CHANGED
|
@@ -10,8 +10,8 @@ export async function cleanProject() {
|
|
|
10
10
|
p.frameworkPath('node_modules'),
|
|
11
11
|
p.frameworkPath('**/dist'),
|
|
12
12
|
p.frameworkPath('**/node_modules'),
|
|
13
|
-
p.
|
|
14
|
-
p.
|
|
15
|
-
p.
|
|
13
|
+
p.frameworkCloudPath('cdk.out/'),
|
|
14
|
+
p.frameworkCloudPath('cdk.context.json'),
|
|
15
|
+
p.frameworkCloudPath('dist.zip'),
|
|
16
16
|
])
|
|
17
17
|
}
|
package/core/vite/dist/index.js
CHANGED
|
@@ -609,7 +609,7 @@ var web_components_default = defineConfig6(({ command }) => {
|
|
|
609
609
|
// src/plugin/docs.ts
|
|
610
610
|
import {kolorist as c2} from "@stacksjs/cli";
|
|
611
611
|
// package.json
|
|
612
|
-
var version = "0.58.
|
|
612
|
+
var version = "0.58.62";
|
|
613
613
|
|
|
614
614
|
// src/plugin/docs.ts
|
|
615
615
|
var docsEngine = {
|
package/core/vite/package.json
CHANGED
package/core/whois/package.json
CHANGED
package/core/x-ray/package.json
CHANGED
package/ide/vscode/package.json
CHANGED
package/package.json
CHANGED
package/core/cloud/cdk.json
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"app": "bun ./deploy.ts",
|
|
3
|
-
"watch": {
|
|
4
|
-
"include": [
|
|
5
|
-
"**"
|
|
6
|
-
],
|
|
7
|
-
"exclude": [
|
|
8
|
-
"README.md",
|
|
9
|
-
"cdk*.json",
|
|
10
|
-
"**/*.d.ts",
|
|
11
|
-
"**/*.js",
|
|
12
|
-
"tsconfig.json",
|
|
13
|
-
"package*.json",
|
|
14
|
-
"yarn.lock",
|
|
15
|
-
"node_modules",
|
|
16
|
-
"test"
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
"context": {
|
|
20
|
-
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
|
21
|
-
"@aws-cdk/core:checkSecretUsage": true,
|
|
22
|
-
"@aws-cdk/core:target-partitions": [
|
|
23
|
-
"aws",
|
|
24
|
-
"aws-cn"
|
|
25
|
-
],
|
|
26
|
-
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
|
|
27
|
-
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
|
|
28
|
-
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true,
|
|
29
|
-
"@aws-cdk/aws-iam:minimizePolicies": true,
|
|
30
|
-
"@aws-cdk/core:validateSnapshotRemovalPolicy": true,
|
|
31
|
-
"@aws-cdk/aws-s3:createDefaultLoggingPolicy": true,
|
|
32
|
-
"@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true,
|
|
33
|
-
"@aws-cdk/aws-apigateway:disableCloudWatchRole": true,
|
|
34
|
-
"@aws-cdk/core:enablePartitionLiterals": true,
|
|
35
|
-
"@aws-cdk/aws-events:eventsTargetQueueSameAccount": true,
|
|
36
|
-
"@aws-cdk/aws-iam:standardizedServicePrincipals": true,
|
|
37
|
-
"@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true,
|
|
38
|
-
"@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true,
|
|
39
|
-
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true,
|
|
40
|
-
"@aws-cdk/aws-route53-patters:useCertificate": true,
|
|
41
|
-
"@aws-cdk/customresources:installLatestAwsSdkDefault": false,
|
|
42
|
-
"@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true,
|
|
43
|
-
"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true,
|
|
44
|
-
"@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true,
|
|
45
|
-
"@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true,
|
|
46
|
-
"@aws-cdk/aws-redshift:columnId": true,
|
|
47
|
-
"@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": true,
|
|
48
|
-
"@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": true,
|
|
49
|
-
"@aws-cdk/aws-apigateway:requestValidatorUniqueId": true,
|
|
50
|
-
"@aws-cdk/aws-kms:aliasNameRef": true,
|
|
51
|
-
"@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true,
|
|
52
|
-
"@aws-cdk/core:includePrefixInUniqueNameGeneration": true,
|
|
53
|
-
"@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true,
|
|
54
|
-
"@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true,
|
|
55
|
-
"@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true,
|
|
56
|
-
"@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": true,
|
|
57
|
-
"@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": true,
|
|
58
|
-
"@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": true,
|
|
59
|
-
"@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": true
|
|
60
|
-
},
|
|
61
|
-
"toolkitStackName": "stacks-toolkit"
|
|
62
|
-
}
|
package/core/cloud/deploy.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import 'source-map-support/register'
|
|
2
|
-
import process from 'node:process'
|
|
3
|
-
import { config } from '@stacksjs/config'
|
|
4
|
-
import { log } from '@stacksjs/cli'
|
|
5
|
-
import { ExitCode } from '@stacksjs/types'
|
|
6
|
-
import { slug as slugify } from '@stacksjs/strings'
|
|
7
|
-
import { env } from '@stacksjs/env'
|
|
8
|
-
import { App } from 'aws-cdk-lib'
|
|
9
|
-
import { Cloud } from './src/cloud'
|
|
10
|
-
import { getOrCreateTimestamp } from './src/helpers'
|
|
11
|
-
import type { CloudOptions } from './src/types'
|
|
12
|
-
|
|
13
|
-
const app = new App()
|
|
14
|
-
const appEnv = (config.app.env as string) === 'local'
|
|
15
|
-
? 'dev'
|
|
16
|
-
: (config.app.env as string) === 'development'
|
|
17
|
-
? 'dev'
|
|
18
|
-
: (config.app.env as string) === 'staging'
|
|
19
|
-
? 'stage'
|
|
20
|
-
: (config.app.env as string) === 'production'
|
|
21
|
-
? 'prod'
|
|
22
|
-
: config.app.env
|
|
23
|
-
|
|
24
|
-
const appKey = config.app.key
|
|
25
|
-
const domain = config.app.url
|
|
26
|
-
const appName = config.app.name?.toLowerCase() ?? 'stacks'
|
|
27
|
-
const slug = slugify(appName)
|
|
28
|
-
const name = `${slug}-cloud`
|
|
29
|
-
const account = env.AWS_ACCOUNT_ID
|
|
30
|
-
// const region = env.AWS_DEFAULT_REGION
|
|
31
|
-
const region = 'us-east-1' // currently, us-east-1 is the only fully-supported region
|
|
32
|
-
let timestamp
|
|
33
|
-
|
|
34
|
-
if (!appKey) {
|
|
35
|
-
log.info('Please set an application key. You may need to run `buddy key:generate`.')
|
|
36
|
-
process.exit(ExitCode.InvalidArgument)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const parts = appKey.split(':')
|
|
40
|
-
if (parts && parts.length < 2)
|
|
41
|
-
throw new Error('Invalid format application key format. Expected a colon-separated string. You may need to run `buddy key:generate`.')
|
|
42
|
-
|
|
43
|
-
if (!account || !region)
|
|
44
|
-
throw new Error('Stacks is missing your accountId or region. Please ensure it is set in your .env file')
|
|
45
|
-
|
|
46
|
-
if (!domain)
|
|
47
|
-
throw new Error('Missing app.url in config.')
|
|
48
|
-
|
|
49
|
-
if (!appName)
|
|
50
|
-
throw new Error('Missing app.name in config.')
|
|
51
|
-
|
|
52
|
-
if (!config.team || Object.keys(config.team).length === 0)
|
|
53
|
-
throw new Error('Your ./config team needs to at least have one member defined. Please set yourself as a team member and try deploying again.')
|
|
54
|
-
|
|
55
|
-
const usEnv = {
|
|
56
|
-
account,
|
|
57
|
-
region,
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
try {
|
|
61
|
-
timestamp = await getOrCreateTimestamp()
|
|
62
|
-
}
|
|
63
|
-
catch (error) {
|
|
64
|
-
console.error('Error fetching timestamp', error)
|
|
65
|
-
process.exit(ExitCode.FatalError)
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export const options = {
|
|
69
|
-
env: usEnv,
|
|
70
|
-
name,
|
|
71
|
-
slug,
|
|
72
|
-
appEnv: appEnv ?? 'dev',
|
|
73
|
-
appName,
|
|
74
|
-
domain,
|
|
75
|
-
timestamp,
|
|
76
|
-
} satisfies CloudOptions
|
|
77
|
-
|
|
78
|
-
const cloud = new Cloud(app, name, {
|
|
79
|
-
...options,
|
|
80
|
-
description: `The Stacks Cloud`,
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
await cloud.init()
|
|
84
|
-
|
|
85
|
-
app.synth()
|