sst 2.4.2 → 2.4.3
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/cli/commands/plugins/kysely.js +1 -1
- package/node/site/index.d.ts +3 -0
- package/node/site/index.js +3 -0
- package/package.json +1 -1
- package/sst.mjs +3 -3
- package/stacks/diff.js +1 -1
|
@@ -6,7 +6,7 @@ import { DatabaseMetadata, EnumCollection, PostgresDialect, MysqlDialect, Serial
|
|
|
6
6
|
import { Context } from "../../../context/context.js";
|
|
7
7
|
import { useBus } from "../../../bus.js";
|
|
8
8
|
import { Logger } from "../../../logger.js";
|
|
9
|
-
import { useAWSClient
|
|
9
|
+
import { useAWSClient } from "../../../credentials.js";
|
|
10
10
|
export const useKyselyTypeGenerator = Context.memo(async () => {
|
|
11
11
|
let databases = [];
|
|
12
12
|
const bus = useBus();
|
package/node/site/index.d.ts
CHANGED
|
@@ -8,8 +8,11 @@ export interface NextjsSiteResources {
|
|
|
8
8
|
}
|
|
9
9
|
export interface RemixSiteResources {
|
|
10
10
|
}
|
|
11
|
+
export interface SolidStartSiteResources {
|
|
12
|
+
}
|
|
11
13
|
export declare const StaticSite: StaticSiteResources;
|
|
12
14
|
export declare const ReactStaticSite: ReactStaticSiteResources;
|
|
13
15
|
export declare const ViteStaticSite: ViteStaticSiteResources;
|
|
14
16
|
export declare const RemixSite: RemixSiteResources;
|
|
15
17
|
export declare const NextjsSite: NextjsSiteResources;
|
|
18
|
+
export declare const SolidStartSite: SolidStartSiteResources;
|
package/node/site/index.js
CHANGED
|
@@ -4,13 +4,16 @@ export const ReactStaticSite = createProxy("ReactStaticSite");
|
|
|
4
4
|
export const ViteStaticSite = createProxy("ViteStaticSite");
|
|
5
5
|
export const RemixSite = createProxy("RemixSite");
|
|
6
6
|
export const NextjsSite = createProxy("NextjsSite");
|
|
7
|
+
export const SolidStartSite = createProxy("SolidStartSite");
|
|
7
8
|
const staticSiteData = getVariables("StaticSite");
|
|
8
9
|
const reactSiteData = getVariables("ReactStaticSite");
|
|
9
10
|
const viteSiteData = getVariables("ViteStaticSite");
|
|
10
11
|
const nextjsSiteData = getVariables("NextjsSite");
|
|
11
12
|
const remixSiteData = getVariables("RemixSite");
|
|
13
|
+
const solidStartSiteData = getVariables("SolidStartSite");
|
|
12
14
|
Object.assign(StaticSite, staticSiteData);
|
|
13
15
|
Object.assign(ReactStaticSite, reactSiteData);
|
|
14
16
|
Object.assign(ViteStaticSite, viteSiteData);
|
|
15
17
|
Object.assign(NextjsSite, nextjsSiteData);
|
|
16
18
|
Object.assign(RemixSite, remixSiteData);
|
|
19
|
+
Object.assign(SolidStartSite, solidStartSiteData);
|
package/package.json
CHANGED
package/sst.mjs
CHANGED
|
@@ -3312,7 +3312,7 @@ async function diff(stack, oldTemplate) {
|
|
|
3312
3312
|
const pathMap = await buildLogicalToPathMap(stack);
|
|
3313
3313
|
formatDifferences(stream, diff3, pathMap);
|
|
3314
3314
|
while (true) {
|
|
3315
|
-
if (output[output.length - 1]
|
|
3315
|
+
if (output[output.length - 1]?.match(/^\s*$/)) {
|
|
3316
3316
|
output.pop();
|
|
3317
3317
|
} else {
|
|
3318
3318
|
break;
|
|
@@ -7312,8 +7312,8 @@ var bind = (program2) => program2.command(
|
|
|
7312
7312
|
Logger2.debug(`Failed to assume ${roleArn}.`, err);
|
|
7313
7313
|
}
|
|
7314
7314
|
async function localIamCredentials() {
|
|
7315
|
-
const { useAWSCredentials:
|
|
7316
|
-
const credentials = await
|
|
7315
|
+
const { useAWSCredentials: useAWSCredentials2 } = await Promise.resolve().then(() => (init_credentials(), credentials_exports));
|
|
7316
|
+
const credentials = await useAWSCredentials2();
|
|
7317
7317
|
return {
|
|
7318
7318
|
AWS_ACCESS_KEY_ID: credentials.accessKeyId,
|
|
7319
7319
|
AWS_SECRET_ACCESS_KEY: credentials.secretAccessKey,
|
package/stacks/diff.js
CHANGED
|
@@ -40,7 +40,7 @@ export async function diff(stack, oldTemplate) {
|
|
|
40
40
|
formatDifferences(stream, diff, pathMap);
|
|
41
41
|
// Remove trailing newline
|
|
42
42
|
while (true) {
|
|
43
|
-
if (output[output.length - 1]
|
|
43
|
+
if (output[output.length - 1]?.match(/^\s*$/)) {
|
|
44
44
|
output.pop();
|
|
45
45
|
}
|
|
46
46
|
else {
|