New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json-patch

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-patch - npm Package Compare versions

Comparing version 0.6.1 to 0.7.0

41

jsonpatch.js

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

// Generated by CoffeeScript 1.12.3
// Generated by CoffeeScript 1.12.7
(function() {

@@ -7,14 +7,16 @@ var indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },

(function(root, factory) {
(function(factory) {
var root;
root = typeof window !== "undefined" && window !== null ? window : typeof global !== "undefined" && global !== null ? global : this;
if (typeof exports !== 'undefined') {
return factory(root, exports);
return factory(exports);
} else if (typeof define === 'function' && define.amd) {
return define(['exports'], function(exports) {
return root.jsonpatch = factory(root, exports);
return root.jsonpatch = factory(exports);
});
} else {
return root.jsonpatch = factory(root, {});
return root.jsonpatch = factory({});
}
})(this, function(root) {
var AddPatch, CopyPatch, InvalidPatchError, InvalidPointerError, JSONPatch, JSONPatchError, JSONPointer, MovePatch, PatchConflictError, PatchTestFailed, RemovePatch, ReplacePatch, TestPatch, _isEqual, apply, compile, escapedSlash, escapedTilde, hasOwnProperty, isArray, isEqual, isObject, isString, operationMap, toString;
})(function(exports) {
var AddPatch, CopyPatch, InvalidPatchError, InvalidPointerError, JSONPatch, JSONPatchError, JSONPointer, MovePatch, PatchConflictError, PatchTestFailed, RemovePatch, ReplacePatch, TestPatch, _isEqual, accessorMatch, apply, compile, escapedSlash, escapedTilde, hasOwnProperty, isArray, isEqual, isObject, isString, operationMap, toString;
toString = Object.prototype.toString;

@@ -169,2 +171,3 @@ hasOwnProperty = Object.prototype.hasOwnProperty;

escapedTilde = /~0/g;
accessorMatch = /^[-+]?\d+$/;
JSONPointer = (function() {

@@ -207,3 +210,3 @@ function JSONPointer(path) {

accessor = reference.length;
} else if (/^[-+]?\d+$/.test(accessor)) {
} else if (accessorMatch.test(accessor)) {
accessor = parseInt(accessor, 10);

@@ -530,15 +533,15 @@ } else {

};
root.version = '0.6.1';
root.apply = apply;
root.compile = compile;
root.JSONPointer = JSONPointer;
root.JSONPatch = JSONPatch;
root.JSONPatchError = JSONPatchError;
root.InvalidPointerError = InvalidPointerError;
root.InvalidPatchError = InvalidPatchError;
root.PatchConflictError = PatchConflictError;
root.PatchTestFailed = PatchTestFailed;
return root;
exports.version = '0.7.0';
exports.apply = apply;
exports.compile = compile;
exports.JSONPointer = JSONPointer;
exports.JSONPatch = JSONPatch;
exports.JSONPatchError = JSONPatchError;
exports.InvalidPointerError = InvalidPointerError;
exports.InvalidPatchError = InvalidPatchError;
exports.PatchConflictError = PatchConflictError;
exports.PatchTestFailed = PatchTestFailed;
return exports;
});
}).call(this);
{
"name": "json-patch",
"author": "Byron Ruth <b@devel.io>",
"version": "0.6.1",
"version": "0.7.0",
"description": "A JavaScript implementation of the JSON Object Notation (JSON) Patch http://tools.ietf.org/html/rfc6902 and JSON Pointer http://tools.ietf.org/html/rfc6901 specifications.",

@@ -6,0 +6,0 @@ "license": "BSD",

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