jest-diff
Advanced tools
Comparing version 30.0.0-alpha.2 to 30.0.0-alpha.3
@@ -801,3 +801,2 @@ /*! | ||
); | ||
this.line.length = 0; | ||
@@ -820,4 +819,3 @@ } | ||
const iLast = substrings.length - 1; | ||
for (let i = 0; i < substrings.length; i++) { | ||
const substring = substrings[i]; | ||
for (const [i, substring] of substrings.entries()) { | ||
if (i < iLast) { | ||
@@ -887,4 +885,3 @@ // The first substring completes the current change line. | ||
const iLast = substrings.length - 1; | ||
for (let i = 0; i < substrings.length; i++) { | ||
const substring = substrings[i]; | ||
for (const [i, substring] of substrings.entries()) { | ||
if (i === 0) { | ||
@@ -1055,3 +1052,2 @@ const subdiff = new _cleanupSemantic.Diff(op, substring); | ||
} | ||
const jLast = jLength - 1; | ||
@@ -1270,3 +1266,2 @@ const lines = []; | ||
); | ||
if (hasCommonDiff(diffs, isMultiline)) { | ||
@@ -1291,3 +1286,2 @@ const optionsNormalized = (0, _normalizeDiffOptions.normalizeDiffOptions)(options); | ||
} | ||
return diffs; | ||
@@ -1480,6 +1474,6 @@ }; | ||
function sortMap(map) { | ||
return new Map(Array.from(map.entries()).sort()); | ||
return new Map([...map.entries()].sort()); | ||
} | ||
function sortSet(set) { | ||
return new Set(Array.from(set.values()).sort()); | ||
return new Set([...set.values()].sort()); | ||
} | ||
@@ -1486,0 +1480,0 @@ function compareObjects(a, b, options) { |
{ | ||
"name": "jest-diff", | ||
"version": "30.0.0-alpha.2", | ||
"version": "30.0.0-alpha.3", | ||
"repository": { | ||
@@ -23,8 +23,8 @@ "type": "git", | ||
"chalk": "^4.0.0", | ||
"diff-sequences": "30.0.0-alpha.2", | ||
"jest-get-type": "30.0.0-alpha.2", | ||
"pretty-format": "30.0.0-alpha.2" | ||
"diff-sequences": "30.0.0-alpha.3", | ||
"jest-get-type": "30.0.0-alpha.3", | ||
"pretty-format": "30.0.0-alpha.3" | ||
}, | ||
"devDependencies": { | ||
"@jest/test-utils": "30.0.0-alpha.2", | ||
"@jest/test-utils": "30.0.0-alpha.3", | ||
"strip-ansi": "^6.0.0" | ||
@@ -38,3 +38,3 @@ }, | ||
}, | ||
"gitHead": "c04d13d7abd22e47b0997f6027886aed225c9ce4" | ||
"gitHead": "e267aff33d105399f2134bad7c8f82285104f3da" | ||
} |
79696
1513
+ Added@jest/schemas@30.0.0-alpha.3(transitive)
+ Added@sinclair/typebox@0.32.27(transitive)
+ Addeddiff-sequences@30.0.0-alpha.3(transitive)
+ Addedjest-get-type@30.0.0-alpha.3(transitive)
+ Addedpretty-format@30.0.0-alpha.3(transitive)
- Removed@jest/schemas@30.0.0-alpha.2(transitive)
- Removed@sinclair/typebox@0.31.28(transitive)
- Removeddiff-sequences@30.0.0-alpha.2(transitive)
- Removedjest-get-type@30.0.0-alpha.2(transitive)
- Removedpretty-format@30.0.0-alpha.2(transitive)
Updatedjest-get-type@30.0.0-alpha.3
Updatedpretty-format@30.0.0-alpha.3