chore(deps): update dependency prettier to v1.18.2 (#2407)

This commit is contained in:
renovate[bot] 2019-06-26 14:28:00 -04:00 committed by Shawn Erquhart
parent 321ca9b0ed
commit aded9d7c24
4 changed files with 8 additions and 14 deletions

View File

@ -104,7 +104,7 @@
"nock": "^10.0.4", "nock": "^10.0.4",
"node-fetch": "^2.3.0", "node-fetch": "^2.3.0",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"prettier": "1.17.1", "prettier": "1.18.2",
"react-test-renderer": "^16.8.4", "react-test-renderer": "^16.8.4",
"react-testing-library": "^7.0.0", "react-testing-library": "^7.0.0",
"rimraf": "^2.6.3", "rimraf": "^2.6.3",

View File

@ -324,9 +324,7 @@ export default class GitGateway {
return this.backend.getMediaDisplayURL(original); return this.backend.getMediaDisplayURL(original);
} }
const err = new Error( const err = new Error(
`getMediaDisplayURL is not implemented by the ${ `getMediaDisplayURL is not implemented by the ${this.backendType} backend, but the backend returned a displayURL which was not a string!`,
this.backendType
} backend, but the backend returned a displayURL which was not a string!`,
); );
err.displayURL = displayURL; err.displayURL = displayURL;
return Promise.reject(err); return Promise.reject(err);

View File

@ -108,9 +108,7 @@ class Authenticator {
const left = screen.width / 2 - conf.width / 2; const left = screen.width / 2 - conf.width / 2;
const top = screen.height / 2 - conf.height / 2; const top = screen.height / 2 - conf.height / 2;
window.addEventListener('message', this.handshakeCallback(options, cb), false); window.addEventListener('message', this.handshakeCallback(options, cb), false);
let url = `${this.base_url}/${this.auth_endpoint}?provider=${ let url = `${this.base_url}/${this.auth_endpoint}?provider=${options.provider}&site_id=${siteID}`;
options.provider
}&site_id=${siteID}`;
if (options.scope) { if (options.scope) {
url += '&scope=' + options.scope; url += '&scope=' + options.scope;
} }
@ -151,9 +149,7 @@ class Authenticator {
}), }),
); );
} }
const url = `${this.base_url}/${ const url = `${this.base_url}/${this.auth_endpoint}/refresh?provider=${provider}&site_id=${siteID}&refresh_token=${refresh_token}`;
this.auth_endpoint
}/refresh?provider=${provider}&site_id=${siteID}&refresh_token=${refresh_token}`;
const refreshPromise = fetch(url, { method: 'POST', body: '' }).then(res => res.json()); const refreshPromise = fetch(url, { method: 'POST', body: '' }).then(res => res.json());
// Return a promise if a callback wasn't provided // Return a promise if a callback wasn't provided

View File

@ -9687,10 +9687,10 @@ prelude-ls@~1.1.2:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
prettier@1.17.1: prettier@1.18.2:
version "1.17.1" version "1.18.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.17.1.tgz#ed64b4e93e370cb8a25b9ef7fef3e4fd1c0995db" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
integrity sha512-TzGRNvuUSmPgwivDqkZ9tM/qTGW9hqDKWOE9YHiyQdixlKbv7kvEqsmDPrcHJTKwthU774TQwZXVtaQ/mMsvjg== integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==
pretty-format@^24.0.0, pretty-format@^24.7.0, pretty-format@^24.8.0: pretty-format@^24.0.0, pretty-format@^24.7.0, pretty-format@^24.8.0:
version "24.8.0" version "24.8.0"