omnius 1.0.277 → 1.0.279
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 +6 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -614203,7 +614203,8 @@ ${c3.cyan(OMNIUS_FIRST_RUN_BANNER)}
|
|
|
614203
614203
|
`;
|
|
614204
614204
|
};
|
|
614205
614205
|
const boxWrappedDimLine = (content, indent = " ") => {
|
|
614206
|
-
const
|
|
614206
|
+
const formatted = formatMarkdownBlock(content);
|
|
614207
|
+
const lines = wrapText(formatted, Math.max(1, boxW - visibleLen2(indent)));
|
|
614207
614208
|
for (const line of lines) {
|
|
614208
614209
|
process.stdout.write(boxLine(`${indent}${c3.dim(line)}`));
|
|
614209
614210
|
}
|
|
@@ -646636,13 +646637,15 @@ var init_stream_renderer = __esm({
|
|
|
646636
646637
|
const usePrefix = this.lineStarted ? "" : prefix;
|
|
646637
646638
|
const usableW = this.lineStarted ? maxW : Math.max(1, maxW - usePrefix.length);
|
|
646638
646639
|
const lines = text3.length > usableW ? this.wordWrap(text3, usableW) : [text3];
|
|
646640
|
+
const isBlockquote = kind === "content" && /^>\s/.test(text3);
|
|
646639
646641
|
for (let i2 = 0; i2 < lines.length; i2++) {
|
|
646640
646642
|
const isFirst = i2 === 0;
|
|
646641
646643
|
const isLast = i2 === lines.length - 1;
|
|
646642
|
-
const lp = isFirst ? usePrefix : " ";
|
|
646644
|
+
const lp = isBlockquote && !isFirst ? " │ " : isFirst ? usePrefix : " ";
|
|
646645
|
+
const chunk = isBlockquote && !isFirst ? "> " + lines[i2].replace(/^\s+/, "") : lines[i2];
|
|
646643
646646
|
const needsNewline = !isLast || trailingNewline;
|
|
646644
646647
|
this.writeRaw(
|
|
646645
|
-
dimText(lp) + highlight(
|
|
646648
|
+
dimText(lp) + highlight(chunk) + (needsNewline ? "\n" : "")
|
|
646646
646649
|
);
|
|
646647
646650
|
}
|
|
646648
646651
|
this.lineStarted = !trailingNewline;
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.279",
|
|
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.279",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED