watskeburt 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
package/dist/parse-diff-lines.js
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
import { EOL } from "node:os";
|
2
1
|
import { mapChangeType } from "./map-change-type.js";
|
3
2
|
const DIFF_NAME_STATUS_LINE_PATTERN =
|
4
3
|
/^(?<type>[ACDMRTUXB])(?<similarity>\d{3})?[ \t]+(?<name>[^ \t]+)[ \t]*(?<newName>[^ \t]+)?$/;
|
5
4
|
export function parseDiffLines(pString) {
|
6
5
|
return pString
|
7
|
-
.split(
|
6
|
+
.split(/\r?\n/)
|
8
7
|
.filter(Boolean)
|
9
8
|
.map(parseDiffLine)
|
10
9
|
.filter(({ name, type }) => Boolean(name) && Boolean(type));
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { EOL } from "node:os";
|
2
1
|
import { mapChangeType } from "./map-change-type.js";
|
3
2
|
const DIFF_SHORT_STATUS_LINE_PATTERN =
|
4
3
|
/^(?<stagedType>[ ACDMRTUXB?!])(?<unStagedType>[ ACDMRTUXB?!])[ \t]+(?<name>[^ \t]+)(( -> )(?<newName>[^ \t]+))?$/;
|
5
4
|
export function parseStatusLines(pString) {
|
6
5
|
return pString
|
7
|
-
.split(
|
6
|
+
.split(/\r?\n/)
|
8
7
|
.filter(Boolean)
|
9
8
|
.map(parseStatusLine)
|
10
9
|
.filter(({ name, type }) => Boolean(name) && Boolean(type));
|
package/dist/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const VERSION = "4.2.
|
1
|
+
export const VERSION = "4.2.1";
|