@lifo-sh/core 0.4.6 → 0.5.5
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/README.md +7 -3
- package/dist/{awk-BFrGImnt.js → awk-Bhywv7pU.js} +1 -1
- package/dist/base64-ncdb27yL.js +72 -0
- package/dist/{basename-MGz8cBxd.js → basename-D-_r1VN_.js} +1 -1
- package/dist/browser-Bymgnrli.js +35 -0
- package/dist/{cat-BnEyWWFr.js → cat-DSe6FHma.js} +1 -1
- package/dist/{chmod-CdrI3hZV.js → chmod-BZIlNR2-.js} +1 -1
- package/dist/{chown-7yY3iC6J.js → chown-BAOEOuMn.js} +1 -1
- package/dist/commands/net/curl.d.ts +2 -2
- package/dist/commands/net/curl.d.ts.map +1 -1
- package/dist/commands/net/forward.d.ts +14 -0
- package/dist/commands/net/forward.d.ts.map +1 -0
- package/dist/commands/net/host.d.ts +14 -0
- package/dist/commands/net/host.d.ts.map +1 -0
- package/dist/commands/net/ifconfig.d.ts +8 -0
- package/dist/commands/net/ifconfig.d.ts.map +1 -0
- package/dist/commands/net/ip.d.ts +14 -0
- package/dist/commands/net/ip.d.ts.map +1 -0
- package/dist/commands/net/netstat.d.ts +8 -0
- package/dist/commands/net/netstat.d.ts.map +1 -0
- package/dist/commands/net/ports.d.ts +8 -0
- package/dist/commands/net/ports.d.ts.map +1 -0
- package/dist/commands/net/route.d.ts +8 -0
- package/dist/commands/net/route.d.ts.map +1 -0
- package/dist/commands/net/test-registry.d.ts +8 -0
- package/dist/commands/net/test-registry.d.ts.map +1 -0
- package/dist/commands/net/tunnel-v2.d.ts +4 -0
- package/dist/commands/net/tunnel-v2.d.ts.map +1 -0
- package/dist/commands/net/tunnel.d.ts +6 -0
- package/dist/commands/net/tunnel.d.ts.map +1 -0
- package/dist/commands/registry.d.ts +1 -0
- package/dist/commands/registry.d.ts.map +1 -1
- package/dist/commands/system/fastfetch.d.ts +4 -0
- package/dist/commands/system/fastfetch.d.ts.map +1 -0
- package/dist/commands/system/kill.d.ts +2 -2
- package/dist/commands/system/kill.d.ts.map +1 -1
- package/dist/commands/system/lifo.d.ts +17 -0
- package/dist/commands/system/lifo.d.ts.map +1 -1
- package/dist/commands/system/logout.d.ts +5 -0
- package/dist/commands/system/logout.d.ts.map +1 -0
- package/dist/commands/system/man.d.ts.map +1 -1
- package/dist/commands/system/newtab.d.ts +8 -0
- package/dist/commands/system/newtab.d.ts.map +1 -0
- package/dist/commands/system/node.d.ts +2 -2
- package/dist/commands/system/node.d.ts.map +1 -1
- package/dist/commands/system/npm.d.ts +20 -7
- package/dist/commands/system/npm.d.ts.map +1 -1
- package/dist/commands/system/ps.d.ts +3 -2
- package/dist/commands/system/ps.d.ts.map +1 -1
- package/dist/commands/system/sha256sum.d.ts +4 -0
- package/dist/commands/system/sha256sum.d.ts.map +1 -0
- package/dist/commands/system/sl.d.ts +4 -0
- package/dist/commands/system/sl.d.ts.map +1 -0
- package/dist/commands/system/systemctl.d.ts +4 -0
- package/dist/commands/system/systemctl.d.ts.map +1 -0
- package/dist/commands/system/top.d.ts +2 -2
- package/dist/commands/system/top.d.ts.map +1 -1
- package/dist/commands/system/whoami.d.ts.map +1 -1
- package/dist/commands/text/base64.d.ts +4 -0
- package/dist/commands/text/base64.d.ts.map +1 -0
- package/dist/commands/text/less.d.ts +4 -0
- package/dist/commands/text/less.d.ts.map +1 -0
- package/dist/commands/text/nano.d.ts +4 -0
- package/dist/commands/text/nano.d.ts.map +1 -0
- package/dist/commands/text/seq.d.ts +4 -0
- package/dist/commands/text/seq.d.ts.map +1 -0
- package/dist/commands/text/strings.d.ts +4 -0
- package/dist/commands/text/strings.d.ts.map +1 -0
- package/dist/commands/text/tac.d.ts +4 -0
- package/dist/commands/text/tac.d.ts.map +1 -0
- package/dist/commands/types.d.ts +1 -0
- package/dist/commands/types.d.ts.map +1 -1
- package/dist/{cp-7dOXCu3Q.js → cp-DOXzF2_m.js} +1 -1
- package/dist/{cut-vn4vxL9L.js → cut-B4rQvMRc.js} +1 -1
- package/dist/{diff-DnKPewP-.js → diff-BndHU0Ne.js} +1 -1
- package/dist/{dirname-B3ciBZhS.js → dirname-wtPE8QZ6.js} +1 -1
- package/dist/{du-i2qiYYnL.js → du-BLkl3BkN.js} +1 -1
- package/dist/fastfetch-aPM9Z3ym.js +310 -0
- package/dist/{file-Dd6iLk05.js → file-DfmI5Gyk.js} +1 -1
- package/dist/{find-Cz4GdaPT.js → find-Wdkys9OU.js} +1 -1
- package/dist/{grep-DYSAPbxr.js → grep-xmx3I05f.js} +1 -1
- package/dist/{gunzip-BHAbNGHO.js → gunzip-Dbr2fm5t.js} +1 -1
- package/dist/{gzip-JLrrHn6u.js → gzip-D1GwSnNe.js} +1 -1
- package/dist/{head-bFamSv7p.js → head-DUXuKw3m.js} +1 -1
- package/dist/index-Djm2onjx.js +13915 -0
- package/dist/index.d.ts +28 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +90 -65
- package/dist/kernel/ServiceManager.d.ts +51 -0
- package/dist/kernel/ServiceManager.d.ts.map +1 -0
- package/dist/kernel/index.d.ts +11 -0
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/kernel/network/Bridge.d.ts +110 -0
- package/dist/kernel/network/Bridge.d.ts.map +1 -0
- package/dist/kernel/network/DNSResolver.d.ts +55 -0
- package/dist/kernel/network/DNSResolver.d.ts.map +1 -0
- package/dist/kernel/network/NetworkInterface.d.ts +83 -0
- package/dist/kernel/network/NetworkInterface.d.ts.map +1 -0
- package/dist/kernel/network/NetworkNamespace.d.ts +98 -0
- package/dist/kernel/network/NetworkNamespace.d.ts.map +1 -0
- package/dist/kernel/network/NetworkStack.d.ts +178 -0
- package/dist/kernel/network/NetworkStack.d.ts.map +1 -0
- package/dist/kernel/network/NetworkStack.example.d.ts +8 -0
- package/dist/kernel/network/NetworkStack.example.d.ts.map +1 -0
- package/dist/kernel/network/NetworkStack.test.d.ts +2 -0
- package/dist/kernel/network/NetworkStack.test.d.ts.map +1 -0
- package/dist/kernel/network/PortBridge.d.ts +49 -0
- package/dist/kernel/network/PortBridge.d.ts.map +1 -0
- package/dist/kernel/network/RoutingTable.d.ts +55 -0
- package/dist/kernel/network/RoutingTable.d.ts.map +1 -0
- package/dist/kernel/network/Socket.d.ts +65 -0
- package/dist/kernel/network/Socket.d.ts.map +1 -0
- package/dist/kernel/network/index.d.ts +11 -0
- package/dist/kernel/network/index.d.ts.map +1 -0
- package/dist/kernel/network/tunnel/BaseTunnel.d.ts +55 -0
- package/dist/kernel/network/tunnel/BaseTunnel.d.ts.map +1 -0
- package/dist/kernel/network/tunnel/VETHPair.d.ts +71 -0
- package/dist/kernel/network/tunnel/VETHPair.d.ts.map +1 -0
- package/dist/kernel/network/tunnel/WebSocketTunnel.d.ts +89 -0
- package/dist/kernel/network/tunnel/WebSocketTunnel.d.ts.map +1 -0
- package/dist/kernel/network/types.d.ts +159 -0
- package/dist/kernel/network/types.d.ts.map +1 -0
- package/dist/kernel/storage/ContentStore.d.ts +3 -1
- package/dist/kernel/storage/ContentStore.d.ts.map +1 -1
- package/dist/kernel/unit-parser.d.ts +22 -0
- package/dist/kernel/unit-parser.d.ts.map +1 -0
- package/dist/less-VW-Lb-t9.js +230 -0
- package/dist/{ls-BSsn2qVd.js → ls-DjuSFYCA.js} +1 -1
- package/dist/{man-CJ5pI0_W.js → man-Dg26tZ-a.js} +19 -6
- package/dist/{mkdir-CF_ugDtu.js → mkdir-qMgrbMfK.js} +1 -1
- package/dist/{mktemp-CaEiJi87.js → mktemp-BNrdUgqA.js} +1 -1
- package/dist/{mv-BSS_QQM-.js → mv-DxovuvmA.js} +1 -1
- package/dist/nano-CVa6vpFX.js +304 -0
- package/dist/{nl-D30ka89P.js → nl-E4qmf3dZ.js} +1 -1
- package/dist/node-compat/crypto.d.ts +8 -1
- package/dist/node-compat/crypto.d.ts.map +1 -1
- package/dist/node-compat/dns.d.ts +117 -0
- package/dist/node-compat/dns.d.ts.map +1 -0
- package/dist/node-compat/esbuild.d.ts +10 -0
- package/dist/node-compat/esbuild.d.ts.map +1 -0
- package/dist/node-compat/fs.d.ts +25 -5
- package/dist/node-compat/fs.d.ts.map +1 -1
- package/dist/node-compat/http.d.ts +54 -9
- package/dist/node-compat/http.d.ts.map +1 -1
- package/dist/node-compat/index.d.ts.map +1 -1
- package/dist/node-compat/module.d.ts +55 -0
- package/dist/node-compat/module.d.ts.map +1 -0
- package/dist/node-compat/path.d.ts +28 -0
- package/dist/node-compat/path.d.ts.map +1 -1
- package/dist/node-compat/process.d.ts +67 -2
- package/dist/node-compat/process.d.ts.map +1 -1
- package/dist/node-compat/readline.d.ts +79 -0
- package/dist/node-compat/readline.d.ts.map +1 -0
- package/dist/node-compat/rimraf.d.ts +23 -0
- package/dist/node-compat/rimraf.d.ts.map +1 -0
- package/dist/node-compat/tty.d.ts +32 -0
- package/dist/node-compat/tty.d.ts.map +1 -0
- package/dist/node-compat/url.d.ts +4 -0
- package/dist/node-compat/url.d.ts.map +1 -1
- package/dist/node-compat/util.d.ts +21 -1
- package/dist/node-compat/util.d.ts.map +1 -1
- package/dist/{realpath-BWqrTa-J.js → realpath-BaYc6QSr.js} +1 -1
- package/dist/{rev-Cfja5xbl.js → rev-CtqOEUEH.js} +1 -1
- package/dist/{rm-DUR35EZn.js → rm-DtLSFhWn.js} +1 -1
- package/dist/{rmdir-DXjx17-Z.js → rmdir-k65U0Fef.js} +1 -1
- package/dist/sandbox/Sandbox.d.ts.map +1 -1
- package/dist/sandbox/types.d.ts +2 -2
- package/dist/sandbox/types.d.ts.map +1 -1
- package/dist/{sed-YKJ5wcuu.js → sed-BpypU_CO.js} +1 -1
- package/dist/seq-B01YKIbO.js +37 -0
- package/dist/sha256sum-x-mlDY9n.js +64 -0
- package/dist/shell/ProcessRegistry.d.ts +144 -0
- package/dist/shell/ProcessRegistry.d.ts.map +1 -0
- package/dist/shell/ProcessRegistry.example.d.ts +8 -0
- package/dist/shell/ProcessRegistry.example.d.ts.map +1 -0
- package/dist/shell/ProcessRegistry.test.d.ts +2 -0
- package/dist/shell/ProcessRegistry.test.d.ts.map +1 -0
- package/dist/shell/Shell.d.ts +10 -2
- package/dist/shell/Shell.d.ts.map +1 -1
- package/dist/shell/interpreter.d.ts +4 -0
- package/dist/shell/interpreter.d.ts.map +1 -1
- package/dist/shell/terminal-stdin.d.ts +4 -0
- package/dist/shell/terminal-stdin.d.ts.map +1 -1
- package/dist/sl-Dv4iPBN6.js +138 -0
- package/dist/{sort-C2sQ841N.js → sort-C1n7kWmJ.js} +1 -1
- package/dist/{stat-gLLpq3JZ.js → stat-Co_5pgto.js} +1 -1
- package/dist/strings-tFgYFAvp.js +42 -0
- package/dist/tac-BQvVvnoM.js +31 -0
- package/dist/{tail-FnC8M40k.js → tail-CLWVwfZD.js} +1 -1
- package/dist/{tar-tfiT1iFt.js → tar-wo7UUSK5.js} +1 -1
- package/dist/{tee-CoymtuKa.js → tee-DlyeS1Yd.js} +1 -1
- package/dist/{touch-C4pyouV6.js → touch-DVzPgqSy.js} +1 -1
- package/dist/{tree-DfPczgli.js → tree-DHBQhXD7.js} +1 -1
- package/dist/{uniq-Dhsoj7Lk.js → uniq-CmmP6k_t.js} +1 -1
- package/dist/{unzip-CqIKZ8NK.js → unzip-BIOvH2jT.js} +1 -1
- package/dist/{wc-DBPO6xRf.js → wc-DfI1Q3lo.js} +1 -1
- package/dist/{wget-CYImxeOz.js → wget-Dd25MxcO.js} +1 -1
- package/dist/whoami-C_q-p-Vo.js +25 -0
- package/dist/{zip-TPdwPkrA.js → zip-Cc3IoNSB.js} +1 -1
- package/package.json +6 -3
- package/dist/index-BVIfyOAv.js +0 -8578
- package/dist/whoami-B1237V5e.js +0 -8
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { r as v, V as M } from "./index-Djm2onjx.js";
|
|
2
|
+
const u = "\x1B[", g = `${u}2J`, b = `${u}H`, N = `${u}?25l`, E = `${u}?25h`, y = `${u}2K`, k = `${u}7m`, h = `${u}1m`, s = `${u}0m`;
|
|
3
|
+
function a(r, e) {
|
|
4
|
+
return `${u}${r + 1};${e + 1}H`;
|
|
5
|
+
}
|
|
6
|
+
function F(r) {
|
|
7
|
+
if (r === "\r") return { type: "enter" };
|
|
8
|
+
if (r === "" || r === "\b") return { type: "backspace" };
|
|
9
|
+
if (r === " ") return { type: "tab" };
|
|
10
|
+
if (r === "") return { type: "ctrl-o" };
|
|
11
|
+
if (r === "") return { type: "ctrl-x" };
|
|
12
|
+
if (r === "\v") return { type: "ctrl-k" };
|
|
13
|
+
if (r === "") return { type: "ctrl-u" };
|
|
14
|
+
if (r === "") return { type: "ctrl-w" };
|
|
15
|
+
if (r === "") return { type: "ctrl-c" };
|
|
16
|
+
if (r === "\x1B" && r.length === 1) return { type: "escape" };
|
|
17
|
+
if (r.startsWith("\x1B[")) {
|
|
18
|
+
const e = r.slice(2);
|
|
19
|
+
return e === "A" ? { type: "up" } : e === "B" ? { type: "down" } : e === "C" ? { type: "right" } : e === "D" ? { type: "left" } : e === "H" ? { type: "home" } : e === "F" ? { type: "end" } : e === "1~" || e === "7~" ? { type: "home" } : e === "4~" || e === "8~" ? { type: "end" } : e === "3~" ? { type: "delete" } : e === "5~" ? { type: "pageup" } : e === "6~" ? { type: "pagedown" } : { type: "unknown" };
|
|
20
|
+
}
|
|
21
|
+
return r.length >= 1 && r.charCodeAt(0) >= 32 ? { type: "char", char: r } : { type: "unknown" };
|
|
22
|
+
}
|
|
23
|
+
function O(r, e) {
|
|
24
|
+
try {
|
|
25
|
+
const o = r.vfs.readFileString(e).split(`
|
|
26
|
+
`);
|
|
27
|
+
return o.length > 1 && o[o.length - 1] === "" && o.pop(), { lines: o.length === 0 ? [""] : o, isNew: !1 };
|
|
28
|
+
} catch (t) {
|
|
29
|
+
if (t instanceof M && t.message.includes("ENOENT"))
|
|
30
|
+
return { lines: [""], isNew: !0 };
|
|
31
|
+
throw t;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function S(r, e, t) {
|
|
35
|
+
r.vfs.writeFile(e, t.join(`
|
|
36
|
+
`) + `
|
|
37
|
+
`);
|
|
38
|
+
}
|
|
39
|
+
function C(r, e) {
|
|
40
|
+
const t = r.lines[r.cursorRow];
|
|
41
|
+
r.lines[r.cursorRow] = t.slice(0, r.cursorCol) + e + t.slice(r.cursorCol), r.cursorCol += e.length, r.preferredCol = r.cursorCol, r.modified = !0;
|
|
42
|
+
}
|
|
43
|
+
function $(r) {
|
|
44
|
+
const e = r.lines[r.cursorRow];
|
|
45
|
+
r.lines[r.cursorRow] = e.slice(0, r.cursorCol), r.lines.splice(r.cursorRow + 1, 0, e.slice(r.cursorCol)), r.cursorRow++, r.cursorCol = 0, r.preferredCol = 0, r.modified = !0;
|
|
46
|
+
}
|
|
47
|
+
function D(r) {
|
|
48
|
+
if (r.cursorCol > 0) {
|
|
49
|
+
const e = r.lines[r.cursorRow];
|
|
50
|
+
r.lines[r.cursorRow] = e.slice(0, r.cursorCol - 1) + e.slice(r.cursorCol), r.cursorCol--;
|
|
51
|
+
} else if (r.cursorRow > 0) {
|
|
52
|
+
const e = r.lines[r.cursorRow - 1];
|
|
53
|
+
r.lines[r.cursorRow - 1] = e + r.lines[r.cursorRow], r.lines.splice(r.cursorRow, 1), r.cursorRow--, r.cursorCol = e.length;
|
|
54
|
+
}
|
|
55
|
+
r.preferredCol = r.cursorCol, r.modified = !0;
|
|
56
|
+
}
|
|
57
|
+
function H(r) {
|
|
58
|
+
const e = r.lines[r.cursorRow];
|
|
59
|
+
r.cursorCol < e.length ? r.lines[r.cursorRow] = e.slice(0, r.cursorCol) + e.slice(r.cursorCol + 1) : r.cursorRow < r.lines.length - 1 && (r.lines[r.cursorRow] = e + r.lines[r.cursorRow + 1], r.lines.splice(r.cursorRow + 1, 1)), r.modified = !0;
|
|
60
|
+
}
|
|
61
|
+
function L(r) {
|
|
62
|
+
r.cutBuffer.push(r.lines[r.cursorRow]), r.lines.length === 1 ? (r.lines[0] = "", r.cursorCol = 0) : (r.lines.splice(r.cursorRow, 1), r.cursorRow >= r.lines.length && (r.cursorRow = r.lines.length - 1), r.cursorCol = Math.min(r.preferredCol, r.lines[r.cursorRow].length)), r.modified = !0;
|
|
63
|
+
}
|
|
64
|
+
function P(r) {
|
|
65
|
+
if (r.cutBuffer.length !== 0) {
|
|
66
|
+
for (let e = 0; e < r.cutBuffer.length; e++)
|
|
67
|
+
r.lines.splice(r.cursorRow + e, 0, r.cutBuffer[e]);
|
|
68
|
+
r.cursorRow += r.cutBuffer.length, r.cursorCol = 0, r.preferredCol = 0, r.cutBuffer = [], r.modified = !0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function I(r) {
|
|
72
|
+
r.cursorRow > 0 && (r.cursorRow--, r.cursorCol = Math.min(r.preferredCol, r.lines[r.cursorRow].length));
|
|
73
|
+
}
|
|
74
|
+
function U(r) {
|
|
75
|
+
r.cursorRow < r.lines.length - 1 && (r.cursorRow++, r.cursorCol = Math.min(r.preferredCol, r.lines[r.cursorRow].length));
|
|
76
|
+
}
|
|
77
|
+
function W(r) {
|
|
78
|
+
r.cursorCol > 0 ? r.cursorCol-- : r.cursorRow > 0 && (r.cursorRow--, r.cursorCol = r.lines[r.cursorRow].length), r.preferredCol = r.cursorCol;
|
|
79
|
+
}
|
|
80
|
+
function A(r) {
|
|
81
|
+
const e = r.lines[r.cursorRow];
|
|
82
|
+
r.cursorCol < e.length ? r.cursorCol++ : r.cursorRow < r.lines.length - 1 && (r.cursorRow++, r.cursorCol = 0), r.preferredCol = r.cursorCol;
|
|
83
|
+
}
|
|
84
|
+
function K(r) {
|
|
85
|
+
const e = r.rows - 3;
|
|
86
|
+
r.cursorRow = Math.max(0, r.cursorRow - e), r.cursorCol = Math.min(r.preferredCol, r.lines[r.cursorRow].length);
|
|
87
|
+
}
|
|
88
|
+
function T(r) {
|
|
89
|
+
const e = r.rows - 3;
|
|
90
|
+
r.cursorRow = Math.min(r.lines.length - 1, r.cursorRow + e), r.cursorCol = Math.min(r.preferredCol, r.lines[r.cursorRow].length);
|
|
91
|
+
}
|
|
92
|
+
function V(r) {
|
|
93
|
+
const e = r.rows - 3;
|
|
94
|
+
r.cursorRow < r.scrollRow && (r.scrollRow = r.cursorRow), r.cursorRow >= r.scrollRow + e && (r.scrollRow = r.cursorRow - e + 1), r.cursorCol < r.scrollCol && (r.scrollCol = r.cursorCol), r.cursorCol >= r.scrollCol + r.cols && (r.scrollCol = r.cursorCol - r.cols + 1);
|
|
95
|
+
}
|
|
96
|
+
function B(r, e) {
|
|
97
|
+
const t = r.rows - 3;
|
|
98
|
+
let o = N;
|
|
99
|
+
o += a(0, 0) + k;
|
|
100
|
+
const n = r.modified ? " [Modified]" : "", p = ` nano ${r.filePath.split("/").pop() || "untitled"}${n}`, d = `Line ${r.cursorRow + 1}/${r.lines.length} `, w = Math.max(0, r.cols - p.length - d.length);
|
|
101
|
+
o += p + " ".repeat(w) + d + s;
|
|
102
|
+
for (let l = 0; l < t; l++) {
|
|
103
|
+
const f = r.scrollRow + l;
|
|
104
|
+
o += a(l + 1, 0) + y, f < r.lines.length && (o += r.lines[f].slice(r.scrollCol, r.scrollCol + r.cols));
|
|
105
|
+
}
|
|
106
|
+
o += a(r.rows - 2, 0) + y, r.mode === "save-prompt" ? o += h + "File Name to Write: " + s + r.promptBuf : r.mode === "search-prompt" ? o += h + "Search: " + s + r.promptBuf : r.mode === "dirty-exit" ? o += h + "Save modified buffer? (Y/N/^C) " + s : r.statusMsg && Date.now() < r.statusExpiry && (o += h + r.statusMsg + s), o += a(r.rows - 1, 0) + k;
|
|
107
|
+
const c = r.mode === "edit" ? "^X Exit ^O Save ^K Cut ^U Paste ^W Search" : "^C Cancel";
|
|
108
|
+
o += c.padEnd(r.cols) + s, r.mode === "save-prompt" ? o += a(r.rows - 2, 20 + r.promptBuf.length) : r.mode === "search-prompt" ? o += a(r.rows - 2, 8 + r.promptBuf.length) : r.mode !== "dirty-exit" && (o += a(r.cursorRow - r.scrollRow + 1, r.cursorCol - r.scrollCol)), o += E, e.write(o);
|
|
109
|
+
}
|
|
110
|
+
function R(r, e) {
|
|
111
|
+
r.statusMsg = e, r.statusExpiry = Date.now() + 3e3;
|
|
112
|
+
}
|
|
113
|
+
function j(r, e) {
|
|
114
|
+
for (let t = r.cursorRow; t < r.lines.length; t++) {
|
|
115
|
+
const o = t === r.cursorRow ? r.cursorCol + 1 : 0, n = r.lines[t].indexOf(e, o);
|
|
116
|
+
if (n !== -1)
|
|
117
|
+
return r.cursorRow = t, r.cursorCol = n, r.preferredCol = n, !0;
|
|
118
|
+
}
|
|
119
|
+
for (let t = 0; t <= r.cursorRow; t++) {
|
|
120
|
+
const o = t === r.cursorRow ? r.cursorCol : r.lines[t].length, n = r.lines[t].indexOf(e);
|
|
121
|
+
if (n !== -1 && n < o)
|
|
122
|
+
return r.cursorRow = t, r.cursorCol = n, r.preferredCol = n, !0;
|
|
123
|
+
}
|
|
124
|
+
return !1;
|
|
125
|
+
}
|
|
126
|
+
function _(r, e) {
|
|
127
|
+
switch (e.type) {
|
|
128
|
+
case "char":
|
|
129
|
+
C(r, e.char);
|
|
130
|
+
break;
|
|
131
|
+
case "enter":
|
|
132
|
+
$(r);
|
|
133
|
+
break;
|
|
134
|
+
case "backspace":
|
|
135
|
+
D(r);
|
|
136
|
+
break;
|
|
137
|
+
case "delete":
|
|
138
|
+
H(r);
|
|
139
|
+
break;
|
|
140
|
+
case "tab":
|
|
141
|
+
C(r, " ");
|
|
142
|
+
break;
|
|
143
|
+
case "up":
|
|
144
|
+
I(r);
|
|
145
|
+
break;
|
|
146
|
+
case "down":
|
|
147
|
+
U(r);
|
|
148
|
+
break;
|
|
149
|
+
case "left":
|
|
150
|
+
W(r);
|
|
151
|
+
break;
|
|
152
|
+
case "right":
|
|
153
|
+
A(r);
|
|
154
|
+
break;
|
|
155
|
+
case "home":
|
|
156
|
+
r.cursorCol = 0, r.preferredCol = 0;
|
|
157
|
+
break;
|
|
158
|
+
case "end":
|
|
159
|
+
r.cursorCol = r.lines[r.cursorRow].length, r.preferredCol = r.cursorCol;
|
|
160
|
+
break;
|
|
161
|
+
case "pageup":
|
|
162
|
+
K(r);
|
|
163
|
+
break;
|
|
164
|
+
case "pagedown":
|
|
165
|
+
T(r);
|
|
166
|
+
break;
|
|
167
|
+
case "ctrl-k":
|
|
168
|
+
L(r);
|
|
169
|
+
break;
|
|
170
|
+
case "ctrl-u":
|
|
171
|
+
P(r);
|
|
172
|
+
break;
|
|
173
|
+
case "ctrl-o":
|
|
174
|
+
r.mode = "save-prompt", r.promptBuf = r.filePath;
|
|
175
|
+
break;
|
|
176
|
+
case "ctrl-w":
|
|
177
|
+
r.mode = "search-prompt", r.promptBuf = "";
|
|
178
|
+
break;
|
|
179
|
+
case "ctrl-x":
|
|
180
|
+
if (r.modified)
|
|
181
|
+
r.mode = "dirty-exit";
|
|
182
|
+
else
|
|
183
|
+
return !0;
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
return !1;
|
|
187
|
+
}
|
|
188
|
+
function Y(r, e, t) {
|
|
189
|
+
switch (e.type) {
|
|
190
|
+
case "enter":
|
|
191
|
+
try {
|
|
192
|
+
const o = v(t.cwd, r.promptBuf);
|
|
193
|
+
S(t, o, r.lines), r.filePath = o, r.modified = !1, R(r, `Wrote ${r.lines.length} lines`);
|
|
194
|
+
} catch (o) {
|
|
195
|
+
R(r, `Error: ${o instanceof Error ? o.message : String(o)}`);
|
|
196
|
+
}
|
|
197
|
+
r.mode = "edit";
|
|
198
|
+
break;
|
|
199
|
+
case "ctrl-c":
|
|
200
|
+
case "escape":
|
|
201
|
+
r.mode = "edit";
|
|
202
|
+
break;
|
|
203
|
+
case "backspace":
|
|
204
|
+
r.promptBuf = r.promptBuf.slice(0, -1);
|
|
205
|
+
break;
|
|
206
|
+
case "char":
|
|
207
|
+
r.promptBuf += e.char;
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
return !1;
|
|
211
|
+
}
|
|
212
|
+
function J(r, e) {
|
|
213
|
+
switch (e.type) {
|
|
214
|
+
case "enter":
|
|
215
|
+
r.promptBuf && (j(r, r.promptBuf) || R(r, `"${r.promptBuf}" not found`)), r.mode = "edit";
|
|
216
|
+
break;
|
|
217
|
+
case "ctrl-c":
|
|
218
|
+
case "escape":
|
|
219
|
+
r.mode = "edit";
|
|
220
|
+
break;
|
|
221
|
+
case "backspace":
|
|
222
|
+
r.promptBuf = r.promptBuf.slice(0, -1);
|
|
223
|
+
break;
|
|
224
|
+
case "char":
|
|
225
|
+
r.promptBuf += e.char;
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
return !1;
|
|
229
|
+
}
|
|
230
|
+
function X(r, e, t) {
|
|
231
|
+
if (e.type === "char") {
|
|
232
|
+
if (e.char === "y" || e.char === "Y") {
|
|
233
|
+
try {
|
|
234
|
+
S(t, r.filePath, r.lines);
|
|
235
|
+
} catch {
|
|
236
|
+
}
|
|
237
|
+
return !0;
|
|
238
|
+
}
|
|
239
|
+
if (e.char === "n" || e.char === "N") return !0;
|
|
240
|
+
}
|
|
241
|
+
return (e.type === "ctrl-c" || e.type === "escape") && (r.mode = "edit"), !1;
|
|
242
|
+
}
|
|
243
|
+
const z = async (r) => {
|
|
244
|
+
var n, m, p;
|
|
245
|
+
if (r.args.length === 0)
|
|
246
|
+
return r.stderr.write(`Usage: nano <filename>
|
|
247
|
+
`), 1;
|
|
248
|
+
const e = v(r.cwd, r.args[0]), t = parseInt(r.env.LINES || "24", 10), o = parseInt(r.env.COLUMNS || "80", 10);
|
|
249
|
+
(n = r.setRawMode) == null || n.call(r, !0);
|
|
250
|
+
try {
|
|
251
|
+
const { lines: d, isNew: w } = O(r, e), c = {
|
|
252
|
+
lines: d,
|
|
253
|
+
modified: !1,
|
|
254
|
+
filePath: e,
|
|
255
|
+
isNewFile: w,
|
|
256
|
+
cursorRow: 0,
|
|
257
|
+
cursorCol: 0,
|
|
258
|
+
preferredCol: 0,
|
|
259
|
+
scrollRow: 0,
|
|
260
|
+
scrollCol: 0,
|
|
261
|
+
rows: t,
|
|
262
|
+
cols: o,
|
|
263
|
+
mode: "edit",
|
|
264
|
+
promptBuf: "",
|
|
265
|
+
statusMsg: w ? "[ New File ]" : "",
|
|
266
|
+
statusExpiry: w ? Date.now() + 3e3 : 0,
|
|
267
|
+
cutBuffer: []
|
|
268
|
+
};
|
|
269
|
+
for (r.stdout.write(g + b), B(c, r.stdout); ; ) {
|
|
270
|
+
const l = await ((m = r.stdin) == null ? void 0 : m.read());
|
|
271
|
+
if (l == null) break;
|
|
272
|
+
let f = !1;
|
|
273
|
+
if (l.startsWith("\x1B") || l.length === 1) {
|
|
274
|
+
const i = F(l);
|
|
275
|
+
switch (c.mode) {
|
|
276
|
+
case "edit":
|
|
277
|
+
f = _(c, i);
|
|
278
|
+
break;
|
|
279
|
+
case "save-prompt":
|
|
280
|
+
f = Y(c, i, r);
|
|
281
|
+
break;
|
|
282
|
+
case "search-prompt":
|
|
283
|
+
f = J(c, i);
|
|
284
|
+
break;
|
|
285
|
+
case "dirty-exit":
|
|
286
|
+
f = X(c, i, r);
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
} else
|
|
290
|
+
for (const i of l)
|
|
291
|
+
i === "\r" || i === `
|
|
292
|
+
` ? $(c) : i.charCodeAt(0) >= 32 && C(c, i);
|
|
293
|
+
if (f) break;
|
|
294
|
+
V(c), B(c, r.stdout);
|
|
295
|
+
}
|
|
296
|
+
r.stdout.write(g + b + E);
|
|
297
|
+
} finally {
|
|
298
|
+
(p = r.setRawMode) == null || p.call(r, !1);
|
|
299
|
+
}
|
|
300
|
+
return 0;
|
|
301
|
+
};
|
|
302
|
+
export {
|
|
303
|
+
z as default
|
|
304
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p } from "./args-CG6b9cZt.js";
|
|
2
|
-
import { r as m, i as u, c as h, V as f } from "./index-
|
|
2
|
+
import { r as m, i as u, c as h, V as f } from "./index-Djm2onjx.js";
|
|
3
3
|
const w = {
|
|
4
4
|
"body-numbering": { type: "string", short: "b" },
|
|
5
5
|
"number-width": { type: "string", short: "w" }
|
|
@@ -3,15 +3,22 @@ export declare function randomBytes(size: number): Buffer;
|
|
|
3
3
|
export declare function randomUUID(): string;
|
|
4
4
|
interface HashObject {
|
|
5
5
|
update(data: string | Uint8Array): HashObject;
|
|
6
|
-
digest(encoding?: string):
|
|
6
|
+
digest(encoding?: string): string | Buffer;
|
|
7
7
|
}
|
|
8
8
|
export declare function createHash(algorithm: string): HashObject;
|
|
9
9
|
export declare function randomInt(min: number, max?: number): number;
|
|
10
|
+
export declare function getRandomValues<T extends ArrayBufferView>(array: T): T;
|
|
11
|
+
export declare const subtle: SubtleCrypto;
|
|
12
|
+
/** Node.js 21+ one-shot sync hash: crypto.hash(algo, data, encoding) */
|
|
13
|
+
export declare function hash(algorithm: string, data: string | Uint8Array, outputEncoding?: string): string;
|
|
10
14
|
declare const _default: {
|
|
11
15
|
randomBytes: typeof randomBytes;
|
|
12
16
|
randomUUID: typeof randomUUID;
|
|
13
17
|
createHash: typeof createHash;
|
|
14
18
|
randomInt: typeof randomInt;
|
|
19
|
+
getRandomValues: typeof getRandomValues;
|
|
20
|
+
subtle: SubtleCrypto;
|
|
21
|
+
hash: typeof hash;
|
|
15
22
|
};
|
|
16
23
|
export default _default;
|
|
17
24
|
//# sourceMappingURL=crypto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/node-compat/crypto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIhD;AAED,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAED,UAAU,UAAU;IAClB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;IAC9C,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/node-compat/crypto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIhD;AAED,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAED,UAAU,UAAU;IAClB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;IAC9C,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAC5C;AAED,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAkCxD;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAS3D;AAGD,wBAAgB,eAAe,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAEtE;AAED,eAAO,MAAM,MAAM,cAAgB,CAAC;AAqGpC,wEAAwE;AACxE,wBAAgB,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,cAAc,GAAE,MAAc,GAAG,MAAM,CAUzG;;;;;;;;;;AAED,wBAAiG"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node.js `dns` module shim for Lifo.
|
|
3
|
+
*
|
|
4
|
+
* Real DNS resolution is not available in the browser. The callback-style API
|
|
5
|
+
* invokes callbacks with an ENOTFOUND error, while the promises API rejects.
|
|
6
|
+
* `lookup` is the most commonly used function so it gets special treatment:
|
|
7
|
+
* for "localhost" it resolves to 127.0.0.1, everything else errors.
|
|
8
|
+
*/
|
|
9
|
+
declare const NOTFOUND = "ENOTFOUND";
|
|
10
|
+
type LookupCallback = (err: Error | null, address?: string, family?: number) => void;
|
|
11
|
+
type LookupAllCallback = (err: Error | null, addresses?: Array<{
|
|
12
|
+
address: string;
|
|
13
|
+
family: number;
|
|
14
|
+
}>) => void;
|
|
15
|
+
declare function lookup(hostname: string, options: {
|
|
16
|
+
all: true;
|
|
17
|
+
}, cb: LookupAllCallback): void;
|
|
18
|
+
declare function lookup(hostname: string, options: {
|
|
19
|
+
family?: number;
|
|
20
|
+
} | number, cb: LookupCallback): void;
|
|
21
|
+
declare function lookup(hostname: string, cb: LookupCallback): void;
|
|
22
|
+
declare function resolve(hostname: string, cb: (err: Error | null, addresses?: string[]) => void): void;
|
|
23
|
+
declare function resolve(hostname: string, rrtype: string, cb: (err: Error | null, addresses?: unknown[]) => void): void;
|
|
24
|
+
declare function resolve4(hostname: string, cb: (err: Error | null, addresses?: string[]) => void): void;
|
|
25
|
+
declare function resolve6(hostname: string, cb: (err: Error | null, addresses?: string[]) => void): void;
|
|
26
|
+
declare function resolveMx(hostname: string, cb: (err: Error | null, addresses?: Array<{
|
|
27
|
+
exchange: string;
|
|
28
|
+
priority: number;
|
|
29
|
+
}>) => void): void;
|
|
30
|
+
declare function resolveTxt(hostname: string, cb: (err: Error | null, addresses?: string[][]) => void): void;
|
|
31
|
+
declare function resolveSrv(hostname: string, cb: (err: Error | null, addresses?: Array<{
|
|
32
|
+
name: string;
|
|
33
|
+
port: number;
|
|
34
|
+
priority: number;
|
|
35
|
+
weight: number;
|
|
36
|
+
}>) => void): void;
|
|
37
|
+
declare function resolveNs(hostname: string, cb: (err: Error | null, addresses?: string[]) => void): void;
|
|
38
|
+
declare function resolveCname(hostname: string, cb: (err: Error | null, addresses?: string[]) => void): void;
|
|
39
|
+
declare function reverse(ip: string, cb: (err: Error | null, hostnames?: string[]) => void): void;
|
|
40
|
+
declare function setServers(_servers: string[]): void;
|
|
41
|
+
declare function getServers(): string[];
|
|
42
|
+
declare const promises: {
|
|
43
|
+
lookup: (hostname: string, options?: {
|
|
44
|
+
all?: boolean;
|
|
45
|
+
family?: number;
|
|
46
|
+
} | number) => Promise<{
|
|
47
|
+
address: string;
|
|
48
|
+
family: number;
|
|
49
|
+
} | Array<{
|
|
50
|
+
address: string;
|
|
51
|
+
family: number;
|
|
52
|
+
}>>;
|
|
53
|
+
resolve: (hostname: string, _rrtype?: string) => Promise<string[]>;
|
|
54
|
+
resolve4: (hostname: string) => Promise<string[]>;
|
|
55
|
+
resolve6: (hostname: string) => Promise<string[]>;
|
|
56
|
+
reverse: (ip: string) => Promise<string[]>;
|
|
57
|
+
setServers: (_servers: string[]) => void;
|
|
58
|
+
getServers: () => string[];
|
|
59
|
+
};
|
|
60
|
+
declare const ADDRGETNETWORKPARAMS = "EADDRGETNETWORKPARAMS";
|
|
61
|
+
declare const BADFAMILY = "EBADFAMILY";
|
|
62
|
+
declare const BADFLAGS = "EBADFLAGS";
|
|
63
|
+
declare const BADHINTS = "EBADHINTS";
|
|
64
|
+
declare const BADNAME = "EBADNAME";
|
|
65
|
+
declare const BADQUERY = "EBADQUERY";
|
|
66
|
+
declare const BADRESP = "EBADRESP";
|
|
67
|
+
declare const BADSTR = "EBADSTR";
|
|
68
|
+
declare const CANCELLED = "ECANCELLED";
|
|
69
|
+
declare const CONNREFUSED = "ECONNREFUSED";
|
|
70
|
+
declare const DESTRUCTION = "EDESTRUCTION";
|
|
71
|
+
declare const EOF = "EEOF";
|
|
72
|
+
declare const FILE = "EFILE";
|
|
73
|
+
declare const FORMERR = "EFORMERR";
|
|
74
|
+
declare const LOADIPHLPAPI = "ELOADIPHLPAPI";
|
|
75
|
+
declare const NODATA = "ENODATA";
|
|
76
|
+
declare const NOMEM = "ENOMEM";
|
|
77
|
+
declare const NONAME = "ENONAME";
|
|
78
|
+
declare const NOTINITIALIZED = "ENOTINITIALIZED";
|
|
79
|
+
declare const REFUSED = "EREFUSED";
|
|
80
|
+
declare const SERVFAIL = "ESERVFAIL";
|
|
81
|
+
declare const TIMEOUT = "ETIMEOUT";
|
|
82
|
+
export { lookup, resolve, resolve4, resolve6, resolveMx, resolveTxt, resolveSrv, resolveNs, resolveCname, reverse, setServers, getServers, promises, NOTFOUND, ADDRGETNETWORKPARAMS, BADFAMILY, BADFLAGS, BADHINTS, BADNAME, BADQUERY, BADRESP, BADSTR, CANCELLED, CONNREFUSED, DESTRUCTION, EOF, FILE, FORMERR, LOADIPHLPAPI, NODATA, NOMEM, NONAME, NOTINITIALIZED, REFUSED, SERVFAIL, TIMEOUT, };
|
|
83
|
+
declare const _default: {
|
|
84
|
+
lookup: typeof lookup;
|
|
85
|
+
resolve: typeof resolve;
|
|
86
|
+
resolve4: typeof resolve4;
|
|
87
|
+
resolve6: typeof resolve6;
|
|
88
|
+
resolveMx: typeof resolveMx;
|
|
89
|
+
resolveTxt: typeof resolveTxt;
|
|
90
|
+
resolveSrv: typeof resolveSrv;
|
|
91
|
+
resolveNs: typeof resolveNs;
|
|
92
|
+
resolveCname: typeof resolveCname;
|
|
93
|
+
reverse: typeof reverse;
|
|
94
|
+
setServers: typeof setServers;
|
|
95
|
+
getServers: typeof getServers;
|
|
96
|
+
promises: {
|
|
97
|
+
lookup: (hostname: string, options?: {
|
|
98
|
+
all?: boolean;
|
|
99
|
+
family?: number;
|
|
100
|
+
} | number) => Promise<{
|
|
101
|
+
address: string;
|
|
102
|
+
family: number;
|
|
103
|
+
} | Array<{
|
|
104
|
+
address: string;
|
|
105
|
+
family: number;
|
|
106
|
+
}>>;
|
|
107
|
+
resolve: (hostname: string, _rrtype?: string) => Promise<string[]>;
|
|
108
|
+
resolve4: (hostname: string) => Promise<string[]>;
|
|
109
|
+
resolve6: (hostname: string) => Promise<string[]>;
|
|
110
|
+
reverse: (ip: string) => Promise<string[]>;
|
|
111
|
+
setServers: (_servers: string[]) => void;
|
|
112
|
+
getServers: () => string[];
|
|
113
|
+
};
|
|
114
|
+
NOTFOUND: string;
|
|
115
|
+
};
|
|
116
|
+
export default _default;
|
|
117
|
+
//# sourceMappingURL=dns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dns.d.ts","source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AC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;4BAcxJ,MAAM,YAAY,MAAM,KAAG,OAAO,CAAC,MAAM,EAAE,CAAC;6BAG3C,MAAM,KAAG,OAAO,CAAC,MAAM,EAAE,CAAC;6BAG1B,MAAM,KAAG,OAAO,CAAC,MAAM,EAAE,CAAC;sBAGjC,MAAM,KAAG,OAAO,CAAC,MAAM,EAAE,CAAC;+BAGjB,MAAM,EAAE,KAAG,IAAI;0BACtB,MAAM,EAAE;;;;AAkE1B,wBAeE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* esbuild shim that uses esbuild-wasm loaded from CDN.
|
|
3
|
+
*
|
|
4
|
+
* When code inside Lifo does `require('esbuild')`, this shim is returned
|
|
5
|
+
* instead of the native esbuild package (which can't run in the browser).
|
|
6
|
+
*
|
|
7
|
+
* The WASM binary is lazy-loaded on first transform/build call.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createEsbuild(): Record<string, unknown>;
|
|
10
|
+
//# sourceMappingURL=esbuild.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esbuild.d.ts","sourceRoot":"","sources":["../../src/node-compat/esbuild.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA8BH,wBAAgB,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA+CvD"}
|
package/dist/node-compat/fs.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { VFS } from '../kernel/vfs/index.js';
|
|
2
2
|
import { Readable, Writable } from './stream.js';
|
|
3
3
|
import { EventEmitter } from './events.js';
|
|
4
|
+
interface Dirent {
|
|
5
|
+
name: string;
|
|
6
|
+
path: string;
|
|
7
|
+
isFile: () => boolean;
|
|
8
|
+
isDirectory: () => boolean;
|
|
9
|
+
isSymbolicLink: () => boolean;
|
|
10
|
+
isBlockDevice: () => boolean;
|
|
11
|
+
isCharacterDevice: () => boolean;
|
|
12
|
+
isFIFO: () => boolean;
|
|
13
|
+
isSocket: () => boolean;
|
|
14
|
+
}
|
|
4
15
|
interface NodeStat {
|
|
5
16
|
dev: number;
|
|
6
17
|
ino: number;
|
|
@@ -51,10 +62,10 @@ export declare function createFs(vfs: VFS, cwd: string): {
|
|
|
51
62
|
recursive?: boolean;
|
|
52
63
|
mode?: number;
|
|
53
64
|
} | number) => void;
|
|
54
|
-
readdirSync: (path: string | URL,
|
|
65
|
+
readdirSync: (path: string | URL, options?: {
|
|
55
66
|
encoding?: string;
|
|
56
67
|
withFileTypes?: boolean;
|
|
57
|
-
}) => string[];
|
|
68
|
+
}) => string[] | Dirent[];
|
|
58
69
|
unlinkSync: (path: string | URL) => void;
|
|
59
70
|
rmdirSync: (path: string | URL, options?: {
|
|
60
71
|
recursive?: boolean;
|
|
@@ -64,7 +75,9 @@ export declare function createFs(vfs: VFS, cwd: string): {
|
|
|
64
75
|
chmodSync: (_path: string | URL, _mode: number) => void;
|
|
65
76
|
chownSync: (_path: string | URL, _uid: number, _gid: number) => void;
|
|
66
77
|
accessSync: (path: string | URL, _mode?: number) => void;
|
|
67
|
-
realpathSync: (path: string | URL) => string
|
|
78
|
+
realpathSync: ((path: string | URL) => string) & {
|
|
79
|
+
native: (path: string | URL) => string;
|
|
80
|
+
};
|
|
68
81
|
truncateSync: (path: string | URL, len?: number) => void;
|
|
69
82
|
openSync: (path: string | URL, flags?: string | number, _mode?: number) => number;
|
|
70
83
|
closeSync: (fd: number) => void;
|
|
@@ -90,7 +103,8 @@ export declare function createFs(vfs: VFS, cwd: string): {
|
|
|
90
103
|
} | Callback<void>, cb?: Callback<void>) => void;
|
|
91
104
|
readdir: (path: string | URL, optionsOrCb: {
|
|
92
105
|
encoding?: string;
|
|
93
|
-
|
|
106
|
+
withFileTypes?: boolean;
|
|
107
|
+
} | Callback<string[]>, cb?: Callback<string[] | Dirent[]>) => void;
|
|
94
108
|
unlink: (path: string | URL, cb: Callback<void>) => void;
|
|
95
109
|
rename: (oldPath: string | URL, newPath: string | URL, cb: Callback<void>) => void;
|
|
96
110
|
access: (path: string | URL, modeOrCb: number | Callback<void>, cb?: Callback<void>) => void;
|
|
@@ -99,6 +113,9 @@ export declare function createFs(vfs: VFS, cwd: string): {
|
|
|
99
113
|
close: (fd: number, cb: Callback<void>) => void;
|
|
100
114
|
read: (fd: number, buffer: Uint8Array, offset: number, length: number, position: number | null, cb: Callback<number>) => void;
|
|
101
115
|
fstat: (fd: number, cb: Callback<NodeStat>) => void;
|
|
116
|
+
realpath: ((path: string | URL, optOrCb: unknown, cb?: Callback<string>) => void) & {
|
|
117
|
+
native: (path: string | URL, optOrCb: unknown, cb?: Callback<string>) => void;
|
|
118
|
+
};
|
|
102
119
|
createReadStream: (path: string | URL, options?: {
|
|
103
120
|
encoding?: string;
|
|
104
121
|
start?: number;
|
|
@@ -125,7 +142,10 @@ export declare function createFs(vfs: VFS, cwd: string): {
|
|
|
125
142
|
mkdir: (path: string | URL, options?: {
|
|
126
143
|
recursive?: boolean;
|
|
127
144
|
}) => Promise<void>;
|
|
128
|
-
readdir: (path: string | URL
|
|
145
|
+
readdir: (path: string | URL, options?: {
|
|
146
|
+
encoding?: string;
|
|
147
|
+
withFileTypes?: boolean;
|
|
148
|
+
}) => Promise<string[] | Dirent[]>;
|
|
129
149
|
unlink: (path: string | URL) => Promise<void>;
|
|
130
150
|
rmdir: (path: string | URL, options?: {
|
|
131
151
|
recursive?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../src/node-compat/fs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAKlD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["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