@untool/core
Advanced tools
Comparing version 0.12.1 to 0.14.0
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="0.14.0"></a> | ||
# [0.14.0](https://github.com/untool/untool/compare/v0.13.0...v0.14.0) (2018-07-25) | ||
### Bug Fixes | ||
* **core:** take devDependencies into account when resolving presets ([bb30749](https://github.com/untool/untool/commit/bb30749)) | ||
<a name="0.12.1"></a> | ||
@@ -8,0 +19,0 @@ ## [0.12.1](https://github.com/untool/untool/compare/v0.12.0...v0.12.1) (2018-07-09) |
@@ -96,3 +96,3 @@ const debug = require('debug')('untool:config'); | ||
const loadSettings = (context, { dependencies }) => { | ||
const loadSettings = (context, { dependencies = {}, devDependencies = {} }) => { | ||
const result = loadConfig(context); | ||
@@ -103,10 +103,16 @@ const settings = { | ||
if (!settings.presets) { | ||
settings.presets = Object.keys(dependencies).filter((key) => { | ||
try { | ||
return loadConfig(context, key); | ||
} catch (error) { | ||
if (!isResolveError(error)) throw error; | ||
return null; | ||
} | ||
}); | ||
settings.presets = Object.keys(dependencies) | ||
.concat( | ||
process.env.NODE_ENV !== 'production' | ||
? Object.keys(devDependencies) | ||
: [] | ||
) | ||
.filter((key) => { | ||
try { | ||
return loadConfig(context, key); | ||
} catch (error) { | ||
if (!isResolveError(error)) throw error; | ||
return null; | ||
} | ||
}); | ||
} | ||
@@ -113,0 +119,0 @@ return settings; |
{ | ||
"name": "@untool/core", | ||
"version": "0.12.1", | ||
"version": "0.14.0", | ||
"description": "untool core", | ||
@@ -33,3 +33,3 @@ "main": "lib/core.js", | ||
"lodash.mergewith": "^4.6.1", | ||
"mixinable": "^3.0.0", | ||
"mixinable": "^3.1.2", | ||
"supports-color": "^5.4.0" | ||
@@ -36,0 +36,0 @@ }, |
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
21108
240
5
Updatedmixinable@^3.1.2