serverless / components

The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
https://www.serverless.com
Apache License 2.0
2.3k stars 181 forks source link

The invoke command #948

Closed timqian closed 3 years ago

timqian commented 3 years ago

sls invoke: https://app.asana.com/0/1200011502754281/1200211330092197

sls invoke local: https://app.asana.com/0/1200011502754281/1200276428733645

G-Rath commented 3 years ago

@timqian @zongUMR jsome looks to be abandoned, and uses a vulnerable version of yargs (which is also not required in this context, since it's not being used as a cli) - would you be open to finding a replacement?

Ideally it'd be great if you'd be happy to just use the inspect function from util as that ships with Node so has no external dependencies, even if just as a quick replacement.

I'm happy to make PRs if you're open to this :)

zongUMR commented 3 years ago

@timqian @zongUMR jsome looks to be abandoned, and uses a vulnerable version of yargs (which is also not required in this context, since it's not being used as a cli) - would you be open to finding a replacement?

Ideally it'd be great if you'd be happy to just use the inspect function from utils as that ships with Node so has no external dependencies, even if just as a quick replacement.

I'm happy to make PRs if you're open to this :)

Hi Gareth, thanks for your information. Looks like the jsome is not a good package as you said it is abandoned, welcome any PR for this feature. :)

G-Rath commented 3 years ago

@zongUMR awesome, and thanks for the quick response!

I've created #955 to replace jsome with util.inspect :)