Skip to content

Commit

Permalink
Fixing the babelrc issue when used in other projects
Browse files Browse the repository at this point in the history
  • Loading branch information
shidhincr committed Jun 26, 2016
1 parent 54ec5f2 commit 5c9dd7c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reconfig",
"main": "reconfig.js",
"version": "1.4.2",
"main": "build/reconfig.js",
"version": "1.5.0",
"homepage": "https://github.com/namshi/reconfig",
"authors": [
"Alex Nadalin <alessandro.nadalin@gmail.com>"
Expand Down
2 changes: 1 addition & 1 deletion build/reconfig.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/reconfig.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"type": "git",
"url": "git://github.com/namshi/reconfig.git"
},
"files":[
"build"
],
"keywords": [
"config",
"configuration",
Expand Down
6 changes: 5 additions & 1 deletion reconfig.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class Reconfig {
constructor(config, {envPrefix, separator, paramsInterpolation=[':', '']}={}) { // @TODO: Breaking changes for backward compatibility. Check with Alex
this._envPrefix = envPrefix;
this._separator = separator;
this._paramsInterpolation = paramsInterpolation;
this._paramsInterpolation = paramsInterpolation.map( _.escapeRegExp );
this.set(config);
}

Expand Down Expand Up @@ -82,6 +82,10 @@ export default class Reconfig {
* @return {*}
*/
resolveParameters(value, parameters) {
if(!_.isObject(parameters)){
return value;
}

for (let property in parameters) {
if (value) {
value = value.replace(
Expand Down

0 comments on commit 5c9dd7c

Please # to comment.