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

@augment-vir/common

Package Overview
Dependencies
Maintainers
1
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@augment-vir/common - npm Package Compare versions

Comparing version 19.4.1 to 19.4.2

29

dist/cjs/augments/object/merge-deep.js

@@ -21,15 +21,20 @@ "use strict";

inputs.forEach((individualInput) => {
result = {
...result,
...individualInput,
};
Object.entries(individualInput).forEach(([key, value,]) => {
if ((0, runtime_type_of_1.isRuntimeTypeOf)(value, 'object')) {
const mergePropsArray = mergeProps[key] || [];
if (!mergeProps[key]) {
mergeProps[key] = mergePropsArray;
try {
Object.entries(individualInput).forEach(([key, value,]) => {
if ((0, runtime_type_of_1.isRuntimeTypeOf)(value, 'object')) {
const mergePropsArray = mergeProps[key] || [];
if (!mergeProps[key]) {
mergeProps[key] = mergePropsArray;
}
mergePropsArray.push(value);
}
mergePropsArray.push(value);
}
});
});
result = {
...result,
...individualInput,
};
}
catch (error) {
/** Ignore errors, such as individualInput not actually being an object. */
}
});

@@ -36,0 +41,0 @@ Object.entries(mergeProps).forEach(([key, mergeValues,]) => {

@@ -18,15 +18,20 @@ import { isRuntimeTypeOf } from '../runtime-type-of';

inputs.forEach((individualInput) => {
result = {
...result,
...individualInput,
};
Object.entries(individualInput).forEach(([key, value,]) => {
if (isRuntimeTypeOf(value, 'object')) {
const mergePropsArray = mergeProps[key] || [];
if (!mergeProps[key]) {
mergeProps[key] = mergePropsArray;
try {
Object.entries(individualInput).forEach(([key, value,]) => {
if (isRuntimeTypeOf(value, 'object')) {
const mergePropsArray = mergeProps[key] || [];
if (!mergeProps[key]) {
mergeProps[key] = mergePropsArray;
}
mergePropsArray.push(value);
}
mergePropsArray.push(value);
}
});
});
result = {
...result,
...individualInput,
};
}
catch (error) {
/** Ignore errors, such as individualInput not actually being an object. */
}
});

@@ -33,0 +38,0 @@ Object.entries(mergeProps).forEach(([key, mergeValues,]) => {

{
"name": "@augment-vir/common",
"version": "19.4.1",
"version": "19.4.2",
"homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/common",

@@ -5,0 +5,0 @@ "bugs": {

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