rfc6902-ordered
Advanced tools
Comparing version 1.0.3 to 2.0.0
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7884
6
138
2
6
+ Addeddebug@^3.1.0
+ Addeddebug@3.2.7(transitive)
+ Addedms@2.1.3(transitive)