@staff0rd/assist 0.318.6 → 0.318.7
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.
- package/dist/index.js +5 -3
- 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.318.
|
|
9
|
+
version: "0.318.7",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -6347,13 +6347,15 @@ import { createInterface as createInterface2 } from "readline";
|
|
|
6347
6347
|
// src/commands/sessions/daemon/toWindowsSessionId.ts
|
|
6348
6348
|
var PREFIX = "w-";
|
|
6349
6349
|
function toWindowsSessionId(id2) {
|
|
6350
|
-
return `${PREFIX}${id2}`;
|
|
6350
|
+
return isWindowsSessionId(id2) ? id2 : `${PREFIX}${id2}`;
|
|
6351
6351
|
}
|
|
6352
6352
|
function isWindowsSessionId(id2) {
|
|
6353
6353
|
return id2.startsWith(PREFIX);
|
|
6354
6354
|
}
|
|
6355
6355
|
function stripWindowsSessionId(id2) {
|
|
6356
|
-
|
|
6356
|
+
let stripped = id2;
|
|
6357
|
+
while (stripped.startsWith(PREFIX)) stripped = stripped.slice(PREFIX.length);
|
|
6358
|
+
return stripped;
|
|
6357
6359
|
}
|
|
6358
6360
|
|
|
6359
6361
|
// src/commands/sessions/web/ui/repoLabel.ts
|