Closed G-Rath closed 3 years ago
Some suggestions:
cli.log(inspect(retMsg, { depth: Infinity, colors: true }));
, the code does not have the regMsg, replace it with correct variablejsome
, that package will automatically format the data. e.g: result is: {name: "test", age: 0}
@zongUMR would you mind checking the output again? I messed up the variables so it was inspecting the string rather than the parsed object.
@zongUMR would you mind checking the output again? I messed up the variables so it was inspecting the string rather than the parsed object. yep, you can the screenshots in my comment, the first pic shows the raw output by
inspect
, the second one shows the formatted output byjsome
@zongUMR give it a try now :)
It looks good to me, @timqian Plz also test your features
Looks good to me. Thanks! @G-Rath
@zongUMR do you have a timeframe on when this will get released? I'm keen to update my projects to the latest serverless 😄
@zongUMR do you have a timeframe on when this will get released? I'm keen to update my projects to the latest serverless 😄
We will release it at 5/26 (each Wed per week is our normal release window).
What has been implemented?
https://github.com/serverless/components/pull/948#issuecomment-845635059
jsome
looks to be abandoned, and uses a vulnerable version ofyargs
(which is also not required in this context, since it's not being used as a cli).This replaces
jsome
with Node's nativeutil.inspect
function, which should provide the same approximate functionality.Steps to verify
npm i
found 0 vulnerabilities
🎉Todos: