Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
rfc6902-ordered
Advanced tools
https://github.com/chbrown/rfc6902 plus object key ordering
Motivated by https://github.com/chbrown/rfc6902/issues/22
The same as https://github.com/chbrown/rfc6902, except applyPatch
can take an optional third parameter. It can use the output
param of createPatch
to preserve object key order on the object you're patching.
const rfc6902 = require('rfc6902-ordered');
let source = {
key1: 1,
key2: 2
};
let theirs = {
key1: 1,
key3: 3,
key2: 2
};
let patch = rfc6902.createPatch(source, theirs);
// patch => [
// { op: 'add', path: '/key3', value: 3 }
// ]
let ours = {
key1: 1,
key2: 2,
key4: 4
};
rfc6902.applyPatch(ours, patch, source, theirs);
// ours => {
// key1: 1,
// key3: 3,
// key2: 2,
// key4: 4
// }
FAQs
https://github.com/chbrown/rfc6902 plus object key ordering
We found that rfc6902-ordered demonstrated a healthy version release cadence and project activity because the last version was released less than 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.