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

fast-json-patch

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-json-patch - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

.idea/codeStyleSettings.xml

2

package.json
{
"name": "fast-json-patch",
"version": "0.3.5",
"version": "0.3.6",
"description": "JSON-Patch allows you to update a JSON document by sending the changes rather than the whole document.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/Starcounter-Jack/JSON-Patch",

@@ -148,2 +148,7 @@ JSON-Patch

#### 0.3.6 (Nov 14, 2013)
Update:
- use the new record type names that landed in Chrome Canary (http://wiki.ecmascript.org/doku.php?id=harmony:observe - listed at 10/29/2013)
#### 0.3.5 (Oct 28, 2013)

@@ -150,0 +155,0 @@

@@ -1,2 +0,2 @@

// json-patch-duplex.js 0.3.5
// json-patch-duplex.js 0.3.6
// (c) 2013 Joachim Wester

@@ -66,3 +66,3 @@ // MIT license

var observeOps = {
'new': function (patches, path) {
add: function (patches, path) {
var patch = {

@@ -75,3 +75,3 @@ op: "add",

},
deleted: function (patches, path) {
'delete': function (patches, path) {
var patch = {

@@ -83,3 +83,3 @@ op: "remove",

},
updated: function (patches, path) {
update: function (patches, path) {
var patch = {

@@ -212,3 +212,19 @@ op: "replace",

if (!(arr[a].name === 'length' && _isArray(arr[a].object)) && !(arr[a].name === '__Jasmine_been_here_before__')) {
observeOps[arr[a].type].call(arr[a], patches, getPath(root, arr[a].object));
var type = arr[a].type;
switch (type) {
case 'new':
type = 'add';
break;
case 'deleted':
type = 'delete';
break;
case 'updated':
type = 'update';
break;
}
observeOps[type].call(arr[a], patches, getPath(root, arr[a].object));
}

@@ -215,0 +231,0 @@ a++;

@@ -1,2 +0,2 @@

// json-patch-duplex.js 0.3.5
// json-patch-duplex.js 0.3.6
// (c) 2013 Joachim Wester

@@ -73,3 +73,3 @@ // MIT license

var observeOps = {
'new': function (patches:any[], path) { //single quotes needed because 'new' is a keyword in IE8
add: function (patches:any[], path) {
var patch = {

@@ -81,3 +81,3 @@ op: "add",

},
deleted: function (patches:any[], path) {
'delete': function (patches:any[], path) { //single quotes needed because 'delete' is a keyword in IE8
var patch = {

@@ -89,3 +89,3 @@ op: "remove",

},
updated: function (patches:any[], path) {
update: function (patches:any[], path) {
var patch = {

@@ -226,3 +226,21 @@ op: "replace",

) {
observeOps[arr[a].type].call(arr[a], patches, getPath(root, arr[a].object));
var type = arr[a].type;
//old record type names before 10/29/2013 (http://wiki.ecmascript.org/doku.php?id=harmony:observe)
//this block can be removed when Chrome 33 stable is released
switch(type) {
case 'new':
type = 'add';
break;
case 'deleted':
type = 'delete';
break;
case 'updated':
type = 'update';
break;
}
observeOps[type].call(arr[a], patches, getPath(root, arr[a].object));
}

@@ -229,0 +247,0 @@ a++;

@@ -1,2 +0,2 @@

// json-patch.js 0.3.5
// json-patch.js 0.3.6
// (c) 2013 Joachim Wester

@@ -3,0 +3,0 @@ // MIT license

@@ -1,2 +0,2 @@

// json-patch.js 0.3.5
// json-patch.js 0.3.6
// (c) 2013 Joachim Wester

@@ -3,0 +3,0 @@ // MIT license

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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