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

@types/diff-match-patch

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/diff-match-patch - npm Package Compare versions

Comparing version 1.0.31 to 1.0.32

diff-match-patch/LICENSE

45

diff-match-patch/index.d.ts

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

// Type definitions for diff-match-patch v1.0.0
// Type definitions for diff-match-patch 1.0
// Project: https://www.npmjs.com/package/diff-match-patch

@@ -6,9 +6,8 @@ // Definitions by: Asana <https://asana.com>

export type Diff = [number, string];
type Diff = [number, string];
export declare class Patch {
export class patch_obj {
diffs: Diff[];
start1: number;
start2: number;
start1: number | null;
start2: number | null;
length1: number;

@@ -18,5 +17,3 @@ length2: number;

export declare class diff_match_patch {
static new(): diff_match_patch;
export class diff_match_patch {
Diff_Timeout: number;

@@ -31,4 +28,9 @@ Diff_EditCost: number;

diff_main(text1: string, text2: string, opt_checklines?: boolean, opt_deadline?: number): Diff[];
diff_bisect_(text1: string, text2: string, deadline: number): Diff[];
diff_linesToChars_(text1: string, text2: string): { chars1: string; chars2: string; lineArray: string[]; };
diff_charsToLines_(diffs: Diff[], lineArray: string[]): void;
diff_commonPrefix(text1: string, text2: string): number;
diff_commonSuffix(text1: string, text2: string): number;
diff_commonOverlap_(text1: string, text2: string): number;
diff_halfMatch_(text1: string, text2: string): string[];
diff_cleanupSemantic(diffs: Diff[]): void;

@@ -46,11 +48,20 @@ diff_cleanupSemanticLossless(diffs: Diff[]): void;

patch_make(text1: any, text2?: string): Patch[];
patch_deepCopy(patches: Patch[]): Patch[];
patch_apply(patches: Patch[], text: string): [string, boolean[]];
patch_fromText(text: string): Patch[];
patch_toText(patches: Patch[]): string;
match_main(text: string, pattern: string, loc: number): number;
match_bitap_(text: string, pattern: string, loc: number): number;
match_alphabet_(pattern: string): {[char: string]: number};
patch_addContext_(patch: patch_obj, text: string): void;
patch_make(a: string, opt_b: string | Diff[]): patch_obj[];
patch_make(a: Diff[]): patch_obj[];
patch_make(a: string, opt_b: string, opt_c: Diff[]): patch_obj[];
patch_deepCopy(patches: patch_obj[]): patch_obj[];
patch_apply(patches: patch_obj[], text: string): [string, boolean[]];
patch_addPadding(patches: patch_obj[]): string;
patch_splitMax(patches: patch_obj[]): void;
patch_fromText(text: string): patch_obj[];
patch_toText(patches: patch_obj[]): string;
}
export declare var DIFF_DELETE: number;
export declare var DIFF_INSERT: number;
export declare var DIFF_EQUAL: number;
export const DIFF_DELETE: number;
export const DIFF_INSERT: number;
export const DIFF_EQUAL: number;
{
"name": "@types/diff-match-patch",
"version": "1.0.31",
"description": "TypeScript definitions for diff-match-patch v1.0.0",
"version": "1.0.32",
"description": "TypeScript definitions for diff-match-patch",
"license": "MIT",
"author": "Asana <https://asana.com>",
"contributors": [
{
"name": "Asana",
"url": "https://asana.com"
}
],
"main": "",

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

"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "282eb05e442d984e105dc2b3b27019acab881b9c9403f0af0b8857c7863c44d5"
"typesPublisherContentHash": "374563e6248d33e50c1b1410b91620fdbf001c43e98dd46ed7c136e42062c5b1",
"typeScriptVersion": "2.0"
}

@@ -5,12 +5,10 @@ # Installation

# Summary
This package contains type definitions for diff-match-patch v1.0.0 (https://www.npmjs.com/package/diff-match-patch).
This package contains type definitions for diff-match-patch (https://www.npmjs.com/package/diff-match-patch).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/diff-match-patch
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/diff-match-patch
Additional Details
* Last updated: Fri, 23 Sep 2016 17:58:34 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: none
* Last updated: Wed, 11 Oct 2017 23:00:43 GMT
* Dependencies: none
* Global values: none

@@ -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