rabbitmq-manager
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -5,5 +5,6 @@ #!/usr/bin/env node | ||
Object.defineProperty(global, '__config', { | ||
value:require('path').join(__dirname, 'utils', 'config.json') | ||
value:require('path').join(process.env.HOME, '.rabbitmq-manager', 'config.json') | ||
}); | ||
require('./utils/setup'); | ||
switch(process.argv[2]){ | ||
@@ -10,0 +11,0 @@ case "config": |
@@ -1,2 +0,2 @@ | ||
var config = require('../utils/config'); | ||
var config = require(__config); | ||
@@ -3,0 +3,0 @@ delete config['default']; |
@@ -1,1 +0,1 @@ | ||
require('fs').writeFileSync(process.argv[3] || 'config.json', require('../utils/config').pretty()); | ||
require('fs').writeFileSync(process.argv[3] || 'config.json', require(__config).pretty()); |
@@ -1,2 +0,2 @@ | ||
var config = require('../utils/config'), | ||
var config = require(__config), | ||
fs = require('fs'), | ||
@@ -3,0 +3,0 @@ schema = require('../utils/schema'); |
@@ -1,2 +0,2 @@ | ||
var config = require('../utils/config'), | ||
var config = require(__config), | ||
fs = require('fs'), | ||
@@ -3,0 +3,0 @@ readline = require('readline'), |
{ | ||
"name": "rabbitmq-manager", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A RabbitMQ monitoring system written in NodeJS.", | ||
@@ -5,0 +5,0 @@ "author": { |
var args = require('minimist')(process.argv.slice(3)), | ||
config = require('./config'); | ||
config = require(__config); | ||
@@ -4,0 +4,0 @@ var conf = args.c || args.conf || args.config, |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
19133
17
368
12