Skip to content

Commit af82dd7

Browse files
greenkeeper[bot]peril-parse-community[bot]
authored andcommitted
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
1 parent ea63def commit af82dd7

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

‎package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"cross-env": "5.2.0",
5757
"deep-diff": "1.0.2",
5858
"eslint": "5.16.0",
59-
"eslint-plugin-flowtype": "3.9.1",
59+
"eslint-plugin-flowtype": "3.10.0",
6060
"flow-bin": "0.101.0",
6161
"gaze": "1.1.3",
6262
"husky": "2.4.1",

‎src/Adapters/Auth/linkedin.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@ const httpsRequest = require('./httpsRequest');
44

55
// Returns a promise that fulfills iff this user id is valid.
66
function validateAuthData(authData) {
7-
return request(
8-
'me',
9-
authData.access_token,
10-
authData.is_mobile_sdk
11-
).then(data => {
12-
if (data && data.id == authData.id) {
13-
return;
7+
return request('me', authData.access_token, authData.is_mobile_sdk).then(
8+
data => {
9+
if (data && data.id == authData.id) {
10+
return;
11+
}
12+
throw new Parse.Error(
13+
Parse.Error.OBJECT_NOT_FOUND,
14+
'Linkedin auth is invalid for this user.'
15+
);
1416
}
15-
throw new Parse.Error(
16-
Parse.Error.OBJECT_NOT_FOUND,
17-
'Linkedin auth is invalid for this user.'
18-
);
19-
});
17+
);
2018
}
2119

2220
// Returns a promise that fulfills iff this app id is valid.

‎src/RestWrite.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,9 +787,7 @@ RestWrite.prototype._validatePasswordHistory = function() {
787787
return Promise.reject(
788788
new Parse.Error(
789789
Parse.Error.VALIDATION_ERROR,
790-
`New password should not be the same as last ${
791-
this.config.passwordPolicy.maxPasswordHistory
792-
} passwords.`
790+
`New password should not be the same as last ${this.config.passwordPolicy.maxPasswordHistory} passwords.`
793791
)
794792
);
795793
throw err;

0 commit comments

Comments
 (0)