Skip to content
This repository was archived by the owner on Aug 1, 2022. It is now read-only.

Commit 5672020

Browse files
fix: env vars and don't json stringify (#4)
Co-authored-by: Sam-Nicolai Johnston <sam-nicolai.johnston@ssense.com>
1 parent c42d43d commit 5672020

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/StepFunctionSimulatorServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ export class StepFunctionSimulatorServer {
8787
resolve(res.status(200).json(output));
8888
});
8989

90-
await sme.execute(startAtState, JSON.stringify(executionInput.input));
90+
await sme.execute(startAtState, executionInput.input);
9191
}
9292
}

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class ServerlessOfflineStepFunctionsPlugin {
3636
},
3737
};
3838

39-
this.injectEnvVars();
4039
this.mergeOptions();
4140

4241
if (this.options?.enabled === false) {
@@ -53,6 +52,7 @@ class ServerlessOfflineStepFunctionsPlugin {
5352
}
5453

5554
private start() {
55+
this.injectEnvVars();
5656
// Get Handler and Path of the Local Functions
5757
const definedStateMachines = this.serverless.service.initialServerlessConfig?.stepFunctions?.stateMachines;
5858

0 commit comments

Comments
 (0)