Socket
Socket
Sign inDemoInstall

@sanity/diff-match-patch

Package Overview
Dependencies
Maintainers
33
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.4 to 0.0.5

2

lib/cjs/diff/bisect.cjs.d.ts

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

import { Diff } from './diff';
import { Diff } from './diff.cjs';
/**

@@ -3,0 +3,0 @@ * Find the 'middle snake' of a diff, split the problem in two

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

import { Diff } from './diff';
import { Diff } from './diff.cjs';
/**

@@ -3,0 +3,0 @@ * Rehydrate the text in a diff from a string of line hashes to real lines of

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

import { Diff } from './diff';
import { Diff } from './diff.cjs';
/**

@@ -3,0 +3,0 @@ * Reduce the number of edits by eliminating semantically trivial equalities.

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

import type { Diff } from './diff';
import type { Diff } from './diff.cjs';
export declare function cloneDiff(diff: Diff): Diff;

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

import { Diff, InternalDiffOptions } from './diff';
import { Diff, InternalDiffOptions } from './diff.cjs';
/**

@@ -3,0 +3,0 @@ * Find the differences between two texts. Assumes that the texts do not

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

import { Diff } from './diff';
import { Diff } from './diff.cjs';
/**

@@ -3,0 +3,0 @@ * Compute and return the source text (all equalities and deletions).

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

import { Diff } from './diff';
import { Diff } from './diff.cjs';
/**

@@ -3,0 +3,0 @@ * Given the original text1, and an encoded string which describes the

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

import { Diff } from './diff';
import { Diff } from './diff.cjs';
/**

@@ -3,0 +3,0 @@ * Compute the Levenshtein distance; the number of inserted, deleted or

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

import { Diff, InternalDiffOptions } from './diff';
import { Diff, InternalDiffOptions } from './diff.cjs';
/**

@@ -3,0 +3,0 @@ * Do a quick line-level diff on both strings, then rediff the parts for

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

import { Diff } from './diff';
import { Diff } from './diff.cjs';
/**

@@ -3,0 +3,0 @@ * Crush the diff into an encoded string which describes the operations

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

import { Diff } from './diff';
import { Diff } from './diff.cjs';
/**

@@ -3,0 +3,0 @@ * loc is a location in text1, compute and return the equivalent location in

@@ -1,8 +0,8 @@

export { diff as makeDiff, DiffType, type Diff, type DiffOptions, } from './diff/diff';
export { cleanupSemantic, cleanupEfficiency } from './diff/cleanup';
export { match } from './match/match';
export { type Patch } from './patch/createPatchObject';
export { make as makePatches, type MakePatchOptions } from './patch/make';
export { apply as applyPatches, type PatchResult, type ApplyPatchOptions, } from './patch/apply';
export { stringify as stringifyPatches, stringifyPatch, } from './patch/stringify';
export { parse as parsePatch } from './patch/parse';
export { diff as makeDiff, DiffType, type Diff, type DiffOptions, } from './diff/diff.js';
export { cleanupSemantic, cleanupEfficiency } from './diff/cleanup.js';
export { match } from './match/match.js';
export { type Patch } from './patch/createPatchObject.js';
export { make as makePatches, type MakePatchOptions } from './patch/make.js';
export { apply as applyPatches, type PatchResult, type ApplyPatchOptions, } from './patch/apply.js';
export { stringify as stringifyPatches, stringifyPatch, } from './patch/stringify.js';
export { parse as parsePatch } from './patch/parse.js';

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

import { Patch } from './createPatchObject';
import { Patch } from './createPatchObject.cjs';
export interface ApplyPatchOptions {

@@ -3,0 +3,0 @@ margin: number;

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

import { Diff } from '../diff/diff';
import { Diff } from '../diff/diff.cjs';
/**

@@ -3,0 +3,0 @@ * Class representing one patch operation.

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

import { Diff } from '../diff/diff';
import { Patch } from './createPatchObject';
import { Diff } from '../diff/diff.cjs';
import { Patch } from './createPatchObject.cjs';
export interface MakePatchOptions {

@@ -4,0 +4,0 @@ margin: number;

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

import { Patch } from './createPatchObject';
import { Patch } from './createPatchObject.cjs';
/**

@@ -3,0 +3,0 @@ * Parse a textual representation of patches and return a list of Patch objects.

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

import { Patch } from './createPatchObject';
import { Patch } from './createPatchObject.cjs';
/**

@@ -3,0 +3,0 @@ * Look through the patches and break up any which are longer than the maximum

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

import { Patch } from './createPatchObject';
import { Patch } from './createPatchObject.cjs';
export declare function stringify(patches: Patch[]): string;
export declare function stringifyPatch(patch: Patch): string;

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

import { Diff } from './diff';
import { Diff } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Find the 'middle snake' of a diff, split the problem in two

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

import { _diff, DiffType } from './diff';
import { _diff, DiffType } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Find the 'middle snake' of a diff, split the problem in two

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

import { Diff } from './diff';
import { Diff } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Rehydrate the text in a diff from a string of line hashes to real lines of

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

import { Diff } from './diff';
import { Diff } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Reduce the number of edits by eliminating semantically trivial equalities.

@@ -1,6 +0,6 @@

import { cloneDiff } from './clone';
import { commonOverlap_ } from './commonOverlap';
import { commonPrefix } from './commonPrefix';
import { commonSuffix } from './commonSuffix';
import { DiffType } from './diff';
import { cloneDiff } from './clone.js';
import { commonOverlap_ } from './commonOverlap.js';
import { commonPrefix } from './commonPrefix.js';
import { commonSuffix } from './commonSuffix.js';
import { DiffType } from './diff.js';
/**

@@ -7,0 +7,0 @@ * Reduce the number of edits by eliminating semantically trivial equalities.

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

import type { Diff } from './diff';
import type { Diff } from './diff.js';
export declare function cloneDiff(diff: Diff): Diff;

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

import { Diff, InternalDiffOptions } from './diff';
import { Diff, InternalDiffOptions } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Find the differences between two texts. Assumes that the texts do not

@@ -1,5 +0,5 @@

import { bisect_ } from './bisect';
import { DiffType, _diff } from './diff';
import { halfMatch_ } from './halfMatch';
import { lineMode_ } from './lineMode';
import { bisect_ } from './bisect.js';
import { DiffType, _diff } from './diff.js';
import { halfMatch_ } from './halfMatch.js';
import { lineMode_ } from './lineMode.js';
/**

@@ -6,0 +6,0 @@ * Find the differences between two texts. Assumes that the texts do not

@@ -1,6 +0,6 @@

import { isHighSurrogate, isLowSurrogate } from '../utils/surrogatePairs';
import { cleanupMerge } from './cleanup';
import { commonPrefix } from './commonPrefix';
import { commonSuffix } from './commonSuffix';
import { compute_ } from './compute';
import { isHighSurrogate, isLowSurrogate } from '../utils/surrogatePairs.js';
import { cleanupMerge } from './cleanup.js';
import { commonPrefix } from './commonPrefix.js';
import { commonSuffix } from './commonSuffix.js';
import { compute_ } from './compute.js';
/**

@@ -7,0 +7,0 @@ * The data structure representing a diff is an array of tuples:

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

import { Diff } from './diff';
import { Diff } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Compute and return the source text (all equalities and deletions).

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

import { DiffType } from './diff';
import { DiffType } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Compute and return the source text (all equalities and deletions).

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

import { Diff } from './diff';
import { Diff } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Given the original text1, and an encoded string which describes the

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

import { DiffType } from './diff';
import { DiffType } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Given the original text1, and an encoded string which describes the

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

import { commonPrefix } from './commonPrefix';
import { commonSuffix } from './commonSuffix';
import { commonPrefix } from './commonPrefix.js';
import { commonSuffix } from './commonSuffix.js';
/**

@@ -4,0 +4,0 @@ * Do the two texts share a substring which is at least half the length of the

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

import { Diff } from './diff';
import { Diff } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Compute the Levenshtein distance; the number of inserted, deleted or

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

import { DiffType } from './diff';
import { DiffType } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Compute the Levenshtein distance; the number of inserted, deleted or

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

import { Diff, InternalDiffOptions } from './diff';
import { Diff, InternalDiffOptions } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Do a quick line-level diff on both strings, then rediff the parts for

@@ -1,5 +0,5 @@

import { charsToLines_ } from './charsToLines';
import { cleanupSemantic } from './cleanup';
import { _diff, DiffType } from './diff';
import { linesToChars_ } from './linesToChars';
import { charsToLines_ } from './charsToLines.js';
import { cleanupSemantic } from './cleanup.js';
import { _diff, DiffType } from './diff.js';
import { linesToChars_ } from './linesToChars.js';
/**

@@ -6,0 +6,0 @@ * Do a quick line-level diff on both strings, then rediff the parts for

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

import { Diff } from './diff';
import { Diff } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Crush the diff into an encoded string which describes the operations

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

import { DiffType } from './diff';
import { DiffType } from './diff.js';
/**

@@ -3,0 +3,0 @@ * Crush the diff into an encoded string which describes the operations

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

import { Diff } from './diff';
import { Diff } from './diff.js';
/**

@@ -3,0 +3,0 @@ * loc is a location in text1, compute and return the equivalent location in

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

import { DiffType } from './diff';
import { DiffType } from './diff.js';
/**

@@ -3,0 +3,0 @@ * loc is a location in text1, compute and return the equivalent location in

@@ -1,8 +0,8 @@

export { diff as makeDiff, DiffType, type Diff, type DiffOptions, } from './diff/diff';
export { cleanupSemantic, cleanupEfficiency } from './diff/cleanup';
export { match } from './match/match';
export { type Patch } from './patch/createPatchObject';
export { make as makePatches, type MakePatchOptions } from './patch/make';
export { apply as applyPatches, type PatchResult, type ApplyPatchOptions, } from './patch/apply';
export { stringify as stringifyPatches, stringifyPatch, } from './patch/stringify';
export { parse as parsePatch } from './patch/parse';
export { diff as makeDiff, DiffType, type Diff, type DiffOptions, } from './diff/diff.js';
export { cleanupSemantic, cleanupEfficiency } from './diff/cleanup.js';
export { match } from './match/match.js';
export { type Patch } from './patch/createPatchObject.js';
export { make as makePatches, type MakePatchOptions } from './patch/make.js';
export { apply as applyPatches, type PatchResult, type ApplyPatchOptions, } from './patch/apply.js';
export { stringify as stringifyPatches, stringifyPatch, } from './patch/stringify.js';
export { parse as parsePatch } from './patch/parse.js';
// Diff
export { diff as makeDiff, DiffType, } from './diff/diff';
export { cleanupSemantic, cleanupEfficiency } from './diff/cleanup';
export { diff as makeDiff, DiffType, } from './diff/diff.js';
export { cleanupSemantic, cleanupEfficiency } from './diff/cleanup.js';
// Match
export { match } from './match/match';
export { make as makePatches } from './patch/make';
export { apply as applyPatches, } from './patch/apply';
export { stringify as stringifyPatches, stringifyPatch, } from './patch/stringify';
export { parse as parsePatch } from './patch/parse';
export { match } from './match/match.js';
export { make as makePatches } from './patch/make.js';
export { apply as applyPatches, } from './patch/apply.js';
export { stringify as stringifyPatches, stringifyPatch, } from './patch/stringify.js';
export { parse as parsePatch } from './patch/parse.js';
//# sourceMappingURL=index.js.map
// MATCH FUNCTIONS
import { bitap_ } from './bitap';
import { bitap_ } from './bitap.js';
/**

@@ -4,0 +4,0 @@ * Locate the best instance of 'pattern' in 'text' near 'loc'.

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

import { Patch } from './createPatchObject';
import { Patch } from './createPatchObject.js';
export interface ApplyPatchOptions {

@@ -3,0 +3,0 @@ margin: number;

@@ -1,11 +0,11 @@

import { cleanupSemanticLossless } from '../diff/cleanup';
import { diff, DiffType } from '../diff/diff';
import { diffText1, diffText2 } from '../diff/diffText';
import { levenshtein } from '../diff/levenshtein';
import { xIndex } from '../diff/xIndex';
import { match } from '../match/match';
import { DEFAULT_MARGIN, MAX_BITS } from './constants';
import { deepCopy } from './createPatchObject';
import { parse } from './parse';
import { splitMax } from './splitMax';
import { cleanupSemanticLossless } from '../diff/cleanup.js';
import { diff, DiffType } from '../diff/diff.js';
import { diffText1, diffText2 } from '../diff/diffText.js';
import { levenshtein } from '../diff/levenshtein.js';
import { xIndex } from '../diff/xIndex.js';
import { match } from '../match/match.js';
import { DEFAULT_MARGIN, MAX_BITS } from './constants.js';
import { deepCopy } from './createPatchObject.js';
import { parse } from './parse.js';
import { splitMax } from './splitMax.js';
const DEFAULT_OPTS = {

@@ -12,0 +12,0 @@ margin: DEFAULT_MARGIN,

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

import { Diff } from '../diff/diff';
import { Diff } from '../diff/diff.js';
/**

@@ -3,0 +3,0 @@ * Class representing one patch operation.

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

import { Diff } from '../diff/diff';
import { Patch } from './createPatchObject';
import { Diff } from '../diff/diff.js';
import { Patch } from './createPatchObject.js';
export interface MakePatchOptions {

@@ -4,0 +4,0 @@ margin: number;

@@ -1,6 +0,6 @@

import { cleanupSemantic, cleanupEfficiency } from '../diff/cleanup';
import { diff, DiffType } from '../diff/diff';
import { diffText1 } from '../diff/diffText';
import { MAX_BITS } from './constants';
import { createPatchObject } from './createPatchObject';
import { cleanupSemantic, cleanupEfficiency } from '../diff/cleanup.js';
import { diff, DiffType } from '../diff/diff.js';
import { diffText1 } from '../diff/diffText.js';
import { MAX_BITS } from './constants.js';
import { createPatchObject } from './createPatchObject.js';
const DEFAULT_OPTS = {

@@ -7,0 +7,0 @@ margin: 4,

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

import { Patch } from './createPatchObject';
import { Patch } from './createPatchObject.js';
/**

@@ -3,0 +3,0 @@ * Parse a textual representation of patches and return a list of Patch objects.

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

import { DiffType } from '../diff/diff';
import { createPatchObject } from './createPatchObject';
import { DiffType } from '../diff/diff.js';
import { createPatchObject } from './createPatchObject.js';
/**

@@ -4,0 +4,0 @@ * Parse a textual representation of patches and return a list of Patch objects.

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

import { Patch } from './createPatchObject';
import { Patch } from './createPatchObject.js';
/**

@@ -3,0 +3,0 @@ * Look through the patches and break up any which are longer than the maximum

@@ -1,5 +0,5 @@

import { DiffType } from '../diff/diff';
import { diffText1, diffText2 } from '../diff/diffText';
import { DEFAULT_MARGIN, MAX_BITS } from './constants';
import { createPatchObject } from './createPatchObject';
import { DiffType } from '../diff/diff.js';
import { diffText1, diffText2 } from '../diff/diffText.js';
import { DEFAULT_MARGIN, MAX_BITS } from './constants.js';
import { createPatchObject } from './createPatchObject.js';
/**

@@ -6,0 +6,0 @@ * Look through the patches and break up any which are longer than the maximum

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

import { Patch } from './createPatchObject';
import { Patch } from './createPatchObject.js';
export declare function stringify(patches: Patch[]): string;
export declare function stringifyPatch(patch: Patch): string;

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

import { DiffType } from '../diff/diff';
import { DiffType } from '../diff/diff.js';
export function stringify(patches) {

@@ -3,0 +3,0 @@ return patches.map(stringifyPatch).join('');

{
"name": "@sanity/diff-match-patch",
"version": "0.0.4",
"version": "0.0.5",
"description": "Robust diff, match and patch algorithms to perform operations required for synchronizing plain text",

@@ -17,3 +17,3 @@ "main": "./lib/cjs/index.cjs",

"engines": {
"node": ">=14"
"node": ">=14.16"
},

@@ -20,0 +20,0 @@ "type": "module",

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

import { _diff, Diff, DiffType } from './diff'
import { _diff, Diff, DiffType } from './diff.js'

@@ -3,0 +3,0 @@ /**

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

import { Diff } from './diff'
import { Diff } from './diff.js'

@@ -3,0 +3,0 @@ /**

@@ -1,6 +0,6 @@

import { cloneDiff } from './clone'
import { commonOverlap_ } from './commonOverlap'
import { commonPrefix } from './commonPrefix'
import { commonSuffix } from './commonSuffix'
import { Diff, DiffType } from './diff'
import { cloneDiff } from './clone.js'
import { commonOverlap_ } from './commonOverlap.js'
import { commonPrefix } from './commonPrefix.js'
import { commonSuffix } from './commonSuffix.js'
import { Diff, DiffType } from './diff.js'

@@ -7,0 +7,0 @@ /**

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

import type { Diff } from './diff'
import type { Diff } from './diff.js'

@@ -3,0 +3,0 @@ export function cloneDiff(diff: Diff): Diff {

@@ -1,5 +0,5 @@

import { bisect_ } from './bisect'
import { Diff, DiffType, InternalDiffOptions, _diff } from './diff'
import { halfMatch_ } from './halfMatch'
import { lineMode_ } from './lineMode'
import { bisect_ } from './bisect.js'
import { Diff, DiffType, InternalDiffOptions, _diff } from './diff.js'
import { halfMatch_ } from './halfMatch.js'
import { lineMode_ } from './lineMode.js'

@@ -6,0 +6,0 @@ /**

@@ -1,6 +0,6 @@

import { isHighSurrogate, isLowSurrogate } from '../utils/surrogatePairs'
import { cleanupMerge } from './cleanup'
import { commonPrefix } from './commonPrefix'
import { commonSuffix } from './commonSuffix'
import { compute_ } from './compute'
import { isHighSurrogate, isLowSurrogate } from '../utils/surrogatePairs.js'
import { cleanupMerge } from './cleanup.js'
import { commonPrefix } from './commonPrefix.js'
import { commonSuffix } from './commonSuffix.js'
import { compute_ } from './compute.js'

@@ -7,0 +7,0 @@ /**

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

import { Diff, DiffType } from './diff'
import { Diff, DiffType } from './diff.js'

@@ -3,0 +3,0 @@ /**

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

import { Diff, DiffType } from './diff'
import { Diff, DiffType } from './diff.js'

@@ -3,0 +3,0 @@ /**

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

import { commonPrefix } from './commonPrefix'
import { commonSuffix } from './commonSuffix'
import { commonPrefix } from './commonPrefix.js'
import { commonSuffix } from './commonSuffix.js'

@@ -4,0 +4,0 @@ type HalfMatch = [string, string, string, string, string]

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

import { Diff, DiffType } from './diff'
import { Diff, DiffType } from './diff.js'

@@ -3,0 +3,0 @@ /**

@@ -1,5 +0,5 @@

import { charsToLines_ } from './charsToLines'
import { cleanupSemantic } from './cleanup'
import { _diff, Diff, DiffType, InternalDiffOptions } from './diff'
import { linesToChars_ } from './linesToChars'
import { charsToLines_ } from './charsToLines.js'
import { cleanupSemantic } from './cleanup.js'
import { _diff, Diff, DiffType, InternalDiffOptions } from './diff.js'
import { linesToChars_ } from './linesToChars.js'

@@ -6,0 +6,0 @@ /**

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

import { Diff, DiffType } from './diff'
import { Diff, DiffType } from './diff.js'

@@ -3,0 +3,0 @@ /**

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

import { Diff, DiffType } from './diff'
import { Diff, DiffType } from './diff.js'

@@ -3,0 +3,0 @@ /**

@@ -7,11 +7,11 @@ // Diff

type DiffOptions,
} from './diff/diff'
export { cleanupSemantic, cleanupEfficiency } from './diff/cleanup'
} from './diff/diff.js'
export { cleanupSemantic, cleanupEfficiency } from './diff/cleanup.js'
// Match
export { match } from './match/match'
export { match } from './match/match.js'
// Patch
export { type Patch } from './patch/createPatchObject'
export { make as makePatches, type MakePatchOptions } from './patch/make'
export { type Patch } from './patch/createPatchObject.js'
export { make as makePatches, type MakePatchOptions } from './patch/make.js'
export {

@@ -21,7 +21,7 @@ apply as applyPatches,

type ApplyPatchOptions,
} from './patch/apply'
} from './patch/apply.js'
export {
stringify as stringifyPatches,
stringifyPatch,
} from './patch/stringify'
export { parse as parsePatch } from './patch/parse'
} from './patch/stringify.js'
export { parse as parsePatch } from './patch/parse.js'
// MATCH FUNCTIONS
import { bitap_ } from './bitap.js'
import { bitap_ } from './bitap'
/**

@@ -6,0 +5,0 @@ * Locate the best instance of 'pattern' in 'text' near 'loc'.

@@ -1,11 +0,11 @@

import { cleanupSemanticLossless } from '../diff/cleanup'
import { diff, DiffType } from '../diff/diff'
import { diffText1, diffText2 } from '../diff/diffText'
import { levenshtein } from '../diff/levenshtein'
import { xIndex } from '../diff/xIndex'
import { match } from '../match/match'
import { DEFAULT_MARGIN, MAX_BITS } from './constants'
import { deepCopy, Patch } from './createPatchObject'
import { parse } from './parse'
import { splitMax } from './splitMax'
import { cleanupSemanticLossless } from '../diff/cleanup.js'
import { diff, DiffType } from '../diff/diff.js'
import { diffText1, diffText2 } from '../diff/diffText.js'
import { levenshtein } from '../diff/levenshtein.js'
import { xIndex } from '../diff/xIndex.js'
import { match } from '../match/match.js'
import { DEFAULT_MARGIN, MAX_BITS } from './constants.js'
import { deepCopy, Patch } from './createPatchObject.js'
import { parse } from './parse.js'
import { splitMax } from './splitMax.js'

@@ -12,0 +12,0 @@ // When deleting a large block of text (over ~64 characters), how close do

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

import { Diff } from '../diff/diff'
import { Diff } from '../diff/diff.js'

@@ -3,0 +3,0 @@ /**

@@ -1,6 +0,6 @@

import { cleanupSemantic, cleanupEfficiency } from '../diff/cleanup'
import { diff, Diff, DiffType } from '../diff/diff'
import { diffText1 } from '../diff/diffText'
import { MAX_BITS } from './constants'
import { createPatchObject, Patch } from './createPatchObject'
import { cleanupSemantic, cleanupEfficiency } from '../diff/cleanup.js'
import { diff, Diff, DiffType } from '../diff/diff.js'
import { diffText1 } from '../diff/diffText.js'
import { MAX_BITS } from './constants.js'
import { createPatchObject, Patch } from './createPatchObject.js'

@@ -7,0 +7,0 @@ export interface MakePatchOptions {

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

import { DiffType } from '../diff/diff'
import { createPatchObject, Patch } from './createPatchObject'
import { DiffType } from '../diff/diff.js'
import { createPatchObject, Patch } from './createPatchObject.js'

@@ -4,0 +4,0 @@ /**

@@ -1,5 +0,5 @@

import { DiffType } from '../diff/diff'
import { diffText1, diffText2 } from '../diff/diffText'
import { DEFAULT_MARGIN, MAX_BITS } from './constants'
import { createPatchObject, Patch } from './createPatchObject'
import { DiffType } from '../diff/diff.js'
import { diffText1, diffText2 } from '../diff/diffText.js'
import { DEFAULT_MARGIN, MAX_BITS } from './constants.js'
import { createPatchObject, Patch } from './createPatchObject.js'

@@ -6,0 +6,0 @@ /**

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

import { DiffType } from '../diff/diff'
import { Patch } from './createPatchObject'
import { DiffType } from '../diff/diff.js'
import { Patch } from './createPatchObject.js'

@@ -4,0 +4,0 @@ export function stringify(patches: Patch[]) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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