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

rfc6902

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rfc6902 - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

3

diff.d.ts

@@ -54,3 +54,4 @@ import { Pointer } from './pointer';

export declare type Operation = AddOperation | RemoveOperation | ReplaceOperation | MoveOperation | CopyOperation | TestOperation;
export declare function isDestructive({op}: Operation): boolean;
export declare type Patch = Array<Operation>;
export declare function isDestructive({ op }: Operation): boolean;
/**

@@ -57,0 +58,0 @@ subtract(a, b) returns the keys in `a` that are not in `b`.

@@ -193,3 +193,3 @@ "use strict";

}
else {
else { // replace
var replace_ptr = ptr.add(String(array_operation.index + padding));

@@ -196,0 +196,0 @@ var replace_operations = diffAny(array_operation.original, array_operation.value, replace_ptr);

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

import { Operation, TestOperation } from './diff';
import { Operation, Patch, TestOperation } from './diff';
export { Operation, Patch, TestOperation };
/**

@@ -3,0 +4,0 @@ Apply a 'application/json-patch+json'-type patch to an object.

{
"name": "rfc6902",
"version": "2.2.2",
"version": "2.2.3",
"description": "Complete implementation of RFC6902 (patch and diff)",

@@ -19,15 +19,15 @@ "keywords": [

"devDependencies": {
"@types/js-yaml": "^3.9.1",
"@types/js-yaml": "^3.11.1",
"@types/mocha": "^2.2.43",
"@types/node": "^8.0.33",
"coveralls": "^2.13.3",
"@types/node": "^10.3.2",
"coveralls": "^3.0.1",
"istanbul": "0.4.5",
"js-yaml": "3.10.0",
"js-yaml": "3.12.0",
"mocha": "^3.5.3",
"mocha-lcov-reporter": "1.3.0",
"rollup": "^0.50.0",
"typescript": "^2.5.3"
"rollup": "^0.60.4",
"typescript": "^2.9.1"
},
"scripts": {
"prepublish": "tsc -t ES5 -m commonjs -d",
"prepare": "tsc -t ES5 -m commonjs -d",
"pretest": "tsc -p tests -t ES5 -m commonjs",

@@ -34,0 +34,0 @@ "test": "istanbul cover _mocha -- tests/ -R spec",

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