@rehearsal/ts-utils
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -10,2 +10,5 @@ import type { TextChange } from 'typescript'; | ||
export declare function applyTextChanges(text: string, textChanges: TextChange[]): string; | ||
/** | ||
* Compares two text changes | ||
*/ | ||
export declare function isSameChange(a: TextChange, b: TextChange): boolean; | ||
@@ -12,0 +15,0 @@ /** |
@@ -19,4 +19,7 @@ /** | ||
} | ||
/** | ||
* Compares two text changes | ||
*/ | ||
export function isSameChange(a, b) { | ||
return (a.span.start === a.span.start && a.span.length === b.span.length && a.newText === b.newText); | ||
return (a.span.start === b.span.start && a.span.length === b.span.length && a.newText === b.newText); | ||
} | ||
@@ -23,0 +26,0 @@ /** |
{ | ||
"name": "@rehearsal/ts-utils", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Rehearsal TypeScript Utils", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@vitest/coverage-c8": "^0.30.1", | ||
"@vitest/coverage-c8": "^0.33.0", | ||
"vitest": "^0.30.0" | ||
@@ -36,0 +36,0 @@ }, |
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
79322
390