@camstack/system 1.2.440 → 1.2.441
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/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/dist/builtins/calendars/calendars.addon.js +1 -1
- package/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +2 -2
- package/dist/builtins/composer/composer.addon.mjs +2 -2
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +3 -3
- package/dist/builtins/keychain/index.mjs +3 -3
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/dist/builtins/local-network/local-network.addon.js +2 -2
- package/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/index.js +1 -1
- package/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +2 -2
- package/dist/builtins/system-config/system-config.addon.mjs +283 -283
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-cBG8fBTu.js → composition-sources-BG-W2U0d.js} +1 -1
- package/dist/{composition-sources-CS0D7imL.mjs → composition-sources-ByNISOnW.mjs} +1 -1
- package/dist/{constants-CIzPjw7L.mjs → constants-DJILnUSb.mjs} +1 -1
- package/dist/{constants-CRI3QzT4.js → constants-UojhAJcm.js} +1 -1
- package/dist/{device-ca-DNHjts4_.js → device-ca-196DAEZT.js} +1 -1
- package/dist/{device-ca-DLKXYseS.mjs → device-ca-D8Ri9TVz.mjs} +1 -1
- package/dist/{dist-9fcsrFU3.mjs → dist-BWvkuc31.mjs} +11 -2
- package/dist/{dist-BKhlcYz6.js → dist-BiTCcaf-.js} +11 -2
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-Dy2YjRqC.mjs → hub-mdns-ciao-Cnd0bTB9.mjs} +1 -1
- package/dist/{hub-mdns-ciao-3Zc9G9MS.js → hub-mdns-ciao-DOBTq8qr.js} +1 -1
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/dist/{restore-archive-DgvDecXM.mjs → restore-archive-4ziluTU3.mjs} +82 -82
- package/dist/{restore-archive-49aZwkp8.js → restore-archive-CfSSjKnA.js} +1 -1
- package/dist/{wal-maintenance-BZGmF-3U.mjs → wal-maintenance-B57SAp4a.mjs} +0 -0
- package/dist/{wal-maintenance-C041zn6V.js → wal-maintenance-CgZTNWAz.js} +0 -0
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { b as DATABASE_SNAPSHOT_SUFFIX } from "./dist-
|
|
1
|
+
import { b as DATABASE_SNAPSHOT_SUFFIX } from "./dist-BWvkuc31.mjs";
|
|
2
2
|
import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
|
|
3
3
|
import { Buffer as Buffer$1 } from "buffer";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
|
5
5
|
import jn from "node:fs/promises";
|
|
6
|
-
import * as path$
|
|
6
|
+
import * as path$1 from "node:path";
|
|
7
7
|
import path, { basename, join, posix, win32 } from "node:path";
|
|
8
|
-
import * as fs$
|
|
8
|
+
import * as fs$1 from "node:fs";
|
|
9
9
|
import Kt from "node:fs";
|
|
10
10
|
import { EventEmitter } from "node:events";
|
|
11
|
-
import
|
|
11
|
+
import As, { Transform } from "node:stream";
|
|
12
12
|
import { StringDecoder } from "node:string_decoder";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
13
|
+
import I from "fs";
|
|
14
|
+
import qs, { dirname as dirname$1, parse } from "path";
|
|
15
15
|
import * as Ms from "zlib";
|
|
16
16
|
import Jr from "zlib";
|
|
17
17
|
import Pi from "assert";
|
|
@@ -376,7 +376,7 @@ async function readBackupEncryptionHeader(file) {
|
|
|
376
376
|
async function decryptBackupFile(input, output, secretKey) {
|
|
377
377
|
const decrypt = createBackupDecryptStream(secretKey);
|
|
378
378
|
try {
|
|
379
|
-
await pipeline(fs$
|
|
379
|
+
await pipeline(fs$1.createReadStream(input), decrypt, fs$1.createWriteStream(output, { mode: 384 }));
|
|
380
380
|
} catch (err) {
|
|
381
381
|
await fsp.rm(output, { force: true }).catch(() => void 0);
|
|
382
382
|
throw err;
|
|
@@ -394,7 +394,7 @@ var Br = (s, t) => {
|
|
|
394
394
|
var xs = typeof process == "object" && process ? process : {
|
|
395
395
|
stdout: null,
|
|
396
396
|
stderr: null
|
|
397
|
-
}, zr = (s) => !!s && typeof s == "object" && (s instanceof A || s instanceof
|
|
397
|
+
}, zr = (s) => !!s && typeof s == "object" && (s instanceof A || s instanceof As || Ur(s) || Hr(s)), Ur = (s) => !!s && typeof s == "object" && s instanceof EventEmitter && typeof s.pipe == "function" && s.pipe !== As.Writable.prototype.pipe, Hr = (s) => !!s && typeof s == "object" && s instanceof EventEmitter && typeof s.write == "function" && typeof s.end == "function", q = Symbol("EOF"), Q = Symbol("maybeEmitEnd"), rt = Symbol("emittedEnd"), Le = Symbol("emittingEnd"), qt = Symbol("emittedError"), Ne = Symbol("closed"), Ls = Symbol("read"), De = Symbol("flush"), Ns = Symbol("flushChunk"), z = Symbol("encoding"), Mt = Symbol("decoder"), g = Symbol("flowing"), Qt = Symbol("paused"), Bt = Symbol("resume"), b = Symbol("buffer"), D = Symbol("pipes"), _ = Symbol("bufferLength"), gi = Symbol("bufferPush"), Ae = Symbol("bufferShift"), L = Symbol("objectMode"), w = Symbol("destroyed"), bi = Symbol("error"), _i = Symbol("emitData"), Ds = Symbol("emitEnd"), Oi = Symbol("emitEnd2"), Z = Symbol("async"), Ti = Symbol("abort"), Ie = Symbol("aborted"), Jt = Symbol("signal"), Rt = Symbol("dataListeners"), F = Symbol("discarded"), jt = (s) => Promise.resolve().then(s), Wr = (s) => s(), Gr = (s) => s === "end" || s === "finish" || s === "prefinish", Zr = (s) => s instanceof ArrayBuffer || !!s && typeof s == "object" && s.constructor && s.constructor.name === "ArrayBuffer" && s.byteLength >= 0, Yr = (s) => !Buffer.isBuffer(s) && ArrayBuffer.isView(s), Fe = class {
|
|
398
398
|
src;
|
|
399
399
|
dest;
|
|
400
400
|
opts;
|
|
@@ -714,7 +714,7 @@ while (this[Ns](this[Ae]()) && this[b].length);
|
|
|
714
714
|
return zr;
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
|
-
var Xr =
|
|
717
|
+
var Xr = I.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol("_ended"), m = Symbol("_fd"), Ni = Symbol("_finished"), j = Symbol("_flags"), Di = Symbol("_flush"), Ci = Symbol("_handleChunk"), ki = Symbol("_makeBuf"), ie = Symbol("_mode"), Ce = Symbol("_needDrain"), Ut = Symbol("_onerror"), Ht = Symbol("_onopen"), Ai = Symbol("_onread"), Pt = Symbol("_onwrite"), ht = Symbol("_open"), U = Symbol("_path"), nt = Symbol("_pos"), Y = Symbol("_queue"), zt = Symbol("_read"), Ii = Symbol("_readSize"), J = Symbol("_reading"), ee = Symbol("_remain"), Fi = Symbol("_size"), ke = Symbol("_write"), gt = Symbol("_writing"), ve = Symbol("_defaultFlag"), bt = Symbol("_errored"), _t = class extends A {
|
|
718
718
|
[bt] = !1;
|
|
719
719
|
[m];
|
|
720
720
|
[U];
|
|
@@ -740,7 +740,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
|
|
|
740
740
|
throw new TypeError("this is a readable stream");
|
|
741
741
|
}
|
|
742
742
|
[ht]() {
|
|
743
|
-
|
|
743
|
+
I.open(this[U], "r", (t, e) => this[Ht](t, e));
|
|
744
744
|
}
|
|
745
745
|
[Ht](t, e) {
|
|
746
746
|
t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[zt]());
|
|
@@ -753,7 +753,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
|
|
|
753
753
|
this[J] = !0;
|
|
754
754
|
let t = this[ki]();
|
|
755
755
|
if (t.length === 0) return process.nextTick(() => this[Ai](null, 0, t));
|
|
756
|
-
|
|
756
|
+
I.read(this[m], t, 0, t.length, null, (e, i, r) => this[Ai](e, i, r));
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
[Ai](t, e, i) {
|
|
@@ -762,7 +762,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
|
|
|
762
762
|
[H]() {
|
|
763
763
|
if (this[ot] && typeof this[m] == "number") {
|
|
764
764
|
let t = this[m];
|
|
765
|
-
this[m] = void 0,
|
|
765
|
+
this[m] = void 0, I.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
[Ut](t) {
|
|
@@ -785,7 +785,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
|
|
|
785
785
|
[ht]() {
|
|
786
786
|
let t = !0;
|
|
787
787
|
try {
|
|
788
|
-
this[Ht](null,
|
|
788
|
+
this[Ht](null, I.openSync(this[U], "r")), t = !1;
|
|
789
789
|
} finally {
|
|
790
790
|
t && this[H]();
|
|
791
791
|
}
|
|
@@ -796,7 +796,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
|
|
|
796
796
|
if (!this[J]) {
|
|
797
797
|
this[J] = !0;
|
|
798
798
|
do {
|
|
799
|
-
let e = this[ki](), i = e.length === 0 ? 0 :
|
|
799
|
+
let e = this[ki](), i = e.length === 0 ? 0 : I.readSync(this[m], e, 0, e.length, null);
|
|
800
800
|
if (!this[Ci](i, e)) break;
|
|
801
801
|
} while (!0);
|
|
802
802
|
this[J] = !1;
|
|
@@ -809,7 +809,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
|
|
|
809
809
|
[H]() {
|
|
810
810
|
if (this[ot] && typeof this[m] == "number") {
|
|
811
811
|
let t = this[m];
|
|
812
|
-
this[m] = void 0,
|
|
812
|
+
this[m] = void 0, I.closeSync(t), this.emit("close");
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
}, tt = class extends $r {
|
|
@@ -850,7 +850,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
|
|
|
850
850
|
this[H](), this[gt] = !0, this.emit("error", t);
|
|
851
851
|
}
|
|
852
852
|
[ht]() {
|
|
853
|
-
|
|
853
|
+
I.open(this[U], this[j], this[ie], (t, e) => this[Ht](t, e));
|
|
854
854
|
}
|
|
855
855
|
[Ht](t, e) {
|
|
856
856
|
this[ve] && this[j] === "r+" && t && t.code === "ENOENT" ? (this[j] = "w", this[ht]()) : t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[gt] || this[Di]());
|
|
@@ -862,7 +862,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
|
|
|
862
862
|
return typeof t == "string" && (t = Buffer.from(t, e)), this[te] ? (this.emit("error", /* @__PURE__ */ new Error("write() after end()")), !1) : this[m] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t), this[Ce] = !0, !1) : (this[gt] = !0, this[ke](t), !0);
|
|
863
863
|
}
|
|
864
864
|
[ke](t) {
|
|
865
|
-
|
|
865
|
+
I.write(this[m], t, 0, t.length, this[nt], (e, i) => this[Pt](e, i));
|
|
866
866
|
}
|
|
867
867
|
[Pt](t, e) {
|
|
868
868
|
t ? this[Ut](t) : (this[nt] !== void 0 && typeof e == "number" && (this[nt] += e), this[Y].length ? this[Di]() : (this[gt] = !1, this[te] && !this[Ni] ? (this[Ni] = !0, this[H](), this.emit("finish")) : this[Ce] && (this[Ce] = !1, this.emit("drain"))));
|
|
@@ -878,31 +878,31 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
|
|
|
878
878
|
[H]() {
|
|
879
879
|
if (this[ot] && typeof this[m] == "number") {
|
|
880
880
|
let t = this[m];
|
|
881
|
-
this[m] = void 0,
|
|
881
|
+
this[m] = void 0, I.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
}, Wt = class extends tt {
|
|
885
885
|
[ht]() {
|
|
886
886
|
let t;
|
|
887
887
|
if (this[ve] && this[j] === "r+") try {
|
|
888
|
-
t =
|
|
888
|
+
t = I.openSync(this[U], this[j], this[ie]);
|
|
889
889
|
} catch (e) {
|
|
890
890
|
if (e?.code === "ENOENT") return this[j] = "w", this[ht]();
|
|
891
891
|
throw e;
|
|
892
892
|
}
|
|
893
|
-
else t =
|
|
893
|
+
else t = I.openSync(this[U], this[j], this[ie]);
|
|
894
894
|
this[Ht](null, t);
|
|
895
895
|
}
|
|
896
896
|
[H]() {
|
|
897
897
|
if (this[ot] && typeof this[m] == "number") {
|
|
898
898
|
let t = this[m];
|
|
899
|
-
this[m] = void 0,
|
|
899
|
+
this[m] = void 0, I.closeSync(t), this.emit("close");
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
902
|
[ke](t) {
|
|
903
903
|
let e = !0;
|
|
904
904
|
try {
|
|
905
|
-
this[Pt](null,
|
|
905
|
+
this[Pt](null, I.writeSync(this[m], t, 0, t.length, this[nt])), e = !1;
|
|
906
906
|
} finally {
|
|
907
907
|
if (e) try {
|
|
908
908
|
this[H]();
|
|
@@ -1185,7 +1185,7 @@ var tn = Buffer$1.concat, Bs = Object.getOwnPropertyDescriptor(Buffer$1, "concat
|
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
1187
1187
|
};
|
|
1188
|
-
var Pe
|
|
1188
|
+
var Pe = class extends Be {
|
|
1189
1189
|
#t;
|
|
1190
1190
|
constructor(t) {
|
|
1191
1191
|
super(t, "Gzip"), this.#t = t && !!t.portable;
|
|
@@ -1862,7 +1862,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
|
|
|
1862
1862
|
let [o, a] = le(this.path);
|
|
1863
1863
|
o && typeof a == "string" && (this.path = a, r = o);
|
|
1864
1864
|
}
|
|
1865
|
-
this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = $s(this.path.replaceAll(/\\/g, "/")), t = t.replaceAll(/\\/g, "/")), this.absolute = f(i.absolute ||
|
|
1865
|
+
this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = $s(this.path.replaceAll(/\\/g, "/")), t = t.replaceAll(/\\/g, "/")), this.absolute = f(i.absolute || qs.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, {
|
|
1866
1866
|
entry: this,
|
|
1867
1867
|
path: r + this.path
|
|
1868
1868
|
});
|
|
@@ -1876,7 +1876,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
|
|
|
1876
1876
|
return t === "error" && (this.#t = !0), super.emit(t, ...e);
|
|
1877
1877
|
}
|
|
1878
1878
|
[es]() {
|
|
1879
|
-
|
|
1879
|
+
I.lstat(this.absolute, (t, e) => {
|
|
1880
1880
|
if (t) return this.emit("error", t);
|
|
1881
1881
|
this[ii](e);
|
|
1882
1882
|
});
|
|
@@ -1935,7 +1935,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
|
|
|
1935
1935
|
this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[ce](), this.end();
|
|
1936
1936
|
}
|
|
1937
1937
|
[ts]() {
|
|
1938
|
-
|
|
1938
|
+
I.readlink(this.absolute, (t, e) => {
|
|
1939
1939
|
if (t) return this.emit("error", t);
|
|
1940
1940
|
this[ss](e);
|
|
1941
1941
|
});
|
|
@@ -1945,7 +1945,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
|
|
|
1945
1945
|
}
|
|
1946
1946
|
[tr](t) {
|
|
1947
1947
|
if (!this.stat) throw new Error("cannot create link entry without stat");
|
|
1948
|
-
this.type = "Link", this.linkpath = f(
|
|
1948
|
+
this.type = "Link", this.linkpath = f(qs.relative(this.cwd, t)), this.stat.size = 0, this[ce](), this.end();
|
|
1949
1949
|
}
|
|
1950
1950
|
[Js]() {
|
|
1951
1951
|
if (!this.stat) throw new Error("cannot create file entry without stat");
|
|
@@ -1958,7 +1958,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
|
|
|
1958
1958
|
this[rs]();
|
|
1959
1959
|
}
|
|
1960
1960
|
[rs]() {
|
|
1961
|
-
|
|
1961
|
+
I.open(this.absolute, "r", (t, e) => {
|
|
1962
1962
|
if (t) return this.emit("error", t);
|
|
1963
1963
|
this[ns](e);
|
|
1964
1964
|
});
|
|
@@ -1973,13 +1973,13 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
|
|
|
1973
1973
|
[ei]() {
|
|
1974
1974
|
let { fd: t, buf: e, offset: i, length: r, pos: n } = this;
|
|
1975
1975
|
if (t === void 0 || e === void 0) throw new Error("cannot read file without first opening");
|
|
1976
|
-
|
|
1976
|
+
I.read(t, e, i, r, n, (o, a) => {
|
|
1977
1977
|
if (o) return this[pt](() => this.emit("error", o));
|
|
1978
1978
|
this[is](a);
|
|
1979
1979
|
});
|
|
1980
1980
|
}
|
|
1981
1981
|
[pt](t = () => {}) {
|
|
1982
|
-
this.fd !== void 0 &&
|
|
1982
|
+
this.fd !== void 0 && I.close(this.fd, t);
|
|
1983
1983
|
}
|
|
1984
1984
|
[is](t) {
|
|
1985
1985
|
if (t <= 0 && this.remain > 0) {
|
|
@@ -2021,20 +2021,20 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
|
|
|
2021
2021
|
}, ri = class extends fe {
|
|
2022
2022
|
sync = !0;
|
|
2023
2023
|
[es]() {
|
|
2024
|
-
this[ii](
|
|
2024
|
+
this[ii](I.lstatSync(this.absolute));
|
|
2025
2025
|
}
|
|
2026
2026
|
[ts]() {
|
|
2027
|
-
this[ss](
|
|
2027
|
+
this[ss](I.readlinkSync(this.absolute));
|
|
2028
2028
|
}
|
|
2029
2029
|
[rs]() {
|
|
2030
|
-
this[ns](
|
|
2030
|
+
this[ns](I.openSync(this.absolute, "r"));
|
|
2031
2031
|
}
|
|
2032
2032
|
[ei]() {
|
|
2033
2033
|
let t = !0;
|
|
2034
2034
|
try {
|
|
2035
2035
|
let { fd: e, buf: i, offset: r, length: n, pos: o } = this;
|
|
2036
2036
|
if (e === void 0 || i === void 0) throw new Error("fd and buf must be set in READ method");
|
|
2037
|
-
let a =
|
|
2037
|
+
let a = I.readSync(e, i, r, n, o);
|
|
2038
2038
|
this[is](a), t = !1;
|
|
2039
2039
|
} finally {
|
|
2040
2040
|
if (t) try {
|
|
@@ -2046,7 +2046,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
|
|
|
2046
2046
|
t();
|
|
2047
2047
|
}
|
|
2048
2048
|
[pt](t = () => {}) {
|
|
2049
|
-
this.fd !== void 0 &&
|
|
2049
|
+
this.fd !== void 0 && I.closeSync(this.fd), t();
|
|
2050
2050
|
}
|
|
2051
2051
|
}, ni = class extends A {
|
|
2052
2052
|
blockLen = 0;
|
|
@@ -2314,7 +2314,7 @@ var mi = class {
|
|
|
2314
2314
|
constructor(t, e) {
|
|
2315
2315
|
this.path = t || "./", this.absolute = e;
|
|
2316
2316
|
}
|
|
2317
|
-
}, ir = Buffer.alloc(1024), ai = Symbol("onStat"), ue = Symbol("ended"), W = Symbol("queue"), me = Symbol("pendingLinks"), Et = Symbol("current"), Ct = Symbol("process"), pe = Symbol("processing"), hi = Symbol("processJob"), G = Symbol("jobs"), hs = Symbol("jobDone"), li = Symbol("addFSEntry"), sr = Symbol("addTarEntry"), cs = Symbol("stat"), fs
|
|
2317
|
+
}, ir = Buffer.alloc(1024), ai = Symbol("onStat"), ue = Symbol("ended"), W = Symbol("queue"), me = Symbol("pendingLinks"), Et = Symbol("current"), Ct = Symbol("process"), pe = Symbol("processing"), hi = Symbol("processJob"), G = Symbol("jobs"), hs = Symbol("jobDone"), li = Symbol("addFSEntry"), sr = Symbol("addTarEntry"), cs = Symbol("stat"), fs = Symbol("readdir"), ci = Symbol("onreaddir"), fi = Symbol("pipe"), rr = Symbol("entry"), as = Symbol("entryOpt"), di = Symbol("writeEntryClass"), or = Symbol("write"), ls = Symbol("ondrain"), wt = class extends A {
|
|
2318
2318
|
sync = !1;
|
|
2319
2319
|
opt;
|
|
2320
2320
|
cwd;
|
|
@@ -2345,7 +2345,7 @@ var mi = class {
|
|
|
2345
2345
|
constructor(t = {}) {
|
|
2346
2346
|
if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[di] = fe, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
|
|
2347
2347
|
if ((t.gzip ? 1 : 0) + (t.brotli ? 1 : 0) + (t.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
|
|
2348
|
-
if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = !0), this.zip = new Pe
|
|
2348
|
+
if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = !0), this.zip = new Pe(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new He(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ze(t.zstd)), !this.zip) throw new Error("impossible");
|
|
2349
2349
|
let e = this.zip;
|
|
2350
2350
|
e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[ls]()), this.on("resume", () => e.resume());
|
|
2351
2351
|
} else this.on("drain", this[ls]);
|
|
@@ -2365,7 +2365,7 @@ var mi = class {
|
|
|
2365
2365
|
return typeof t == "string" ? this[li](t) : this[sr](t), this.flowing;
|
|
2366
2366
|
}
|
|
2367
2367
|
[sr](t) {
|
|
2368
|
-
let e = f(
|
|
2368
|
+
let e = f(qs.resolve(this.cwd, t.path));
|
|
2369
2369
|
if (!this.filter(t.path, t)) t.resume();
|
|
2370
2370
|
else {
|
|
2371
2371
|
let i = new mi(t.path, e);
|
|
@@ -2374,12 +2374,12 @@ var mi = class {
|
|
|
2374
2374
|
this[Ct]();
|
|
2375
2375
|
}
|
|
2376
2376
|
[li](t) {
|
|
2377
|
-
let e = f(
|
|
2377
|
+
let e = f(qs.resolve(this.cwd, t));
|
|
2378
2378
|
this[W].push(new mi(t, e)), this[Ct]();
|
|
2379
2379
|
}
|
|
2380
2380
|
[cs](t) {
|
|
2381
2381
|
t.pending = !0, this[G] += 1;
|
|
2382
|
-
|
|
2382
|
+
I[this.follow ? "stat" : "lstat"](t.absolute, (i, r) => {
|
|
2383
2383
|
t.pending = !1, this[G] -= 1, i ? this.emit("error", i) : this[ai](t, r);
|
|
2384
2384
|
});
|
|
2385
2385
|
}
|
|
@@ -2392,8 +2392,8 @@ var mi = class {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
this[Ct]();
|
|
2394
2394
|
}
|
|
2395
|
-
[fs
|
|
2396
|
-
t.pending = !0, this[G] += 1,
|
|
2395
|
+
[fs](t) {
|
|
2396
|
+
t.pending = !0, this[G] += 1, I.readdir(t.absolute, (e, i) => {
|
|
2397
2397
|
if (t.pending = !1, this[G] -= 1, e) return this.emit("error", e);
|
|
2398
2398
|
this[ci](t, i);
|
|
2399
2399
|
});
|
|
@@ -2439,7 +2439,7 @@ var mi = class {
|
|
|
2439
2439
|
if (t.stat && !t.ignore) {
|
|
2440
2440
|
if (!this.noDirRecurse && t.stat.isDirectory() && !t.readdir) {
|
|
2441
2441
|
let e = this.readdirCache.get(t.absolute);
|
|
2442
|
-
if (e ? this[ci](t, e) : this[fs
|
|
2442
|
+
if (e ? this[ci](t, e) : this[fs](t), !t.readdir) return;
|
|
2443
2443
|
}
|
|
2444
2444
|
if (t.entry = this[rr](t), !t.entry) {
|
|
2445
2445
|
t.ignore = !0;
|
|
@@ -2506,10 +2506,10 @@ var mi = class {
|
|
|
2506
2506
|
resume() {}
|
|
2507
2507
|
[cs](t) {
|
|
2508
2508
|
let e = this.follow ? "statSync" : "lstatSync";
|
|
2509
|
-
this[ai](t,
|
|
2509
|
+
this[ai](t, I[e](t.absolute));
|
|
2510
2510
|
}
|
|
2511
|
-
[fs
|
|
2512
|
-
this[ci](t,
|
|
2511
|
+
[fs](t) {
|
|
2512
|
+
this[ci](t, I.readdirSync(t.absolute));
|
|
2513
2513
|
}
|
|
2514
2514
|
[fi](t) {
|
|
2515
2515
|
let e = t.entry, i = this.zip;
|
|
@@ -2561,7 +2561,7 @@ var Wn = (s, t) => {
|
|
|
2561
2561
|
}, Kn = K(Wn, Gn, Zn, Yn, (s, t) => {
|
|
2562
2562
|
if (!t?.length) throw new TypeError("no paths specified to add to archive");
|
|
2563
2563
|
});
|
|
2564
|
-
var ur = (process.env.__FAKE_PLATFORM__ || process.platform) === "win32", { O_CREAT: mr, O_NOFOLLOW: cr, O_TRUNC: pr, O_WRONLY: Er } =
|
|
2564
|
+
var ur = (process.env.__FAKE_PLATFORM__ || process.platform) === "win32", { O_CREAT: mr, O_NOFOLLOW: cr, O_TRUNC: pr, O_WRONLY: Er } = I.constants, wr = Number(process.env.__FAKE_FS_O_FILENAME__) || I.constants.UV_FS_O_FILEMAP || 0, $n = ur && !!wr, Xn = 512 * 1024, qn = wr | pr | mr | Er, fr = !ur && typeof cr == "number" ? cr | pr | mr | Er : null, ds = fr !== null ? () => fr : $n ? (s) => s < Xn ? qn : "w" : () => "w";
|
|
2565
2565
|
var us = (s, t, e) => {
|
|
2566
2566
|
try {
|
|
2567
2567
|
return Kt.lchownSync(s, t, e);
|
|
@@ -3547,8 +3547,8 @@ var SystemBackupService = class {
|
|
|
3547
3547
|
return value;
|
|
3548
3548
|
}
|
|
3549
3549
|
async statLocation(loc) {
|
|
3550
|
-
const abs = path$
|
|
3551
|
-
if (!fs$
|
|
3550
|
+
const abs = path$1.isAbsolute(loc) ? loc : path$1.join(this.dataDir, loc);
|
|
3551
|
+
if (!fs$1.existsSync(abs)) return {
|
|
3552
3552
|
name: loc,
|
|
3553
3553
|
sizeBytes: 0,
|
|
3554
3554
|
fileCount: 0,
|
|
@@ -3594,19 +3594,19 @@ var SystemBackupService = class {
|
|
|
3594
3594
|
if (!selection.has("settings")) return this.createSnapshotsOnlyArchive(opts, selection, recipient);
|
|
3595
3595
|
const present = [];
|
|
3596
3596
|
for (const loc of requested) {
|
|
3597
|
-
const abs = path$
|
|
3598
|
-
if (fs$
|
|
3597
|
+
const abs = path$1.isAbsolute(loc) ? loc : path$1.join(this.dataDir, loc);
|
|
3598
|
+
if (fs$1.existsSync(abs)) present.push(loc);
|
|
3599
3599
|
else this.logger.debug("createArchive: skipping missing location", { meta: { location: loc } });
|
|
3600
3600
|
}
|
|
3601
3601
|
if (present.length === 0) throw new Error(`createArchive: no locations from {${requested.join(", ")}} exist under ${this.dataDir}`);
|
|
3602
|
-
fs$
|
|
3602
|
+
fs$1.mkdirSync(path$1.dirname(opts.archivePath), { recursive: true });
|
|
3603
3603
|
const walked = [];
|
|
3604
3604
|
for (const loc of present) {
|
|
3605
3605
|
throwIfCancelled(opts.signal);
|
|
3606
|
-
const abs = path$
|
|
3606
|
+
const abs = path$1.join(this.dataDir, loc);
|
|
3607
3607
|
const stat = await fsp.stat(abs);
|
|
3608
3608
|
if (stat.isDirectory()) for (const e of await walkAbs(abs, this.dataDir, this.exclusionPredicate(), opts.signal)) walked.push(e);
|
|
3609
|
-
else if (!isExcludedFromBackup(path$
|
|
3609
|
+
else if (!isExcludedFromBackup(path$1.relative(this.dataDir, abs))) walked.push(toArchiveEntry(abs, this.dataDir, stat));
|
|
3610
3610
|
}
|
|
3611
3611
|
const walkedPaths = new Set(walked.map((e) => e.path));
|
|
3612
3612
|
const ownedById = walked.some((e) => isSqlitePath(e.path)) ? await this.ownedDatabasesInScope(opts.owner, walkedPaths) : /* @__PURE__ */ new Map();
|
|
@@ -3683,7 +3683,7 @@ var SystemBackupService = class {
|
|
|
3683
3683
|
*/
|
|
3684
3684
|
async createSnapshotsOnlyArchive(opts, selection, recipient) {
|
|
3685
3685
|
if (opts.owner === void 0) throw new BackupSnapshotRefusedError("a snapshots-only archive needs the database owner, and none was given");
|
|
3686
|
-
fs$
|
|
3686
|
+
fs$1.mkdirSync(path$1.dirname(opts.archivePath), { recursive: true });
|
|
3687
3687
|
const ownedById = await this.ownedDatabasesInScope(opts.owner, null);
|
|
3688
3688
|
const selected = /* @__PURE__ */ new Map();
|
|
3689
3689
|
for (const [rel, databaseId] of ownedById) if (selection.has(databaseId)) selected.set(rel, databaseId);
|
|
@@ -3737,7 +3737,7 @@ var SystemBackupService = class {
|
|
|
3737
3737
|
async writeArchive(opts) {
|
|
3738
3738
|
const { present, manifest } = opts;
|
|
3739
3739
|
const manifestStagePath = `${opts.archivePath}.${process.pid}.manifest.json`;
|
|
3740
|
-
fs$
|
|
3740
|
+
fs$1.writeFileSync(manifestStagePath, JSON.stringify(manifest, null, 2), "utf-8");
|
|
3741
3741
|
this.logger.info("createArchive: tarring", { meta: {
|
|
3742
3742
|
archivePath: opts.archivePath,
|
|
3743
3743
|
locations: [...present],
|
|
@@ -3745,10 +3745,10 @@ var SystemBackupService = class {
|
|
|
3745
3745
|
totalBytes: manifest.totalBytes
|
|
3746
3746
|
} });
|
|
3747
3747
|
try {
|
|
3748
|
-
const stagedInDataDir = path$
|
|
3749
|
-
fs$
|
|
3750
|
-
const stagingRel = path$
|
|
3751
|
-
const excludePrefix = stagingRel && !stagingRel.startsWith("..") && !path$
|
|
3748
|
+
const stagedInDataDir = path$1.join(this.dataDir, ARCHIVE_MANIFEST_NAME);
|
|
3749
|
+
fs$1.copyFileSync(manifestStagePath, stagedInDataDir);
|
|
3750
|
+
const stagingRel = path$1.relative(this.dataDir, path$1.dirname(opts.archivePath));
|
|
3751
|
+
const excludePrefix = stagingRel && !stagingRel.startsWith("..") && !path$1.isAbsolute(stagingRel) ? stagingRel : null;
|
|
3752
3752
|
try {
|
|
3753
3753
|
const pack = Kn({
|
|
3754
3754
|
gzip: true,
|
|
@@ -3762,29 +3762,29 @@ var SystemBackupService = class {
|
|
|
3762
3762
|
return norm !== excludePrefix && !norm.startsWith(`${excludePrefix}/`);
|
|
3763
3763
|
}
|
|
3764
3764
|
}, [ARCHIVE_MANIFEST_NAME, ...opts.tarRoots ?? present]);
|
|
3765
|
-
const sink = fs$
|
|
3765
|
+
const sink = fs$1.createWriteStream(opts.archivePath, { mode: 384 });
|
|
3766
3766
|
try {
|
|
3767
3767
|
const streamOpts = opts.signal ? { signal: opts.signal } : {};
|
|
3768
3768
|
if (opts.encryptTo !== void 0) await pipeline(pack, createBackupEncryptStream(opts.encryptTo), byteCountingPassthrough(opts.onArchiveBytes), sink, streamOpts);
|
|
3769
3769
|
else await pipeline(pack, byteCountingPassthrough(opts.onArchiveBytes), sink, streamOpts);
|
|
3770
3770
|
} catch (err) {
|
|
3771
3771
|
try {
|
|
3772
|
-
fs$
|
|
3772
|
+
fs$1.rmSync(opts.archivePath, { force: true });
|
|
3773
3773
|
} catch {}
|
|
3774
3774
|
if (opts.signal?.aborted) throw new BackupCancelledError();
|
|
3775
3775
|
throw err;
|
|
3776
3776
|
}
|
|
3777
3777
|
} finally {
|
|
3778
3778
|
try {
|
|
3779
|
-
fs$
|
|
3779
|
+
fs$1.rmSync(stagedInDataDir, { force: true });
|
|
3780
3780
|
} catch {}
|
|
3781
3781
|
}
|
|
3782
3782
|
} finally {
|
|
3783
3783
|
try {
|
|
3784
|
-
fs$
|
|
3784
|
+
fs$1.rmSync(manifestStagePath, { force: true });
|
|
3785
3785
|
} catch {}
|
|
3786
3786
|
}
|
|
3787
|
-
const sizeBytes = fs$
|
|
3787
|
+
const sizeBytes = fs$1.statSync(opts.archivePath).size;
|
|
3788
3788
|
return {
|
|
3789
3789
|
archivePath: opts.archivePath,
|
|
3790
3790
|
includedLocations: [...present],
|
|
@@ -3797,7 +3797,7 @@ var SystemBackupService = class {
|
|
|
3797
3797
|
* one entry we care about, then aborts.
|
|
3798
3798
|
*/
|
|
3799
3799
|
async readArchiveManifest(archivePath) {
|
|
3800
|
-
if (!fs$
|
|
3800
|
+
if (!fs$1.existsSync(archivePath)) throw new Error(`readArchiveManifest: ${archivePath} does not exist`);
|
|
3801
3801
|
return new Promise((resolve, reject) => {
|
|
3802
3802
|
const chunks = [];
|
|
3803
3803
|
let found = false;
|
|
@@ -3829,7 +3829,7 @@ var SystemBackupService = class {
|
|
|
3829
3829
|
reject(err);
|
|
3830
3830
|
}
|
|
3831
3831
|
});
|
|
3832
|
-
const reader = fs$
|
|
3832
|
+
const reader = fs$1.createReadStream(archivePath);
|
|
3833
3833
|
reader.on("error", (err) => {
|
|
3834
3834
|
if (!resolved) {
|
|
3835
3835
|
resolved = true;
|
|
@@ -3847,7 +3847,7 @@ var SystemBackupService = class {
|
|
|
3847
3847
|
* restart.
|
|
3848
3848
|
*/
|
|
3849
3849
|
scheduleRestoreMarker(opts) {
|
|
3850
|
-
if (!fs$
|
|
3850
|
+
if (!fs$1.existsSync(opts.archivePath)) throw new Error(`scheduleRestoreMarker: ${opts.archivePath} missing`);
|
|
3851
3851
|
const markerPath = this.getRestoreMarkerPath();
|
|
3852
3852
|
const marker = {
|
|
3853
3853
|
archivePath: opts.archivePath,
|
|
@@ -3855,16 +3855,16 @@ var SystemBackupService = class {
|
|
|
3855
3855
|
source: opts.source,
|
|
3856
3856
|
...opts.locations ? { locations: [...opts.locations] } : {}
|
|
3857
3857
|
};
|
|
3858
|
-
fs$
|
|
3859
|
-
fs$
|
|
3858
|
+
fs$1.mkdirSync(path$1.dirname(markerPath), { recursive: true });
|
|
3859
|
+
fs$1.writeFileSync(markerPath, JSON.stringify(marker, null, 2), { mode: 384 });
|
|
3860
3860
|
return markerPath;
|
|
3861
3861
|
}
|
|
3862
3862
|
/** Read the pending-restore marker if one is present. */
|
|
3863
3863
|
readPendingMarker() {
|
|
3864
3864
|
const markerPath = this.getRestoreMarkerPath();
|
|
3865
|
-
if (!fs$
|
|
3865
|
+
if (!fs$1.existsSync(markerPath)) return null;
|
|
3866
3866
|
try {
|
|
3867
|
-
const raw = fs$
|
|
3867
|
+
const raw = fs$1.readFileSync(markerPath, "utf-8");
|
|
3868
3868
|
const parsed = JSON.parse(raw);
|
|
3869
3869
|
if (typeof parsed === "object" && parsed != null && typeof parsed.archivePath === "string") return parsed;
|
|
3870
3870
|
} catch (err) {
|
|
@@ -3875,7 +3875,7 @@ var SystemBackupService = class {
|
|
|
3875
3875
|
/** Drop the marker after a successful boot-time restore. */
|
|
3876
3876
|
clearPendingMarker() {
|
|
3877
3877
|
const markerPath = this.getRestoreMarkerPath();
|
|
3878
|
-
if (fs$
|
|
3878
|
+
if (fs$1.existsSync(markerPath)) fs$1.rmSync(markerPath, { force: true });
|
|
3879
3879
|
}
|
|
3880
3880
|
/**
|
|
3881
3881
|
* The databases the owner declares, archive-relative, that this walk found,
|
|
@@ -3919,7 +3919,7 @@ var SystemBackupService = class {
|
|
|
3919
3919
|
*/
|
|
3920
3920
|
async takeOwnerSnapshots(owner, selected, signal) {
|
|
3921
3921
|
const removeOwnedSnapshots = async () => {
|
|
3922
|
-
for (const db of selected.keys()) await this.removeSnapshot(path$
|
|
3922
|
+
for (const db of selected.keys()) await this.removeSnapshot(path$1.join(this.dataDir, db + DATABASE_SNAPSHOT_SUFFIX));
|
|
3923
3923
|
};
|
|
3924
3924
|
const taken = [];
|
|
3925
3925
|
try {
|
|
@@ -3964,7 +3964,7 @@ var SystemBackupService = class {
|
|
|
3964
3964
|
}
|
|
3965
3965
|
if (snapshotPath !== livePath + ".backup-snapshot") throw new BackupSnapshotRefusedError(`snapshot ${snapshotPath} does not sit beside the database ${livePath} it copies`);
|
|
3966
3966
|
if (livePath !== expectedLive || result.databaseId !== databaseId) throw new BackupSnapshotRefusedError(`snapshot copies ${livePath} (${result.databaseId}), but ${databaseId} (${expectedLive}) was asked for`);
|
|
3967
|
-
const absPath = path$
|
|
3967
|
+
const absPath = path$1.join(this.dataDir, snapshotPath);
|
|
3968
3968
|
const stat = await fsp.stat(absPath);
|
|
3969
3969
|
this.logger.info("createArchive: carrying the owner snapshot in place of the live database", { meta: {
|
|
3970
3970
|
database: livePath,
|
|
@@ -3997,12 +3997,12 @@ var SystemBackupService = class {
|
|
|
3997
3997
|
}
|
|
3998
3998
|
/** `abs` relative to the data root, or null when it lies outside it. */
|
|
3999
3999
|
archiveRelative(abs) {
|
|
4000
|
-
const rel = path$
|
|
4001
|
-
if (rel.length === 0 || rel.startsWith("..") || path$
|
|
4000
|
+
const rel = path$1.relative(path$1.resolve(this.dataDir), path$1.resolve(abs));
|
|
4001
|
+
if (rel.length === 0 || rel.startsWith("..") || path$1.isAbsolute(rel)) return null;
|
|
4002
4002
|
return normalizeArchivePath(rel);
|
|
4003
4003
|
}
|
|
4004
4004
|
getRestoreMarkerPath() {
|
|
4005
|
-
return path$
|
|
4005
|
+
return path$1.join(this.dataDir, ".pending-restore.json");
|
|
4006
4006
|
}
|
|
4007
4007
|
/**
|
|
4008
4008
|
* Absolute-path form of {@link isExcludedFromBackup}, anchored on
|
|
@@ -4010,7 +4010,7 @@ var SystemBackupService = class {
|
|
|
4010
4010
|
* stats so both agree with the tar filter about what a backup contains.
|
|
4011
4011
|
*/
|
|
4012
4012
|
exclusionPredicate() {
|
|
4013
|
-
return (abs) => isExcludedFromBackup(path$
|
|
4013
|
+
return (abs) => isExcludedFromBackup(path$1.relative(this.dataDir, abs));
|
|
4014
4014
|
}
|
|
4015
4015
|
};
|
|
4016
4016
|
/**
|
|
@@ -4041,7 +4041,7 @@ async function walkRec(abs, dataDir, out, shouldSkip, signal) {
|
|
|
4041
4041
|
} catch {
|
|
4042
4042
|
return;
|
|
4043
4043
|
}
|
|
4044
|
-
for (const child of children) await walkRec(path$
|
|
4044
|
+
for (const child of children) await walkRec(path$1.join(abs, child), dataDir, out, shouldSkip, signal);
|
|
4045
4045
|
}
|
|
4046
4046
|
}
|
|
4047
4047
|
/**
|
|
@@ -4058,10 +4058,10 @@ function byteCountingPassthrough(onBytes) {
|
|
|
4058
4058
|
} });
|
|
4059
4059
|
}
|
|
4060
4060
|
function toArchiveEntry(abs, dataDir, stat) {
|
|
4061
|
-
const rel = path$
|
|
4061
|
+
const rel = path$1.relative(dataDir, abs).replace(/\\/g, "/");
|
|
4062
4062
|
const kind = stat.isDirectory() ? "dir" : stat.isSymbolicLink() ? "symlink" : "file";
|
|
4063
4063
|
return {
|
|
4064
|
-
path: rel || path$
|
|
4064
|
+
path: rel || path$1.basename(abs),
|
|
4065
4065
|
kind,
|
|
4066
4066
|
sizeBytes: kind === "file" ? stat.size : 0,
|
|
4067
4067
|
mtime: stat.mtimeMs
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-BiTCcaf-.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let buffer = require("buffer");
|
|
5
5
|
let node_fs_promises = require("node:fs/promises");
|
|
Binary file
|
|
Binary file
|