sst 2.0.33 → 2.0.35
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/constructs/App.d.ts +0 -1
- package/constructs/App.js +0 -1
- package/constructs/RDS.js +1 -1
- package/package.json +1 -1
- package/runtime/handlers/node.js +1 -1
- package/sst.mjs +1 -1
package/constructs/App.d.ts
CHANGED
|
@@ -173,7 +173,6 @@ export declare class App extends cdk.App {
|
|
|
173
173
|
*/
|
|
174
174
|
addDefaultFunctionLayers(layers: lambda.ILayerVersion[]): void;
|
|
175
175
|
synth(options?: cdk.StageSynthesisOptions): cxapi.CloudAssembly;
|
|
176
|
-
/** @internal */
|
|
177
176
|
finish(): Promise<void>;
|
|
178
177
|
isRunningSSTTest(): boolean;
|
|
179
178
|
getInputFilesFromEsbuildMetafile(file: string): Array<string>;
|
package/constructs/App.js
CHANGED
package/constructs/RDS.js
CHANGED
|
@@ -263,7 +263,7 @@ export class RDS extends Construct {
|
|
|
263
263
|
// - when running resources tests, __dirname is `resources/src`
|
|
264
264
|
// For now we will do `__dirname/../dist` to make both cases work.
|
|
265
265
|
const fn = new Fn(this, "MigrationFunction", {
|
|
266
|
-
handler: path.resolve(path.join(__dirname, "
|
|
266
|
+
handler: path.resolve(path.join(__dirname, "../support/rds-migrator/index.handler")),
|
|
267
267
|
runtime: "nodejs16.x",
|
|
268
268
|
timeout: 900,
|
|
269
269
|
memorySize: 1024,
|
package/package.json
CHANGED
package/runtime/handlers/node.js
CHANGED
|
@@ -80,7 +80,7 @@ export const useNodeHandler = Context.memo(async () => {
|
|
|
80
80
|
const isESM = (nodejs.format || "esm") === "esm";
|
|
81
81
|
const relative = path.relative(project.paths.root, path.resolve(parsed.dir));
|
|
82
82
|
const extension = isESM ? ".mjs" : ".cjs";
|
|
83
|
-
const target = path.join(input.out, !relative.startsWith("..") && !path.isAbsolute(
|
|
83
|
+
const target = path.join(input.out, !relative.startsWith("..") && !path.isAbsolute(input.props.handler)
|
|
84
84
|
? relative
|
|
85
85
|
: "", parsed.name + extension);
|
|
86
86
|
const handler = path
|
package/sst.mjs
CHANGED
|
@@ -4835,7 +4835,7 @@ var init_node = __esm({
|
|
|
4835
4835
|
const extension = isESM ? ".mjs" : ".cjs";
|
|
4836
4836
|
const target = path10.join(
|
|
4837
4837
|
input.out,
|
|
4838
|
-
!relative.startsWith("..") && !path10.isAbsolute(
|
|
4838
|
+
!relative.startsWith("..") && !path10.isAbsolute(input.props.handler) ? relative : "",
|
|
4839
4839
|
parsed.name + extension
|
|
4840
4840
|
);
|
|
4841
4841
|
const handler = path10.relative(input.out, target.replace(extension, parsed.ext)).split(path10.sep).join(path10.posix.sep);
|