pnxtech / hydra-cli

Hydra Command Line Client
MIT License
12 stars 9 forks source link

Don't error if hydra parses the result as json but extract it and log it, Closes #30 Closes #37 #43

Closed JustusFluegel closed 3 years ago

JustusFluegel commented 4 years ago

This pr adds a handler for object responses to the code and extracts them into their own param. #31 just removed the handler entirely, which is a solution but I think extracting it would be more readable to the user.

The error was caused because of line 1287-1290 in https://github.com/pnxtech/hydra/blob/master/index.js

JustusFluegel commented 3 years ago

sure, sorry I was offline for so long

JustusFluegel commented 3 years ago

maybe add it to eslint or sth tho

cjus commented 3 years ago

@Technikkeller thanks for this. Merging...