@contrast/contrast 2.1.4 → 2.1.6

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.
@@ -17,7 +17,7 @@ export const HIGH = 'HIGH';
17
17
  export const CRITICAL = 'CRITICAL';
18
18
  // App
19
19
  export const APP_NAME = 'contrast';
20
- const APP_VERSION = '2.1.4';
20
+ const APP_VERSION = '2.1.6';
21
21
  export const TIMEOUT = 120000;
22
22
  export const CRITICAL_PRIORITY = 1;
23
23
  export const HIGH_PRIORITY = 2;
@@ -284,7 +284,7 @@ export const buildTree = shavedOutput => {
284
284
  };
285
285
  export const getGAV = cleanedElementHeader => {
286
286
  //regex to separate the string into 3 elements index 1 = group, index 2 = name, index 3 = version
287
- const regex = /^([a-zA-Z0-9.-]+)\/([a-zA-Z0-9.-]+)@(.+)$/;
287
+ const regex = /^([a-zA-Z0-9_.-]+)\/([a-zA-Z0-9_.-]+)@(.+)$/;
288
288
  const groupNameVersion = regex.exec(cleanedElementHeader);
289
289
  const group = groupNameVersion[1];
290
290
  const name = groupNameVersion[2];
@@ -39,7 +39,6 @@ export const readFilesToBase64 = (languageFiles, project) => {
39
39
  };
40
40
  export const buildRequest = (languageFiles, project) => {
41
41
  const base64Files = readFilesToBase64(languageFiles, project);
42
- console.log(base64Files);
43
42
  return {
44
43
  type: project.projectType,
45
44
  files: base64Files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/contrast",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Contrast Security's command line tool",
5
5
  "exports": "./dist/index.js",
6
6
  "type": "module",
@@ -83,7 +83,8 @@
83
83
  "string-builder": "0.1.8",
84
84
  "string-multiple-replace": "1.0.5",
85
85
  "xml2js": "0.6.1",
86
- "yarn-lockfile": "1.1.1"
86
+ "yarn-lockfile": "1.1.1",
87
+ "pkginfo": "0.4.1"
87
88
  },
88
89
  "devDependencies": {
89
90
  "@babel/core": "7.21.8",