configuration-master
Advanced tools
Comparing version 0.1.3 to 0.1.4
13
index.js
@@ -16,2 +16,3 @@ const _ = require('lodash'); | ||
const _myConfig = {}; | ||
_myConfig[COMMON_KEY] = {}; | ||
@@ -75,5 +76,11 @@ const _processConfig = (data) => | ||
{ | ||
const fpath = path.resolve(path.dirname(require.main.filename), filename); | ||
const tmp = require(fpath); | ||
this.setConfig(tmp, namespace); | ||
if (__non_webpack_require__) | ||
{ | ||
const tmp = __non_webpack_require__(filename); | ||
this.setConfig(tmp, namespace); | ||
} | ||
else { | ||
const tmp = require(filename); | ||
this.setConfig(tmp, namespace); | ||
} | ||
} | ||
@@ -80,0 +87,0 @@ } |
{ | ||
"name": "configuration-master", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Simple configuration load/access tool.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,2 +6,5 @@ ## Configuration Master | ||
#### Release Notes | ||
v0.1.4 | ||
- adjust method for loading configs. it is now the responsibility of the caller to provide the correct path. | ||
v0.1.3 | ||
@@ -8,0 +11,0 @@ - add additional tests |
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
6098
166
72