Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Refactor to use request library instead of got #8

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

alexking
Copy link

@alexking alexking commented May 1, 2018

This should fix #7 by allowing us to send in additional options for the http requests to use.

  • Switches to the request library (and request-promise) from got (not sure if this is better, but it's simpler for now and more widely used)
  • Accepts additional options (such as auth) to be used for requests (using the request.defaults() feature)
  • inspect() now uses the new /system/function/name endpoint instead of filtering /system/functions
  • Adds jsdoc comments

This should be fully backwards compatible with the previous version (at least according to the tests) so I've only bumped to 0.1.2 from 0.1.1, but we may want to make it 0.2.0, not sure.

Signed-off-by: Alex King

- Now uses the request library (and request-promise) instead of got
- Accepts additional request options (such as auth) on construction
-`inspect` now uses the /system/function/name endpoint instead of filtering /system/functions
- Added jsdoc comments

Signed-off-by: Alex King <[email protected]>
@alexking
Copy link
Author

Have another branch that adds support for calling async functions as well, can merge that into here if we'd like, otherwise I'll submit it as a new PR after this one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Basic Auth
1 participant