Skip to content

programatic API - #2

Open
cancerberoSgx wants to merge 6 commits into
icsfl:masterfrom
cancerberoSgx:master
Open

cancerberoSgx wants to merge 6 commits into
icsfl:masterfrom
cancerberoSgx:master

Conversation

@cancerberoSgx

Copy link
Copy Markdown
Contributor

Since you are calling credentials() function from index, basically this project is unusable programatically from other tools (that might obtain credentials differently). I changes the API so methods are not automatically called so I can provide credentials using other methods (see test/test1.js)

Also I removed Q dependency and use native Promise

Also I tried to refactor a little bit to use es6 features like arrow functions, const, let, etc

also init() now accept a single objject parameter with credentials and configuration.
Also logging is configurable passing debug: false in init() so is silent

tried to adjust the README to reflect these changes.

probably will correct / enhance more around this and add some integration tests and travis, but before wanted to know your opinion. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant