imnd-micro-service
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,18 +0,12 @@ | ||
const utils = require("../../utils/index"); | ||
const fse = require("fs-extra"); | ||
const fs = require("fs"); | ||
module.exports = async (servicePath)=>{ | ||
let configPath = servicePath+"/inputmore.json"; | ||
if(await utils.file.exist(configPath)){ | ||
let config = await utils.file.readFile(configPath,{}); | ||
config = JSON.parse(config); | ||
for(let i in config.actions){ | ||
if(!config.actions[i].name||config.actions[i].name===""){ | ||
config.actions[i].name = config.actions[i].path; | ||
} | ||
let config = fs.readFileSync(configPath); | ||
config = JSON.parse(config); | ||
for(let i in config.actions){ | ||
if(!config.actions[i].name||config.actions[i].name===""){ | ||
config.actions[i].name = config.actions[i].path; | ||
} | ||
return config; | ||
}else{ | ||
throw new Error("No Serivce Config File inputmore.json"); | ||
} | ||
return config; | ||
@@ -19,0 +13,0 @@ // let result = []; |
{ | ||
"name": "imnd-micro-service", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
7221
184