Socket
Socket
Sign inDemoInstall

aws-make-patch-operations

Package Overview
Dependencies
69
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aws-make-patch-operations

makes patchOperations from 2 objects


Version published
Maintainers
1
Install size
112 kB
Created

Readme

Source

make-patch-operations

makes patchOperations from 2 objects.

Usage

example.js:

var makePatchOperations = require('aws-make-patch-operations');

var oldObj = {
  a: {_a: '_x'},
  b: {_b: 2}
};

var newObj = {
  a: {_a: '_y'},
  b: {_b: 3}
};
var operations = makePatchOperations(oldObj, newObj)
console.dir(operations);
$ node ./example.js
[ { op: 'replace', path: '/a/_a', value: '_y' },
  { op: 'replace', path: '/b/_b', value: '3' } ]

Supported operations

  • add
  • remove
  • replace

FAQs

Last updated on 25 Feb 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc