ajmath / serverless-offline-scheduler

MIT License
96 stars 40 forks source link

ADD: return schedule's input if exists #10

Closed ericbear closed 7 years ago

ericbear commented 7 years ago

ajmath, thx for your serverless-offline-scheduler, it is good for development on local.

According to test on AWS, event should be as same as the value of input, the modification is used to simulate the result of AWS, we can use input as parameters for scheduler

module.exports.test = (event, context, callback) => {
  //this event is referred by the value of input
  console.log(JSON.stringify(event, 2, 2))
};
ericbear commented 7 years ago

mistake for 1st pull request, used wrong id to commit@@

ericbear commented 7 years ago

passed all arguments to EventData

ajmath commented 7 years ago

Thanks for the PR. This is now published as 0.3.3 on npm.