Skip to content

Commit 7153b23

Browse files
committed
delete console.logs after each function
show finally log after all functions
1 parent b31dc73 commit 7153b23

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

build.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
return Promise.resolve()
3232
.then(() => this._findNextStep(states, states[this.stateDefinition.StartAt], this.stateDefinition.StartAt))
3333
.then(() => this._run(steps[0].f(), this.eventFile, 0))
34+
.then(() => this.cliLog('Serverless step function offline: Finished'))
3435
.catch(err => {
3536
console.log('OOPS', err.stack);
3637
this.cliLog(err);
@@ -48,8 +49,6 @@ module.exports = {
4849
}
4950
this._runNextStepFunction(result, index + 1, resolve);
5051
});
51-
}).then((res) => {
52-
console.log('done', res);
5352
}).catch(err => {
5453
throw err;
5554
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-step-functions-offline",
3-
"version": "0.0.4",
3+
"version": "0.0.6",
44
"description": "Serverlesss plugin to support step function offline",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)