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.28 to 0.0.29

34

json-patch/index.d.ts

@@ -7,27 +7,27 @@ // Type definitions for json-patch

declare namespace jsonpatch {
type OpPatch = AddPath | RemovePath | ReplacePath | MovePath | CopyPath | TestPath;
type OpPatch = AddPatch | RemovePatch | ReplacePatch | MovePatch | CopyPatch | TestPatch;
interface Patch {
op: string;
path: string;
}
interface AddPath extends Patch {
path: string;
interface AddPatch extends Patch {
op: 'add';
value: any;
}
interface RemovePath extends Patch {
path: string;
interface RemovePatch extends Patch {
op: 'remove';
}
interface ReplacePath extends Patch {
path: string;
interface ReplacePatch extends Patch {
op: 'replace';
value: any;
}
interface MovePath extends Patch {
interface MovePatch extends Patch {
op: 'move';
from: string;
path: string;
}
interface CopyPath extends Patch {
interface CopyPatch extends Patch {
op: 'copy';
from: string;
path: string;
}
interface TestPath extends Patch {
path: string;
interface TestPatch extends Patch {
op: 'test';
value: any;

@@ -38,2 +38,8 @@ }

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 { }
}

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

{
"name": "@types/json-patch",
"version": "0.0.28",
"version": "0.0.29",
"description": "TypeScript definitions for json-patch",
"license": "MIT",
"author": "vvakame <https://github.com/vvakame/>",
"contributors": [
{
"name": "vvakame",
"url": "https://github.com/vvakame/"
}
],
"main": "",

@@ -14,4 +19,5 @@ "repository": {

"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "9c3c4d72dff94d8c5f5af335effb8ad68f8c84cc4919cb2e9fadf6d8e154503b"
"peerDependencies": {},
"typesPublisherContentHash": "73a234ee8984f05df1e65d6018e04158c7c9696e1be9abd316340be1efc004c2",
"typeScriptVersion": "2.0"
}

@@ -8,9 +8,7 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/json-patch
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-patch
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: UMD
* Library Dependencies: none
* Module Dependencies: none
* Last updated: Mon, 10 Apr 2017 21:51:00 GMT
* Dependencies: none
* Global values: jsonpatch

@@ -17,0 +15,0 @@

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