git-truck 1.2.0-3 → 1.2.0-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/build/cli.js +198 -207
- package/build/index.js +2 -2
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -2348,11 +2348,11 @@ var require_semver2 = __commonJS({
|
|
|
2348
2348
|
var require_is_docker = __commonJS({
|
|
2349
2349
|
"node_modules/is-docker/index.js"(exports, module2) {
|
|
2350
2350
|
"use strict";
|
|
2351
|
-
var
|
|
2351
|
+
var fs2 = require("fs");
|
|
2352
2352
|
var isDocker;
|
|
2353
2353
|
function hasDockerEnv() {
|
|
2354
2354
|
try {
|
|
2355
|
-
|
|
2355
|
+
fs2.statSync("/.dockerenv");
|
|
2356
2356
|
return true;
|
|
2357
2357
|
} catch (_) {
|
|
2358
2358
|
return false;
|
|
@@ -2360,7 +2360,7 @@ var require_is_docker = __commonJS({
|
|
|
2360
2360
|
}
|
|
2361
2361
|
function hasDockerCGroup() {
|
|
2362
2362
|
try {
|
|
2363
|
-
return
|
|
2363
|
+
return fs2.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
|
|
2364
2364
|
} catch (_) {
|
|
2365
2365
|
return false;
|
|
2366
2366
|
}
|
|
@@ -2379,7 +2379,7 @@ var require_is_wsl = __commonJS({
|
|
|
2379
2379
|
"node_modules/is-wsl/index.js"(exports, module2) {
|
|
2380
2380
|
"use strict";
|
|
2381
2381
|
var os2 = require("os");
|
|
2382
|
-
var
|
|
2382
|
+
var fs2 = require("fs");
|
|
2383
2383
|
var isDocker = require_is_docker();
|
|
2384
2384
|
var isWsl = () => {
|
|
2385
2385
|
if (process.platform !== "linux") {
|
|
@@ -2392,7 +2392,7 @@ var require_is_wsl = __commonJS({
|
|
|
2392
2392
|
return true;
|
|
2393
2393
|
}
|
|
2394
2394
|
try {
|
|
2395
|
-
return
|
|
2395
|
+
return fs2.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker() : false;
|
|
2396
2396
|
} catch (_) {
|
|
2397
2397
|
return false;
|
|
2398
2398
|
}
|
|
@@ -2433,7 +2433,7 @@ var require_open = __commonJS({
|
|
|
2433
2433
|
"node_modules/open/index.js"(exports, module2) {
|
|
2434
2434
|
var path = require("path");
|
|
2435
2435
|
var childProcess = require("child_process");
|
|
2436
|
-
var { promises:
|
|
2436
|
+
var { promises: fs2, constants: fsConstants } = require("fs");
|
|
2437
2437
|
var isWsl = require_is_wsl();
|
|
2438
2438
|
var isDocker = require_is_docker();
|
|
2439
2439
|
var defineLazyProperty = require_define_lazy_prop();
|
|
@@ -2449,14 +2449,14 @@ var require_open = __commonJS({
|
|
|
2449
2449
|
const configFilePath = "/etc/wsl.conf";
|
|
2450
2450
|
let isConfigFileExists = false;
|
|
2451
2451
|
try {
|
|
2452
|
-
await
|
|
2452
|
+
await fs2.access(configFilePath, fsConstants.F_OK);
|
|
2453
2453
|
isConfigFileExists = true;
|
|
2454
2454
|
} catch {
|
|
2455
2455
|
}
|
|
2456
2456
|
if (!isConfigFileExists) {
|
|
2457
2457
|
return defaultMountPoint;
|
|
2458
2458
|
}
|
|
2459
|
-
const configContent = await
|
|
2459
|
+
const configContent = await fs2.readFile(configFilePath, { encoding: "utf8" });
|
|
2460
2460
|
const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
|
|
2461
2461
|
if (!configMountPoint) {
|
|
2462
2462
|
return defaultMountPoint;
|
|
@@ -2556,7 +2556,7 @@ var require_open = __commonJS({
|
|
|
2556
2556
|
const isBundled = !__dirname || __dirname === "/";
|
|
2557
2557
|
let exeLocalXdgOpen = false;
|
|
2558
2558
|
try {
|
|
2559
|
-
await
|
|
2559
|
+
await fs2.access(localXdgOpenPath, fsConstants.X_OK);
|
|
2560
2560
|
exeLocalXdgOpen = true;
|
|
2561
2561
|
} catch {
|
|
2562
2562
|
}
|
|
@@ -3046,7 +3046,7 @@ var require_pump = __commonJS({
|
|
|
3046
3046
|
"node_modules/pump/index.js"(exports, module2) {
|
|
3047
3047
|
var once = require_once();
|
|
3048
3048
|
var eos = require_end_of_stream();
|
|
3049
|
-
var
|
|
3049
|
+
var fs2 = require("fs");
|
|
3050
3050
|
var noop3 = function() {
|
|
3051
3051
|
};
|
|
3052
3052
|
var ancient = /^v?\.0/.test(process.version);
|
|
@@ -3056,9 +3056,9 @@ var require_pump = __commonJS({
|
|
|
3056
3056
|
var isFS = function(stream) {
|
|
3057
3057
|
if (!ancient)
|
|
3058
3058
|
return false;
|
|
3059
|
-
if (!
|
|
3059
|
+
if (!fs2)
|
|
3060
3060
|
return false;
|
|
3061
|
-
return (stream instanceof (
|
|
3061
|
+
return (stream instanceof (fs2.ReadStream || noop3) || stream instanceof (fs2.WriteStream || noop3)) && isFn(stream.close);
|
|
3062
3062
|
};
|
|
3063
3063
|
var isRequest2 = function(stream) {
|
|
3064
3064
|
return stream.setHeader && isFn(stream.abort);
|
|
@@ -6810,7 +6810,7 @@ var require_strip_json_comments = __commonJS({
|
|
|
6810
6810
|
var require_utils = __commonJS({
|
|
6811
6811
|
"node_modules/rc/lib/utils.js"(exports) {
|
|
6812
6812
|
"use strict";
|
|
6813
|
-
var
|
|
6813
|
+
var fs2 = require("fs");
|
|
6814
6814
|
var ini = require_ini();
|
|
6815
6815
|
var path = require("path");
|
|
6816
6816
|
var stripJsonComments = require_strip_json_comments();
|
|
@@ -6829,7 +6829,7 @@ var require_utils = __commonJS({
|
|
|
6829
6829
|
var file2 = path.join.apply(null, args);
|
|
6830
6830
|
var content;
|
|
6831
6831
|
try {
|
|
6832
|
-
return
|
|
6832
|
+
return fs2.readFileSync(file2, "utf-8");
|
|
6833
6833
|
} catch (err) {
|
|
6834
6834
|
return;
|
|
6835
6835
|
}
|
|
@@ -6868,7 +6868,7 @@ var require_utils = __commonJS({
|
|
|
6868
6868
|
function find2(start, rel2) {
|
|
6869
6869
|
var file2 = path.join(start, rel2);
|
|
6870
6870
|
try {
|
|
6871
|
-
|
|
6871
|
+
fs2.statSync(file2);
|
|
6872
6872
|
return file2;
|
|
6873
6873
|
} catch (err) {
|
|
6874
6874
|
if (path.dirname(start) !== start)
|
|
@@ -7250,56 +7250,56 @@ var require_polyfills = __commonJS({
|
|
|
7250
7250
|
}
|
|
7251
7251
|
var chdir;
|
|
7252
7252
|
module2.exports = patch;
|
|
7253
|
-
function patch(
|
|
7253
|
+
function patch(fs2) {
|
|
7254
7254
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
7255
|
-
patchLchmod(
|
|
7256
|
-
}
|
|
7257
|
-
if (!
|
|
7258
|
-
patchLutimes(
|
|
7259
|
-
}
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
if (
|
|
7279
|
-
|
|
7255
|
+
patchLchmod(fs2);
|
|
7256
|
+
}
|
|
7257
|
+
if (!fs2.lutimes) {
|
|
7258
|
+
patchLutimes(fs2);
|
|
7259
|
+
}
|
|
7260
|
+
fs2.chown = chownFix(fs2.chown);
|
|
7261
|
+
fs2.fchown = chownFix(fs2.fchown);
|
|
7262
|
+
fs2.lchown = chownFix(fs2.lchown);
|
|
7263
|
+
fs2.chmod = chmodFix(fs2.chmod);
|
|
7264
|
+
fs2.fchmod = chmodFix(fs2.fchmod);
|
|
7265
|
+
fs2.lchmod = chmodFix(fs2.lchmod);
|
|
7266
|
+
fs2.chownSync = chownFixSync(fs2.chownSync);
|
|
7267
|
+
fs2.fchownSync = chownFixSync(fs2.fchownSync);
|
|
7268
|
+
fs2.lchownSync = chownFixSync(fs2.lchownSync);
|
|
7269
|
+
fs2.chmodSync = chmodFixSync(fs2.chmodSync);
|
|
7270
|
+
fs2.fchmodSync = chmodFixSync(fs2.fchmodSync);
|
|
7271
|
+
fs2.lchmodSync = chmodFixSync(fs2.lchmodSync);
|
|
7272
|
+
fs2.stat = statFix(fs2.stat);
|
|
7273
|
+
fs2.fstat = statFix(fs2.fstat);
|
|
7274
|
+
fs2.lstat = statFix(fs2.lstat);
|
|
7275
|
+
fs2.statSync = statFixSync(fs2.statSync);
|
|
7276
|
+
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
7277
|
+
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
7278
|
+
if (fs2.chmod && !fs2.lchmod) {
|
|
7279
|
+
fs2.lchmod = function(path, mode, cb) {
|
|
7280
7280
|
if (cb)
|
|
7281
7281
|
process.nextTick(cb);
|
|
7282
7282
|
};
|
|
7283
|
-
|
|
7283
|
+
fs2.lchmodSync = function() {
|
|
7284
7284
|
};
|
|
7285
7285
|
}
|
|
7286
|
-
if (
|
|
7287
|
-
|
|
7286
|
+
if (fs2.chown && !fs2.lchown) {
|
|
7287
|
+
fs2.lchown = function(path, uid, gid, cb) {
|
|
7288
7288
|
if (cb)
|
|
7289
7289
|
process.nextTick(cb);
|
|
7290
7290
|
};
|
|
7291
|
-
|
|
7291
|
+
fs2.lchownSync = function() {
|
|
7292
7292
|
};
|
|
7293
7293
|
}
|
|
7294
7294
|
if (platform === "win32") {
|
|
7295
|
-
|
|
7295
|
+
fs2.rename = typeof fs2.rename !== "function" ? fs2.rename : function(fs$rename) {
|
|
7296
7296
|
function rename(from, to, cb) {
|
|
7297
7297
|
var start = Date.now();
|
|
7298
7298
|
var backoff = 0;
|
|
7299
7299
|
fs$rename(from, to, function CB(er) {
|
|
7300
7300
|
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
|
|
7301
7301
|
setTimeout(function() {
|
|
7302
|
-
|
|
7302
|
+
fs2.stat(to, function(stater, st) {
|
|
7303
7303
|
if (stater && stater.code === "ENOENT")
|
|
7304
7304
|
fs$rename(from, to, CB);
|
|
7305
7305
|
else
|
|
@@ -7317,9 +7317,9 @@ var require_polyfills = __commonJS({
|
|
|
7317
7317
|
if (Object.setPrototypeOf)
|
|
7318
7318
|
Object.setPrototypeOf(rename, fs$rename);
|
|
7319
7319
|
return rename;
|
|
7320
|
-
}(
|
|
7320
|
+
}(fs2.rename);
|
|
7321
7321
|
}
|
|
7322
|
-
|
|
7322
|
+
fs2.read = typeof fs2.read !== "function" ? fs2.read : function(fs$read) {
|
|
7323
7323
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
7324
7324
|
var callback;
|
|
7325
7325
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -7327,23 +7327,23 @@ var require_polyfills = __commonJS({
|
|
|
7327
7327
|
callback = function(er, _, __) {
|
|
7328
7328
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
7329
7329
|
eagCounter++;
|
|
7330
|
-
return fs$read.call(
|
|
7330
|
+
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
7331
7331
|
}
|
|
7332
7332
|
callback_.apply(this, arguments);
|
|
7333
7333
|
};
|
|
7334
7334
|
}
|
|
7335
|
-
return fs$read.call(
|
|
7335
|
+
return fs$read.call(fs2, fd, buffer, offset, length, position, callback);
|
|
7336
7336
|
}
|
|
7337
7337
|
if (Object.setPrototypeOf)
|
|
7338
7338
|
Object.setPrototypeOf(read, fs$read);
|
|
7339
7339
|
return read;
|
|
7340
|
-
}(
|
|
7341
|
-
|
|
7340
|
+
}(fs2.read);
|
|
7341
|
+
fs2.readSync = typeof fs2.readSync !== "function" ? fs2.readSync : function(fs$readSync) {
|
|
7342
7342
|
return function(fd, buffer, offset, length, position) {
|
|
7343
7343
|
var eagCounter = 0;
|
|
7344
7344
|
while (true) {
|
|
7345
7345
|
try {
|
|
7346
|
-
return fs$readSync.call(
|
|
7346
|
+
return fs$readSync.call(fs2, fd, buffer, offset, length, position);
|
|
7347
7347
|
} catch (er) {
|
|
7348
7348
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
7349
7349
|
eagCounter++;
|
|
@@ -7353,10 +7353,10 @@ var require_polyfills = __commonJS({
|
|
|
7353
7353
|
}
|
|
7354
7354
|
}
|
|
7355
7355
|
};
|
|
7356
|
-
}(
|
|
7357
|
-
function patchLchmod(
|
|
7358
|
-
|
|
7359
|
-
|
|
7356
|
+
}(fs2.readSync);
|
|
7357
|
+
function patchLchmod(fs3) {
|
|
7358
|
+
fs3.lchmod = function(path, mode, callback) {
|
|
7359
|
+
fs3.open(
|
|
7360
7360
|
path,
|
|
7361
7361
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
7362
7362
|
mode,
|
|
@@ -7366,8 +7366,8 @@ var require_polyfills = __commonJS({
|
|
|
7366
7366
|
callback(err);
|
|
7367
7367
|
return;
|
|
7368
7368
|
}
|
|
7369
|
-
|
|
7370
|
-
|
|
7369
|
+
fs3.fchmod(fd, mode, function(err2) {
|
|
7370
|
+
fs3.close(fd, function(err22) {
|
|
7371
7371
|
if (callback)
|
|
7372
7372
|
callback(err2 || err22);
|
|
7373
7373
|
});
|
|
@@ -7375,68 +7375,68 @@ var require_polyfills = __commonJS({
|
|
|
7375
7375
|
}
|
|
7376
7376
|
);
|
|
7377
7377
|
};
|
|
7378
|
-
|
|
7379
|
-
var fd =
|
|
7378
|
+
fs3.lchmodSync = function(path, mode) {
|
|
7379
|
+
var fd = fs3.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
7380
7380
|
var threw = true;
|
|
7381
7381
|
var ret;
|
|
7382
7382
|
try {
|
|
7383
|
-
ret =
|
|
7383
|
+
ret = fs3.fchmodSync(fd, mode);
|
|
7384
7384
|
threw = false;
|
|
7385
7385
|
} finally {
|
|
7386
7386
|
if (threw) {
|
|
7387
7387
|
try {
|
|
7388
|
-
|
|
7388
|
+
fs3.closeSync(fd);
|
|
7389
7389
|
} catch (er) {
|
|
7390
7390
|
}
|
|
7391
7391
|
} else {
|
|
7392
|
-
|
|
7392
|
+
fs3.closeSync(fd);
|
|
7393
7393
|
}
|
|
7394
7394
|
}
|
|
7395
7395
|
return ret;
|
|
7396
7396
|
};
|
|
7397
7397
|
}
|
|
7398
|
-
function patchLutimes(
|
|
7399
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
7400
|
-
|
|
7401
|
-
|
|
7398
|
+
function patchLutimes(fs3) {
|
|
7399
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
|
|
7400
|
+
fs3.lutimes = function(path, at, mt, cb) {
|
|
7401
|
+
fs3.open(path, constants.O_SYMLINK, function(er, fd) {
|
|
7402
7402
|
if (er) {
|
|
7403
7403
|
if (cb)
|
|
7404
7404
|
cb(er);
|
|
7405
7405
|
return;
|
|
7406
7406
|
}
|
|
7407
|
-
|
|
7408
|
-
|
|
7407
|
+
fs3.futimes(fd, at, mt, function(er2) {
|
|
7408
|
+
fs3.close(fd, function(er22) {
|
|
7409
7409
|
if (cb)
|
|
7410
7410
|
cb(er2 || er22);
|
|
7411
7411
|
});
|
|
7412
7412
|
});
|
|
7413
7413
|
});
|
|
7414
7414
|
};
|
|
7415
|
-
|
|
7416
|
-
var fd =
|
|
7415
|
+
fs3.lutimesSync = function(path, at, mt) {
|
|
7416
|
+
var fd = fs3.openSync(path, constants.O_SYMLINK);
|
|
7417
7417
|
var ret;
|
|
7418
7418
|
var threw = true;
|
|
7419
7419
|
try {
|
|
7420
|
-
ret =
|
|
7420
|
+
ret = fs3.futimesSync(fd, at, mt);
|
|
7421
7421
|
threw = false;
|
|
7422
7422
|
} finally {
|
|
7423
7423
|
if (threw) {
|
|
7424
7424
|
try {
|
|
7425
|
-
|
|
7425
|
+
fs3.closeSync(fd);
|
|
7426
7426
|
} catch (er) {
|
|
7427
7427
|
}
|
|
7428
7428
|
} else {
|
|
7429
|
-
|
|
7429
|
+
fs3.closeSync(fd);
|
|
7430
7430
|
}
|
|
7431
7431
|
}
|
|
7432
7432
|
return ret;
|
|
7433
7433
|
};
|
|
7434
|
-
} else if (
|
|
7435
|
-
|
|
7434
|
+
} else if (fs3.futimes) {
|
|
7435
|
+
fs3.lutimes = function(_a, _b, _c, cb) {
|
|
7436
7436
|
if (cb)
|
|
7437
7437
|
process.nextTick(cb);
|
|
7438
7438
|
};
|
|
7439
|
-
|
|
7439
|
+
fs3.lutimesSync = function() {
|
|
7440
7440
|
};
|
|
7441
7441
|
}
|
|
7442
7442
|
}
|
|
@@ -7444,7 +7444,7 @@ var require_polyfills = __commonJS({
|
|
|
7444
7444
|
if (!orig)
|
|
7445
7445
|
return orig;
|
|
7446
7446
|
return function(target, mode, cb) {
|
|
7447
|
-
return orig.call(
|
|
7447
|
+
return orig.call(fs2, target, mode, function(er) {
|
|
7448
7448
|
if (chownErOk(er))
|
|
7449
7449
|
er = null;
|
|
7450
7450
|
if (cb)
|
|
@@ -7457,7 +7457,7 @@ var require_polyfills = __commonJS({
|
|
|
7457
7457
|
return orig;
|
|
7458
7458
|
return function(target, mode) {
|
|
7459
7459
|
try {
|
|
7460
|
-
return orig.call(
|
|
7460
|
+
return orig.call(fs2, target, mode);
|
|
7461
7461
|
} catch (er) {
|
|
7462
7462
|
if (!chownErOk(er))
|
|
7463
7463
|
throw er;
|
|
@@ -7468,7 +7468,7 @@ var require_polyfills = __commonJS({
|
|
|
7468
7468
|
if (!orig)
|
|
7469
7469
|
return orig;
|
|
7470
7470
|
return function(target, uid, gid, cb) {
|
|
7471
|
-
return orig.call(
|
|
7471
|
+
return orig.call(fs2, target, uid, gid, function(er) {
|
|
7472
7472
|
if (chownErOk(er))
|
|
7473
7473
|
er = null;
|
|
7474
7474
|
if (cb)
|
|
@@ -7481,7 +7481,7 @@ var require_polyfills = __commonJS({
|
|
|
7481
7481
|
return orig;
|
|
7482
7482
|
return function(target, uid, gid) {
|
|
7483
7483
|
try {
|
|
7484
|
-
return orig.call(
|
|
7484
|
+
return orig.call(fs2, target, uid, gid);
|
|
7485
7485
|
} catch (er) {
|
|
7486
7486
|
if (!chownErOk(er))
|
|
7487
7487
|
throw er;
|
|
@@ -7506,14 +7506,14 @@ var require_polyfills = __commonJS({
|
|
|
7506
7506
|
if (cb)
|
|
7507
7507
|
cb.apply(this, arguments);
|
|
7508
7508
|
}
|
|
7509
|
-
return options ? orig.call(
|
|
7509
|
+
return options ? orig.call(fs2, target, options, callback) : orig.call(fs2, target, callback);
|
|
7510
7510
|
};
|
|
7511
7511
|
}
|
|
7512
7512
|
function statFixSync(orig) {
|
|
7513
7513
|
if (!orig)
|
|
7514
7514
|
return orig;
|
|
7515
7515
|
return function(target, options) {
|
|
7516
|
-
var stats = options ? orig.call(
|
|
7516
|
+
var stats = options ? orig.call(fs2, target, options) : orig.call(fs2, target);
|
|
7517
7517
|
if (stats) {
|
|
7518
7518
|
if (stats.uid < 0)
|
|
7519
7519
|
stats.uid += 4294967296;
|
|
@@ -7544,7 +7544,7 @@ var require_legacy_streams = __commonJS({
|
|
|
7544
7544
|
"node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
7545
7545
|
var Stream = require("stream").Stream;
|
|
7546
7546
|
module2.exports = legacy;
|
|
7547
|
-
function legacy(
|
|
7547
|
+
function legacy(fs2) {
|
|
7548
7548
|
return {
|
|
7549
7549
|
ReadStream,
|
|
7550
7550
|
WriteStream
|
|
@@ -7589,7 +7589,7 @@ var require_legacy_streams = __commonJS({
|
|
|
7589
7589
|
});
|
|
7590
7590
|
return;
|
|
7591
7591
|
}
|
|
7592
|
-
|
|
7592
|
+
fs2.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
7593
7593
|
if (err) {
|
|
7594
7594
|
self2.emit("error", err);
|
|
7595
7595
|
self2.readable = false;
|
|
@@ -7629,7 +7629,7 @@ var require_legacy_streams = __commonJS({
|
|
|
7629
7629
|
this.busy = false;
|
|
7630
7630
|
this._queue = [];
|
|
7631
7631
|
if (this.fd === null) {
|
|
7632
|
-
this._open =
|
|
7632
|
+
this._open = fs2.open;
|
|
7633
7633
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
7634
7634
|
this.flush();
|
|
7635
7635
|
}
|
|
@@ -7664,7 +7664,7 @@ var require_clone = __commonJS({
|
|
|
7664
7664
|
// node_modules/graceful-fs/graceful-fs.js
|
|
7665
7665
|
var require_graceful_fs = __commonJS({
|
|
7666
7666
|
"node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
7667
|
-
var
|
|
7667
|
+
var fs2 = require("fs");
|
|
7668
7668
|
var polyfills = require_polyfills();
|
|
7669
7669
|
var legacy = require_legacy_streams();
|
|
7670
7670
|
var clone = require_clone();
|
|
@@ -7696,12 +7696,12 @@ var require_graceful_fs = __commonJS({
|
|
|
7696
7696
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
7697
7697
|
console.error(m);
|
|
7698
7698
|
};
|
|
7699
|
-
if (!
|
|
7699
|
+
if (!fs2[gracefulQueue]) {
|
|
7700
7700
|
queue = global[gracefulQueue] || [];
|
|
7701
|
-
publishQueue(
|
|
7702
|
-
|
|
7701
|
+
publishQueue(fs2, queue);
|
|
7702
|
+
fs2.close = function(fs$close) {
|
|
7703
7703
|
function close(fd, cb) {
|
|
7704
|
-
return fs$close.call(
|
|
7704
|
+
return fs$close.call(fs2, fd, function(err) {
|
|
7705
7705
|
if (!err) {
|
|
7706
7706
|
resetQueue();
|
|
7707
7707
|
}
|
|
@@ -7713,40 +7713,40 @@ var require_graceful_fs = __commonJS({
|
|
|
7713
7713
|
value: fs$close
|
|
7714
7714
|
});
|
|
7715
7715
|
return close;
|
|
7716
|
-
}(
|
|
7717
|
-
|
|
7716
|
+
}(fs2.close);
|
|
7717
|
+
fs2.closeSync = function(fs$closeSync) {
|
|
7718
7718
|
function closeSync(fd) {
|
|
7719
|
-
fs$closeSync.apply(
|
|
7719
|
+
fs$closeSync.apply(fs2, arguments);
|
|
7720
7720
|
resetQueue();
|
|
7721
7721
|
}
|
|
7722
7722
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
7723
7723
|
value: fs$closeSync
|
|
7724
7724
|
});
|
|
7725
7725
|
return closeSync;
|
|
7726
|
-
}(
|
|
7726
|
+
}(fs2.closeSync);
|
|
7727
7727
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
7728
7728
|
process.on("exit", function() {
|
|
7729
|
-
debug2(
|
|
7730
|
-
require("assert").equal(
|
|
7729
|
+
debug2(fs2[gracefulQueue]);
|
|
7730
|
+
require("assert").equal(fs2[gracefulQueue].length, 0);
|
|
7731
7731
|
});
|
|
7732
7732
|
}
|
|
7733
7733
|
}
|
|
7734
7734
|
var queue;
|
|
7735
7735
|
if (!global[gracefulQueue]) {
|
|
7736
|
-
publishQueue(global,
|
|
7737
|
-
}
|
|
7738
|
-
module2.exports = patch(clone(
|
|
7739
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
7740
|
-
module2.exports = patch(
|
|
7741
|
-
|
|
7742
|
-
}
|
|
7743
|
-
function patch(
|
|
7744
|
-
polyfills(
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
var fs$readFile =
|
|
7749
|
-
|
|
7736
|
+
publishQueue(global, fs2[gracefulQueue]);
|
|
7737
|
+
}
|
|
7738
|
+
module2.exports = patch(clone(fs2));
|
|
7739
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs2.__patched) {
|
|
7740
|
+
module2.exports = patch(fs2);
|
|
7741
|
+
fs2.__patched = true;
|
|
7742
|
+
}
|
|
7743
|
+
function patch(fs3) {
|
|
7744
|
+
polyfills(fs3);
|
|
7745
|
+
fs3.gracefulify = patch;
|
|
7746
|
+
fs3.createReadStream = createReadStream;
|
|
7747
|
+
fs3.createWriteStream = createWriteStream;
|
|
7748
|
+
var fs$readFile = fs3.readFile;
|
|
7749
|
+
fs3.readFile = readFile;
|
|
7750
7750
|
function readFile(path, options, cb) {
|
|
7751
7751
|
if (typeof options === "function")
|
|
7752
7752
|
cb = options, options = null;
|
|
@@ -7762,8 +7762,8 @@ var require_graceful_fs = __commonJS({
|
|
|
7762
7762
|
});
|
|
7763
7763
|
}
|
|
7764
7764
|
}
|
|
7765
|
-
var fs$writeFile =
|
|
7766
|
-
|
|
7765
|
+
var fs$writeFile = fs3.writeFile;
|
|
7766
|
+
fs3.writeFile = writeFile;
|
|
7767
7767
|
function writeFile(path, data, options, cb) {
|
|
7768
7768
|
if (typeof options === "function")
|
|
7769
7769
|
cb = options, options = null;
|
|
@@ -7779,9 +7779,9 @@ var require_graceful_fs = __commonJS({
|
|
|
7779
7779
|
});
|
|
7780
7780
|
}
|
|
7781
7781
|
}
|
|
7782
|
-
var fs$appendFile =
|
|
7782
|
+
var fs$appendFile = fs3.appendFile;
|
|
7783
7783
|
if (fs$appendFile)
|
|
7784
|
-
|
|
7784
|
+
fs3.appendFile = appendFile;
|
|
7785
7785
|
function appendFile(path, data, options, cb) {
|
|
7786
7786
|
if (typeof options === "function")
|
|
7787
7787
|
cb = options, options = null;
|
|
@@ -7797,9 +7797,9 @@ var require_graceful_fs = __commonJS({
|
|
|
7797
7797
|
});
|
|
7798
7798
|
}
|
|
7799
7799
|
}
|
|
7800
|
-
var fs$copyFile =
|
|
7800
|
+
var fs$copyFile = fs3.copyFile;
|
|
7801
7801
|
if (fs$copyFile)
|
|
7802
|
-
|
|
7802
|
+
fs3.copyFile = copyFile;
|
|
7803
7803
|
function copyFile(src, dest, flags, cb) {
|
|
7804
7804
|
if (typeof flags === "function") {
|
|
7805
7805
|
cb = flags;
|
|
@@ -7817,8 +7817,8 @@ var require_graceful_fs = __commonJS({
|
|
|
7817
7817
|
});
|
|
7818
7818
|
}
|
|
7819
7819
|
}
|
|
7820
|
-
var fs$readdir =
|
|
7821
|
-
|
|
7820
|
+
var fs$readdir = fs3.readdir;
|
|
7821
|
+
fs3.readdir = readdir;
|
|
7822
7822
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
7823
7823
|
function readdir(path, options, cb) {
|
|
7824
7824
|
if (typeof options === "function")
|
|
@@ -7859,21 +7859,21 @@ var require_graceful_fs = __commonJS({
|
|
|
7859
7859
|
}
|
|
7860
7860
|
}
|
|
7861
7861
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
7862
|
-
var legStreams = legacy(
|
|
7862
|
+
var legStreams = legacy(fs3);
|
|
7863
7863
|
ReadStream = legStreams.ReadStream;
|
|
7864
7864
|
WriteStream = legStreams.WriteStream;
|
|
7865
7865
|
}
|
|
7866
|
-
var fs$ReadStream =
|
|
7866
|
+
var fs$ReadStream = fs3.ReadStream;
|
|
7867
7867
|
if (fs$ReadStream) {
|
|
7868
7868
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
7869
7869
|
ReadStream.prototype.open = ReadStream$open;
|
|
7870
7870
|
}
|
|
7871
|
-
var fs$WriteStream =
|
|
7871
|
+
var fs$WriteStream = fs3.WriteStream;
|
|
7872
7872
|
if (fs$WriteStream) {
|
|
7873
7873
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
7874
7874
|
WriteStream.prototype.open = WriteStream$open;
|
|
7875
7875
|
}
|
|
7876
|
-
Object.defineProperty(
|
|
7876
|
+
Object.defineProperty(fs3, "ReadStream", {
|
|
7877
7877
|
get: function() {
|
|
7878
7878
|
return ReadStream;
|
|
7879
7879
|
},
|
|
@@ -7883,7 +7883,7 @@ var require_graceful_fs = __commonJS({
|
|
|
7883
7883
|
enumerable: true,
|
|
7884
7884
|
configurable: true
|
|
7885
7885
|
});
|
|
7886
|
-
Object.defineProperty(
|
|
7886
|
+
Object.defineProperty(fs3, "WriteStream", {
|
|
7887
7887
|
get: function() {
|
|
7888
7888
|
return WriteStream;
|
|
7889
7889
|
},
|
|
@@ -7894,7 +7894,7 @@ var require_graceful_fs = __commonJS({
|
|
|
7894
7894
|
configurable: true
|
|
7895
7895
|
});
|
|
7896
7896
|
var FileReadStream = ReadStream;
|
|
7897
|
-
Object.defineProperty(
|
|
7897
|
+
Object.defineProperty(fs3, "FileReadStream", {
|
|
7898
7898
|
get: function() {
|
|
7899
7899
|
return FileReadStream;
|
|
7900
7900
|
},
|
|
@@ -7905,7 +7905,7 @@ var require_graceful_fs = __commonJS({
|
|
|
7905
7905
|
configurable: true
|
|
7906
7906
|
});
|
|
7907
7907
|
var FileWriteStream = WriteStream;
|
|
7908
|
-
Object.defineProperty(
|
|
7908
|
+
Object.defineProperty(fs3, "FileWriteStream", {
|
|
7909
7909
|
get: function() {
|
|
7910
7910
|
return FileWriteStream;
|
|
7911
7911
|
},
|
|
@@ -7954,13 +7954,13 @@ var require_graceful_fs = __commonJS({
|
|
|
7954
7954
|
});
|
|
7955
7955
|
}
|
|
7956
7956
|
function createReadStream(path, options) {
|
|
7957
|
-
return new
|
|
7957
|
+
return new fs3.ReadStream(path, options);
|
|
7958
7958
|
}
|
|
7959
7959
|
function createWriteStream(path, options) {
|
|
7960
|
-
return new
|
|
7960
|
+
return new fs3.WriteStream(path, options);
|
|
7961
7961
|
}
|
|
7962
|
-
var fs$open =
|
|
7963
|
-
|
|
7962
|
+
var fs$open = fs3.open;
|
|
7963
|
+
fs3.open = open2;
|
|
7964
7964
|
function open2(path, flags, mode, cb) {
|
|
7965
7965
|
if (typeof mode === "function")
|
|
7966
7966
|
cb = mode, mode = null;
|
|
@@ -7976,20 +7976,20 @@ var require_graceful_fs = __commonJS({
|
|
|
7976
7976
|
});
|
|
7977
7977
|
}
|
|
7978
7978
|
}
|
|
7979
|
-
return
|
|
7979
|
+
return fs3;
|
|
7980
7980
|
}
|
|
7981
7981
|
function enqueue(elem) {
|
|
7982
7982
|
debug2("ENQUEUE", elem[0].name, elem[1]);
|
|
7983
|
-
|
|
7983
|
+
fs2[gracefulQueue].push(elem);
|
|
7984
7984
|
retry();
|
|
7985
7985
|
}
|
|
7986
7986
|
var retryTimer;
|
|
7987
7987
|
function resetQueue() {
|
|
7988
7988
|
var now = Date.now();
|
|
7989
|
-
for (var i = 0; i <
|
|
7990
|
-
if (
|
|
7991
|
-
|
|
7992
|
-
|
|
7989
|
+
for (var i = 0; i < fs2[gracefulQueue].length; ++i) {
|
|
7990
|
+
if (fs2[gracefulQueue][i].length > 2) {
|
|
7991
|
+
fs2[gracefulQueue][i][3] = now;
|
|
7992
|
+
fs2[gracefulQueue][i][4] = now;
|
|
7993
7993
|
}
|
|
7994
7994
|
}
|
|
7995
7995
|
retry();
|
|
@@ -7997,9 +7997,9 @@ var require_graceful_fs = __commonJS({
|
|
|
7997
7997
|
function retry() {
|
|
7998
7998
|
clearTimeout(retryTimer);
|
|
7999
7999
|
retryTimer = void 0;
|
|
8000
|
-
if (
|
|
8000
|
+
if (fs2[gracefulQueue].length === 0)
|
|
8001
8001
|
return;
|
|
8002
|
-
var elem =
|
|
8002
|
+
var elem = fs2[gracefulQueue].shift();
|
|
8003
8003
|
var fn = elem[0];
|
|
8004
8004
|
var args = elem[1];
|
|
8005
8005
|
var err = elem[2];
|
|
@@ -8021,7 +8021,7 @@ var require_graceful_fs = __commonJS({
|
|
|
8021
8021
|
debug2("RETRY", fn.name, args);
|
|
8022
8022
|
fn.apply(null, args.concat([startTime]));
|
|
8023
8023
|
} else {
|
|
8024
|
-
|
|
8024
|
+
fs2[gracefulQueue].push(elem);
|
|
8025
8025
|
}
|
|
8026
8026
|
}
|
|
8027
8027
|
if (retryTimer === void 0) {
|
|
@@ -8187,7 +8187,7 @@ var require_config_chain = __commonJS({
|
|
|
8187
8187
|
"node_modules/config-chain/index.js"(exports, module2) {
|
|
8188
8188
|
var ProtoList = require_proto_list();
|
|
8189
8189
|
var path = require("path");
|
|
8190
|
-
var
|
|
8190
|
+
var fs2 = require("fs");
|
|
8191
8191
|
var ini = require_ini();
|
|
8192
8192
|
var EE = require("events").EventEmitter;
|
|
8193
8193
|
var url = require("url");
|
|
@@ -8206,7 +8206,7 @@ var require_config_chain = __commonJS({
|
|
|
8206
8206
|
function find2(start, rel2) {
|
|
8207
8207
|
var file = path.join(start, rel2);
|
|
8208
8208
|
try {
|
|
8209
|
-
|
|
8209
|
+
fs2.statSync(file);
|
|
8210
8210
|
return file;
|
|
8211
8211
|
} catch (err) {
|
|
8212
8212
|
if (path.dirname(start) !== start)
|
|
@@ -8244,7 +8244,7 @@ var require_config_chain = __commonJS({
|
|
|
8244
8244
|
var file = path.join.apply(null, args);
|
|
8245
8245
|
var content;
|
|
8246
8246
|
try {
|
|
8247
|
-
content =
|
|
8247
|
+
content = fs2.readFileSync(file, "utf-8");
|
|
8248
8248
|
} catch (err) {
|
|
8249
8249
|
return;
|
|
8250
8250
|
}
|
|
@@ -8340,7 +8340,7 @@ var require_config_chain = __commonJS({
|
|
|
8340
8340
|
data = ini.stringify(data);
|
|
8341
8341
|
}
|
|
8342
8342
|
this._saving++;
|
|
8343
|
-
|
|
8343
|
+
fs2.writeFile(target.path, data, "utf8", function(er) {
|
|
8344
8344
|
this._saving--;
|
|
8345
8345
|
if (er) {
|
|
8346
8346
|
if (cb)
|
|
@@ -8362,7 +8362,7 @@ var require_config_chain = __commonJS({
|
|
|
8362
8362
|
this.sources[name] = { path: file, type };
|
|
8363
8363
|
this.push(marker);
|
|
8364
8364
|
this._await();
|
|
8365
|
-
|
|
8365
|
+
fs2.readFile(file, "utf8", function(er, data) {
|
|
8366
8366
|
if (er)
|
|
8367
8367
|
this.emit("error", er);
|
|
8368
8368
|
this.addString(data, file, type, marker);
|
|
@@ -8463,7 +8463,7 @@ var require_envKeyToSetting = __commonJS({
|
|
|
8463
8463
|
var require_util = __commonJS({
|
|
8464
8464
|
"node_modules/@pnpm/npm-conf/lib/util.js"(exports) {
|
|
8465
8465
|
"use strict";
|
|
8466
|
-
var
|
|
8466
|
+
var fs2 = require("fs");
|
|
8467
8467
|
var path = require("path");
|
|
8468
8468
|
var envReplace = (str) => {
|
|
8469
8469
|
if (typeof str !== "string" || !str) {
|
|
@@ -8544,7 +8544,7 @@ var require_util = __commonJS({
|
|
|
8544
8544
|
return original;
|
|
8545
8545
|
}
|
|
8546
8546
|
try {
|
|
8547
|
-
const files =
|
|
8547
|
+
const files = fs2.readdirSync(name2);
|
|
8548
8548
|
if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml")) {
|
|
8549
8549
|
return name2;
|
|
8550
8550
|
}
|
|
@@ -8711,7 +8711,7 @@ var require_conf = __commonJS({
|
|
|
8711
8711
|
"node_modules/@pnpm/npm-conf/lib/conf.js"(exports, module2) {
|
|
8712
8712
|
"use strict";
|
|
8713
8713
|
var { readCAFileSync } = require_dist();
|
|
8714
|
-
var
|
|
8714
|
+
var fs2 = require("fs");
|
|
8715
8715
|
var path = require("path");
|
|
8716
8716
|
var { ConfigChain } = require_config_chain();
|
|
8717
8717
|
var envKeyToSetting = require_envKeyToSetting();
|
|
@@ -8739,7 +8739,7 @@ var require_conf = __commonJS({
|
|
|
8739
8739
|
this.push(marker);
|
|
8740
8740
|
this._await();
|
|
8741
8741
|
try {
|
|
8742
|
-
const contents =
|
|
8742
|
+
const contents = fs2.readFileSync(file, "utf8");
|
|
8743
8743
|
this.addString(contents, file, "ini", marker);
|
|
8744
8744
|
} catch (error2) {
|
|
8745
8745
|
if (error2.code === "ENOENT") {
|
|
@@ -8825,7 +8825,7 @@ var require_conf = __commonJS({
|
|
|
8825
8825
|
}
|
|
8826
8826
|
const prefix2 = path.resolve(this.get("prefix"));
|
|
8827
8827
|
try {
|
|
8828
|
-
const stats =
|
|
8828
|
+
const stats = fs2.statSync(prefix2);
|
|
8829
8829
|
defConf.user = stats.uid;
|
|
8830
8830
|
} catch (error2) {
|
|
8831
8831
|
if (error2.code === "ENOENT") {
|
|
@@ -168368,8 +168368,8 @@ var require_node = __commonJS({
|
|
|
168368
168368
|
}
|
|
168369
168369
|
break;
|
|
168370
168370
|
case "FILE":
|
|
168371
|
-
var
|
|
168372
|
-
stream2 = new
|
|
168371
|
+
var fs2 = require("fs");
|
|
168372
|
+
stream2 = new fs2.SyncWriteStream(fd2, { autoClose: false });
|
|
168373
168373
|
stream2._type = "fs";
|
|
168374
168374
|
break;
|
|
168375
168375
|
case "PIPE":
|
|
@@ -184002,8 +184002,8 @@ var require_node2 = __commonJS({
|
|
|
184002
184002
|
}
|
|
184003
184003
|
break;
|
|
184004
184004
|
case "FILE":
|
|
184005
|
-
var
|
|
184006
|
-
stream2 = new
|
|
184005
|
+
var fs2 = require("fs");
|
|
184006
|
+
stream2 = new fs2.SyncWriteStream(fd2, { autoClose: false });
|
|
184007
184007
|
stream2._type = "fs";
|
|
184008
184008
|
break;
|
|
184009
184009
|
case "PIPE":
|
|
@@ -184826,8 +184826,8 @@ var require_node3 = __commonJS({
|
|
|
184826
184826
|
}
|
|
184827
184827
|
break;
|
|
184828
184828
|
case "FILE":
|
|
184829
|
-
var
|
|
184830
|
-
stream2 = new
|
|
184829
|
+
var fs2 = require("fs");
|
|
184830
|
+
stream2 = new fs2.SyncWriteStream(fd2, { autoClose: false });
|
|
184831
184831
|
stream2._type = "fs";
|
|
184832
184832
|
break;
|
|
184833
184833
|
case "PIPE":
|
|
@@ -185693,7 +185693,7 @@ var require_view = __commonJS({
|
|
|
185693
185693
|
"use strict";
|
|
185694
185694
|
var debug2 = require_src8()("express:view");
|
|
185695
185695
|
var path = require("path");
|
|
185696
|
-
var
|
|
185696
|
+
var fs2 = require("fs");
|
|
185697
185697
|
var dirname2 = path.dirname;
|
|
185698
185698
|
var basename = path.basename;
|
|
185699
185699
|
var extname = path.extname;
|
|
@@ -185759,7 +185759,7 @@ var require_view = __commonJS({
|
|
|
185759
185759
|
function tryStat(path2) {
|
|
185760
185760
|
debug2('stat "%s"', path2);
|
|
185761
185761
|
try {
|
|
185762
|
-
return
|
|
185762
|
+
return fs2.statSync(path2);
|
|
185763
185763
|
} catch (e) {
|
|
185764
185764
|
return void 0;
|
|
185765
185765
|
}
|
|
@@ -186428,8 +186428,8 @@ var require_node4 = __commonJS({
|
|
|
186428
186428
|
}
|
|
186429
186429
|
break;
|
|
186430
186430
|
case "FILE":
|
|
186431
|
-
var
|
|
186432
|
-
stream2 = new
|
|
186431
|
+
var fs2 = require("fs");
|
|
186432
|
+
stream2 = new fs2.SyncWriteStream(fd2, { autoClose: false });
|
|
186433
186433
|
stream2._type = "fs";
|
|
186434
186434
|
break;
|
|
186435
186435
|
case "PIPE":
|
|
@@ -186602,7 +186602,7 @@ var require_types2 = __commonJS({
|
|
|
186602
186602
|
var require_mime = __commonJS({
|
|
186603
186603
|
"node_modules/mime/mime.js"(exports, module2) {
|
|
186604
186604
|
var path = require("path");
|
|
186605
|
-
var
|
|
186605
|
+
var fs2 = require("fs");
|
|
186606
186606
|
function Mime() {
|
|
186607
186607
|
this.types = /* @__PURE__ */ Object.create(null);
|
|
186608
186608
|
this.extensions = /* @__PURE__ */ Object.create(null);
|
|
@@ -186623,7 +186623,7 @@ var require_mime = __commonJS({
|
|
|
186623
186623
|
};
|
|
186624
186624
|
Mime.prototype.load = function(file) {
|
|
186625
186625
|
this._loading = file;
|
|
186626
|
-
var map = {}, content =
|
|
186626
|
+
var map = {}, content = fs2.readFileSync(file, "ascii"), lines = content.split(/[\r\n]+/);
|
|
186627
186627
|
lines.forEach(function(line) {
|
|
186628
186628
|
var fields = line.replace(/\s*#.*|^\s*|\s*$/g, "").split(/\s+/);
|
|
186629
186629
|
map[fields.shift()] = fields;
|
|
@@ -186970,7 +186970,7 @@ var require_send = __commonJS({
|
|
|
186970
186970
|
var escapeHtml = require_escape_html();
|
|
186971
186971
|
var etag = require_etag();
|
|
186972
186972
|
var fresh = require_fresh();
|
|
186973
|
-
var
|
|
186973
|
+
var fs2 = require("fs");
|
|
186974
186974
|
var mime = require_mime();
|
|
186975
186975
|
var ms = require_ms5();
|
|
186976
186976
|
var onFinished = require_on_finished3();
|
|
@@ -187304,7 +187304,7 @@ var require_send = __commonJS({
|
|
|
187304
187304
|
var i = 0;
|
|
187305
187305
|
var self2 = this;
|
|
187306
187306
|
debug2('stat "%s"', path2);
|
|
187307
|
-
|
|
187307
|
+
fs2.stat(path2, function onstat(err, stat) {
|
|
187308
187308
|
if (err && err.code === "ENOENT" && !extname(path2) && path2[path2.length - 1] !== sep2) {
|
|
187309
187309
|
return next(err);
|
|
187310
187310
|
}
|
|
@@ -187321,7 +187321,7 @@ var require_send = __commonJS({
|
|
|
187321
187321
|
}
|
|
187322
187322
|
var p = path2 + "." + self2._extensions[i++];
|
|
187323
187323
|
debug2('stat "%s"', p);
|
|
187324
|
-
|
|
187324
|
+
fs2.stat(p, function(err2, stat) {
|
|
187325
187325
|
if (err2)
|
|
187326
187326
|
return next(err2);
|
|
187327
187327
|
if (stat.isDirectory())
|
|
@@ -187342,7 +187342,7 @@ var require_send = __commonJS({
|
|
|
187342
187342
|
}
|
|
187343
187343
|
var p = join2(path2, self2._index[i]);
|
|
187344
187344
|
debug2('stat "%s"', p);
|
|
187345
|
-
|
|
187345
|
+
fs2.stat(p, function(err2, stat) {
|
|
187346
187346
|
if (err2)
|
|
187347
187347
|
return next(err2);
|
|
187348
187348
|
if (stat.isDirectory())
|
|
@@ -187356,7 +187356,7 @@ var require_send = __commonJS({
|
|
|
187356
187356
|
SendStream.prototype.stream = function stream(path2, options) {
|
|
187357
187357
|
var self2 = this;
|
|
187358
187358
|
var res = this.res;
|
|
187359
|
-
var stream2 =
|
|
187359
|
+
var stream2 = fs2.createReadStream(path2, options);
|
|
187360
187360
|
this.emit("stream", stream2);
|
|
187361
187361
|
stream2.pipe(res);
|
|
187362
187362
|
function cleanup() {
|
|
@@ -199668,8 +199668,8 @@ var require_node5 = __commonJS({
|
|
|
199668
199668
|
}
|
|
199669
199669
|
break;
|
|
199670
199670
|
case "FILE":
|
|
199671
|
-
var
|
|
199672
|
-
stream2 = new
|
|
199671
|
+
var fs2 = require("fs");
|
|
199672
|
+
stream2 = new fs2.SyncWriteStream(fd2, { autoClose: false });
|
|
199673
199673
|
stream2._type = "fs";
|
|
199674
199674
|
break;
|
|
199675
199675
|
case "PIPE":
|
|
@@ -200364,8 +200364,8 @@ var require_node6 = __commonJS({
|
|
|
200364
200364
|
}
|
|
200365
200365
|
break;
|
|
200366
200366
|
case "FILE":
|
|
200367
|
-
var
|
|
200368
|
-
stream2 = new
|
|
200367
|
+
var fs2 = require("fs");
|
|
200368
|
+
stream2 = new fs2.SyncWriteStream(fd2, { autoClose: false });
|
|
200369
200369
|
stream2._type = "fs";
|
|
200370
200370
|
break;
|
|
200371
200371
|
case "PIPE":
|
|
@@ -202526,11 +202526,11 @@ var require_source_map_support = __commonJS({
|
|
|
202526
202526
|
"node_modules/source-map-support/source-map-support.js"(exports, module2) {
|
|
202527
202527
|
var SourceMapConsumer = require_source_map().SourceMapConsumer;
|
|
202528
202528
|
var path = require("path");
|
|
202529
|
-
var
|
|
202529
|
+
var fs2;
|
|
202530
202530
|
try {
|
|
202531
|
-
|
|
202532
|
-
if (!
|
|
202533
|
-
|
|
202531
|
+
fs2 = require("fs");
|
|
202532
|
+
if (!fs2.existsSync || !fs2.readFileSync) {
|
|
202533
|
+
fs2 = null;
|
|
202534
202534
|
}
|
|
202535
202535
|
} catch (err) {
|
|
202536
202536
|
}
|
|
@@ -202598,15 +202598,15 @@ var require_source_map_support = __commonJS({
|
|
|
202598
202598
|
}
|
|
202599
202599
|
var contents = "";
|
|
202600
202600
|
try {
|
|
202601
|
-
if (!
|
|
202601
|
+
if (!fs2) {
|
|
202602
202602
|
var xhr = new XMLHttpRequest();
|
|
202603
202603
|
xhr.open("GET", path2, false);
|
|
202604
202604
|
xhr.send(null);
|
|
202605
202605
|
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
202606
202606
|
contents = xhr.responseText;
|
|
202607
202607
|
}
|
|
202608
|
-
} else if (
|
|
202609
|
-
contents =
|
|
202608
|
+
} else if (fs2.existsSync(path2)) {
|
|
202609
|
+
contents = fs2.readFileSync(path2, "utf8");
|
|
202610
202610
|
}
|
|
202611
202611
|
} catch (er) {
|
|
202612
202612
|
}
|
|
@@ -202874,9 +202874,9 @@ var require_source_map_support = __commonJS({
|
|
|
202874
202874
|
var line = +match[2];
|
|
202875
202875
|
var column = +match[3];
|
|
202876
202876
|
var contents = fileContentsCache[source];
|
|
202877
|
-
if (!contents &&
|
|
202877
|
+
if (!contents && fs2 && fs2.existsSync(source)) {
|
|
202878
202878
|
try {
|
|
202879
|
-
contents =
|
|
202879
|
+
contents = fs2.readFileSync(source, "utf8");
|
|
202880
202880
|
} catch (er) {
|
|
202881
202881
|
contents = "";
|
|
202882
202882
|
}
|
|
@@ -208841,7 +208841,7 @@ var require_lib_node3 = __commonJS({
|
|
|
208841
208841
|
var http3 = require("http");
|
|
208842
208842
|
var https2 = require("https");
|
|
208843
208843
|
var zlib = require("zlib");
|
|
208844
|
-
var
|
|
208844
|
+
var fs2 = require("fs");
|
|
208845
208845
|
var mime = require_mrmime();
|
|
208846
208846
|
var dataUriToBuffer = require_src12();
|
|
208847
208847
|
var Stream = require("stream");
|
|
@@ -209706,7 +209706,7 @@ var require_lib_node3 = __commonJS({
|
|
|
209706
209706
|
return;
|
|
209707
209707
|
}
|
|
209708
209708
|
if (options.protocol === "file:") {
|
|
209709
|
-
const stream =
|
|
209709
|
+
const stream = fs2.createReadStream(new URL(request.url));
|
|
209710
209710
|
const type = mime.lookup(request.url) || "application/octet-stream";
|
|
209711
209711
|
const response2 = new Response2(stream, { headers: { "Content-Type": type } });
|
|
209712
209712
|
resolve4(response2);
|
|
@@ -214053,7 +214053,7 @@ var require_fileStorage = __commonJS({
|
|
|
214053
214053
|
"use strict";
|
|
214054
214054
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
214055
214055
|
var crypto = require("crypto");
|
|
214056
|
-
var
|
|
214056
|
+
var fs2 = require("fs");
|
|
214057
214057
|
var path = require("path");
|
|
214058
214058
|
var implementations = require_implementations();
|
|
214059
214059
|
function _interopNamespace(e) {
|
|
@@ -214094,10 +214094,10 @@ var require_fileStorage = __commonJS({
|
|
|
214094
214094
|
let id = Buffer.from(randomBytes).toString("hex");
|
|
214095
214095
|
try {
|
|
214096
214096
|
let file = getFile(dir, id);
|
|
214097
|
-
await
|
|
214097
|
+
await fs2.promises.mkdir(path__namespace.dirname(file), {
|
|
214098
214098
|
recursive: true
|
|
214099
214099
|
});
|
|
214100
|
-
await
|
|
214100
|
+
await fs2.promises.writeFile(file, content, {
|
|
214101
214101
|
encoding: "utf-8",
|
|
214102
214102
|
flag: "wx"
|
|
214103
214103
|
});
|
|
@@ -214111,14 +214111,14 @@ var require_fileStorage = __commonJS({
|
|
|
214111
214111
|
async readData(id) {
|
|
214112
214112
|
try {
|
|
214113
214113
|
let file = getFile(dir, id);
|
|
214114
|
-
let content = JSON.parse(await
|
|
214114
|
+
let content = JSON.parse(await fs2.promises.readFile(file, "utf-8"));
|
|
214115
214115
|
let data = content.data;
|
|
214116
214116
|
let expires = typeof content.expires === "string" ? new Date(content.expires) : null;
|
|
214117
214117
|
if (!expires || expires > new Date()) {
|
|
214118
214118
|
return data;
|
|
214119
214119
|
}
|
|
214120
214120
|
if (expires)
|
|
214121
|
-
await
|
|
214121
|
+
await fs2.promises.unlink(file);
|
|
214122
214122
|
return null;
|
|
214123
214123
|
} catch (error2) {
|
|
214124
214124
|
if (error2.code !== "ENOENT")
|
|
@@ -214132,17 +214132,17 @@ var require_fileStorage = __commonJS({
|
|
|
214132
214132
|
expires
|
|
214133
214133
|
});
|
|
214134
214134
|
let file = getFile(dir, id);
|
|
214135
|
-
await
|
|
214135
|
+
await fs2.promises.mkdir(path__namespace.dirname(file), {
|
|
214136
214136
|
recursive: true
|
|
214137
214137
|
});
|
|
214138
|
-
await
|
|
214138
|
+
await fs2.promises.writeFile(file, content, "utf-8");
|
|
214139
214139
|
},
|
|
214140
214140
|
async deleteData(id) {
|
|
214141
214141
|
if (!id) {
|
|
214142
214142
|
return;
|
|
214143
214143
|
}
|
|
214144
214144
|
try {
|
|
214145
|
-
await
|
|
214145
|
+
await fs2.promises.unlink(getFile(dir, id));
|
|
214146
214146
|
} catch (error2) {
|
|
214147
214147
|
if (error2.code !== "ENOENT")
|
|
214148
214148
|
throw error2;
|
|
@@ -214349,7 +214349,7 @@ var require_fileUploadHandler = __commonJS({
|
|
|
214349
214349
|
"use strict";
|
|
214350
214350
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
214351
214351
|
var crypto = require("crypto");
|
|
214352
|
-
var
|
|
214352
|
+
var fs2 = require("fs");
|
|
214353
214353
|
var promises = require("fs/promises");
|
|
214354
214354
|
var os2 = require("os");
|
|
214355
214355
|
var path = require("path");
|
|
@@ -214438,7 +214438,7 @@ var require_fileUploadHandler = __commonJS({
|
|
|
214438
214438
|
recursive: true
|
|
214439
214439
|
}).catch(() => {
|
|
214440
214440
|
});
|
|
214441
|
-
let writeFileStream =
|
|
214441
|
+
let writeFileStream = fs2.createWriteStream(filepath);
|
|
214442
214442
|
let size = 0;
|
|
214443
214443
|
let deleteFile = false;
|
|
214444
214444
|
try {
|
|
@@ -214471,7 +214471,7 @@ var require_fileUploadHandler = __commonJS({
|
|
|
214471
214471
|
this.name = path.basename(filepath);
|
|
214472
214472
|
}
|
|
214473
214473
|
get size() {
|
|
214474
|
-
let stats =
|
|
214474
|
+
let stats = fs2.statSync(this.filepath);
|
|
214475
214475
|
if (this.slicer) {
|
|
214476
214476
|
let slice = this.slicer.end - this.slicer.start;
|
|
214477
214477
|
return slice < 0 ? 0 : slice > stats.size ? stats.size : slice;
|
|
@@ -214493,7 +214493,7 @@ var require_fileUploadHandler = __commonJS({
|
|
|
214493
214493
|
});
|
|
214494
214494
|
}
|
|
214495
214495
|
async arrayBuffer() {
|
|
214496
|
-
let stream2 =
|
|
214496
|
+
let stream2 = fs2.createReadStream(this.filepath);
|
|
214497
214497
|
if (this.slicer) {
|
|
214498
214498
|
stream2 = stream2.pipe(streamSlice__namespace.slice(this.slicer.start, this.slicer.end));
|
|
214499
214499
|
}
|
|
@@ -214505,7 +214505,7 @@ var require_fileUploadHandler = __commonJS({
|
|
|
214505
214505
|
});
|
|
214506
214506
|
}
|
|
214507
214507
|
stream() {
|
|
214508
|
-
let stream2 =
|
|
214508
|
+
let stream2 = fs2.createReadStream(this.filepath);
|
|
214509
214509
|
if (this.slicer) {
|
|
214510
214510
|
stream2 = stream2.pipe(streamSlice__namespace.slice(this.slicer.start, this.slicer.end));
|
|
214511
214511
|
}
|
|
@@ -214823,10 +214823,6 @@ var require_cli = __commonJS({
|
|
|
214823
214823
|
}
|
|
214824
214824
|
});
|
|
214825
214825
|
|
|
214826
|
-
// src/cli.ts
|
|
214827
|
-
var import_fs3 = __toESM(require("fs"));
|
|
214828
|
-
var import_child_process2 = require("child_process");
|
|
214829
|
-
|
|
214830
214826
|
// node_modules/yargs-parser/build/lib/index.js
|
|
214831
214827
|
var import_util = require("util");
|
|
214832
214828
|
var import_path = require("path");
|
|
@@ -215809,7 +215805,7 @@ var lib_default = yargsParser;
|
|
|
215809
215805
|
// package.json
|
|
215810
215806
|
var package_default = {
|
|
215811
215807
|
name: "git-truck",
|
|
215812
|
-
version: "1.2.0-
|
|
215808
|
+
version: "1.2.0-5",
|
|
215813
215809
|
private: false,
|
|
215814
215810
|
description: "Visualizing a Git repository",
|
|
215815
215811
|
license: "MIT",
|
|
@@ -215829,7 +215825,7 @@ var package_default = {
|
|
|
215829
215825
|
dev: "remix dev",
|
|
215830
215826
|
watch: "remix watch",
|
|
215831
215827
|
start: "remix-serve build",
|
|
215832
|
-
clean: "rimraf -rf
|
|
215828
|
+
clean: "rimraf -rf build public/build .cache .temp",
|
|
215833
215829
|
tsc: "tsc",
|
|
215834
215830
|
prepublishOnly: "npm run clean && npm ci && npm run build",
|
|
215835
215831
|
format: "eslint --cache --fix src/**/*.{ts,tsx} && prettier --loglevel warn --write src/**/*.{ts,tsx}",
|
|
@@ -220498,11 +220494,6 @@ for usage instructions.`);
|
|
|
220498
220494
|
port: [...getPortLib.portNumbers(3e3, 4e3)]
|
|
220499
220495
|
});
|
|
220500
220496
|
process.env["PORT"] = port.toString();
|
|
220501
|
-
if (!import_fs3.default.existsSync("build") || args["invalidateCache"]) {
|
|
220502
|
-
console.log("Building application...");
|
|
220503
|
-
(0, import_child_process2.execSync)("npm install", { stdio: "ignore" });
|
|
220504
|
-
(0, import_child_process2.execSync)("npm run build", { stdio: "ignore" });
|
|
220505
|
-
}
|
|
220506
220497
|
process.argv[2] = "build";
|
|
220507
220498
|
console.log("Starting Git Truck...");
|
|
220508
220499
|
const log2 = global.console.log;
|
package/build/index.js
CHANGED
|
@@ -2602,7 +2602,7 @@ var import_perf_hooks = require("perf_hooks"), import_path2 = require("path");
|
|
|
2602
2602
|
// package.json
|
|
2603
2603
|
var package_default = {
|
|
2604
2604
|
name: "git-truck",
|
|
2605
|
-
version: "1.2.0-
|
|
2605
|
+
version: "1.2.0-5",
|
|
2606
2606
|
private: !1,
|
|
2607
2607
|
description: "Visualizing a Git repository",
|
|
2608
2608
|
license: "MIT",
|
|
@@ -2622,7 +2622,7 @@ var package_default = {
|
|
|
2622
2622
|
dev: "remix dev",
|
|
2623
2623
|
watch: "remix watch",
|
|
2624
2624
|
start: "remix-serve build",
|
|
2625
|
-
clean: "rimraf -rf
|
|
2625
|
+
clean: "rimraf -rf build public/build .cache .temp",
|
|
2626
2626
|
tsc: "tsc",
|
|
2627
2627
|
prepublishOnly: "npm run clean && npm ci && npm run build",
|
|
2628
2628
|
format: "eslint --cache --fix src/**/*.{ts,tsx} && prettier --loglevel warn --write src/**/*.{ts,tsx}",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-truck",
|
|
3
|
-
"version": "1.2.0-
|
|
3
|
+
"version": "1.2.0-5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Visualizing a Git repository",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dev": "remix dev",
|
|
21
21
|
"watch": "remix watch",
|
|
22
22
|
"start": "remix-serve build",
|
|
23
|
-
"clean": "rimraf -rf
|
|
23
|
+
"clean": "rimraf -rf build public/build .cache .temp",
|
|
24
24
|
"tsc": "tsc",
|
|
25
25
|
"prepublishOnly": "npm run clean && npm ci && npm run build",
|
|
26
26
|
"format": "eslint --cache --fix src/**/*.{ts,tsx} && prettier --loglevel warn --write src/**/*.{ts,tsx}",
|