New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@untool/core

Package Overview
Dependencies
Maintainers
5
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@untool/core - npm Package Compare versions

Comparing version 0.12.1 to 0.14.0

11

CHANGELOG.md

@@ -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)

24

lib/config.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc