Comparing version 2.2.2 to 2.2.3
const path = require('path'); | ||
const fs = require('fs'); | ||
const FUNCTION_PATH = fs.existsSync('f') ? 'f' : 'functions'; | ||
module.exports = (cfg, names, args, kwargs, body, callback) => { | ||
@@ -18,4 +21,4 @@ | ||
names; | ||
let pathname = path.join.apply(null, [process.cwd()].concat('f', names, 'index.js')); | ||
let fnpathname = path.join.apply(null, [process.cwd()].concat('f', names, 'function.json')); | ||
let pathname = path.join.apply(null, [process.cwd()].concat(FUNCTION_PATH, names, 'index.js')); | ||
let fnpathname = path.join.apply(null, [process.cwd()].concat(FUNCTION_PATH, names, 'function.json')); | ||
let fn; | ||
@@ -22,0 +25,0 @@ let fndata; |
{ | ||
"name": "lib", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "StdLib: Standard Library for Microservices Node.js Bindings", | ||
@@ -5,0 +5,0 @@ "main": "lib.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
14582
255
5