
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
deep-object-changes
Advanced tools
Compares two objects, an original and an updated version and returns an object with only the changes.
Compares two objects, an original and an updated version and returns an object with only the changes.
Will deep compare objects recursively, but will only shallow compare arrays.
This module is useful for working out the bare minimum payload needed to send to a server.
import deepObjectChanges from 'deep-object-changes';
const EXAMPLE_USER_RES = {
firstName: 'Emperor',
lastName: 'Palpatine',
age: 75,
location: {
street: 'Death Star',
postCode: 'SPACE'
}
};
const EXAMPLE_CHANGED_USER = {
firstName: 'Emperor',
lastName: 'Palpatine',
age: 85,
location: {
street: 'Death Star',
postCode: 'GALAXY'
}
}
deepObjectChanges(EXAMPLE_USER_RES, EXAMPLE_CHANGED_USER);
/**
Outputs:
{
age: 85,
location: {
postCode: 'GALAXY'
}
}
*/
FAQs
Compares two objects, an original and an updated version and returns an object with only the changes.
The npm package deep-object-changes receives a total of 17 weekly downloads. As such, deep-object-changes popularity was classified as not popular.
We found that deep-object-changes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.