Skip to content

Commit

Permalink
chore(release): compile latest source & release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Nov 27, 2019
1 parent 5bab496 commit 2fb66d7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,13 @@
#### 0.15.0 (2019-11-27)

##### Chores

* **deps:** force latest version & audit fix ([5bab4968](https://github.com/lykmapipo/env/commit/5bab4968ed686a0d931be49023c5e3a2eba7ea0b))

##### Bug Fixes

* parse object env values ([788a34f0](https://github.com/lykmapipo/env/commit/788a34f078359fdc4a9513e4bf53784101272c1a))

#### 0.14.12 (2019-11-26)

##### Chores
Expand Down
6 changes: 3 additions & 3 deletions es/index.js
Expand Up @@ -4,7 +4,7 @@ import { config } from 'dotenv';
import expandEnv from 'dotenv-expand';
import rc from 'rc';
import { sync } from 'os-locale';
import { sortedUniq, autoParse } from '@lykmapipo/common';
import { sortedUniq, autoParse, parse } from '@lykmapipo/common';
import { once, toNumber, toString, set as set$1, get as get$1, forEach, isEmpty, map, trim, uniq, compact, toLower, merge, size, last } from 'lodash';

/**
Expand Down Expand Up @@ -338,7 +338,7 @@ const getBoolean = (key, defaultValue) => {
* @author lally elias <lallyelias87@gmail.com>
* @license MIT
* @since 0.10.0
* @version 0.1.0
* @version 0.2.0
* @static
* @public
* @example
Expand All @@ -353,7 +353,7 @@ const getBoolean = (key, defaultValue) => {
*/
const getObject = (key, defaultValue = {}) => {
let value = get(key, defaultValue);
value = value ? autoParse(value) : value;
value = value ? autoParse(parse(value)) : value;
return value;
};

Expand Down
4 changes: 2 additions & 2 deletions lib/index.js
Expand Up @@ -340,7 +340,7 @@ const getBoolean = (key, defaultValue) => {
* @author lally elias <lallyelias87@gmail.com>
* @license MIT
* @since 0.10.0
* @version 0.1.0
* @version 0.2.0
* @static
* @public
* @example
Expand All @@ -355,7 +355,7 @@ const getBoolean = (key, defaultValue) => {
*/
const getObject = (key, defaultValue = {}) => {
let value = get(key, defaultValue);
value = value ? common.autoParse(value) : value;
value = value ? common.autoParse(common.parse(value)) : value;
return value;
};

Expand Down

0 comments on commit 2fb66d7

Please sign in to comment.