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

@contember/config-loader

Package Overview
Dependencies
Maintainers
5
Versions
265
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/config-loader - npm Package Compare versions

Comparing version 0.8.0-alpha.1 to 0.8.0-alpha.2

2

dist/src/config/Merger.js

@@ -6,3 +6,3 @@ "use strict";

return values
.reduce((acc, val) => [...acc, ...Object.entries(val)], [])
.reduce((acc, val) => [...acc, ...Object.entries(val || {})], [])
.reduce((acc, [key, value]) => {

@@ -9,0 +9,0 @@ if (!acc.hasOwnProperty(key)) {

{
"name": "@contember/config-loader",
"version": "0.8.0-alpha.1",
"version": "0.8.0-alpha.2",
"license": "Apache-2.0",

@@ -16,3 +16,3 @@ "main": "dist/src/index.js",

},
"gitHead": "c20d28db4163768b7e479fabf8ffb2d15a7fc153"
"gitHead": "dfc666f11f4d24a67b260bf57f62b420657d51c2"
}
class Merger {
static merge<P = Merger.ValuePrimitive>(...values: Merger.ValueObject<P>[]): Merger.ValueObject<P> {
return values
.reduce<[string, Merger.ValueItem<P>][]>((acc, val) => [...acc, ...Object.entries(val)], [])
.reduce<[string, Merger.ValueItem<P>][]>((acc, val) => [...acc, ...Object.entries(val || {})], [])
.reduce<Merger.ValueObject<P>>((acc, [key, value]) => {

@@ -6,0 +6,0 @@ if (!acc.hasOwnProperty(key)) {

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