
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Recursively synchronizes two JS objects where the target becomes the source, without changing the target values for the keys that it has in common with the source.
Recursively synchronizes two JSON / Javascript objects where the target becomes the source, without changing the target values for the keys that it has in common with the source. If overwrite option is passed, existent keys will be overwritten as well. Keys that exist in the target but not in the source will be removed from the dict.
var deepSync = require('deep-sync')
deepSync(target, source, overwrite)
var baseObj = {a: 1, b:2, c:3, d: { e:4 }}
var target = {a:1, b:1}
deepSync(target, baseObj, false)
// {a:1, b:1, c:3, d: { e:4 }}
deepSync(target, baseObj, true)
// {a:1, b:2, c:3, d: { e:4 }}
Throws an error of instance TypeError for invalid input
try {
deepSync(a,b)
} catch (e) {
if (e instanceof TypeError) {
console.log('Invalid objects')
}
}
With npm do:
npm install deep-sync
With npm do:
npm test
MIT.
FAQs
Recursively synchronizes two JS objects where the target becomes the source, without changing the target values for the keys that it has in common with the source.
We found that deep-sync 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.