Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added feature to bind on stream emits via options #18

Merged
merged 7 commits into from Jul 9, 2018
Merged

Conversation

shamasis
Copy link
Member

@shamasis shamasis commented Jul 3, 2018

Adds feature to:

request.defaults({
bindOn: { request: console.log }
});

PR Checklist:

  • I have run npm test locally and all tests are passing.
  • I have added/updated tests for any new behavior.
  • If this is a significant change, an issue has already been created where the problem / solution was discussed: [N/A, or add link to issue here]

PR Description

Adds feature to:

request.defaults({
  bindOn: { request: console.log }
});
@shamasis shamasis self-assigned this Jul 3, 2018
@shamasis shamasis requested a review from kunagpal July 3, 2018 07:02
Copy link
Member

@kunagpal kunagpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changes...

request.js Outdated

// bind default events sent via options
// additional postman feature starts
if (options.bindOn) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a stricter type check.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see request library doing it anywhere

@kunagpal
Copy link
Member

kunagpal commented Jul 8, 2018

@shamasis Tests failing due to request#2976

@kunagpal
Copy link
Member

kunagpal commented Jul 8, 2018

Blocked on #19

* master:
  Update test certificates
  2.87.1
  Update changelog
  2.87.0
  Replace hawk dependency with a local implemenation (request#2943)
@kunagpal
Copy link
Member

kunagpal commented Jul 9, 2018

TODO: Add tests before stable release (CodeCov should be happy)

@kunagpal kunagpal merged commit 156ae1b into master Jul 9, 2018
@kunagpal kunagpal deleted the feature/bindOn branch July 9, 2018 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants