make-patch-operations
makes patchOperations from 2 objects.
Usage
example.js:
var makePatchOperations = ; var oldObj = a: _a: '_x' b: _b: 2; var newObj = a: _a: '_y' b: _b: 3;var operations = consolediroperations;
$ node ./example.js
[ { op: 'replace', path: '/a/_a', value: '_y' },
{ op: 'replace', path: '/b/_b', value: '3' } ]
Supported operations
- add
- remove
- replace