chore(package): update prettier to version 1.9.2

This commit is contained in:
greenkeeper[bot] 2017-12-12 03:59:23 +00:00 committed by Pierre Vanduynslager
parent 624ee88abd
commit 1b8aa95a6e
2 changed files with 6 additions and 4 deletions

View File

@ -52,7 +52,7 @@
"nock": "^9.0.2",
"nyc": "^11.2.1",
"p-retry": "^1.0.0",
"prettier": "~1.9.0",
"prettier": "~1.9.2",
"proxyquire": "^1.8.0",
"sinon": "^4.0.0",
"tempy": "^0.2.1",

View File

@ -7,8 +7,10 @@ import nock from 'nock';
* @param {String} [githubUrl='https://api.github.com'] The url on which to intercept http requests.
* @return {Object} A `nock` object ready to respond to a github authentication request.
*/
export default function authenticate(
{githubToken = 'GH_TOKEN', githubUrl = 'https://api.github.com', githubApiPathPrefix = ''} = {}
) {
export default function authenticate({
githubToken = 'GH_TOKEN',
githubUrl = 'https://api.github.com',
githubApiPathPrefix = '',
} = {}) {
return nock(`${githubUrl}/${githubApiPathPrefix}`, {reqheaders: {Authorization: `token ${githubToken}`}});
}