@untool/core
Advanced tools
Comparing version 0.15.1 to 0.16.0
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="0.16.0"></a> | ||
# [0.16.0](https://github.com/untool/untool/compare/v0.15.1...v0.16.0) (2018-08-06) | ||
### Bug Fixes | ||
* **core:** apply [#96](https://github.com/untool/untool/issues/96) to environmentalize ([edac175](https://github.com/untool/untool/commit/edac175)) | ||
<a name="0.15.1"></a> | ||
@@ -8,0 +19,0 @@ ## [0.15.1](https://github.com/untool/untool/compare/v0.15.0...v0.15.1) (2018-08-03) |
@@ -18,6 +18,5 @@ const isPlainObject = require('is-plain-object'); | ||
if (regExp.test(item)) { | ||
return item.replace(regExp, (_, key) => { | ||
const result = (_env[key] = env[key] || ''); | ||
return regExp.test(result) ? replaceRecursive(result) : result; | ||
}); | ||
return item.replace(regExp, (_, key) => | ||
replaceRecursive((_env[key] = env[key] || '')) | ||
); | ||
} | ||
@@ -24,0 +23,0 @@ return item; |
{ | ||
"name": "@untool/core", | ||
"version": "0.15.1", | ||
"version": "0.16.0", | ||
"description": "untool core", | ||
@@ -5,0 +5,0 @@ "main": "lib/core.js", |
@@ -188,6 +188,6 @@ # `@untool/core` | ||
### `bootstrap([...args])` (build only) | ||
### `bootstrap([overrides], [...args])` (build only) | ||
This is a semi-private function that is mainly being used internally, for example by [`@untool/yargs`](https://github.com/untool/untool/blob/master/packages/yargs/README.md). It returns the core mixin container - this allows you to call all defined mixin methods. | ||
You will only ever have to call it if you want to use `@untool/core` programmatically. Whatever arguments it receives are being passed along to the core container's mixins' constructors. | ||
You will only ever have to call it if you want to use `@untool/core` programmatically. You can pass it an `overrides` object that will be merged into the main config object. Whatever other arguments it receives are being passed along to the core container's mixins' constructors. |
22018
242