Update eslint-plugin-flowtype to the latest version 🚀 (#5656)

* chore(package): update eslint-plugin-flowtype to version 3.10.0

* chore(package): update lockfile package-lock.json
This commit is contained in:
greenkeeper[bot]
2019-06-12 05:41:21 +00:00
committed by peril-parse-community[bot]
parent ea63def0e1
commit af82dd7bdd
4 changed files with 15 additions and 19 deletions

View File

@@ -4,19 +4,17 @@ const httpsRequest = require('./httpsRequest');
// Returns a promise that fulfills iff this user id is valid.
function validateAuthData(authData) {
return request(
'me',
authData.access_token,
authData.is_mobile_sdk
).then(data => {
if (data && data.id == authData.id) {
return;
return request('me', authData.access_token, authData.is_mobile_sdk).then(
data => {
if (data && data.id == authData.id) {
return;
}
throw new Parse.Error(
Parse.Error.OBJECT_NOT_FOUND,
'Linkedin auth is invalid for this user.'
);
}
throw new Parse.Error(
Parse.Error.OBJECT_NOT_FOUND,
'Linkedin auth is invalid for this user.'
);
});
);
}
// Returns a promise that fulfills iff this app id is valid.

View File

@@ -787,9 +787,7 @@ RestWrite.prototype._validatePasswordHistory = function() {
return Promise.reject(
new Parse.Error(
Parse.Error.VALIDATION_ERROR,
`New password should not be the same as last ${
this.config.passwordPolicy.maxPasswordHistory
} passwords.`
`New password should not be the same as last ${this.config.passwordPolicy.maxPasswordHistory} passwords.`
)
);
throw err;