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

imnd-micro-service

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imnd-micro-service - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

20

controller/loadService.js

@@ -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",

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