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

Fix some examples and docs + using https everywhere #436

Merged
merged 3 commits into from May 17, 2017
Merged

Conversation

luisrudge
Copy link
Contributor

No description provided.

package.json Outdated
@@ -22,7 +22,7 @@
"test:watch": "mocha --watch -R min test/**/*.test.js",
"ci:test": "istanbul cover _mocha --report lcovonly -R test/**/* -- -R mocha-multi --reporter-options spec=-,mocha-junit-reporter=-",
"ci:coverage": "codecov",
"lint": "eslint ./src",
"lint": "eslint --fix ./src",
Copy link
Member

Choose a reason for hiding this comment

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

Please remove the --fix

* @param {String} options.password user password
* @param {String} options.realm realm
* @param {Function} cb callback function called only when an authorization error occurs. Has the error as the only parameter.
* @param {String} [options.username] Username
Copy link
Member

Choose a reason for hiding this comment

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

Explain that username and email are mutually exclusive here too

Copy link
Member

Choose a reason for hiding this comment

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

And if both are supplied explain what happens if you don't raise an error

* @param {String} [options.username] Username
* @param {String} [options.email] Email
* @param {String} options.password Password
* @param {String} [options.realm] Use the realm paramater to specify a connection. Ex: 'Username-Password-Authentication'
Copy link
Member

Choose a reason for hiding this comment

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

realm used to authenticate the user, it can be a realm name or a database connection name

* @param {String} [options.email] Email
* @param {String} options.password Password
* @param {String} [options.realm] Use the realm paramater to specify a connection. Ex: 'Username-Password-Authentication'
* @param {Function} cb Callback function called only when an authorization error occurs. Has the error as the only parameter
Copy link
Member

Choose a reason for hiding this comment

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

Define the callback type as I did in the rest of jsdocs

hzalaz
hzalaz previously approved these changes May 17, 2017
hzalaz
hzalaz previously approved these changes May 17, 2017
hzalaz
hzalaz previously approved these changes May 17, 2017
@luisrudge luisrudge changed the title Fix some examples + using https everywhere Fix some examples and docs + using https everywhere May 17, 2017
@hzalaz hzalaz merged commit 2f89fae into master May 17, 2017
@hzalaz hzalaz deleted the fix-examples branch May 17, 2017 19:36
@luisrudge luisrudge added this to the v8-Next milestone May 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants