config-extends
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ --- |
@@ -0,0 +0,0 @@ const ConfigExtends = require('../lib/config-extends') |
@@ -0,0 +0,0 @@ const ConfigExtends = require('../lib/config-extends') |
@@ -0,0 +0,0 @@ const menus = { |
@@ -0,0 +0,0 @@ const { version } = require('../package.json') |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ # Contributing to Transcriptase |
@@ -0,0 +0,0 @@ const dircompare = require('dir-compare'); |
@@ -0,0 +0,0 @@ class ConfigExtends |
@@ -233,4 +233,15 @@ const Path = require('path'); | ||
_extend(obj, base){ | ||
if(Array.isArray(base)) | ||
return base; | ||
if(Array.isArray(base)){ | ||
if(!Array.isArray(obj))return base; | ||
for(let i =0;i<base.length;i++){ | ||
let baseItem = base[i]; | ||
if(baseItem.name){ | ||
let objItem = obj.find(p=> p.name == baseItem.name ); | ||
if(!objItem) | ||
obj.push(baseItem); | ||
else | ||
this._extend(objItem, baseItem); | ||
} | ||
} | ||
} | ||
for(let k in base){ | ||
@@ -237,0 +248,0 @@ if(k=='_extends' || k=='_completed')continue; |
{ | ||
"name": "config-extends", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Allow to extend yaml or json files configuration", | ||
@@ -5,0 +5,0 @@ "main": "./lib/config-extends", |
@@ -0,0 +0,0 @@ # Config Extends |
@@ -0,0 +0,0 @@ const assert = require('assert'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85
565
112498