watskeburt 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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(EOL)
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(EOL)
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.0";
1
+ export const VERSION = "4.2.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "watskeburt",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "List files changed since a git revision",
5
5
  "keywords": [
6
6
  "git",