Skip to content

Commit 5959914

Browse files
committed
Run Prettier on master
1 parent 20cb333 commit 5959914

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

src/Adapters/Storage/Postgres/PostgresClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function createClient(uri, databaseOptions) {
2020

2121
if (process.env.PARSE_SERVER_LOG_LEVEL === 'debug') {
2222
const monitor = require('pg-monitor');
23-
if(monitor.isAttached()) {
23+
if (monitor.isAttached()) {
2424
monitor.detach();
2525
}
2626
monitor.attach(initOptions);

src/Security/CheckGroups/CheckGroupDatabase.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import Config from '../../Config';
88
import Parse from 'parse/node';
99

1010
/**
11-
* The security checks group for Parse Server configuration.
12-
* Checks common Parse Server parameters such as access keys.
13-
*/
11+
* The security checks group for Parse Server configuration.
12+
* Checks common Parse Server parameters such as access keys.
13+
*/
1414
class CheckGroupDatabase extends CheckGroup {
1515
setName() {
1616
return 'Database';
@@ -23,7 +23,8 @@ class CheckGroupDatabase extends CheckGroup {
2323
new Check({
2424
title: 'Secure database password',
2525
warning: 'The database password is insecure and vulnerable to brute force attacks.',
26-
solution: 'Choose a longer and/or more complex password with a combination of upper- and lowercase characters, numbers and special characters.',
26+
solution:
27+
'Choose a longer and/or more complex password with a combination of upper- and lowercase characters, numbers and special characters.',
2728
check: () => {
2829
const password = databaseUrl.match(/\/\/\S+:(\S+)@/)[1];
2930
const hasUpperCase = /[A-Z]/.test(password);

src/Security/CheckGroups/CheckGroupServerConfig.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import Config from '../../Config';
88
import Parse from 'parse/node';
99

1010
/**
11-
* The security checks group for Parse Server configuration.
12-
* Checks common Parse Server parameters such as access keys.
13-
*/
11+
* The security checks group for Parse Server configuration.
12+
* Checks common Parse Server parameters such as access keys.
13+
*/
1414
class CheckGroupServerConfig extends CheckGroup {
1515
setName() {
1616
return 'Parse Server Configuration';
@@ -21,7 +21,8 @@ class CheckGroupServerConfig extends CheckGroup {
2121
new Check({
2222
title: 'Secure master key',
2323
warning: 'The Parse Server master key is insecure and vulnerable to brute force attacks.',
24-
solution: 'Choose a longer and/or more complex master key with a combination of upper- and lowercase characters, numbers and special characters.',
24+
solution:
25+
'Choose a longer and/or more complex master key with a combination of upper- and lowercase characters, numbers and special characters.',
2526
check: () => {
2627
const masterKey = config.masterKey;
2728
const hasUpperCase = /[A-Z]/.test(masterKey);
@@ -41,7 +42,7 @@ class CheckGroupServerConfig extends CheckGroup {
4142
new Check({
4243
title: 'Security log disabled',
4344
warning: 'Security checks in logs may expose vulnerabilities to anyone access to logs.',
44-
solution: 'Change Parse Server configuration to \'security.enableCheckLog: false\'.',
45+
solution: "Change Parse Server configuration to 'security.enableCheckLog: false'.",
4546
check: () => {
4647
if (config.security && config.security.enableCheckLog) {
4748
throw 1;
@@ -50,8 +51,9 @@ class CheckGroupServerConfig extends CheckGroup {
5051
}),
5152
new Check({
5253
title: 'Client class creation disabled',
53-
warning: 'Attackers are allowed to create new classes without restriction and flood the database.',
54-
solution: 'Change Parse Server configuration to \'allowClientClassCreation: false\'.',
54+
warning:
55+
'Attackers are allowed to create new classes without restriction and flood the database.',
56+
solution: "Change Parse Server configuration to 'allowClientClassCreation: false'.",
5557
check: () => {
5658
if (config.allowClientClassCreation || config.allowClientClassCreation == null) {
5759
throw 1;

0 commit comments

Comments
 (0)