omnius 1.0.284 → 1.0.286
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 +8 -10
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -607340,12 +607340,6 @@ var init_status_bar = __esm({
|
|
|
607340
607340
|
...sponsorLabel && sponsorLink ? { linkUrl: sponsorLink } : {}
|
|
607341
607341
|
}
|
|
607342
607342
|
];
|
|
607343
|
-
const transport = this.summarizeHeaderTransport();
|
|
607344
|
-
if (transport)
|
|
607345
|
-
parts.push({
|
|
607346
|
-
text: ` ${transport} `,
|
|
607347
|
-
width: stripAnsi(` ${transport} `).length
|
|
607348
|
-
});
|
|
607349
607343
|
if (this._updateLatest) {
|
|
607350
607344
|
const last2 = parts[parts.length - 1];
|
|
607351
607345
|
if (last2) {
|
|
@@ -609498,18 +609492,22 @@ ${CONTENT_BG_SEQ}`);
|
|
|
609498
609492
|
});
|
|
609499
609493
|
}
|
|
609500
609494
|
hangingIndentForVisibleLine(visible, width) {
|
|
609501
|
-
const capped = (n2) => " ".repeat(Math.max(0, Math.min(n2, width - 4)));
|
|
609502
609495
|
const patterns = [
|
|
609503
609496
|
/^(\s*(?:[│├└]\s*)?(?:[-*+○•]\s+))/,
|
|
609504
609497
|
/^(\s*(?:[│├└]\s*)?(?:\d+[.)]\s+))/,
|
|
609505
609498
|
/^(\s*(?:[│├└]\s*)?(?:>\s*))/,
|
|
609506
|
-
/^(\s*(?:[│├└]\s*)?(?:[A-Za-z][\w.-]{0,28}:\s+))
|
|
609499
|
+
/^(\s*(?:[│├└]\s*)?(?:[A-Za-z][\w.-]{0,28}:\s+))/,
|
|
609500
|
+
/^(\s*[│├└|]\s*)/
|
|
609507
609501
|
];
|
|
609508
609502
|
for (const pattern of patterns) {
|
|
609509
609503
|
const match = visible.match(pattern);
|
|
609510
|
-
if (match?.[1])
|
|
609504
|
+
if (match?.[1]) {
|
|
609505
|
+
const indent = match[1];
|
|
609506
|
+
return indent.slice(0, Math.min(indent.length, Math.max(0, width - 4)));
|
|
609507
|
+
}
|
|
609511
609508
|
}
|
|
609512
|
-
|
|
609509
|
+
const leading = visible.match(/^\s*/)?.[0] ?? "";
|
|
609510
|
+
return leading.slice(0, Math.min(leading.length, Math.max(0, width - 4)));
|
|
609513
609511
|
}
|
|
609514
609512
|
visibleWrapRanges(visible, width, continuationIndent) {
|
|
609515
609513
|
const ranges = [];
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.286",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.286",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED