json-mock-server
Advanced tools
Comparing version 0.0.1-alpha.3 to 0.0.1-alpha.4
@@ -19,5 +19,5 @@ #!/usr/bin/env node | ||
try { | ||
config = require(path.join(__dirname, filePath)); | ||
config = require(path.join(process.cwd(), filePath)); | ||
} catch(err) { | ||
console.log(chalk.red('[ERROR json-mock-server] - Could not resolve path:'), chalk.yellow(`"${path.join(__dirname, filePath)}"`)); | ||
console.log(chalk.red('[ERROR json-mock-server] - Could not resolve path:'), chalk.yellow(`"${path.join(process.cwd(), filePath)}"`)); | ||
if (commander.config === defaultConfig) { | ||
@@ -24,0 +24,0 @@ console.log(chalk.red('Default config file could not be found. To specify a filepath use `--config`')); |
{ | ||
"name": "json-mock-server", | ||
"version": "0.0.1-alpha.3", | ||
"version": "0.0.1-alpha.4", | ||
"description": "Simple server with routes described as a JSON object", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
73349