rolldown 1.0.0-beta.1-commit.67a0051 → 1.0.0-beta.1-commit.2fe52d4
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/cjs/cli.cjs +24 -25
- package/dist/cjs/experimental-index.cjs +3 -2
- package/dist/cjs/index.cjs +2 -1
- package/dist/cjs/parallel-plugin-worker.cjs +3 -2
- package/dist/cjs/parse-ast-index.cjs +59 -0
- package/dist/esm/cli.mjs +24 -25
- package/dist/esm/experimental-index.mjs +2 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/parallel-plugin-worker.mjs +2 -1
- package/dist/esm/parse-ast-index.mjs +56 -0
- package/dist/shared/binding-BMSG-hw7.mjs +530 -0
- package/dist/shared/binding-Cw1COxB5.cjs +575 -0
- package/dist/shared/{consola_36c0034f-BBnpcLZ5.cjs → consola_36c0034f-7VQAd79i.cjs} +7 -7
- package/dist/shared/{consola_36c0034f-BwyQ494_.mjs → consola_36c0034f-DJFB73x3.mjs} +7 -7
- package/dist/shared/{prompt-CqEsx-3v.mjs → prompt-CwUxfcCh.mjs} +7 -7
- package/dist/shared/{prompt-BKuli-WV.cjs → prompt-sP1wES-1.cjs} +7 -7
- package/dist/shared/{src-ed8l008o.cjs → src-Dck9jWki.cjs} +405 -890
- package/dist/shared/{src-BvPrj1a4.mjs → src-genj5En-.mjs} +379 -886
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/binding.d.ts +254 -0
- package/dist/types/log/logs.d.ts +1 -0
- package/dist/types/parse-ast-index.d.ts +4 -0
- package/dist/types/plugin/plugin-context.d.ts +8 -0
- package/dist/types/plugin/plugin-driver.d.ts +2 -2
- package/package.json +20 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { colors$1 as colors, getDefaultExportFromCjs, isUnicodeSupported } from "./consola_36c0034f-
|
|
1
|
+
import { colors$1 as colors, getDefaultExportFromCjs, isUnicodeSupported } from "./consola_36c0034f-DJFB73x3.mjs";
|
|
2
2
|
import { stdin, stdout } from "node:process";
|
|
3
3
|
import require$$0 from "tty";
|
|
4
4
|
import { WriteStream } from "node:tty";
|
|
@@ -16,9 +16,9 @@ const cursor = {
|
|
|
16
16
|
move(x, y) {
|
|
17
17
|
let ret = "";
|
|
18
18
|
if (x < 0) ret += `${CSI}${-x}D`;
|
|
19
|
-
else if (x > 0) ret += `${CSI}${x}C`;
|
|
19
|
+
else if (x > 0) ret += `${CSI}${x}C`;
|
|
20
20
|
if (y < 0) ret += `${CSI}${-y}A`;
|
|
21
|
-
else if (y > 0) ret += `${CSI}${y}B`;
|
|
21
|
+
else if (y > 0) ret += `${CSI}${y}B`;
|
|
22
22
|
return ret;
|
|
23
23
|
},
|
|
24
24
|
up: (count = 1) => `${CSI}${count}A`,
|
|
@@ -139,7 +139,7 @@ var m = {}, G = {
|
|
|
139
139
|
for (var D = "", i = 0, o = F(e), E = 0; E < o.length; E++) {
|
|
140
140
|
var a = o[E], n = u.length(a);
|
|
141
141
|
if (i >= s$1 - (n == 2 ? 1 : 0)) if (i + n <= C) D += a;
|
|
142
|
-
else break;
|
|
142
|
+
else break;
|
|
143
143
|
i += n;
|
|
144
144
|
}
|
|
145
145
|
return D;
|
|
@@ -278,7 +278,7 @@ function U() {
|
|
|
278
278
|
if (u < 16) return 90 + (u - 8);
|
|
279
279
|
let F, e, s$1;
|
|
280
280
|
if (u >= 232) F = ((u - 232) * 10 + 8) / 255, e = F, s$1 = F;
|
|
281
|
-
else {
|
|
281
|
+
else {
|
|
282
282
|
u -= 16;
|
|
283
283
|
const i = u % 36;
|
|
284
284
|
F = Math.floor(u / 36) / 5, e = Math.floor(i / 6) / 5, s$1 = i % 6 / 5;
|
|
@@ -456,7 +456,7 @@ var h = class {
|
|
|
456
456
|
const u = P(this._render(this) ?? "", process.stdout.columns, { hard: !0 });
|
|
457
457
|
if (u !== this._prevFrame) {
|
|
458
458
|
if (this.state === "initial") this.output.write(src.cursor.hide);
|
|
459
|
-
else {
|
|
459
|
+
else {
|
|
460
460
|
const F = FD(this._prevFrame, u);
|
|
461
461
|
if (this.restoreCursor(), F && F?.length === 1) {
|
|
462
462
|
const e = F[0];
|
|
@@ -558,7 +558,7 @@ var oD = class extends h {
|
|
|
558
558
|
this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
|
|
559
559
|
}), this.on("value", () => {
|
|
560
560
|
if (this.cursor >= this.value.length) this.valueWithCursor = `${this.value}${l.inverse(l.hidden("_"))}`;
|
|
561
|
-
else {
|
|
561
|
+
else {
|
|
562
562
|
const F = this.value.slice(0, this.cursor), e = this.value.slice(this.cursor);
|
|
563
563
|
this.valueWithCursor = `${F}${l.inverse(e[0])}${e.slice(1)}`;
|
|
564
564
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_consola_36c0034f = require('./consola_36c0034f-
|
|
3
|
+
const require_consola_36c0034f = require('./consola_36c0034f-7VQAd79i.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
6
6
|
const tty = require_chunk.__toESM(require("tty"));
|
|
@@ -20,9 +20,9 @@ const cursor = {
|
|
|
20
20
|
move(x, y) {
|
|
21
21
|
let ret = "";
|
|
22
22
|
if (x < 0) ret += `${CSI}${-x}D`;
|
|
23
|
-
else if (x > 0) ret += `${CSI}${x}C`;
|
|
23
|
+
else if (x > 0) ret += `${CSI}${x}C`;
|
|
24
24
|
if (y < 0) ret += `${CSI}${-y}A`;
|
|
25
|
-
else if (y > 0) ret += `${CSI}${y}B`;
|
|
25
|
+
else if (y > 0) ret += `${CSI}${y}B`;
|
|
26
26
|
return ret;
|
|
27
27
|
},
|
|
28
28
|
up: (count = 1) => `${CSI}${count}A`,
|
|
@@ -143,7 +143,7 @@ var m = {}, G = {
|
|
|
143
143
|
for (var D = "", i = 0, o = F(e), E = 0; E < o.length; E++) {
|
|
144
144
|
var a = o[E], n = u.length(a);
|
|
145
145
|
if (i >= s$1 - (n == 2 ? 1 : 0)) if (i + n <= C) D += a;
|
|
146
|
-
else break;
|
|
146
|
+
else break;
|
|
147
147
|
i += n;
|
|
148
148
|
}
|
|
149
149
|
return D;
|
|
@@ -282,7 +282,7 @@ function U() {
|
|
|
282
282
|
if (u < 16) return 90 + (u - 8);
|
|
283
283
|
let F, e, s$1;
|
|
284
284
|
if (u >= 232) F = ((u - 232) * 10 + 8) / 255, e = F, s$1 = F;
|
|
285
|
-
else {
|
|
285
|
+
else {
|
|
286
286
|
u -= 16;
|
|
287
287
|
const i = u % 36;
|
|
288
288
|
F = Math.floor(u / 36) / 5, e = Math.floor(i / 6) / 5, s$1 = i % 6 / 5;
|
|
@@ -460,7 +460,7 @@ var h = class {
|
|
|
460
460
|
const u = P(this._render(this) ?? "", process.stdout.columns, { hard: !0 });
|
|
461
461
|
if (u !== this._prevFrame) {
|
|
462
462
|
if (this.state === "initial") this.output.write(src.cursor.hide);
|
|
463
|
-
else {
|
|
463
|
+
else {
|
|
464
464
|
const F = FD(this._prevFrame, u);
|
|
465
465
|
if (this.restoreCursor(), F && F?.length === 1) {
|
|
466
466
|
const e = F[0];
|
|
@@ -562,7 +562,7 @@ var oD = class extends h {
|
|
|
562
562
|
this.value || (this.value = u.defaultValue), this.valueWithCursor = this.value;
|
|
563
563
|
}), this.on("value", () => {
|
|
564
564
|
if (this.cursor >= this.value.length) this.valueWithCursor = `${this.value}${l.inverse(l.hidden("_"))}`;
|
|
565
|
-
else {
|
|
565
|
+
else {
|
|
566
566
|
const F = this.value.slice(0, this.cursor), e = this.value.slice(this.cursor);
|
|
567
567
|
this.valueWithCursor = `${F}${l.inverse(e[0])}${e.slice(1)}`;
|
|
568
568
|
}
|