@contrast/contrast 2.0.2-beta.2 → 2.0.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -103,7 +103,7 @@ const hasWhiteSpace = s => {
|
|
|
103
103
|
return filename.indexOf(' ') >= 0;
|
|
104
104
|
};
|
|
105
105
|
const dealWithMultiJava = (filesFound, config, isFile) => {
|
|
106
|
-
if (isFile) {
|
|
106
|
+
if (isFile && filesFound[0] && filesFound[0].language === 'JAVA') {
|
|
107
107
|
return multiJavaFilePathFullySpecified(filesFound, config);
|
|
108
108
|
}
|
|
109
109
|
else {
|
|
@@ -12,7 +12,7 @@ const MEDIUM = 'MEDIUM';
|
|
|
12
12
|
const HIGH = 'HIGH';
|
|
13
13
|
const CRITICAL = 'CRITICAL';
|
|
14
14
|
const APP_NAME = 'contrast';
|
|
15
|
-
const APP_VERSION = '2.0.2-beta.
|
|
15
|
+
const APP_VERSION = '2.0.2-beta.3';
|
|
16
16
|
const TIMEOUT = 120000;
|
|
17
17
|
const HIGH_COLOUR = '#ff9900';
|
|
18
18
|
const CRITICAL_COLOUR = '#e35858';
|
package/package.json
CHANGED
|
@@ -117,7 +117,7 @@ const hasWhiteSpace = s => {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
const dealWithMultiJava = (filesFound, config, isFile) => {
|
|
120
|
-
if (isFile) {
|
|
120
|
+
if (isFile && filesFound[0] && filesFound[0].language === 'JAVA') {
|
|
121
121
|
return multiJavaFilePathFullySpecified(filesFound, config)
|
|
122
122
|
} else {
|
|
123
123
|
return multiJavaNoFilePathFullySpecified(filesFound)
|
|
@@ -14,7 +14,7 @@ const HIGH = 'HIGH'
|
|
|
14
14
|
const CRITICAL = 'CRITICAL'
|
|
15
15
|
// App
|
|
16
16
|
const APP_NAME = 'contrast'
|
|
17
|
-
const APP_VERSION = '2.0.2-beta.
|
|
17
|
+
const APP_VERSION = '2.0.2-beta.3'
|
|
18
18
|
const TIMEOUT = 120000
|
|
19
19
|
const HIGH_COLOUR = '#ff9900'
|
|
20
20
|
const CRITICAL_COLOUR = '#e35858'
|