@staff0rd/assist 0.325.0 → 0.325.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.325.0",
9
+ version: "0.325.1",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -6011,8 +6011,10 @@ function extractPath(rest) {
6011
6011
  const arrow = rest.indexOf(" -> ");
6012
6012
  return arrow === -1 ? rest : rest.slice(arrow + 4);
6013
6013
  }
6014
+ var UNMERGED_STATES = /* @__PURE__ */ new Set(["DD", "AU", "UD", "UA", "DU", "AA", "UU"]);
6014
6015
  function categorize(xy) {
6015
6016
  if (xy === "??") return "new";
6017
+ if (UNMERGED_STATES.has(xy)) return "modified";
6016
6018
  const codes = xy.replace(/ /g, "");
6017
6019
  if (codes.includes("A")) return "new";
6018
6020
  if (codes.includes("D")) return "deleted";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.325.0",
3
+ "version": "0.325.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {