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

rfc6902-ordered

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rfc6902-ordered - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

src/match-moved-keys.js

6

package.json
{
"name": "rfc6902-ordered",
"version": "1.0.3",
"version": "2.0.0",
"description": "https://github.com/chbrown/rfc6902 plus object key ordering",
"main": "src/index.js",
"scripts": {
"test": "mocha",
"test": "cross-env DEBUG=rfc6902-ordered mocha",
"posttest": "npm run lint",

@@ -27,2 +27,3 @@ "lint": "eslint src test"

"dependencies": {
"debug": "^3.1.0",
"rfc6902": "^1.3.0"

@@ -32,2 +33,3 @@ },

"chai": "^4.1.2",
"cross-env": "^5.0.5",
"eslint": "^4.6.1",

@@ -34,0 +36,0 @@ "eslint-config-sane": "^0.2.0",

@@ -40,3 +40,3 @@ # rfc6902-ordered

rfc6902.applyPatch(ours, patch, theirs);
rfc6902.applyPatch(ours, patch, source, theirs);

@@ -43,0 +43,0 @@ // ours => {

@@ -5,2 +5,3 @@ 'use strict';

const addToObjectAtIndex = require('./add-to-object-at-index');
const matchMovedKeys = require('./match-moved-keys');

@@ -15,3 +16,3 @@ const _applyPatch = rfc6902.applyPatch;

function applyPatch(myPackageJson, patch, toPackageJson) {
function applyPatch(myPackageJson, patch, fromPackageJson, toPackageJson) {
if (arguments.length > 2) {

@@ -66,3 +67,7 @@ patch = patch.slice();

return _applyPatch.call(this, myPackageJson, patch);
let returnValue = _applyPatch.call(this, myPackageJson, patch);
matchMovedKeys(myPackageJson, fromPackageJson, toPackageJson);
return returnValue;
}

@@ -69,0 +74,0 @@

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