Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xliic/cicd-core-node

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xliic/cicd-core-node - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

6

lib/config.js

@@ -79,3 +79,3 @@ "use strict";

if (audit.mapping) {
mappedFiles = checkMappedFiles(audit.mapping);
mappedFiles = checkMappedFiles(rootDir, audit.mapping);
}

@@ -102,7 +102,7 @@ // failure conditions

}
function checkMappedFiles(mappedFiles) {
function checkMappedFiles(rootDir, mappedFiles) {
const fileMap = {};
const uniqueIds = {};
for (const [filename, id] of Object.entries(mappedFiles)) {
if (!fs.existsSync(filename)) {
if (!fs.existsSync(path.join(rootDir, filename))) {
throw new ConfigError(`The file "${filename}" listed in the 'mapping' section of the config file does not exist.`);

@@ -109,0 +109,0 @@ }

{
"name": "@xliic/cicd-core-node",
"version": "2.2.3",
"version": "2.2.4",
"description": "Performs API contract security audit to get a detailed analysis of the possible vulnerabilities and other issues in the API contract.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -99,3 +99,3 @@ /*

if (audit.mapping) {
mappedFiles = checkMappedFiles(audit.mapping);
mappedFiles = checkMappedFiles(rootDir, audit.mapping);
}

@@ -132,7 +132,7 @@

function checkMappedFiles(mappedFiles: Mapping): FileApiIdMap {
function checkMappedFiles(rootDir: string, mappedFiles: Mapping): FileApiIdMap {
const fileMap: FileApiIdMap = {};
const uniqueIds: { [id: string]: string } = {};
for (const [filename, id] of Object.entries(mappedFiles)) {
if (!fs.existsSync(filename)) {
if (!fs.existsSync(path.join(rootDir, filename))) {
throw new ConfigError(

@@ -139,0 +139,0 @@ `The file "${filename}" listed in the 'mapping' section of the config file does not exist.`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc