parse-community / parse-server

@@ -8,9 +8,9 @@
Loading
8 8
import Parse from 'parse/node';
9 9
10 10
/**
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 +
 */
14 14
class CheckGroupDatabase extends CheckGroup {
15 15
  setName() {
16 16
    return 'Database';
@@ -23,7 +23,8 @@
Loading
23 23
      new Check({
24 24
        title: 'Secure database password',
25 25
        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.',
27 28
        check: () => {
28 29
          const password = databaseUrl.match(/\/\/\S+:(\S+)@/)[1];
29 30
          const hasUpperCase = /[A-Z]/.test(password);

@@ -20,7 +20,7 @@
Loading
20 20
21 21
  if (process.env.PARSE_SERVER_LOG_LEVEL === 'debug') {
22 22
    const monitor = require('pg-monitor');
23 -
    if(monitor.isAttached()) {
23 +
    if (monitor.isAttached()) {
24 24
      monitor.detach();
25 25
    }
26 26
    monitor.attach(initOptions);
Files Coverage
src 93.99%
Project Totals (181 files) 93.99%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading