Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

config-extends

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-extends - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

.github/ISSUE_TEMPLATE/bug_report.md

0

.vscode/launch.json

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

2

package.json
{
"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

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