Comparing version 2.2.2 to 2.2.3
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46533
934