@yamada-ui/cli 2.1.16 → 2.1.17-dev-20261106105628
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +231 -329
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ import { HttpsProxyAgent } from "https-proxy-agent";
|
|
|
34
34
|
import fetch from "node-fetch";
|
|
35
35
|
import { rimraf } from "rimraf";
|
|
36
36
|
import { diffLines } from "diff";
|
|
37
|
-
|
|
37
|
+
// \0rolldown/runtime.js
|
|
38
38
|
var __create = Object.create;
|
|
39
39
|
var __defProp = Object.defineProperty;
|
|
40
40
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -49,7 +49,7 @@ var __esmMin = (fn, res, err) => () => {
|
|
|
49
49
|
throw err = [e], e;
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
52
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
53
53
|
var __copyProps = (to, from, except, desc) => {
|
|
54
54
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
55
55
|
key = keys[i];
|
|
@@ -65,10 +65,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
65
65
|
enumerable: true
|
|
66
66
|
}) : target, mod));
|
|
67
67
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
68
|
-
|
|
69
|
-
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
68
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
70
69
|
var require_polyfills$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
71
|
-
var constants
|
|
70
|
+
var constants = __require("constants");
|
|
72
71
|
var origCwd = process.cwd;
|
|
73
72
|
var cwd = null;
|
|
74
73
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
@@ -89,7 +88,7 @@ var require_polyfills$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89
88
|
}
|
|
90
89
|
module.exports = patch;
|
|
91
90
|
function patch(fs) {
|
|
92
|
-
if (constants
|
|
91
|
+
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) patchLchmod(fs);
|
|
93
92
|
if (!fs.lutimes) patchLutimes(fs);
|
|
94
93
|
fs.chown = chownFix(fs.chown);
|
|
95
94
|
fs.fchown = chownFix(fs.fchown);
|
|
@@ -176,7 +175,7 @@ var require_polyfills$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
176
175
|
})(fs.readSync);
|
|
177
176
|
function patchLchmod(fs) {
|
|
178
177
|
fs.lchmod = function(path, mode, callback) {
|
|
179
|
-
fs.open(path, constants
|
|
178
|
+
fs.open(path, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
|
|
180
179
|
if (err) {
|
|
181
180
|
if (callback) callback(err);
|
|
182
181
|
return;
|
|
@@ -189,7 +188,7 @@ var require_polyfills$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
189
188
|
});
|
|
190
189
|
};
|
|
191
190
|
fs.lchmodSync = function(path, mode) {
|
|
192
|
-
var fd = fs.openSync(path, constants
|
|
191
|
+
var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
193
192
|
var threw = true;
|
|
194
193
|
var ret;
|
|
195
194
|
try {
|
|
@@ -205,9 +204,9 @@ var require_polyfills$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
205
204
|
};
|
|
206
205
|
}
|
|
207
206
|
function patchLutimes(fs) {
|
|
208
|
-
if (constants
|
|
207
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
|
|
209
208
|
fs.lutimes = function(path, at, mt, cb) {
|
|
210
|
-
fs.open(path, constants
|
|
209
|
+
fs.open(path, constants.O_SYMLINK, function(er, fd) {
|
|
211
210
|
if (er) {
|
|
212
211
|
if (cb) cb(er);
|
|
213
212
|
return;
|
|
@@ -220,7 +219,7 @@ var require_polyfills$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
220
219
|
});
|
|
221
220
|
};
|
|
222
221
|
fs.lutimesSync = function(path, at, mt) {
|
|
223
|
-
var fd = fs.openSync(path, constants
|
|
222
|
+
var fd = fs.openSync(path, constants.O_SYMLINK);
|
|
224
223
|
var ret;
|
|
225
224
|
var threw = true;
|
|
226
225
|
try {
|
|
@@ -317,10 +316,9 @@ var require_polyfills$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
317
316
|
}
|
|
318
317
|
}
|
|
319
318
|
}));
|
|
320
|
-
|
|
321
|
-
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
319
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
|
|
322
320
|
var require_legacy_streams$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
323
|
-
var Stream
|
|
321
|
+
var Stream = __require("stream").Stream;
|
|
324
322
|
module.exports = legacy;
|
|
325
323
|
function legacy(fs) {
|
|
326
324
|
return {
|
|
@@ -329,7 +327,7 @@ var require_legacy_streams$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
329
327
|
};
|
|
330
328
|
function ReadStream(path, options) {
|
|
331
329
|
if (!(this instanceof ReadStream)) return new ReadStream(path, options);
|
|
332
|
-
Stream
|
|
330
|
+
Stream.call(this);
|
|
333
331
|
var self = this;
|
|
334
332
|
this.path = path;
|
|
335
333
|
this.fd = null;
|
|
@@ -371,7 +369,7 @@ var require_legacy_streams$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
371
369
|
}
|
|
372
370
|
function WriteStream(path, options) {
|
|
373
371
|
if (!(this instanceof WriteStream)) return new WriteStream(path, options);
|
|
374
|
-
Stream
|
|
372
|
+
Stream.call(this);
|
|
375
373
|
this.path = path;
|
|
376
374
|
this.fd = null;
|
|
377
375
|
this.writable = true;
|
|
@@ -406,8 +404,7 @@ var require_legacy_streams$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
406
404
|
}
|
|
407
405
|
}
|
|
408
406
|
}));
|
|
409
|
-
|
|
410
|
-
//#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
407
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/clone.js
|
|
411
408
|
var require_clone$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
412
409
|
module.exports = clone;
|
|
413
410
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
@@ -423,14 +420,13 @@ var require_clone$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
423
420
|
return copy;
|
|
424
421
|
}
|
|
425
422
|
}));
|
|
426
|
-
|
|
427
|
-
//#region ../../node_modules/.pnpm/xdg-basedir@5.1.0/node_modules/xdg-basedir/index.js
|
|
423
|
+
// ../../node_modules/.pnpm/xdg-basedir@5.1.0/node_modules/xdg-basedir/index.js
|
|
428
424
|
var import_graceful_fs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
429
|
-
var fs
|
|
425
|
+
var fs = __require("fs");
|
|
430
426
|
var polyfills = require_polyfills$1();
|
|
431
427
|
var legacy = require_legacy_streams$1();
|
|
432
428
|
var clone = require_clone$1();
|
|
433
|
-
var util
|
|
429
|
+
var util = __require("util");
|
|
434
430
|
/* istanbul ignore next - node 0.x polyfill */
|
|
435
431
|
var gracefulQueue;
|
|
436
432
|
var previousSymbol;
|
|
@@ -449,42 +445,42 @@ var import_graceful_fs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(
|
|
|
449
445
|
} });
|
|
450
446
|
}
|
|
451
447
|
var debug = noop;
|
|
452
|
-
if (util
|
|
448
|
+
if (util.debuglog) debug = util.debuglog("gfs4");
|
|
453
449
|
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) debug = function() {
|
|
454
|
-
var m = util
|
|
450
|
+
var m = util.format.apply(util, arguments);
|
|
455
451
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
456
452
|
console.error(m);
|
|
457
453
|
};
|
|
458
|
-
if (!fs
|
|
459
|
-
publishQueue(fs
|
|
460
|
-
fs
|
|
454
|
+
if (!fs[gracefulQueue]) {
|
|
455
|
+
publishQueue(fs, global[gracefulQueue] || []);
|
|
456
|
+
fs.close = (function(fs$close) {
|
|
461
457
|
function close(fd, cb) {
|
|
462
|
-
return fs$close.call(fs
|
|
458
|
+
return fs$close.call(fs, fd, function(err) {
|
|
463
459
|
if (!err) resetQueue();
|
|
464
460
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
465
461
|
});
|
|
466
462
|
}
|
|
467
463
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
468
464
|
return close;
|
|
469
|
-
})(fs
|
|
470
|
-
fs
|
|
465
|
+
})(fs.close);
|
|
466
|
+
fs.closeSync = (function(fs$closeSync) {
|
|
471
467
|
function closeSync(fd) {
|
|
472
|
-
fs$closeSync.apply(fs
|
|
468
|
+
fs$closeSync.apply(fs, arguments);
|
|
473
469
|
resetQueue();
|
|
474
470
|
}
|
|
475
471
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
476
472
|
return closeSync;
|
|
477
|
-
})(fs
|
|
473
|
+
})(fs.closeSync);
|
|
478
474
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
479
|
-
debug(fs
|
|
480
|
-
__require("assert").equal(fs
|
|
475
|
+
debug(fs[gracefulQueue]);
|
|
476
|
+
__require("assert").equal(fs[gracefulQueue].length, 0);
|
|
481
477
|
});
|
|
482
478
|
}
|
|
483
|
-
if (!global[gracefulQueue]) publishQueue(global, fs
|
|
484
|
-
module.exports = patch(clone(fs
|
|
485
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs
|
|
486
|
-
module.exports = patch(fs
|
|
487
|
-
fs
|
|
479
|
+
if (!global[gracefulQueue]) publishQueue(global, fs[gracefulQueue]);
|
|
480
|
+
module.exports = patch(clone(fs));
|
|
481
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
|
|
482
|
+
module.exports = patch(fs);
|
|
483
|
+
fs.__patched = true;
|
|
488
484
|
}
|
|
489
485
|
function patch(fs) {
|
|
490
486
|
polyfills(fs);
|
|
@@ -739,23 +735,23 @@ var import_graceful_fs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(
|
|
|
739
735
|
}
|
|
740
736
|
function enqueue(elem) {
|
|
741
737
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
742
|
-
fs
|
|
738
|
+
fs[gracefulQueue].push(elem);
|
|
743
739
|
retry();
|
|
744
740
|
}
|
|
745
741
|
var retryTimer;
|
|
746
742
|
function resetQueue() {
|
|
747
743
|
var now = Date.now();
|
|
748
|
-
for (var i = 0; i < fs
|
|
749
|
-
fs
|
|
750
|
-
fs
|
|
744
|
+
for (var i = 0; i < fs[gracefulQueue].length; ++i) if (fs[gracefulQueue][i].length > 2) {
|
|
745
|
+
fs[gracefulQueue][i][3] = now;
|
|
746
|
+
fs[gracefulQueue][i][4] = now;
|
|
751
747
|
}
|
|
752
748
|
retry();
|
|
753
749
|
}
|
|
754
750
|
function retry() {
|
|
755
751
|
clearTimeout(retryTimer);
|
|
756
752
|
retryTimer = void 0;
|
|
757
|
-
if (fs
|
|
758
|
-
var elem = fs
|
|
753
|
+
if (fs[gracefulQueue].length === 0) return;
|
|
754
|
+
var elem = fs[gracefulQueue].shift();
|
|
759
755
|
var fn = elem[0];
|
|
760
756
|
var args = elem[1];
|
|
761
757
|
var err = elem[2];
|
|
@@ -774,7 +770,7 @@ var import_graceful_fs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(
|
|
|
774
770
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
775
771
|
debug("RETRY", fn.name, args);
|
|
776
772
|
fn.apply(null, args.concat([startTime]));
|
|
777
|
-
} else fs
|
|
773
|
+
} else fs[gracefulQueue].push(elem);
|
|
778
774
|
}
|
|
779
775
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
780
776
|
}
|
|
@@ -790,16 +786,14 @@ const xdgDataDirectories = (env$2.XDG_DATA_DIRS || "/usr/local/share/:/usr/share
|
|
|
790
786
|
if (xdgData) xdgDataDirectories.unshift(xdgData);
|
|
791
787
|
const xdgConfigDirectories = (env$2.XDG_CONFIG_DIRS || "/etc/xdg").split(":");
|
|
792
788
|
if (xdgConfig) xdgConfigDirectories.unshift(xdgConfig);
|
|
793
|
-
|
|
794
|
-
//#region ../../node_modules/.pnpm/stubborn-utils@1.0.2/node_modules/stubborn-utils/dist/attemptify_async.js
|
|
789
|
+
// ../../node_modules/.pnpm/stubborn-utils@1.0.2/node_modules/stubborn-utils/dist/attemptify_async.js
|
|
795
790
|
const attemptifyAsync = (fn, options) => {
|
|
796
791
|
const { onError } = options;
|
|
797
792
|
return function attemptified(...args) {
|
|
798
793
|
return fn.apply(void 0, args).catch(onError);
|
|
799
794
|
};
|
|
800
795
|
};
|
|
801
|
-
|
|
802
|
-
//#region ../../node_modules/.pnpm/stubborn-utils@1.0.2/node_modules/stubborn-utils/dist/attemptify_sync.js
|
|
796
|
+
// ../../node_modules/.pnpm/stubborn-utils@1.0.2/node_modules/stubborn-utils/dist/attemptify_sync.js
|
|
803
797
|
const attemptifySync = (fn, options) => {
|
|
804
798
|
const { onError } = options;
|
|
805
799
|
return function attemptified(...args) {
|
|
@@ -810,8 +804,7 @@ const attemptifySync = (fn, options) => {
|
|
|
810
804
|
}
|
|
811
805
|
};
|
|
812
806
|
};
|
|
813
|
-
|
|
814
|
-
//#region ../../node_modules/.pnpm/stubborn-utils@1.0.2/node_modules/stubborn-utils/dist/retryify_async.js
|
|
807
|
+
// ../../node_modules/.pnpm/stubborn-utils@1.0.2/node_modules/stubborn-utils/dist/retryify_async.js
|
|
815
808
|
const retryifyAsync = (fn, options) => {
|
|
816
809
|
const { isRetriable } = options;
|
|
817
810
|
return function retryified(options) {
|
|
@@ -829,8 +822,7 @@ const retryifyAsync = (fn, options) => {
|
|
|
829
822
|
};
|
|
830
823
|
};
|
|
831
824
|
};
|
|
832
|
-
|
|
833
|
-
//#region ../../node_modules/.pnpm/stubborn-utils@1.0.2/node_modules/stubborn-utils/dist/retryify_sync.js
|
|
825
|
+
// ../../node_modules/.pnpm/stubborn-utils@1.0.2/node_modules/stubborn-utils/dist/retryify_sync.js
|
|
834
826
|
const retryifySync = (fn, options) => {
|
|
835
827
|
const { isRetriable } = options;
|
|
836
828
|
return function retryified(options) {
|
|
@@ -847,8 +839,7 @@ const retryifySync = (fn, options) => {
|
|
|
847
839
|
};
|
|
848
840
|
};
|
|
849
841
|
};
|
|
850
|
-
|
|
851
|
-
//#region ../../node_modules/.pnpm/stubborn-fs@2.0.0/node_modules/stubborn-fs/dist/handlers.js
|
|
842
|
+
// ../../node_modules/.pnpm/stubborn-fs@2.0.0/node_modules/stubborn-fs/dist/handlers.js
|
|
852
843
|
const Handlers = {
|
|
853
844
|
isChangeErrorOk: (error) => {
|
|
854
845
|
if (!Handlers.isNodeError(error)) return false;
|
|
@@ -872,14 +863,12 @@ const Handlers = {
|
|
|
872
863
|
throw error;
|
|
873
864
|
}
|
|
874
865
|
};
|
|
875
|
-
|
|
876
|
-
//#region ../../node_modules/.pnpm/stubborn-fs@2.0.0/node_modules/stubborn-fs/dist/constants.js
|
|
866
|
+
// ../../node_modules/.pnpm/stubborn-fs@2.0.0/node_modules/stubborn-fs/dist/constants.js
|
|
877
867
|
const ATTEMPTIFY_CHANGE_ERROR_OPTIONS = { onError: Handlers.onChangeError };
|
|
878
868
|
const ATTEMPTIFY_NOOP_OPTIONS = { onError: () => void 0 };
|
|
879
869
|
const IS_USER_ROOT$1 = process$1.getuid ? !process$1.getuid() : false;
|
|
880
870
|
const RETRYIFY_OPTIONS = { isRetriable: Handlers.isRetriableError };
|
|
881
|
-
|
|
882
|
-
//#region ../../node_modules/.pnpm/stubborn-fs@2.0.0/node_modules/stubborn-fs/dist/index.js
|
|
871
|
+
// ../../node_modules/.pnpm/stubborn-fs@2.0.0/node_modules/stubborn-fs/dist/index.js
|
|
883
872
|
const FS = {
|
|
884
873
|
attempt: {
|
|
885
874
|
chmod: attemptifyAsync(promisify(fs.chmod), ATTEMPTIFY_CHANGE_ERROR_OPTIONS),
|
|
@@ -924,8 +913,7 @@ const DEFAULT_USER_UID = process$1.geteuid ? process$1.geteuid() : -1;
|
|
|
924
913
|
const DEFAULT_USER_GID = process$1.getegid ? process$1.getegid() : -1;
|
|
925
914
|
const IS_POSIX = !!process$1.getuid;
|
|
926
915
|
process$1.getuid && process$1.getuid();
|
|
927
|
-
|
|
928
|
-
//#region ../../node_modules/.pnpm/atomically@2.1.1/node_modules/atomically/dist/utils/lang.js
|
|
916
|
+
// ../../node_modules/.pnpm/atomically@2.1.1/node_modules/atomically/dist/utils/lang.js
|
|
929
917
|
const isException = (value) => {
|
|
930
918
|
return value instanceof Error && "code" in value;
|
|
931
919
|
};
|
|
@@ -935,12 +923,10 @@ const isString$1 = (value) => {
|
|
|
935
923
|
const isUndefined$1 = (value) => {
|
|
936
924
|
return value === void 0;
|
|
937
925
|
};
|
|
938
|
-
|
|
939
|
-
//#region ../../node_modules/.pnpm/when-exit@2.1.5/node_modules/when-exit/dist/node/constants.js
|
|
926
|
+
// ../../node_modules/.pnpm/when-exit@2.1.5/node_modules/when-exit/dist/node/constants.js
|
|
940
927
|
const IS_LINUX = process$1.platform === "linux";
|
|
941
928
|
const IS_WINDOWS = process$1.platform === "win32";
|
|
942
|
-
|
|
943
|
-
//#region ../../node_modules/.pnpm/when-exit@2.1.5/node_modules/when-exit/dist/node/signals.js
|
|
929
|
+
// ../../node_modules/.pnpm/when-exit@2.1.5/node_modules/when-exit/dist/node/signals.js
|
|
944
930
|
const Signals = [
|
|
945
931
|
"SIGHUP",
|
|
946
932
|
"SIGINT",
|
|
@@ -948,8 +934,7 @@ const Signals = [
|
|
|
948
934
|
];
|
|
949
935
|
if (!IS_WINDOWS) Signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
950
936
|
if (IS_LINUX) Signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
951
|
-
|
|
952
|
-
//#region ../../node_modules/.pnpm/when-exit@2.1.5/node_modules/when-exit/dist/node/interceptor.js
|
|
937
|
+
// ../../node_modules/.pnpm/when-exit@2.1.5/node_modules/when-exit/dist/node/interceptor.js
|
|
953
938
|
var Interceptor = class {
|
|
954
939
|
constructor() {
|
|
955
940
|
this.callbacks = /* @__PURE__ */ new Set();
|
|
@@ -978,11 +963,9 @@ var Interceptor = class {
|
|
|
978
963
|
this.hook();
|
|
979
964
|
}
|
|
980
965
|
};
|
|
981
|
-
|
|
982
|
-
//#region ../../node_modules/.pnpm/when-exit@2.1.5/node_modules/when-exit/dist/node/index.js
|
|
966
|
+
// ../../node_modules/.pnpm/when-exit@2.1.5/node_modules/when-exit/dist/node/index.js
|
|
983
967
|
const whenExit = new Interceptor().register;
|
|
984
|
-
|
|
985
|
-
//#region ../../node_modules/.pnpm/atomically@2.1.1/node_modules/atomically/dist/utils/temp.js
|
|
968
|
+
// ../../node_modules/.pnpm/atomically@2.1.1/node_modules/atomically/dist/utils/temp.js
|
|
986
969
|
const Temp = {
|
|
987
970
|
store: {},
|
|
988
971
|
create: (filePath) => {
|
|
@@ -1019,8 +1002,7 @@ const Temp = {
|
|
|
1019
1002
|
}
|
|
1020
1003
|
};
|
|
1021
1004
|
whenExit(Temp.purgeSyncAll);
|
|
1022
|
-
|
|
1023
|
-
//#region ../../node_modules/.pnpm/atomically@2.1.1/node_modules/atomically/dist/index.js
|
|
1005
|
+
// ../../node_modules/.pnpm/atomically@2.1.1/node_modules/atomically/dist/index.js
|
|
1024
1006
|
function writeFileSync(filePath, data, options = DEFAULT_WRITE_OPTIONS) {
|
|
1025
1007
|
if (isString$1(options)) return writeFileSync(filePath, data, { encoding: options });
|
|
1026
1008
|
const retryOptions = { timeout: options.timeout ?? 1e3 };
|
|
@@ -1078,8 +1060,7 @@ function writeFileSync(filePath, data, options = DEFAULT_WRITE_OPTIONS) {
|
|
|
1078
1060
|
if (tempPath) Temp.purge(tempPath);
|
|
1079
1061
|
}
|
|
1080
1062
|
}
|
|
1081
|
-
|
|
1082
|
-
//#region ../../node_modules/.pnpm/dot-prop@9.0.0/node_modules/dot-prop/index.js
|
|
1063
|
+
// ../../node_modules/.pnpm/dot-prop@9.0.0/node_modules/dot-prop/index.js
|
|
1083
1064
|
const isObject$2 = (value) => {
|
|
1084
1065
|
const type = typeof value;
|
|
1085
1066
|
return value !== null && (type === "object" || type === "function");
|
|
@@ -1228,8 +1209,7 @@ function hasProperty(object, path) {
|
|
|
1228
1209
|
}
|
|
1229
1210
|
return true;
|
|
1230
1211
|
}
|
|
1231
|
-
|
|
1232
|
-
//#region ../../node_modules/.pnpm/configstore@7.1.0/node_modules/configstore/index.js
|
|
1212
|
+
// ../../node_modules/.pnpm/configstore@7.1.0/node_modules/configstore/index.js
|
|
1233
1213
|
function getConfigDirectory(id, globalConfigPath) {
|
|
1234
1214
|
const pathPrefix = globalConfigPath ? path.join(id, "config.json") : path.join("configstore", `${id}.json`);
|
|
1235
1215
|
const configDirectory = xdgConfig ?? import_graceful_fs.default.mkdtempSync(import_graceful_fs.default.realpathSync(os.tmpdir()) + path.sep);
|
|
@@ -1306,8 +1286,7 @@ var Configstore = class {
|
|
|
1306
1286
|
return this._path;
|
|
1307
1287
|
}
|
|
1308
1288
|
};
|
|
1309
|
-
|
|
1310
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
1289
|
+
// ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
1311
1290
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
1312
1291
|
const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
|
|
1313
1292
|
const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
|
|
@@ -1470,8 +1449,7 @@ function assembleStyles() {
|
|
|
1470
1449
|
return styles$1;
|
|
1471
1450
|
}
|
|
1472
1451
|
const ansiStyles = assembleStyles();
|
|
1473
|
-
|
|
1474
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
|
|
1452
|
+
// ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
|
|
1475
1453
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
1476
1454
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
1477
1455
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -1558,8 +1536,7 @@ const supportsColor = {
|
|
|
1558
1536
|
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
1559
1537
|
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
1560
1538
|
};
|
|
1561
|
-
|
|
1562
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
1539
|
+
// ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
1563
1540
|
function stringReplaceAll(string, substring, replacer) {
|
|
1564
1541
|
let index = string.indexOf(substring);
|
|
1565
1542
|
if (index === -1) return string;
|
|
@@ -1586,8 +1563,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
|
1586
1563
|
returnValue += string.slice(endIndex);
|
|
1587
1564
|
return returnValue;
|
|
1588
1565
|
}
|
|
1589
|
-
|
|
1590
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
1566
|
+
// ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
1591
1567
|
const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
|
|
1592
1568
|
const GENERATOR = Symbol("GENERATOR");
|
|
1593
1569
|
const STYLER = Symbol("STYLER");
|
|
@@ -1708,8 +1684,7 @@ const applyStyle = (self, string) => {
|
|
|
1708
1684
|
Object.defineProperties(createChalk.prototype, styles);
|
|
1709
1685
|
const chalk = createChalk();
|
|
1710
1686
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
1711
|
-
|
|
1712
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/HTTPError.js
|
|
1687
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/HTTPError.js
|
|
1713
1688
|
var HTTPError = class extends Error {
|
|
1714
1689
|
response;
|
|
1715
1690
|
request;
|
|
@@ -1724,8 +1699,7 @@ var HTTPError = class extends Error {
|
|
|
1724
1699
|
this.options = options;
|
|
1725
1700
|
}
|
|
1726
1701
|
};
|
|
1727
|
-
|
|
1728
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/NonError.js
|
|
1702
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/NonError.js
|
|
1729
1703
|
/**
|
|
1730
1704
|
Wrapper for non-Error values that were thrown.
|
|
1731
1705
|
|
|
@@ -1744,8 +1718,7 @@ var NonError = class extends Error {
|
|
|
1744
1718
|
this.value = value;
|
|
1745
1719
|
}
|
|
1746
1720
|
};
|
|
1747
|
-
|
|
1748
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/ForceRetryError.js
|
|
1721
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/ForceRetryError.js
|
|
1749
1722
|
/**
|
|
1750
1723
|
Internal error used to signal a forced retry from afterResponse hooks.
|
|
1751
1724
|
This is thrown when a user returns ky.retry() from an afterResponse hook.
|
|
@@ -1763,8 +1736,7 @@ var ForceRetryError = class extends Error {
|
|
|
1763
1736
|
this.customRequest = options?.request;
|
|
1764
1737
|
}
|
|
1765
1738
|
};
|
|
1766
|
-
|
|
1767
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/core/constants.js
|
|
1739
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/core/constants.js
|
|
1768
1740
|
const supportsRequestStreams = (() => {
|
|
1769
1741
|
let duplexAccessed = false;
|
|
1770
1742
|
let hasContentType = false;
|
|
@@ -1933,8 +1905,7 @@ const requestOptionsRegistry = {
|
|
|
1933
1905
|
window: true,
|
|
1934
1906
|
duplex: true
|
|
1935
1907
|
};
|
|
1936
|
-
|
|
1937
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/body.js
|
|
1908
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/body.js
|
|
1938
1909
|
const getBodySize = (body) => {
|
|
1939
1910
|
if (!body) return 0;
|
|
1940
1911
|
if (body instanceof FormData) {
|
|
@@ -2011,11 +1982,9 @@ const streamRequest = (request, onUploadProgress, originalBody) => {
|
|
|
2011
1982
|
body: withProgress(request.body, totalBytes, onUploadProgress)
|
|
2012
1983
|
});
|
|
2013
1984
|
};
|
|
2014
|
-
|
|
2015
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/is.js
|
|
1985
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/is.js
|
|
2016
1986
|
const isObject$1 = (value) => value !== null && typeof value === "object";
|
|
2017
|
-
|
|
2018
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/merge.js
|
|
1987
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/merge.js
|
|
2019
1988
|
const validateAndMerge = (...sources) => {
|
|
2020
1989
|
for (const source of sources) if ((!isObject$1(source) || Array.isArray(source)) && source !== void 0) throw new TypeError("The `options` argument must be an object");
|
|
2021
1990
|
return deepMerge({}, ...sources);
|
|
@@ -2109,8 +2078,7 @@ const deepMerge = (...sources) => {
|
|
|
2109
2078
|
}
|
|
2110
2079
|
return returnValue;
|
|
2111
2080
|
};
|
|
2112
|
-
|
|
2113
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/normalize.js
|
|
2081
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/normalize.js
|
|
2114
2082
|
const normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
|
|
2115
2083
|
const defaultRetryOptions = {
|
|
2116
2084
|
limit: 2,
|
|
@@ -2156,8 +2124,7 @@ const normalizeRetryOptions = (retry = {}) => {
|
|
|
2156
2124
|
...normalizedRetry
|
|
2157
2125
|
};
|
|
2158
2126
|
};
|
|
2159
|
-
|
|
2160
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/TimeoutError.js
|
|
2127
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/TimeoutError.js
|
|
2161
2128
|
var TimeoutError = class extends Error {
|
|
2162
2129
|
request;
|
|
2163
2130
|
constructor(request) {
|
|
@@ -2166,8 +2133,7 @@ var TimeoutError = class extends Error {
|
|
|
2166
2133
|
this.request = request;
|
|
2167
2134
|
}
|
|
2168
2135
|
};
|
|
2169
|
-
|
|
2170
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/timeout.js
|
|
2136
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/timeout.js
|
|
2171
2137
|
async function timeout(request, init, abortController, options) {
|
|
2172
2138
|
return new Promise((resolve, reject) => {
|
|
2173
2139
|
const timeoutId = setTimeout(() => {
|
|
@@ -2179,8 +2145,7 @@ async function timeout(request, init, abortController, options) {
|
|
|
2179
2145
|
});
|
|
2180
2146
|
});
|
|
2181
2147
|
}
|
|
2182
|
-
|
|
2183
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/delay.js
|
|
2148
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/delay.js
|
|
2184
2149
|
async function delay(ms, { signal }) {
|
|
2185
2150
|
return new Promise((resolve, reject) => {
|
|
2186
2151
|
if (signal) {
|
|
@@ -2197,8 +2162,7 @@ async function delay(ms, { signal }) {
|
|
|
2197
2162
|
}, ms);
|
|
2198
2163
|
});
|
|
2199
2164
|
}
|
|
2200
|
-
|
|
2201
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/options.js
|
|
2165
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/options.js
|
|
2202
2166
|
const findUnknownOptions = (request, options) => {
|
|
2203
2167
|
const unknownOptions = {};
|
|
2204
2168
|
for (const key in options) {
|
|
@@ -2215,8 +2179,7 @@ const hasSearchParameters = (search) => {
|
|
|
2215
2179
|
if (typeof search === "string") return search.trim().length > 0;
|
|
2216
2180
|
return Boolean(search);
|
|
2217
2181
|
};
|
|
2218
|
-
|
|
2219
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/type-guards.js
|
|
2182
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/utils/type-guards.js
|
|
2220
2183
|
/**
|
|
2221
2184
|
Type guard to check if an error is an HTTPError.
|
|
2222
2185
|
|
|
@@ -2259,8 +2222,7 @@ console.log('Request timed out:', error.request.url);
|
|
|
2259
2222
|
function isTimeoutError(error) {
|
|
2260
2223
|
return error instanceof TimeoutError || error?.name === TimeoutError.name;
|
|
2261
2224
|
}
|
|
2262
|
-
|
|
2263
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/core/Ky.js
|
|
2225
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/core/Ky.js
|
|
2264
2226
|
var Ky = class Ky {
|
|
2265
2227
|
static create(input, options) {
|
|
2266
2228
|
const ky = new Ky(input, options);
|
|
@@ -2501,8 +2463,7 @@ var Ky = class Ky {
|
|
|
2501
2463
|
return streamRequest(request, this.#options.onUploadProgress, originalBody ?? this.#options.body ?? void 0);
|
|
2502
2464
|
}
|
|
2503
2465
|
};
|
|
2504
|
-
|
|
2505
|
-
//#region ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/index.js
|
|
2466
|
+
// ../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/index.js
|
|
2506
2467
|
/*! MIT License © Sindre Sorhus */
|
|
2507
2468
|
const createInstance = (defaults) => {
|
|
2508
2469
|
const ky = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
|
|
@@ -2517,8 +2478,7 @@ const createInstance = (defaults) => {
|
|
|
2517
2478
|
return ky;
|
|
2518
2479
|
};
|
|
2519
2480
|
const ky = createInstance();
|
|
2520
|
-
|
|
2521
|
-
//#region ../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js
|
|
2481
|
+
// ../../node_modules/.pnpm/ini@1.3.8/node_modules/ini/ini.js
|
|
2522
2482
|
var require_ini$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2523
2483
|
exports.parse = exports.decode = decode;
|
|
2524
2484
|
exports.stringify = exports.encode = encode;
|
|
@@ -2649,8 +2609,7 @@ var require_ini$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2649
2609
|
return val;
|
|
2650
2610
|
}
|
|
2651
2611
|
}));
|
|
2652
|
-
|
|
2653
|
-
//#region ../../node_modules/.pnpm/strip-json-comments@2.0.1/node_modules/strip-json-comments/index.js
|
|
2612
|
+
// ../../node_modules/.pnpm/strip-json-comments@2.0.1/node_modules/strip-json-comments/index.js
|
|
2654
2613
|
var require_strip_json_comments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2655
2614
|
var singleComment = 1;
|
|
2656
2615
|
var multiComment = 2;
|
|
@@ -2708,12 +2667,11 @@ var require_strip_json_comments = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
2708
2667
|
return ret + (insideComment ? strip(str.substr(offset)) : str.substr(offset));
|
|
2709
2668
|
};
|
|
2710
2669
|
}));
|
|
2711
|
-
|
|
2712
|
-
//#region ../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js
|
|
2670
|
+
// ../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js
|
|
2713
2671
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2714
|
-
var fs
|
|
2672
|
+
var fs = __require("fs");
|
|
2715
2673
|
var ini = require_ini$1();
|
|
2716
|
-
var path
|
|
2674
|
+
var path = __require("path");
|
|
2717
2675
|
var stripJsonComments = require_strip_json_comments();
|
|
2718
2676
|
var parse = exports.parse = function(content) {
|
|
2719
2677
|
if (/^\s*{/.test(content)) return JSON.parse(stripJsonComments(content));
|
|
@@ -2724,9 +2682,9 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2724
2682
|
return arg != null;
|
|
2725
2683
|
});
|
|
2726
2684
|
for (var i in args) if ("string" !== typeof args[i]) return;
|
|
2727
|
-
var file = path
|
|
2685
|
+
var file = path.join.apply(null, args);
|
|
2728
2686
|
try {
|
|
2729
|
-
return fs
|
|
2687
|
+
return fs.readFileSync(file, "utf-8");
|
|
2730
2688
|
} catch (err) {
|
|
2731
2689
|
return;
|
|
2732
2690
|
}
|
|
@@ -2754,21 +2712,20 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2754
2712
|
return obj;
|
|
2755
2713
|
};
|
|
2756
2714
|
exports.find = function() {
|
|
2757
|
-
var rel = path
|
|
2715
|
+
var rel = path.join.apply(null, [].slice.call(arguments));
|
|
2758
2716
|
function find(start, rel) {
|
|
2759
|
-
var file = path
|
|
2717
|
+
var file = path.join(start, rel);
|
|
2760
2718
|
try {
|
|
2761
|
-
fs
|
|
2719
|
+
fs.statSync(file);
|
|
2762
2720
|
return file;
|
|
2763
2721
|
} catch (err) {
|
|
2764
|
-
if (path
|
|
2722
|
+
if (path.dirname(start) !== start) return find(path.dirname(start), rel);
|
|
2765
2723
|
}
|
|
2766
2724
|
}
|
|
2767
2725
|
return find(process.cwd(), rel);
|
|
2768
2726
|
};
|
|
2769
2727
|
}));
|
|
2770
|
-
|
|
2771
|
-
//#region ../../node_modules/.pnpm/deep-extend@0.6.0/node_modules/deep-extend/lib/deep-extend.js
|
|
2728
|
+
// ../../node_modules/.pnpm/deep-extend@0.6.0/node_modules/deep-extend/lib/deep-extend.js
|
|
2772
2729
|
/*!
|
|
2773
2730
|
* @description Recursive object extending
|
|
2774
2731
|
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
|
|
@@ -2866,8 +2823,7 @@ var require_deep_extend = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2866
2823
|
return target;
|
|
2867
2824
|
};
|
|
2868
2825
|
}));
|
|
2869
|
-
|
|
2870
|
-
//#region ../../node_modules/.pnpm/minimist@1.2.8/node_modules/minimist/index.js
|
|
2826
|
+
// ../../node_modules/.pnpm/minimist@1.2.8/node_modules/minimist/index.js
|
|
2871
2827
|
var require_minimist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2872
2828
|
function hasKey(obj, keys) {
|
|
2873
2829
|
var o = obj;
|
|
@@ -3038,8 +2994,7 @@ var require_minimist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3038
2994
|
return argv;
|
|
3039
2995
|
};
|
|
3040
2996
|
}));
|
|
3041
|
-
|
|
3042
|
-
//#region ../../node_modules/.pnpm/registry-url@6.0.1/node_modules/registry-url/index.js
|
|
2997
|
+
// ../../node_modules/.pnpm/registry-url@6.0.1/node_modules/registry-url/index.js
|
|
3043
2998
|
var import_rc = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3044
2999
|
var cc = require_utils();
|
|
3045
3000
|
var join = __require("path").join;
|
|
@@ -3088,8 +3043,7 @@ function registryUrl(scope) {
|
|
|
3088
3043
|
const url = result[`${scope}:registry`] || result.config_registry || result.registry;
|
|
3089
3044
|
return url.slice(-1) === "/" ? url : `${url}/`;
|
|
3090
3045
|
}
|
|
3091
|
-
|
|
3092
|
-
//#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js
|
|
3046
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js
|
|
3093
3047
|
var require_polyfills = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3094
3048
|
var constants = __require("constants");
|
|
3095
3049
|
var origCwd = process.cwd;
|
|
@@ -3340,10 +3294,9 @@ var require_polyfills = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3340
3294
|
}
|
|
3341
3295
|
}
|
|
3342
3296
|
}));
|
|
3343
|
-
|
|
3344
|
-
//#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js
|
|
3297
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js
|
|
3345
3298
|
var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3346
|
-
var Stream
|
|
3299
|
+
var Stream = __require("stream").Stream;
|
|
3347
3300
|
module.exports = legacy;
|
|
3348
3301
|
function legacy(fs) {
|
|
3349
3302
|
return {
|
|
@@ -3352,7 +3305,7 @@ var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3352
3305
|
};
|
|
3353
3306
|
function ReadStream(path, options) {
|
|
3354
3307
|
if (!(this instanceof ReadStream)) return new ReadStream(path, options);
|
|
3355
|
-
Stream
|
|
3308
|
+
Stream.call(this);
|
|
3356
3309
|
var self = this;
|
|
3357
3310
|
this.path = path;
|
|
3358
3311
|
this.fd = null;
|
|
@@ -3394,7 +3347,7 @@ var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3394
3347
|
}
|
|
3395
3348
|
function WriteStream(path, options) {
|
|
3396
3349
|
if (!(this instanceof WriteStream)) return new WriteStream(path, options);
|
|
3397
|
-
Stream
|
|
3350
|
+
Stream.call(this);
|
|
3398
3351
|
this.path = path;
|
|
3399
3352
|
this.fd = null;
|
|
3400
3353
|
this.writable = true;
|
|
@@ -3429,8 +3382,7 @@ var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3429
3382
|
}
|
|
3430
3383
|
}
|
|
3431
3384
|
}));
|
|
3432
|
-
|
|
3433
|
-
//#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js
|
|
3385
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js
|
|
3434
3386
|
var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3435
3387
|
module.exports = clone;
|
|
3436
3388
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
@@ -3446,10 +3398,9 @@ var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3446
3398
|
return copy;
|
|
3447
3399
|
}
|
|
3448
3400
|
}));
|
|
3449
|
-
|
|
3450
|
-
//#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js
|
|
3401
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js
|
|
3451
3402
|
var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3452
|
-
var fs
|
|
3403
|
+
var fs = __require("fs");
|
|
3453
3404
|
var polyfills = require_polyfills();
|
|
3454
3405
|
var legacy = require_legacy_streams();
|
|
3455
3406
|
var clone = require_clone();
|
|
@@ -3478,36 +3429,36 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3478
3429
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
3479
3430
|
console.error(m);
|
|
3480
3431
|
};
|
|
3481
|
-
if (!fs
|
|
3482
|
-
publishQueue(fs
|
|
3483
|
-
fs
|
|
3432
|
+
if (!fs[gracefulQueue]) {
|
|
3433
|
+
publishQueue(fs, global[gracefulQueue] || []);
|
|
3434
|
+
fs.close = (function(fs$close) {
|
|
3484
3435
|
function close(fd, cb) {
|
|
3485
|
-
return fs$close.call(fs
|
|
3436
|
+
return fs$close.call(fs, fd, function(err) {
|
|
3486
3437
|
if (!err) resetQueue();
|
|
3487
3438
|
if (typeof cb === "function") cb.apply(this, arguments);
|
|
3488
3439
|
});
|
|
3489
3440
|
}
|
|
3490
3441
|
Object.defineProperty(close, previousSymbol, { value: fs$close });
|
|
3491
3442
|
return close;
|
|
3492
|
-
})(fs
|
|
3493
|
-
fs
|
|
3443
|
+
})(fs.close);
|
|
3444
|
+
fs.closeSync = (function(fs$closeSync) {
|
|
3494
3445
|
function closeSync(fd) {
|
|
3495
|
-
fs$closeSync.apply(fs
|
|
3446
|
+
fs$closeSync.apply(fs, arguments);
|
|
3496
3447
|
resetQueue();
|
|
3497
3448
|
}
|
|
3498
3449
|
Object.defineProperty(closeSync, previousSymbol, { value: fs$closeSync });
|
|
3499
3450
|
return closeSync;
|
|
3500
|
-
})(fs
|
|
3451
|
+
})(fs.closeSync);
|
|
3501
3452
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
|
|
3502
|
-
debug(fs
|
|
3503
|
-
__require("assert").equal(fs
|
|
3453
|
+
debug(fs[gracefulQueue]);
|
|
3454
|
+
__require("assert").equal(fs[gracefulQueue].length, 0);
|
|
3504
3455
|
});
|
|
3505
3456
|
}
|
|
3506
|
-
if (!global[gracefulQueue]) publishQueue(global, fs
|
|
3507
|
-
module.exports = patch(clone(fs
|
|
3508
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs
|
|
3509
|
-
module.exports = patch(fs
|
|
3510
|
-
fs
|
|
3457
|
+
if (!global[gracefulQueue]) publishQueue(global, fs[gracefulQueue]);
|
|
3458
|
+
module.exports = patch(clone(fs));
|
|
3459
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
|
|
3460
|
+
module.exports = patch(fs);
|
|
3461
|
+
fs.__patched = true;
|
|
3511
3462
|
}
|
|
3512
3463
|
function patch(fs) {
|
|
3513
3464
|
polyfills(fs);
|
|
@@ -3762,23 +3713,23 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3762
3713
|
}
|
|
3763
3714
|
function enqueue(elem) {
|
|
3764
3715
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
3765
|
-
fs
|
|
3716
|
+
fs[gracefulQueue].push(elem);
|
|
3766
3717
|
retry();
|
|
3767
3718
|
}
|
|
3768
3719
|
var retryTimer;
|
|
3769
3720
|
function resetQueue() {
|
|
3770
3721
|
var now = Date.now();
|
|
3771
|
-
for (var i = 0; i < fs
|
|
3772
|
-
fs
|
|
3773
|
-
fs
|
|
3722
|
+
for (var i = 0; i < fs[gracefulQueue].length; ++i) if (fs[gracefulQueue][i].length > 2) {
|
|
3723
|
+
fs[gracefulQueue][i][3] = now;
|
|
3724
|
+
fs[gracefulQueue][i][4] = now;
|
|
3774
3725
|
}
|
|
3775
3726
|
retry();
|
|
3776
3727
|
}
|
|
3777
3728
|
function retry() {
|
|
3778
3729
|
clearTimeout(retryTimer);
|
|
3779
3730
|
retryTimer = void 0;
|
|
3780
|
-
if (fs
|
|
3781
|
-
var elem = fs
|
|
3731
|
+
if (fs[gracefulQueue].length === 0) return;
|
|
3732
|
+
var elem = fs[gracefulQueue].shift();
|
|
3782
3733
|
var fn = elem[0];
|
|
3783
3734
|
var args = elem[1];
|
|
3784
3735
|
var err = elem[2];
|
|
@@ -3797,15 +3748,14 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3797
3748
|
if (sinceAttempt >= Math.min(sinceStart * 1.2, 100)) {
|
|
3798
3749
|
debug("RETRY", fn.name, args);
|
|
3799
3750
|
fn.apply(null, args.concat([startTime]));
|
|
3800
|
-
} else fs
|
|
3751
|
+
} else fs[gracefulQueue].push(elem);
|
|
3801
3752
|
}
|
|
3802
3753
|
if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
|
|
3803
3754
|
}
|
|
3804
3755
|
}));
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
var
|
|
3808
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
3756
|
+
// ../../node_modules/.pnpm/@pnpm+network.ca-file@1.0.2/node_modules/@pnpm/network.ca-file/dist/ca-file.js
|
|
3757
|
+
var require_ca_file = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
|
|
3758
|
+
var __importDefault = this$2 && this$2.__importDefault || function(mod) {
|
|
3809
3759
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
3810
3760
|
};
|
|
3811
3761
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -3823,10 +3773,9 @@ var require_ca_file = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3823
3773
|
}
|
|
3824
3774
|
exports.readCAFileSync = readCAFileSync;
|
|
3825
3775
|
}));
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
var
|
|
3829
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
3776
|
+
// ../../node_modules/.pnpm/@pnpm+network.ca-file@1.0.2/node_modules/@pnpm/network.ca-file/dist/index.js
|
|
3777
|
+
var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
|
|
3778
|
+
var __createBinding = this$1 && this$1.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
3830
3779
|
if (k2 === void 0) k2 = k;
|
|
3831
3780
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3832
3781
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
@@ -3840,22 +3789,20 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3840
3789
|
if (k2 === void 0) k2 = k;
|
|
3841
3790
|
o[k2] = m[k];
|
|
3842
3791
|
}));
|
|
3843
|
-
var __exportStar =
|
|
3844
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports
|
|
3792
|
+
var __exportStar = this$1 && this$1.__exportStar || function(m, exports) {
|
|
3793
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3845
3794
|
};
|
|
3846
3795
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3847
3796
|
__exportStar(require_ca_file(), exports);
|
|
3848
3797
|
}));
|
|
3849
|
-
|
|
3850
|
-
//#region ../../node_modules/.pnpm/tsdown@0.23.1_@typescript+native-preview@7.0.0-dev.20260707.2_oxc-resolver@11.24.2_tsx@4.23.15_typescript@6.0.3/node_modules/tsdown/esm-shims.js
|
|
3798
|
+
// ../../node_modules/.pnpm/tsdown@0.23.2_oxc-resolver@11.24.2_tsx@4.23.15_typescript@6.0.3/node_modules/tsdown/esm-shims.js
|
|
3851
3799
|
var getFilename, getDirname, __dirname$2;
|
|
3852
3800
|
var init_esm_shims = __esmMin((() => {
|
|
3853
3801
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
3854
3802
|
getDirname = () => path.dirname(getFilename());
|
|
3855
3803
|
__dirname$2 = /* @__PURE__ */ getDirname();
|
|
3856
3804
|
}));
|
|
3857
|
-
|
|
3858
|
-
//#region ../../node_modules/.pnpm/proto-list@1.2.4/node_modules/proto-list/proto-list.js
|
|
3805
|
+
// ../../node_modules/.pnpm/proto-list@1.2.4/node_modules/proto-list/proto-list.js
|
|
3859
3806
|
var require_proto_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3860
3807
|
module.exports = ProtoList;
|
|
3861
3808
|
function setProto(obj, proto) {
|
|
@@ -3935,16 +3882,15 @@ var require_proto_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3935
3882
|
}
|
|
3936
3883
|
};
|
|
3937
3884
|
}));
|
|
3938
|
-
|
|
3939
|
-
//#region ../../node_modules/.pnpm/config-chain@1.1.13/node_modules/config-chain/index.js
|
|
3885
|
+
// ../../node_modules/.pnpm/config-chain@1.1.13/node_modules/config-chain/index.js
|
|
3940
3886
|
var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3941
3887
|
init_esm_shims();
|
|
3942
3888
|
var ProtoList = require_proto_list();
|
|
3943
|
-
var path
|
|
3944
|
-
var fs
|
|
3889
|
+
var path = __require("path");
|
|
3890
|
+
var fs = __require("fs");
|
|
3945
3891
|
var ini = require_ini$1();
|
|
3946
3892
|
var EE = __require("events").EventEmitter;
|
|
3947
|
-
var url
|
|
3893
|
+
var url = __require("url");
|
|
3948
3894
|
var http = __require("http");
|
|
3949
3895
|
var exports = module.exports = function() {
|
|
3950
3896
|
var args = [].slice.call(arguments), conf = new ConfigChain();
|
|
@@ -3955,14 +3901,14 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3955
3901
|
return conf;
|
|
3956
3902
|
};
|
|
3957
3903
|
exports.find = function() {
|
|
3958
|
-
var rel = path
|
|
3904
|
+
var rel = path.join.apply(null, [].slice.call(arguments));
|
|
3959
3905
|
function find(start, rel) {
|
|
3960
|
-
var file = path
|
|
3906
|
+
var file = path.join(start, rel);
|
|
3961
3907
|
try {
|
|
3962
|
-
fs
|
|
3908
|
+
fs.statSync(file);
|
|
3963
3909
|
return file;
|
|
3964
3910
|
} catch (err) {
|
|
3965
|
-
if (path
|
|
3911
|
+
if (path.dirname(start) !== start) return find(path.dirname(start), rel);
|
|
3966
3912
|
}
|
|
3967
3913
|
}
|
|
3968
3914
|
return find(__dirname$2, rel);
|
|
@@ -3987,10 +3933,10 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3987
3933
|
var args = [].slice.call(arguments).filter(function(arg) {
|
|
3988
3934
|
return arg != null;
|
|
3989
3935
|
});
|
|
3990
|
-
var file = path
|
|
3936
|
+
var file = path.join.apply(null, args);
|
|
3991
3937
|
var content;
|
|
3992
3938
|
try {
|
|
3993
|
-
content = fs
|
|
3939
|
+
content = fs.readFileSync(file, "utf-8");
|
|
3994
3940
|
} catch (err) {
|
|
3995
3941
|
return;
|
|
3996
3942
|
}
|
|
@@ -4063,7 +4009,7 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4063
4009
|
if (target.type === "json") data = JSON.stringify(data);
|
|
4064
4010
|
else data = ini.stringify(data);
|
|
4065
4011
|
this._saving++;
|
|
4066
|
-
fs
|
|
4012
|
+
fs.writeFile(target.path, data, "utf8", function(er) {
|
|
4067
4013
|
this._saving--;
|
|
4068
4014
|
if (er) {
|
|
4069
4015
|
if (cb) return cb(er);
|
|
@@ -4085,7 +4031,7 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4085
4031
|
};
|
|
4086
4032
|
this.push(marker);
|
|
4087
4033
|
this._await();
|
|
4088
|
-
fs
|
|
4034
|
+
fs.readFile(file, "utf8", function(er, data) {
|
|
4089
4035
|
if (er) this.emit("error", er);
|
|
4090
4036
|
this.addString(data, file, type, marker);
|
|
4091
4037
|
}.bind(this));
|
|
@@ -4103,7 +4049,7 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4103
4049
|
};
|
|
4104
4050
|
ConfigChain.prototype.addUrl = function(req, type, name) {
|
|
4105
4051
|
this._await();
|
|
4106
|
-
var href = url
|
|
4052
|
+
var href = url.format(req);
|
|
4107
4053
|
name = name || href;
|
|
4108
4054
|
var marker = { __source__: name };
|
|
4109
4055
|
this.sources[name] = {
|
|
@@ -4158,8 +4104,7 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4158
4104
|
if (this._awaiting === 0) this.emit("load", this);
|
|
4159
4105
|
};
|
|
4160
4106
|
}));
|
|
4161
|
-
|
|
4162
|
-
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
|
|
4107
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
|
|
4163
4108
|
var require_envKeyToSetting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4164
4109
|
module.exports = function(x) {
|
|
4165
4110
|
const colonIndex = x.indexOf(":");
|
|
@@ -4174,8 +4119,7 @@ var require_envKeyToSetting = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
4174
4119
|
return r;
|
|
4175
4120
|
}
|
|
4176
4121
|
}));
|
|
4177
|
-
|
|
4178
|
-
//#region ../../node_modules/.pnpm/@pnpm+config.env-replace@1.1.0/node_modules/@pnpm/config.env-replace/dist/env-replace.js
|
|
4122
|
+
// ../../node_modules/.pnpm/@pnpm+config.env-replace@1.1.0/node_modules/@pnpm/config.env-replace/dist/env-replace.js
|
|
4179
4123
|
var require_env_replace = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4180
4124
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4181
4125
|
exports.envReplace = void 0;
|
|
@@ -4199,8 +4143,7 @@ var require_env_replace = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4199
4143
|
return fallback;
|
|
4200
4144
|
}
|
|
4201
4145
|
}));
|
|
4202
|
-
|
|
4203
|
-
//#region ../../node_modules/.pnpm/@pnpm+config.env-replace@1.1.0/node_modules/@pnpm/config.env-replace/dist/index.js
|
|
4146
|
+
// ../../node_modules/.pnpm/@pnpm+config.env-replace@1.1.0/node_modules/@pnpm/config.env-replace/dist/index.js
|
|
4204
4147
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4205
4148
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4206
4149
|
exports.envReplace = void 0;
|
|
@@ -4212,11 +4155,10 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4212
4155
|
}
|
|
4213
4156
|
});
|
|
4214
4157
|
}));
|
|
4215
|
-
|
|
4216
|
-
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/util.js
|
|
4158
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/util.js
|
|
4217
4159
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4218
|
-
const fs
|
|
4219
|
-
const path
|
|
4160
|
+
const fs = __require("fs");
|
|
4161
|
+
const path = __require("path");
|
|
4220
4162
|
const { envReplace } = require_dist();
|
|
4221
4163
|
const parseKey = (key) => {
|
|
4222
4164
|
if (typeof key !== "string") return key;
|
|
@@ -4225,7 +4167,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4225
4167
|
const parseField = (types, field, key) => {
|
|
4226
4168
|
if (typeof field !== "string") return field;
|
|
4227
4169
|
const typeList = [].concat(types[key]);
|
|
4228
|
-
const isPath = typeList.indexOf(path
|
|
4170
|
+
const isPath = typeList.indexOf(path) !== -1;
|
|
4229
4171
|
const isBool = typeList.indexOf(Boolean) !== -1;
|
|
4230
4172
|
const isString = typeList.indexOf(String) !== -1;
|
|
4231
4173
|
const isNumber = typeList.indexOf(Number) !== -1;
|
|
@@ -4246,26 +4188,26 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4246
4188
|
if ((key.endsWith(":tokenHelper") || key === "tokenHelper") && processedField !== field) throw new Error(`It is not allowed to use environment variables in the value of the ${key} setting.`);
|
|
4247
4189
|
else field = processedField;
|
|
4248
4190
|
if (isPath) {
|
|
4249
|
-
if ((process.platform === "win32" ? /^~(\/|\\)/ : /^~\//).test(field) && process.env.HOME) field = path
|
|
4250
|
-
field = path
|
|
4191
|
+
if ((process.platform === "win32" ? /^~(\/|\\)/ : /^~\//).test(field) && process.env.HOME) field = path.resolve(process.env.HOME, field.substr(2));
|
|
4192
|
+
field = path.resolve(field);
|
|
4251
4193
|
}
|
|
4252
4194
|
if (isNumber && !isNaN(field)) field = Number(field);
|
|
4253
4195
|
return field;
|
|
4254
4196
|
};
|
|
4255
4197
|
const findPrefix = (name) => {
|
|
4256
|
-
name = path
|
|
4198
|
+
name = path.resolve(name);
|
|
4257
4199
|
let walkedUp = false;
|
|
4258
|
-
while (path
|
|
4259
|
-
name = path
|
|
4200
|
+
while (path.basename(name) === "node_modules") {
|
|
4201
|
+
name = path.dirname(name);
|
|
4260
4202
|
walkedUp = true;
|
|
4261
4203
|
}
|
|
4262
4204
|
if (walkedUp) return name;
|
|
4263
4205
|
const find = (name, original) => {
|
|
4264
4206
|
if (name === "/" || process.platform === "win32" && /^[a-zA-Z]:(\\|\/)?$/.test(name)) return original;
|
|
4265
4207
|
try {
|
|
4266
|
-
const files = fs
|
|
4208
|
+
const files = fs.readdirSync(name);
|
|
4267
4209
|
if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml")) return name;
|
|
4268
|
-
const dirname = path
|
|
4210
|
+
const dirname = path.dirname(name);
|
|
4269
4211
|
if (dirname === name) return original;
|
|
4270
4212
|
return find(dirname, original);
|
|
4271
4213
|
} catch (error) {
|
|
@@ -4283,10 +4225,9 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4283
4225
|
exports.parseField = parseField;
|
|
4284
4226
|
exports.parseKey = parseKey;
|
|
4285
4227
|
}));
|
|
4286
|
-
|
|
4287
|
-
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/types.js
|
|
4228
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/types.js
|
|
4288
4229
|
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4289
|
-
const path
|
|
4230
|
+
const path = __require("path");
|
|
4290
4231
|
const Stream = __require("stream").Stream;
|
|
4291
4232
|
const url = __require("url");
|
|
4292
4233
|
const Umask = () => {};
|
|
@@ -4319,8 +4260,8 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4319
4260
|
String,
|
|
4320
4261
|
Array
|
|
4321
4262
|
],
|
|
4322
|
-
cafile: path
|
|
4323
|
-
cache: path
|
|
4263
|
+
cafile: path,
|
|
4264
|
+
cache: path,
|
|
4324
4265
|
"cache-lock-stale": Number,
|
|
4325
4266
|
"cache-lock-retries": Number,
|
|
4326
4267
|
"cache-lock-wait": Number,
|
|
@@ -4348,7 +4289,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4348
4289
|
"git-tag-version": Boolean,
|
|
4349
4290
|
"commit-hooks": Boolean,
|
|
4350
4291
|
global: Boolean,
|
|
4351
|
-
globalconfig: path
|
|
4292
|
+
globalconfig: path,
|
|
4352
4293
|
"global-style": Boolean,
|
|
4353
4294
|
group: [Number, String],
|
|
4354
4295
|
"https-proxy": [null, url],
|
|
@@ -4358,7 +4299,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4358
4299
|
"if-present": Boolean,
|
|
4359
4300
|
"ignore-prepublish": Boolean,
|
|
4360
4301
|
"ignore-scripts": Boolean,
|
|
4361
|
-
"init-module": path
|
|
4302
|
+
"init-module": path,
|
|
4362
4303
|
"init-author-name": String,
|
|
4363
4304
|
"init-author-email": String,
|
|
4364
4305
|
"init-author-url": ["", url],
|
|
@@ -4409,7 +4350,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4409
4350
|
parseable: Boolean,
|
|
4410
4351
|
"prefer-offline": Boolean,
|
|
4411
4352
|
"prefer-online": Boolean,
|
|
4412
|
-
prefix: path
|
|
4353
|
+
prefix: path,
|
|
4413
4354
|
production: Boolean,
|
|
4414
4355
|
progress: Boolean,
|
|
4415
4356
|
proxy: [
|
|
@@ -4454,12 +4395,12 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4454
4395
|
"strict-ssl": Boolean,
|
|
4455
4396
|
tag: String,
|
|
4456
4397
|
timing: Boolean,
|
|
4457
|
-
tmp: path
|
|
4398
|
+
tmp: path,
|
|
4458
4399
|
unicode: Boolean,
|
|
4459
4400
|
"unsafe-perm": Boolean,
|
|
4460
4401
|
usage: Boolean,
|
|
4461
4402
|
user: [Number, String],
|
|
4462
|
-
userconfig: path
|
|
4403
|
+
userconfig: path,
|
|
4463
4404
|
umask: Umask,
|
|
4464
4405
|
version: Boolean,
|
|
4465
4406
|
"tag-version-prefix": String,
|
|
@@ -4468,12 +4409,11 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4468
4409
|
_exit: Boolean
|
|
4469
4410
|
};
|
|
4470
4411
|
}));
|
|
4471
|
-
|
|
4472
|
-
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/conf.js
|
|
4412
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/conf.js
|
|
4473
4413
|
var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4474
4414
|
const { readCAFileSync } = require_dist$1();
|
|
4475
|
-
const fs
|
|
4476
|
-
const path
|
|
4415
|
+
const fs = __require("fs");
|
|
4416
|
+
const path = __require("path");
|
|
4477
4417
|
const { ConfigChain } = require_config_chain();
|
|
4478
4418
|
const envKeyToSetting = require_envKeyToSetting();
|
|
4479
4419
|
const util = require_util();
|
|
@@ -4505,7 +4445,7 @@ var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4505
4445
|
this.push(marker);
|
|
4506
4446
|
this._await();
|
|
4507
4447
|
try {
|
|
4508
|
-
const contents = fs
|
|
4448
|
+
const contents = fs.readFileSync(file, "utf8");
|
|
4509
4449
|
this.addString(contents, file, "ini", marker);
|
|
4510
4450
|
} catch (error) {
|
|
4511
4451
|
if (error.code === "ENOENT") this.add({}, marker);
|
|
@@ -4541,7 +4481,7 @@ var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4541
4481
|
this.set("prefix", prefix);
|
|
4542
4482
|
},
|
|
4543
4483
|
get: () => {
|
|
4544
|
-
return path
|
|
4484
|
+
return path.resolve(this.get("prefix"));
|
|
4545
4485
|
}
|
|
4546
4486
|
});
|
|
4547
4487
|
let p;
|
|
@@ -4554,7 +4494,7 @@ var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4554
4494
|
return p;
|
|
4555
4495
|
}
|
|
4556
4496
|
});
|
|
4557
|
-
if (Object.prototype.hasOwnProperty.call(cli, "prefix")) p = path
|
|
4497
|
+
if (Object.prototype.hasOwnProperty.call(cli, "prefix")) p = path.resolve(cli.prefix);
|
|
4558
4498
|
else try {
|
|
4559
4499
|
p = util.findPrefix(process.cwd());
|
|
4560
4500
|
} catch (error) {
|
|
@@ -4574,9 +4514,9 @@ var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4574
4514
|
defConf.user = Number(process.env.SUDO_UID);
|
|
4575
4515
|
return;
|
|
4576
4516
|
}
|
|
4577
|
-
const prefix = path
|
|
4517
|
+
const prefix = path.resolve(this.get("prefix"));
|
|
4578
4518
|
try {
|
|
4579
|
-
defConf.user = fs
|
|
4519
|
+
defConf.user = fs.statSync(prefix).uid;
|
|
4580
4520
|
} catch (error) {
|
|
4581
4521
|
if (error.code === "ENOENT") return;
|
|
4582
4522
|
throw error;
|
|
@@ -4597,12 +4537,11 @@ var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4597
4537
|
}
|
|
4598
4538
|
module.exports = Conf;
|
|
4599
4539
|
}));
|
|
4600
|
-
|
|
4601
|
-
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/defaults.js
|
|
4540
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/defaults.js
|
|
4602
4541
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4603
|
-
const os
|
|
4604
|
-
const path
|
|
4605
|
-
const temp = os
|
|
4542
|
+
const os = __require("os");
|
|
4543
|
+
const path = __require("path");
|
|
4544
|
+
const temp = os.tmpdir();
|
|
4606
4545
|
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
4607
4546
|
const hasUnicode = () => true;
|
|
4608
4547
|
const isWindows = process.platform === "win32";
|
|
@@ -4611,21 +4550,21 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4611
4550
|
shell: () => isWindows ? process.env.COMSPEC || "cmd.exe" : process.env.SHELL || "/bin/bash"
|
|
4612
4551
|
};
|
|
4613
4552
|
const umask = { fromString: () => process.umask() };
|
|
4614
|
-
let home = os
|
|
4553
|
+
let home = os.homedir();
|
|
4615
4554
|
if (home) process.env.HOME = home;
|
|
4616
|
-
else home = path
|
|
4555
|
+
else home = path.resolve(temp, "npm-" + uidOrPid);
|
|
4617
4556
|
const cacheExtra = process.platform === "win32" ? "npm-cache" : ".npm";
|
|
4618
4557
|
const cacheRoot = process.platform === "win32" && process.env.APPDATA || home;
|
|
4619
|
-
const cache = path
|
|
4558
|
+
const cache = path.resolve(cacheRoot, cacheExtra);
|
|
4620
4559
|
let defaults;
|
|
4621
4560
|
let globalPrefix;
|
|
4622
4561
|
Object.defineProperty(exports, "defaults", { get: function() {
|
|
4623
4562
|
if (defaults) return defaults;
|
|
4624
4563
|
if (process.env.PREFIX) globalPrefix = process.env.PREFIX;
|
|
4625
|
-
else if (process.platform === "win32") globalPrefix = path
|
|
4564
|
+
else if (process.platform === "win32") globalPrefix = path.dirname(process.execPath);
|
|
4626
4565
|
else {
|
|
4627
|
-
globalPrefix = path
|
|
4628
|
-
if (process.env.DESTDIR) globalPrefix = path
|
|
4566
|
+
globalPrefix = path.dirname(path.dirname(process.execPath));
|
|
4567
|
+
if (process.env.DESTDIR) globalPrefix = path.join(process.env.DESTDIR, globalPrefix);
|
|
4629
4568
|
}
|
|
4630
4569
|
defaults = {
|
|
4631
4570
|
access: null,
|
|
@@ -4662,7 +4601,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4662
4601
|
"git-tag-version": true,
|
|
4663
4602
|
"commit-hooks": true,
|
|
4664
4603
|
global: false,
|
|
4665
|
-
globalconfig: path
|
|
4604
|
+
globalconfig: path.resolve(globalPrefix, "etc", "npmrc"),
|
|
4666
4605
|
"global-style": false,
|
|
4667
4606
|
group: process.platform === "win32" ? 0 : process.env.SUDO_GID || process.getgid && process.getgid(),
|
|
4668
4607
|
"ham-it-up": false,
|
|
@@ -4670,7 +4609,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4670
4609
|
"if-present": false,
|
|
4671
4610
|
"ignore-prepublish": false,
|
|
4672
4611
|
"ignore-scripts": false,
|
|
4673
|
-
"init-module": path
|
|
4612
|
+
"init-module": path.resolve(home, ".npm-init.js"),
|
|
4674
4613
|
"init-author-name": "",
|
|
4675
4614
|
"init-author-email": "",
|
|
4676
4615
|
"init-author-url": "",
|
|
@@ -4740,7 +4679,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4740
4679
|
"unsafe-perm": process.platform === "win32" || process.platform === "cygwin" || !(process.getuid && process.setuid && process.getgid && process.setgid) || process.getuid() !== 0,
|
|
4741
4680
|
usage: false,
|
|
4742
4681
|
user: process.platform === "win32" ? 0 : "nobody",
|
|
4743
|
-
userconfig: path
|
|
4682
|
+
userconfig: path.resolve(home, ".npmrc"),
|
|
4744
4683
|
umask: process.umask ? process.umask() : umask.fromString("022"),
|
|
4745
4684
|
version: false,
|
|
4746
4685
|
versions: false,
|
|
@@ -4750,10 +4689,9 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4750
4689
|
return defaults;
|
|
4751
4690
|
} });
|
|
4752
4691
|
}));
|
|
4753
|
-
|
|
4754
|
-
//#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/index.js
|
|
4692
|
+
// ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/index.js
|
|
4755
4693
|
var require_npm_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4756
|
-
const path
|
|
4694
|
+
const path = __require("path");
|
|
4757
4695
|
const Conf = require_conf();
|
|
4758
4696
|
const _defaults = require_defaults();
|
|
4759
4697
|
module.exports = (opts, types, defaults) => {
|
|
@@ -4774,24 +4712,24 @@ var require_npm_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4774
4712
|
* According to https://github.com/npm/cli/blob/86f5bdb91f7a5971953a5171d32d6eeda6a2e972/lib/npm.js#L258
|
|
4775
4713
|
* and https://github.com/npm/cli/blob/86f5bdb91f7a5971953a5171d32d6eeda6a2e972/lib/config/core.js#L92
|
|
4776
4714
|
*/
|
|
4777
|
-
warnings.push(conf.addFile(path
|
|
4715
|
+
warnings.push(conf.addFile(path.resolve(path.dirname(npmPath), "..", "npmrc"), "builtin"));
|
|
4778
4716
|
}
|
|
4779
4717
|
conf.addEnv();
|
|
4780
4718
|
conf.loadPrefix();
|
|
4781
4719
|
const trustedUserconfig = conf.get("userconfig");
|
|
4782
4720
|
const trustedPrefix = conf.get("prefix");
|
|
4783
4721
|
if (trustedPrefix) {
|
|
4784
|
-
const etc = path
|
|
4785
|
-
conf.root.globalconfig = path
|
|
4786
|
-
conf.root.globalignorefile = path
|
|
4722
|
+
const etc = path.resolve(trustedPrefix, "etc");
|
|
4723
|
+
conf.root.globalconfig = path.resolve(etc, "npmrc");
|
|
4724
|
+
conf.root.globalignorefile = path.resolve(etc, "npmignore");
|
|
4787
4725
|
}
|
|
4788
4726
|
const trustedGlobalconfig = conf.get("globalconfig");
|
|
4789
|
-
const projectConf = path
|
|
4727
|
+
const projectConf = path.resolve(conf.localPrefix, ".npmrc");
|
|
4790
4728
|
const userConf = trustedUserconfig;
|
|
4791
4729
|
if (!conf.get("global") && projectConf !== userConf) warnings.push(conf.addFile(projectConf, "project"));
|
|
4792
4730
|
else conf.add({}, "project");
|
|
4793
4731
|
if (conf.get("workspace-prefix") && conf.get("workspace-prefix") !== projectConf) {
|
|
4794
|
-
const workspaceConf = path
|
|
4732
|
+
const workspaceConf = path.resolve(conf.get("workspace-prefix"), ".npmrc");
|
|
4795
4733
|
warnings.push(conf.addFile(workspaceConf, "workspace"));
|
|
4796
4734
|
}
|
|
4797
4735
|
warnings.push(conf.addFile(trustedUserconfig, "user"));
|
|
@@ -4812,8 +4750,7 @@ var require_npm_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4812
4750
|
enumerable: true
|
|
4813
4751
|
});
|
|
4814
4752
|
}));
|
|
4815
|
-
|
|
4816
|
-
//#region ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
|
|
4753
|
+
// ../../node_modules/.pnpm/package-json@10.0.1/node_modules/package-json/index.js
|
|
4817
4754
|
var import_registry_auth_token = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4818
4755
|
const npmConf = require_npm_conf();
|
|
4819
4756
|
const tokenKey = ":_authToken";
|
|
@@ -4956,14 +4893,12 @@ async function packageJson$1(packageName, options = {}) {
|
|
|
4956
4893
|
}
|
|
4957
4894
|
return data;
|
|
4958
4895
|
}
|
|
4959
|
-
|
|
4960
|
-
//#region ../../node_modules/.pnpm/latest-version@9.0.0/node_modules/latest-version/index.js
|
|
4896
|
+
// ../../node_modules/.pnpm/latest-version@9.0.0/node_modules/latest-version/index.js
|
|
4961
4897
|
async function latestVersion(packageName, options) {
|
|
4962
4898
|
const { version } = await packageJson$1(packageName.toLowerCase(), options);
|
|
4963
4899
|
return version;
|
|
4964
4900
|
}
|
|
4965
|
-
|
|
4966
|
-
//#region ../../node_modules/.pnpm/is-npm@6.1.0/node_modules/is-npm/index.js
|
|
4901
|
+
// ../../node_modules/.pnpm/is-npm@6.1.0/node_modules/is-npm/index.js
|
|
4967
4902
|
const packageJson = process$1.env.npm_package_json;
|
|
4968
4903
|
const userAgent = process$1.env.npm_config_user_agent;
|
|
4969
4904
|
const isNpm = Boolean(userAgent?.startsWith("npm")) || Boolean(packageJson?.endsWith("package.json"));
|
|
@@ -4971,8 +4906,7 @@ const isYarn = Boolean(userAgent?.startsWith("yarn"));
|
|
|
4971
4906
|
Boolean(userAgent?.startsWith("pnpm"));
|
|
4972
4907
|
Boolean(userAgent?.startsWith("bun"));
|
|
4973
4908
|
const isNpmOrYarn = isNpm || isYarn;
|
|
4974
|
-
|
|
4975
|
-
//#region ../../node_modules/.pnpm/global-directory@4.0.1/node_modules/global-directory/index.js
|
|
4909
|
+
// ../../node_modules/.pnpm/global-directory@4.0.1/node_modules/global-directory/index.js
|
|
4976
4910
|
var import_ini = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4977
4911
|
const { hasOwnProperty } = Object.prototype;
|
|
4978
4912
|
const encode = (obj, opt = {}) => {
|
|
@@ -5191,14 +5125,12 @@ globalDirectory.yarn = {};
|
|
|
5191
5125
|
globalDirectory.yarn.prefix = yarnPrefix;
|
|
5192
5126
|
globalDirectory.yarn.packages = path.join(yarnPrefix, getYarnWindowsDirectory() ? "Data/global/node_modules" : "global/node_modules");
|
|
5193
5127
|
globalDirectory.yarn.binaries = path.join(globalDirectory.yarn.packages, ".bin");
|
|
5194
|
-
|
|
5195
|
-
//#region ../../node_modules/.pnpm/is-path-inside@4.0.0/node_modules/is-path-inside/index.js
|
|
5128
|
+
// ../../node_modules/.pnpm/is-path-inside@4.0.0/node_modules/is-path-inside/index.js
|
|
5196
5129
|
function isPathInside(childPath, parentPath) {
|
|
5197
5130
|
const relation = path.relative(parentPath, childPath);
|
|
5198
5131
|
return Boolean(relation && relation !== ".." && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath));
|
|
5199
5132
|
}
|
|
5200
|
-
|
|
5201
|
-
//#region ../../node_modules/.pnpm/is-installed-globally@1.0.0/node_modules/is-installed-globally/index.js
|
|
5133
|
+
// ../../node_modules/.pnpm/is-installed-globally@1.0.0/node_modules/is-installed-globally/index.js
|
|
5202
5134
|
const __dirname$1 = path.dirname(fileURLToPath(import.meta.url));
|
|
5203
5135
|
const isInstalledGlobally = (() => {
|
|
5204
5136
|
try {
|
|
@@ -5207,11 +5139,9 @@ const isInstalledGlobally = (() => {
|
|
|
5207
5139
|
return false;
|
|
5208
5140
|
}
|
|
5209
5141
|
})();
|
|
5210
|
-
|
|
5211
|
-
//#region ../../node_modules/.pnpm/is-in-ci@1.0.0/node_modules/is-in-ci/index.js
|
|
5142
|
+
// ../../node_modules/.pnpm/is-in-ci@1.0.0/node_modules/is-in-ci/index.js
|
|
5212
5143
|
const isInCi = env.CI !== "0" && env.CI !== "false" && ("CI" in env || "CONTINUOUS_INTEGRATION" in env || Object.keys(env).some((key) => key.startsWith("CI_")));
|
|
5213
|
-
|
|
5214
|
-
//#region ../../node_modules/.pnpm/escape-goat@4.0.0/node_modules/escape-goat/index.js
|
|
5144
|
+
// ../../node_modules/.pnpm/escape-goat@4.0.0/node_modules/escape-goat/index.js
|
|
5215
5145
|
const _htmlEscape = (string) => string.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
5216
5146
|
function htmlEscape(strings, ...values) {
|
|
5217
5147
|
if (typeof strings === "string") return _htmlEscape(strings);
|
|
@@ -5219,8 +5149,7 @@ function htmlEscape(strings, ...values) {
|
|
|
5219
5149
|
for (const [index, value] of values.entries()) output = output + _htmlEscape(String(value)) + strings[index + 1];
|
|
5220
5150
|
return output;
|
|
5221
5151
|
}
|
|
5222
|
-
|
|
5223
|
-
//#region ../../node_modules/.pnpm/pupa@3.3.0/node_modules/pupa/index.js
|
|
5152
|
+
// ../../node_modules/.pnpm/pupa@3.3.0/node_modules/pupa/index.js
|
|
5224
5153
|
var MissingValueError = class extends Error {
|
|
5225
5154
|
constructor(key) {
|
|
5226
5155
|
super(`Missing a value for ${key ? `the placeholder: ${key}` : "a placeholder"}`, key);
|
|
@@ -5289,8 +5218,7 @@ function pupa(template, data, { ignoreMissing = false, transform = ({ value }) =
|
|
|
5289
5218
|
template = template.replace(new RegExp(escapedRightBrace, "g"), "}");
|
|
5290
5219
|
return template;
|
|
5291
5220
|
}
|
|
5292
|
-
|
|
5293
|
-
//#region ../../node_modules/.pnpm/update-notifier@7.3.1/node_modules/update-notifier/update-notifier.js
|
|
5221
|
+
// ../../node_modules/.pnpm/update-notifier@7.3.1/node_modules/update-notifier/update-notifier.js
|
|
5294
5222
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
5295
5223
|
const ONE_DAY = 864e5;
|
|
5296
5224
|
var UpdateNotifier = class {
|
|
@@ -5381,15 +5309,13 @@ var UpdateNotifier = class {
|
|
|
5381
5309
|
return this;
|
|
5382
5310
|
}
|
|
5383
5311
|
};
|
|
5384
|
-
|
|
5385
|
-
//#region ../../node_modules/.pnpm/update-notifier@7.3.1/node_modules/update-notifier/index.js
|
|
5312
|
+
// ../../node_modules/.pnpm/update-notifier@7.3.1/node_modules/update-notifier/index.js
|
|
5386
5313
|
function updateNotifier(options) {
|
|
5387
5314
|
const updateNotifier = new UpdateNotifier(options);
|
|
5388
5315
|
updateNotifier.check();
|
|
5389
5316
|
return updateNotifier;
|
|
5390
5317
|
}
|
|
5391
|
-
|
|
5392
|
-
//#region package.json
|
|
5318
|
+
// package.json
|
|
5393
5319
|
var package_default = {
|
|
5394
5320
|
name: "@yamada-ui/cli",
|
|
5395
5321
|
type: "module",
|
|
@@ -5467,8 +5393,7 @@ var package_default = {
|
|
|
5467
5393
|
},
|
|
5468
5394
|
"clean-package": "./clean-package.config.json"
|
|
5469
5395
|
};
|
|
5470
|
-
|
|
5471
|
-
//#region src/constant.ts
|
|
5396
|
+
// src/constant.ts
|
|
5472
5397
|
const PACKAGE_NAME = "@yamada-ui/react";
|
|
5473
5398
|
const CONFIG_FILE_NAME = "ui.json";
|
|
5474
5399
|
const REGISTRY_FILE_NAME = "registry.json";
|
|
@@ -5573,8 +5498,7 @@ const TSCONFIG_JSON = {
|
|
|
5573
5498
|
include: ["src/**/*.ts", "src/**/*.tsx"],
|
|
5574
5499
|
exclude: ["node_modules"]
|
|
5575
5500
|
};
|
|
5576
|
-
|
|
5577
|
-
//#region src/utils/lint.ts
|
|
5501
|
+
// src/utils/lint.ts
|
|
5578
5502
|
async function lintText(content, { cwd, enabled = true, filePath } = {}) {
|
|
5579
5503
|
if (!enabled) return content;
|
|
5580
5504
|
try {
|
|
@@ -5598,8 +5522,7 @@ async function lintFiles(patterns, { cwd, enabled = true } = {}) {
|
|
|
5598
5522
|
await ESLint.outputFixes(results);
|
|
5599
5523
|
} catch {}
|
|
5600
5524
|
}
|
|
5601
|
-
|
|
5602
|
-
//#region src/utils/prettier.ts
|
|
5525
|
+
// src/utils/prettier.ts
|
|
5603
5526
|
async function formatText(content, { configPath, enabled = true, ...options } = {}) {
|
|
5604
5527
|
if (!enabled) return content;
|
|
5605
5528
|
try {
|
|
@@ -5623,8 +5546,7 @@ async function formatFiles(patterns, { enabled = true, ...options } = {}) {
|
|
|
5623
5546
|
await writeFile(pattern, content, "utf-8");
|
|
5624
5547
|
}));
|
|
5625
5548
|
}
|
|
5626
|
-
|
|
5627
|
-
//#region src/utils/fs.ts
|
|
5549
|
+
// src/utils/fs.ts
|
|
5628
5550
|
const cwd = process.env.INIT_CWD ?? process.cwd();
|
|
5629
5551
|
const execFileAsync$1 = promisify(execFile);
|
|
5630
5552
|
async function isWriteable(directory) {
|
|
@@ -5693,8 +5615,7 @@ async function getFiles(pattern) {
|
|
|
5693
5615
|
files
|
|
5694
5616
|
};
|
|
5695
5617
|
}
|
|
5696
|
-
|
|
5697
|
-
//#region src/utils/package.ts
|
|
5618
|
+
// src/utils/package.ts
|
|
5698
5619
|
function getPackageManager() {
|
|
5699
5620
|
const userAgent = process.env.npm_config_user_agent || "";
|
|
5700
5621
|
if (userAgent.startsWith("yarn")) return "yarn";
|
|
@@ -5821,8 +5742,7 @@ async function addWorkspace(cwd, workspacePath, config) {
|
|
|
5821
5742
|
}
|
|
5822
5743
|
}
|
|
5823
5744
|
}
|
|
5824
|
-
|
|
5825
|
-
//#region src/utils/typescript.ts
|
|
5745
|
+
// src/utils/typescript.ts
|
|
5826
5746
|
function transformExtension(value, jsx) {
|
|
5827
5747
|
if (!jsx) return value;
|
|
5828
5748
|
const extension = value.split(".").at(-1);
|
|
@@ -5845,8 +5765,7 @@ function transformTsxToJsx(content) {
|
|
|
5845
5765
|
function transformTsToJs(content) {
|
|
5846
5766
|
return transform(content, { transforms: ["typescript"] }).code;
|
|
5847
5767
|
}
|
|
5848
|
-
|
|
5849
|
-
//#region src/utils/config.ts
|
|
5768
|
+
// src/utils/config.ts
|
|
5850
5769
|
function getPaths(rootPath, jsx) {
|
|
5851
5770
|
const srcPath = existsSync(path.resolve(rootPath, "src")) ? path.resolve(rootPath, "src") : rootPath;
|
|
5852
5771
|
return {
|
|
@@ -5920,8 +5839,7 @@ async function getConfig(cwd, configPath, { format, jsx, lint } = {}) {
|
|
|
5920
5839
|
throw new Error(`No ${c.yellow("config")} found. Please run ${c.cyan(`${prefix} ${package_default.name}@latest init`)}.`);
|
|
5921
5840
|
}
|
|
5922
5841
|
}
|
|
5923
|
-
|
|
5924
|
-
//#region src/utils/module.ts
|
|
5842
|
+
// src/utils/module.ts
|
|
5925
5843
|
async function getModule(file, cwd) {
|
|
5926
5844
|
const result = await build({
|
|
5927
5845
|
absWorkingDir: cwd,
|
|
@@ -5957,8 +5875,7 @@ async function getModule(file, cwd) {
|
|
|
5957
5875
|
};
|
|
5958
5876
|
}
|
|
5959
5877
|
}
|
|
5960
|
-
|
|
5961
|
-
//#region src/utils/registry.ts
|
|
5878
|
+
// src/utils/registry.ts
|
|
5962
5879
|
const agent = process.env.https_proxy ? new HttpsProxyAgent(process.env.https_proxy) : void 0;
|
|
5963
5880
|
const registryStore = /* @__PURE__ */ new Map();
|
|
5964
5881
|
function getRegistryUrl(name, tag = "") {
|
|
@@ -6152,8 +6069,7 @@ async function generateSource(dirPath, section, { name: fileName, content, data,
|
|
|
6152
6069
|
async function generateSources(dirPath, registry, config, generatedNames = []) {
|
|
6153
6070
|
await Promise.all([...registry.sources.map((source) => generateSource(dirPath, registry.section, source, config, generatedNames)), writeFileSafe(path.resolve(dirPath, REGISTRY_FILE_NAME), JSON.stringify(registry), merge(config, { format: { parser: "json" } }))]);
|
|
6154
6071
|
}
|
|
6155
|
-
|
|
6156
|
-
//#region src/commands/add/index.ts
|
|
6072
|
+
// src/commands/add/index.ts
|
|
6157
6073
|
const add = new Command("add").description("add a component to your project.").argument("[components...]", "components to add.").option("--cwd <path>", "current working directory.", cwd).option("-c, --config <path>", "path to the config file.", CONFIG_FILE_NAME).option("-o, --overwrite", "overwrite existing files.", false).option("-s, --sequential", "run tasks sequentially.", false).option("-y, --yes", "skip all confirmation prompts.", false).option("-i, --install", "install dependencies.").option("--no-install", "do not install dependencies.").option("-f, --format", "format the output files.").option("--no-format", "do not format the output files.").option("-l, --lint", "lint the output files.").option("--no-lint", "do not lint the output files.").option("-t, --tag <name>", "tag for the registries (e.g. dev, next).").action(async function(componentNames, { config: configPath, cwd, format, install, lint, overwrite, sequential, tag, yes }) {
|
|
6158
6074
|
const spinner = ora();
|
|
6159
6075
|
try {
|
|
@@ -6345,8 +6261,7 @@ const add = new Command("add").description("add a component to your project.").a
|
|
|
6345
6261
|
else spinner.fail("An unknown error occurred");
|
|
6346
6262
|
}
|
|
6347
6263
|
});
|
|
6348
|
-
|
|
6349
|
-
//#region src/commands/update/print-conflicts.ts
|
|
6264
|
+
// src/commands/update/print-conflicts.ts
|
|
6350
6265
|
function printConflicts(conflictMap, config) {
|
|
6351
6266
|
Object.entries(conflictMap).forEach(([name, files]) => {
|
|
6352
6267
|
if (name === "index") console.log(`- ${c.yellow(transformExtension("index.ts", config.jsx))}: ${config.paths.ui.index.replace(`${config.cwd}/`, "")}`);
|
|
@@ -6358,8 +6273,7 @@ function printConflicts(conflictMap, config) {
|
|
|
6358
6273
|
}
|
|
6359
6274
|
});
|
|
6360
6275
|
}
|
|
6361
|
-
|
|
6362
|
-
//#region src/commands/diff/get-diff.ts
|
|
6276
|
+
// src/commands/diff/get-diff.ts
|
|
6363
6277
|
function getDirPath(section, name, config) {
|
|
6364
6278
|
return config.isSection(section) ? path.join(config.getSectionResolvedPath(section), name) : config.paths[section === "theme" ? "theme" : "ui"].src;
|
|
6365
6279
|
}
|
|
@@ -6512,8 +6426,7 @@ async function getDiff(generatedNames, { local, remote }, config, concurrent = t
|
|
|
6512
6426
|
dependencyMap
|
|
6513
6427
|
};
|
|
6514
6428
|
}
|
|
6515
|
-
|
|
6516
|
-
//#region src/commands/update/update-files.ts
|
|
6429
|
+
// src/commands/update/update-files.ts
|
|
6517
6430
|
async function mergeContent(remotePath, localPath, currentPath, fallback) {
|
|
6518
6431
|
let content = "";
|
|
6519
6432
|
let conflict = false;
|
|
@@ -6610,8 +6523,7 @@ async function updateFiles(changeMap, { add, remove, update }, { remote }, confi
|
|
|
6610
6523
|
if (add.length) await installDependencies(add, { cwd });
|
|
6611
6524
|
return conflictMap;
|
|
6612
6525
|
}
|
|
6613
|
-
|
|
6614
|
-
//#region src/commands/update/validate-diff-3.ts
|
|
6526
|
+
// src/commands/update/validate-diff-3.ts
|
|
6615
6527
|
const execFileAsync = promisify(execFile);
|
|
6616
6528
|
async function validateDiff3() {
|
|
6617
6529
|
try {
|
|
@@ -6621,8 +6533,7 @@ async function validateDiff3() {
|
|
|
6621
6533
|
throw new Error(`${c.yellow("diff3")} is not installed. Please install it.`);
|
|
6622
6534
|
}
|
|
6623
6535
|
}
|
|
6624
|
-
|
|
6625
|
-
//#region src/commands/diff/get-registries-and-files.ts
|
|
6536
|
+
// src/commands/diff/get-registries-and-files.ts
|
|
6626
6537
|
async function getRegistriesAndFiles(componentNames, config, { concurrent = true, index = false, tag, theme = false } = {}) {
|
|
6627
6538
|
const fileMap = {};
|
|
6628
6539
|
const registryMap = {
|
|
@@ -6682,8 +6593,7 @@ async function getRegistriesAndFiles(componentNames, config, { concurrent = true
|
|
|
6682
6593
|
registryMap
|
|
6683
6594
|
};
|
|
6684
6595
|
}
|
|
6685
|
-
|
|
6686
|
-
//#region src/commands/diff/print-diff.ts
|
|
6596
|
+
// src/commands/diff/print-diff.ts
|
|
6687
6597
|
function printDiff(changes, detail = false) {
|
|
6688
6598
|
if (!changes) return;
|
|
6689
6599
|
Object.entries(changes).forEach(([fileName, { diff }]) => {
|
|
@@ -6730,8 +6640,7 @@ function printDiffDependencies({ add, remove, update }) {
|
|
|
6730
6640
|
console.log(` - ${name}@${c.red(current)}->${c.green(wanted)}`);
|
|
6731
6641
|
});
|
|
6732
6642
|
}
|
|
6733
|
-
|
|
6734
|
-
//#region src/commands/diff/index.ts
|
|
6643
|
+
// src/commands/diff/index.ts
|
|
6735
6644
|
const diff = new Command("diff").description("check for updates against the registry.").argument("[component]", "component to check.").option("--cwd <path>", "current working directory.", cwd).option("-c, --config <path>", "path to the config file.", CONFIG_FILE_NAME).option("-s, --sequential", "run tasks sequentially.", false).option("-d, --detail", "show detailed changes.", false).option("-y, --yes", "skip all confirmation prompts.", false).option("-u, --update", "update files when there are file diff.").option("--no-update", "do not update files when there are file diff.").option("-i, --install", "install dependencies when updating files.").option("--no-install", "do not install dependencies when updating files.").option("-t, --tag <name>", "tag for the registries (e.g. dev, next).").action(async function(targetName, { config: configPath, cwd, detail, install, sequential, tag, update, yes }) {
|
|
6736
6645
|
const spinner = ora();
|
|
6737
6646
|
try {
|
|
@@ -6829,8 +6738,7 @@ const diff = new Command("diff").description("check for updates against the regi
|
|
|
6829
6738
|
else spinner.fail("An unknown error occurred");
|
|
6830
6739
|
}
|
|
6831
6740
|
});
|
|
6832
|
-
|
|
6833
|
-
//#region src/commands/init/index.ts
|
|
6741
|
+
// src/commands/init/index.ts
|
|
6834
6742
|
const init = new Command("init").description("initialize your project and install dependencies.").option("--cwd <path>", "current working directory.", cwd).option("-c, --config <path>", "path to the config file.", CONFIG_FILE_NAME).option("-o, --overwrite", "overwrite existing files.", false).option("-t, --tag <name>", "tag for the registries (e.g. dev, next).").option("-j, --jsx", "use jsx instead of tsx.", false).option("-y, --yes", "skip all confirmation prompts.", false).option("-m, --monorepo", "enable monorepo mode.").option("--no-monorepo", "disable monorepo mode.").option("-p, --package-name <name>", "package name.").option("-s, --src", "use `src/` directory when choice is monorepo.").option("-i, --install", "install dependencies when choice is monorepo.").option("--no-install", "do not install dependencies when choice is monorepo.").option("-f, --format", "use Prettier.").option("--no-format", "do not use Prettier.").option("-l, --lint", "use ESLint.").option("--no-lint", "do not use ESLint.").option("--outdir <path>", "output directory path.").action(async function({ src, config: configPath, cwd, format, install, jsx, lint, monorepo, outdir = "", overwrite, packageName = "", tag, yes }) {
|
|
6835
6743
|
const spinner = ora();
|
|
6836
6744
|
try {
|
|
@@ -7069,8 +6977,7 @@ const init = new Command("init").description("initialize your project and instal
|
|
|
7069
6977
|
else spinner.fail("An unknown error occurred");
|
|
7070
6978
|
}
|
|
7071
6979
|
});
|
|
7072
|
-
|
|
7073
|
-
//#region src/commands/theme/index.ts
|
|
6980
|
+
// src/commands/theme/index.ts
|
|
7074
6981
|
const theme = new Command("theme").description("generate theme to your project.").argument("[path]", "path to the theme directory.").option("--cwd <path>", "current working directory.", cwd).option("-c, --config <path>", "path to the config file.", CONFIG_FILE_NAME).option("-o, --overwrite", "overwrite existing directory.", false).option("-j, --js", "use js instead of ts.").option("-y, --yes", "skip all confirmation prompts.", false).option("-p, --package-name <name>", "package name (for monorepo).").option("-s, --src", "use src/ directory.").option("--no-src", "do not use src/ directory.").option("-i, --install", "install dependencies when choice is monorepo.").option("--no-install", "do not install dependencies when choice is monorepo.").option("-f, --format", "format the output files.").option("--no-format", "do not format the output files.").option("-l, --lint", "lint the output files.").option("--no-lint", "do not lint the output files.").option("-t, --tag <name>", "tag for the registries (e.g. dev, next).").action(async function(themePath, { src, config: configPath, cwd, format, install, js, lint, overwrite, packageName, tag, yes }) {
|
|
7075
6982
|
const spinner = ora();
|
|
7076
6983
|
try {
|
|
@@ -7218,8 +7125,7 @@ const theme = new Command("theme").description("generate theme to your project."
|
|
|
7218
7125
|
else spinner.fail("An unknown error occurred");
|
|
7219
7126
|
}
|
|
7220
7127
|
});
|
|
7221
|
-
|
|
7222
|
-
//#region src/commands/tokens/config.ts
|
|
7128
|
+
// src/commands/tokens/config.ts
|
|
7223
7129
|
const config = [
|
|
7224
7130
|
{ key: "borders" },
|
|
7225
7131
|
{ key: "breakpoints" },
|
|
@@ -7255,8 +7161,7 @@ const config = [
|
|
|
7255
7161
|
maxDepth: 1
|
|
7256
7162
|
}
|
|
7257
7163
|
];
|
|
7258
|
-
|
|
7259
|
-
//#region src/commands/tokens/index.ts
|
|
7164
|
+
// src/commands/tokens/index.ts
|
|
7260
7165
|
const TONES = [
|
|
7261
7166
|
50,
|
|
7262
7167
|
100,
|
|
@@ -7450,8 +7355,7 @@ const tokens = new Command("tokens").description("generate theme typings.").argu
|
|
|
7450
7355
|
else spinner.fail("An unknown error occurred");
|
|
7451
7356
|
}
|
|
7452
7357
|
});
|
|
7453
|
-
|
|
7454
|
-
//#region src/commands/update/index.ts
|
|
7358
|
+
// src/commands/update/index.ts
|
|
7455
7359
|
const update = new Command("update").description("update components in your project.").argument("[components...]", "components to update.").option("--cwd <path>", "current working directory.", cwd).option("-c, --config <path>", "path to the config file.", CONFIG_FILE_NAME).option("-s, --sequential", "run tasks sequentially.", false).option("-F, --force", "force update, overwriting local changes.", false).option("-y, --yes", "skip all confirmation prompts.", false).option("-i, --install", "install dependencies.").option("--no-install", "do not install dependencies.").option("-f, --format", "format the output files.").option("--no-format", "do not format the output files.").option("-l, --lint", "lint the output files.").option("--no-lint", "do not lint the output files.").option("-t, --tag <name>", "tag for the registries (e.g. dev, next).").action(async function(targetNames, { config: configPath, cwd, force, format, install, lint, sequential, tag, yes }) {
|
|
7456
7360
|
const spinner = ora();
|
|
7457
7361
|
try {
|
|
@@ -7527,8 +7431,7 @@ const update = new Command("update").description("update components in your proj
|
|
|
7527
7431
|
else spinner.fail("An unknown error occurred");
|
|
7528
7432
|
}
|
|
7529
7433
|
});
|
|
7530
|
-
|
|
7531
|
-
//#region src/index.ts
|
|
7434
|
+
// src/index.ts
|
|
7532
7435
|
function run() {
|
|
7533
7436
|
checkNode("22");
|
|
7534
7437
|
updateNotifier({
|
|
@@ -7548,5 +7451,4 @@ function run() {
|
|
|
7548
7451
|
program.parse();
|
|
7549
7452
|
}
|
|
7550
7453
|
run();
|
|
7551
|
-
//#endregion
|
|
7552
7454
|
export { run };
|