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

@types/json-patch

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/json-patch - npm Package Compare versions

Comparing version 0.0.30 to 0.0.31

22

json-patch/index.d.ts

@@ -12,22 +12,22 @@ // Type definitions for json-patch

interface AddPatch extends Patch {
op: 'add';
op: "add";
value: any;
}
interface RemovePatch extends Patch {
op: 'remove';
op: "remove";
}
interface ReplacePatch extends Patch {
op: 'replace';
op: "replace";
value: any;
}
interface MovePatch extends Patch {
op: 'move';
op: "move";
from: string;
}
interface CopyPatch extends Patch {
op: 'copy';
op: "copy";
from: string;
}
interface TestPatch extends Patch {
op: 'test';
op: "test";
value: any;

@@ -39,7 +39,7 @@ }

class JSONPatchError extends Error { }
class InvalidPointerError extends Error { }
class InvalidPatchError extends JSONPatchError { }
class PatchConflictError extends JSONPatchError { }
class PatchTestFailed extends Error { }
class JSONPatchError extends Error {}
class InvalidPointerError extends Error {}
class InvalidPatchError extends JSONPatchError {}
class PatchConflictError extends JSONPatchError {}
class PatchTestFailed extends Error {}
}

@@ -46,0 +46,0 @@

{
"name": "@types/json-patch",
"version": "0.0.30",
"version": "0.0.31",
"description": "TypeScript definitions for json-patch",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-patch",
"license": "MIT",

@@ -9,14 +10,17 @@ "contributors": [

"name": "vvakame",
"url": "https://github.com/vvakame"
"url": "https://github.com/vvakame",
"githubUsername": "vvakame"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/json-patch"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "8fe4b52972d95c538f682cb69fec3a734ad85fa7a73f9513bf97cc6995090bb8",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "f476a899cac3a18a451605d86b662d67dee398e778b314a186a8d7bed1203437",
"typeScriptVersion": "4.5"
}

@@ -8,10 +8,60 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-patch
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-patch.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-patch/index.d.ts)
````ts
// Type definitions for json-patch
// Project: https://github.com/bruth/jsonpatch-js
// Definitions by: vvakame <https://github.com/vvakame>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Mon, 21 Aug 2017 21:55:03 GMT
declare namespace jsonpatch {
type OpPatch = AddPatch | RemovePatch | ReplacePatch | MovePatch | CopyPatch | TestPatch;
interface Patch {
path: string;
}
interface AddPatch extends Patch {
op: "add";
value: any;
}
interface RemovePatch extends Patch {
op: "remove";
}
interface ReplacePatch extends Patch {
op: "replace";
value: any;
}
interface MovePatch extends Patch {
op: "move";
from: string;
}
interface CopyPatch extends Patch {
op: "copy";
from: string;
}
interface TestPatch extends Patch {
op: "test";
value: any;
}
function apply(document: any, patches: OpPatch[]): any;
function compile(patches: OpPatch[]): (document: any) => any;
class JSONPatchError extends Error {}
class InvalidPointerError extends Error {}
class InvalidPatchError extends JSONPatchError {}
class PatchConflictError extends JSONPatchError {}
class PatchTestFailed extends Error {}
}
export = jsonpatch;
export as namespace jsonpatch;
````
### Additional Details
* Last updated: Fri, 15 Sep 2023 20:36:37 GMT
* Dependencies: none
* Global values: jsonpatch
* Global values: `jsonpatch`
# Credits
These definitions were written by vvakame <https://github.com/vvakame>.
These definitions were written by [vvakame](https://github.com/vvakame).

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