Update prettier to tilde range (#2556)

This commit is contained in:
Gideon Thomas 2017-11-15 17:00:23 -05:00 коммит произвёл GitHub
Родитель b8cda069c3
Коммит c803a3eb42
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
8 изменённых файлов: 58 добавлений и 30 удалений

Просмотреть файл

@ -93,7 +93,7 @@
"eslint": "^4.6.1",
"eslint-plugin-prettier": "^2.2.0",
"is-reachable": "^2.3.3",
"prettier": "^1.6.1",
"prettier": "~1.8.2",
"shx": "^0.2.2",
"stylelint": "^8.1.1",
"stylelint-config-standard": "^17.0.0"

Просмотреть файл

@ -31,9 +31,9 @@ function writeFile(locale, file, properties, addWrapper) {
locale = locale.replace(/-/g, "_");
properties = JSON.stringify(properties, null, IS_DEVELOPMENT ? 2 : 0);
if (addWrapper) {
properties = `${IS_DEVELOPMENT
? JS_WRAPPER
: JS_WRAPPER_MIN}_values: ${properties}};`;
properties = `${IS_DEVELOPMENT ? JS_WRAPPER : JS_WRAPPER_MIN}_values: ${
properties
}};`;
}
return new Promise(function(resolve, reject) {

Просмотреть файл

@ -183,7 +183,9 @@ module.exports = function middlewareConstructor(config) {
next(
HttpError.format(
{
message: `Data validation in middleware failed for ${req.originalUrl}`,
message: `Data validation in middleware failed for ${
req.originalUrl
}`,
context: {
expected: properties,
actual: req.body
@ -239,7 +241,9 @@ module.exports = function middlewareConstructor(config) {
return next(
HttpError.format(
{
message: `Request to ${userUrl} returned a status of ${response.statusCode}`,
message: `Request to ${userUrl} returned a status of ${
response.statusCode
}`,
context: response.body
},
req
@ -293,7 +297,9 @@ module.exports = function middlewareConstructor(config) {
return next(
HttpError.format(
{
message: `Request to ${projectUrl} returned a status of ${response.statusCode}`,
message: `Request to ${projectUrl} returned a status of ${
response.statusCode
}`,
context: response.body
},
req

Просмотреть файл

@ -95,7 +95,9 @@ module.exports = function(config, req, res, next) {
return next(
HttpError.format(
{
message: `Failed to send request to ${authURL}. Verify that the authentication server is up and running.`,
message: `Failed to send request to ${
authURL
}. Verify that the authentication server is up and running.`,
context: err
},
req
@ -108,7 +110,9 @@ module.exports = function(config, req, res, next) {
return next(
HttpError.format(
{
message: `Request to ${authURL} returned a status of ${response.statusCode}`,
message: `Request to ${authURL} returned a status of ${
response.statusCode
}`,
context: response.body
},
req
@ -151,7 +155,9 @@ module.exports = function(config, req, res, next) {
return next(
HttpError.format(
{
message: `Failed to send request to ${userURL}. Verify that the authentication server is up and running.`,
message: `Failed to send request to ${
userURL
}. Verify that the authentication server is up and running.`,
context: err
},
req
@ -164,7 +170,9 @@ module.exports = function(config, req, res, next) {
return next(
HttpError.format(
{
message: `Request to ${userURL} returned a status of ${response.statusCode}`,
message: `Request to ${userURL} returned a status of ${
response.statusCode
}`,
context: response.body
},
req

Просмотреть файл

@ -78,7 +78,9 @@ module.exports = function(config, req, res, next) {
next(
HttpError.format(
{
message: `Failed to initiate request to ${options.pathname} ${errorLogSuffix}`,
message: `Failed to initiate request to ${options.pathname} ${
errorLogSuffix
}`,
context: err
},
req
@ -93,7 +95,9 @@ module.exports = function(config, req, res, next) {
next(
HttpError.format(
{
message: `Failed to send request to ${options.pathname} ${errorLogSuffix}`,
message: `Failed to send request to ${options.pathname} ${
errorLogSuffix
}`,
context: err
},
req
@ -114,7 +118,9 @@ module.exports = function(config, req, res, next) {
next(
HttpError.format(
{
message: `Data sent by the publish server was in an invalid format. Failed to run \`JSON.parse\` ${errorLogSuffix}`,
message: `Data sent by the publish server was in an invalid format. Failed to run \`JSON.parse\` ${
errorLogSuffix
}`,
context: e.message,
stack: e.stack
},
@ -130,7 +136,9 @@ module.exports = function(config, req, res, next) {
next(
HttpError.format(
{
message: `Request to ${options.pathname} returned a status of ${response.statusCode} ${errorLogSuffix}`,
message: `Request to ${options.pathname} returned a status of ${
response.statusCode
} ${errorLogSuffix}`,
context: body
},
req
@ -163,7 +171,9 @@ module.exports = function(config, req, res, next) {
next(
HttpError.format(
{
message: `File data could not be read from stream ${errorLogSuffix}`,
message: `File data could not be read from stream ${
errorLogSuffix
}`,
context: err
},
req

Просмотреть файл

@ -37,7 +37,9 @@ module.exports = function(config, req, res, next) {
next(
HttpError.format(
{
message: `Request to ${url} returned a status of ${response.statusCode}`,
message: `Request to ${url} returned a status of ${
response.statusCode
}`,
context: response.body
},
req

Просмотреть файл

@ -27,11 +27,9 @@ module.exports = function(config, req, res, next) {
next(
HttpError.format(
{
message: `Failed to send request to ${uri}, paths sent: ${JSON.stringify(
req.body.paths,
null,
2
)}`,
message: `Failed to send request to ${
uri
}, paths sent: ${JSON.stringify(req.body.paths, null, 2)}`,
context: err
},
req
@ -45,11 +43,9 @@ module.exports = function(config, req, res, next) {
next(
HttpError.format(
{
message: `Request to ${uri} returned a status of ${response.statusCode}. Paths sent: ${JSON.stringify(
req.body.paths,
null,
2
)}`,
message: `Request to ${uri} returned a status of ${
response.statusCode
}. Paths sent: ${JSON.stringify(req.body.paths, null, 2)}`,
context: response.body
},
req

Просмотреть файл

@ -272,7 +272,9 @@ function getRemixedProject(config, projectId, callback) {
} catch (e) {
callback(
{
message: `Project data received by the publish server for ${publishURL} was in an invalid format. Failed to run \`JSON.parse\``,
message: `Project data received by the publish server for ${
publishURL
} was in an invalid format. Failed to run \`JSON.parse\``,
context: e.message,
stack: e.stack
},
@ -334,7 +336,9 @@ function getProjectFileMetadata(config, user, projectId, callback) {
} catch (e) {
callback(
{
message: `Project data received by the publish server for ${url} was in an invalid format. Failed to run \`JSON.parse\``,
message: `Project data received by the publish server for ${
url
} was in an invalid format. Failed to run \`JSON.parse\``,
context: e.message,
stack: e.stack
},
@ -414,7 +418,9 @@ function getRemixedProjectFileMetadata(config, projectId, callback) {
} catch (e) {
callback(
{
message: `Project data received by the publish server for ${publishURL} was in an invalid format. Failed to run \`JSON.parse\``,
message: `Project data received by the publish server for ${
publishURL
} was in an invalid format. Failed to run \`JSON.parse\``,
context: e.message,
stack: e.stack
},