@yamada-ui/cli 1.2.2 → 1.2.3-dev-20241209071600
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/command/index.js +19 -19
- package/dist/command/theme/index.js +17 -17
- package/dist/command/tokens/create-theme-typings.js +2 -2
- package/dist/command/tokens/index.js +2 -2
- package/dist/index.js +28 -28
- package/dist/utils/cli.js +11 -11
- package/dist/utils/index.js +295 -278
- package/package.json +4 -4
- package/dist/utils/string.js +0 -33
package/dist/utils/index.js
CHANGED
|
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.3.
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@swc+core@1.9.3_jiti@2.4.1_tsx@4.19.2_typescript@5.7.2/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var getImportMetaUrl, importMetaUrl;
|
|
38
38
|
var init_cjs_shims = __esm({
|
|
39
|
-
"../../node_modules/.pnpm/tsup@8.3.
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@swc+core@1.9.3_jiti@2.4.1_tsx@4.19.2_typescript@5.7.2/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
40
|
"use strict";
|
|
41
41
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
42
42
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -71,54 +71,54 @@ var require_polyfills = __commonJS({
|
|
|
71
71
|
}
|
|
72
72
|
var chdir;
|
|
73
73
|
module2.exports = patch;
|
|
74
|
-
function patch(
|
|
74
|
+
function patch(fs6) {
|
|
75
75
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
76
|
-
patchLchmod(
|
|
77
|
-
}
|
|
78
|
-
if (!
|
|
79
|
-
patchLutimes(
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (
|
|
100
|
-
|
|
76
|
+
patchLchmod(fs6);
|
|
77
|
+
}
|
|
78
|
+
if (!fs6.lutimes) {
|
|
79
|
+
patchLutimes(fs6);
|
|
80
|
+
}
|
|
81
|
+
fs6.chown = chownFix(fs6.chown);
|
|
82
|
+
fs6.fchown = chownFix(fs6.fchown);
|
|
83
|
+
fs6.lchown = chownFix(fs6.lchown);
|
|
84
|
+
fs6.chmod = chmodFix(fs6.chmod);
|
|
85
|
+
fs6.fchmod = chmodFix(fs6.fchmod);
|
|
86
|
+
fs6.lchmod = chmodFix(fs6.lchmod);
|
|
87
|
+
fs6.chownSync = chownFixSync(fs6.chownSync);
|
|
88
|
+
fs6.fchownSync = chownFixSync(fs6.fchownSync);
|
|
89
|
+
fs6.lchownSync = chownFixSync(fs6.lchownSync);
|
|
90
|
+
fs6.chmodSync = chmodFixSync(fs6.chmodSync);
|
|
91
|
+
fs6.fchmodSync = chmodFixSync(fs6.fchmodSync);
|
|
92
|
+
fs6.lchmodSync = chmodFixSync(fs6.lchmodSync);
|
|
93
|
+
fs6.stat = statFix(fs6.stat);
|
|
94
|
+
fs6.fstat = statFix(fs6.fstat);
|
|
95
|
+
fs6.lstat = statFix(fs6.lstat);
|
|
96
|
+
fs6.statSync = statFixSync(fs6.statSync);
|
|
97
|
+
fs6.fstatSync = statFixSync(fs6.fstatSync);
|
|
98
|
+
fs6.lstatSync = statFixSync(fs6.lstatSync);
|
|
99
|
+
if (fs6.chmod && !fs6.lchmod) {
|
|
100
|
+
fs6.lchmod = function(path10, mode, cb) {
|
|
101
101
|
if (cb) process.nextTick(cb);
|
|
102
102
|
};
|
|
103
|
-
|
|
103
|
+
fs6.lchmodSync = function() {
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
if (
|
|
107
|
-
|
|
106
|
+
if (fs6.chown && !fs6.lchown) {
|
|
107
|
+
fs6.lchown = function(path10, uid, gid, cb) {
|
|
108
108
|
if (cb) process.nextTick(cb);
|
|
109
109
|
};
|
|
110
|
-
|
|
110
|
+
fs6.lchownSync = function() {
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
if (platform === "win32") {
|
|
114
|
-
|
|
114
|
+
fs6.rename = typeof fs6.rename !== "function" ? fs6.rename : function(fs$rename) {
|
|
115
115
|
function rename(from, to, cb) {
|
|
116
116
|
var start = Date.now();
|
|
117
117
|
var backoff = 0;
|
|
118
118
|
fs$rename(from, to, function CB(er) {
|
|
119
119
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
120
120
|
setTimeout(function() {
|
|
121
|
-
|
|
121
|
+
fs6.stat(to, function(stater, st) {
|
|
122
122
|
if (stater && stater.code === "ENOENT")
|
|
123
123
|
fs$rename(from, to, CB);
|
|
124
124
|
else
|
|
@@ -134,9 +134,9 @@ var require_polyfills = __commonJS({
|
|
|
134
134
|
}
|
|
135
135
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
136
136
|
return rename;
|
|
137
|
-
}(
|
|
137
|
+
}(fs6.rename);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
fs6.read = typeof fs6.read !== "function" ? fs6.read : function(fs$read) {
|
|
140
140
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
141
141
|
var callback;
|
|
142
142
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -144,22 +144,22 @@ var require_polyfills = __commonJS({
|
|
|
144
144
|
callback = function(er, _, __) {
|
|
145
145
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
146
146
|
eagCounter++;
|
|
147
|
-
return fs$read.call(
|
|
147
|
+
return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
|
|
148
148
|
}
|
|
149
149
|
callback_.apply(this, arguments);
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
return fs$read.call(
|
|
152
|
+
return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
|
|
153
153
|
}
|
|
154
154
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
155
155
|
return read;
|
|
156
|
-
}(
|
|
157
|
-
|
|
156
|
+
}(fs6.read);
|
|
157
|
+
fs6.readSync = typeof fs6.readSync !== "function" ? fs6.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
158
158
|
return function(fd, buffer, offset, length, position) {
|
|
159
159
|
var eagCounter = 0;
|
|
160
160
|
while (true) {
|
|
161
161
|
try {
|
|
162
|
-
return fs$readSync.call(
|
|
162
|
+
return fs$readSync.call(fs6, fd, buffer, offset, length, position);
|
|
163
163
|
} catch (er) {
|
|
164
164
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
165
165
|
eagCounter++;
|
|
@@ -169,10 +169,10 @@ var require_polyfills = __commonJS({
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
|
-
}(
|
|
173
|
-
function patchLchmod(
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
}(fs6.readSync);
|
|
173
|
+
function patchLchmod(fs7) {
|
|
174
|
+
fs7.lchmod = function(path10, mode, callback) {
|
|
175
|
+
fs7.open(
|
|
176
176
|
path10,
|
|
177
177
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
178
178
|
mode,
|
|
@@ -181,80 +181,80 @@ var require_polyfills = __commonJS({
|
|
|
181
181
|
if (callback) callback(err);
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
fs7.fchmod(fd, mode, function(err2) {
|
|
185
|
+
fs7.close(fd, function(err22) {
|
|
186
186
|
if (callback) callback(err2 || err22);
|
|
187
187
|
});
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
);
|
|
191
191
|
};
|
|
192
|
-
|
|
193
|
-
var fd =
|
|
192
|
+
fs7.lchmodSync = function(path10, mode) {
|
|
193
|
+
var fd = fs7.openSync(path10, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
194
194
|
var threw = true;
|
|
195
195
|
var ret;
|
|
196
196
|
try {
|
|
197
|
-
ret =
|
|
197
|
+
ret = fs7.fchmodSync(fd, mode);
|
|
198
198
|
threw = false;
|
|
199
199
|
} finally {
|
|
200
200
|
if (threw) {
|
|
201
201
|
try {
|
|
202
|
-
|
|
202
|
+
fs7.closeSync(fd);
|
|
203
203
|
} catch (er) {
|
|
204
204
|
}
|
|
205
205
|
} else {
|
|
206
|
-
|
|
206
|
+
fs7.closeSync(fd);
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
return ret;
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
function patchLutimes(
|
|
213
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
function patchLutimes(fs7) {
|
|
213
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs7.futimes) {
|
|
214
|
+
fs7.lutimes = function(path10, at, mt, cb) {
|
|
215
|
+
fs7.open(path10, constants.O_SYMLINK, function(er, fd) {
|
|
216
216
|
if (er) {
|
|
217
217
|
if (cb) cb(er);
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
fs7.futimes(fd, at, mt, function(er2) {
|
|
221
|
+
fs7.close(fd, function(er22) {
|
|
222
222
|
if (cb) cb(er2 || er22);
|
|
223
223
|
});
|
|
224
224
|
});
|
|
225
225
|
});
|
|
226
226
|
};
|
|
227
|
-
|
|
228
|
-
var fd =
|
|
227
|
+
fs7.lutimesSync = function(path10, at, mt) {
|
|
228
|
+
var fd = fs7.openSync(path10, constants.O_SYMLINK);
|
|
229
229
|
var ret;
|
|
230
230
|
var threw = true;
|
|
231
231
|
try {
|
|
232
|
-
ret =
|
|
232
|
+
ret = fs7.futimesSync(fd, at, mt);
|
|
233
233
|
threw = false;
|
|
234
234
|
} finally {
|
|
235
235
|
if (threw) {
|
|
236
236
|
try {
|
|
237
|
-
|
|
237
|
+
fs7.closeSync(fd);
|
|
238
238
|
} catch (er) {
|
|
239
239
|
}
|
|
240
240
|
} else {
|
|
241
|
-
|
|
241
|
+
fs7.closeSync(fd);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
return ret;
|
|
245
245
|
};
|
|
246
|
-
} else if (
|
|
247
|
-
|
|
246
|
+
} else if (fs7.futimes) {
|
|
247
|
+
fs7.lutimes = function(_a, _b, _c, cb) {
|
|
248
248
|
if (cb) process.nextTick(cb);
|
|
249
249
|
};
|
|
250
|
-
|
|
250
|
+
fs7.lutimesSync = function() {
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
function chmodFix(orig) {
|
|
255
255
|
if (!orig) return orig;
|
|
256
256
|
return function(target, mode, cb) {
|
|
257
|
-
return orig.call(
|
|
257
|
+
return orig.call(fs6, target, mode, function(er) {
|
|
258
258
|
if (chownErOk(er)) er = null;
|
|
259
259
|
if (cb) cb.apply(this, arguments);
|
|
260
260
|
});
|
|
@@ -264,7 +264,7 @@ var require_polyfills = __commonJS({
|
|
|
264
264
|
if (!orig) return orig;
|
|
265
265
|
return function(target, mode) {
|
|
266
266
|
try {
|
|
267
|
-
return orig.call(
|
|
267
|
+
return orig.call(fs6, target, mode);
|
|
268
268
|
} catch (er) {
|
|
269
269
|
if (!chownErOk(er)) throw er;
|
|
270
270
|
}
|
|
@@ -273,7 +273,7 @@ var require_polyfills = __commonJS({
|
|
|
273
273
|
function chownFix(orig) {
|
|
274
274
|
if (!orig) return orig;
|
|
275
275
|
return function(target, uid, gid, cb) {
|
|
276
|
-
return orig.call(
|
|
276
|
+
return orig.call(fs6, target, uid, gid, function(er) {
|
|
277
277
|
if (chownErOk(er)) er = null;
|
|
278
278
|
if (cb) cb.apply(this, arguments);
|
|
279
279
|
});
|
|
@@ -283,7 +283,7 @@ var require_polyfills = __commonJS({
|
|
|
283
283
|
if (!orig) return orig;
|
|
284
284
|
return function(target, uid, gid) {
|
|
285
285
|
try {
|
|
286
|
-
return orig.call(
|
|
286
|
+
return orig.call(fs6, target, uid, gid);
|
|
287
287
|
} catch (er) {
|
|
288
288
|
if (!chownErOk(er)) throw er;
|
|
289
289
|
}
|
|
@@ -303,13 +303,13 @@ var require_polyfills = __commonJS({
|
|
|
303
303
|
}
|
|
304
304
|
if (cb) cb.apply(this, arguments);
|
|
305
305
|
}
|
|
306
|
-
return options ? orig.call(
|
|
306
|
+
return options ? orig.call(fs6, target, options, callback) : orig.call(fs6, target, callback);
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
309
|
function statFixSync(orig) {
|
|
310
310
|
if (!orig) return orig;
|
|
311
311
|
return function(target, options) {
|
|
312
|
-
var stats = options ? orig.call(
|
|
312
|
+
var stats = options ? orig.call(fs6, target, options) : orig.call(fs6, target);
|
|
313
313
|
if (stats) {
|
|
314
314
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
315
315
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -340,7 +340,7 @@ var require_legacy_streams = __commonJS({
|
|
|
340
340
|
init_cjs_shims();
|
|
341
341
|
var Stream = require("stream").Stream;
|
|
342
342
|
module2.exports = legacy;
|
|
343
|
-
function legacy(
|
|
343
|
+
function legacy(fs6) {
|
|
344
344
|
return {
|
|
345
345
|
ReadStream,
|
|
346
346
|
WriteStream
|
|
@@ -383,7 +383,7 @@ var require_legacy_streams = __commonJS({
|
|
|
383
383
|
});
|
|
384
384
|
return;
|
|
385
385
|
}
|
|
386
|
-
|
|
386
|
+
fs6.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
387
387
|
if (err) {
|
|
388
388
|
self.emit("error", err);
|
|
389
389
|
self.readable = false;
|
|
@@ -422,7 +422,7 @@ var require_legacy_streams = __commonJS({
|
|
|
422
422
|
this.busy = false;
|
|
423
423
|
this._queue = [];
|
|
424
424
|
if (this.fd === null) {
|
|
425
|
-
this._open =
|
|
425
|
+
this._open = fs6.open;
|
|
426
426
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
427
427
|
this.flush();
|
|
428
428
|
}
|
|
@@ -460,7 +460,7 @@ var require_graceful_fs = __commonJS({
|
|
|
460
460
|
"../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
461
461
|
"use strict";
|
|
462
462
|
init_cjs_shims();
|
|
463
|
-
var
|
|
463
|
+
var fs6 = require("fs");
|
|
464
464
|
var polyfills = require_polyfills();
|
|
465
465
|
var legacy = require_legacy_streams();
|
|
466
466
|
var clone = require_clone();
|
|
@@ -492,12 +492,12 @@ var require_graceful_fs = __commonJS({
|
|
|
492
492
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
493
493
|
console.error(m);
|
|
494
494
|
};
|
|
495
|
-
if (!
|
|
495
|
+
if (!fs6[gracefulQueue]) {
|
|
496
496
|
queue = global[gracefulQueue] || [];
|
|
497
|
-
publishQueue(
|
|
498
|
-
|
|
497
|
+
publishQueue(fs6, queue);
|
|
498
|
+
fs6.close = function(fs$close) {
|
|
499
499
|
function close(fd, cb) {
|
|
500
|
-
return fs$close.call(
|
|
500
|
+
return fs$close.call(fs6, fd, function(err) {
|
|
501
501
|
if (!err) {
|
|
502
502
|
resetQueue();
|
|
503
503
|
}
|
|
@@ -509,40 +509,40 @@ var require_graceful_fs = __commonJS({
|
|
|
509
509
|
value: fs$close
|
|
510
510
|
});
|
|
511
511
|
return close;
|
|
512
|
-
}(
|
|
513
|
-
|
|
512
|
+
}(fs6.close);
|
|
513
|
+
fs6.closeSync = function(fs$closeSync) {
|
|
514
514
|
function closeSync(fd) {
|
|
515
|
-
fs$closeSync.apply(
|
|
515
|
+
fs$closeSync.apply(fs6, arguments);
|
|
516
516
|
resetQueue();
|
|
517
517
|
}
|
|
518
518
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
519
519
|
value: fs$closeSync
|
|
520
520
|
});
|
|
521
521
|
return closeSync;
|
|
522
|
-
}(
|
|
522
|
+
}(fs6.closeSync);
|
|
523
523
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
524
524
|
process.on("exit", function() {
|
|
525
|
-
debug(
|
|
526
|
-
require("assert").equal(
|
|
525
|
+
debug(fs6[gracefulQueue]);
|
|
526
|
+
require("assert").equal(fs6[gracefulQueue].length, 0);
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
var queue;
|
|
531
531
|
if (!global[gracefulQueue]) {
|
|
532
|
-
publishQueue(global,
|
|
533
|
-
}
|
|
534
|
-
module2.exports = patch(clone(
|
|
535
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
536
|
-
module2.exports = patch(
|
|
537
|
-
|
|
538
|
-
}
|
|
539
|
-
function patch(
|
|
540
|
-
polyfills(
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
var fs$readFile =
|
|
545
|
-
|
|
532
|
+
publishQueue(global, fs6[gracefulQueue]);
|
|
533
|
+
}
|
|
534
|
+
module2.exports = patch(clone(fs6));
|
|
535
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs6.__patched) {
|
|
536
|
+
module2.exports = patch(fs6);
|
|
537
|
+
fs6.__patched = true;
|
|
538
|
+
}
|
|
539
|
+
function patch(fs7) {
|
|
540
|
+
polyfills(fs7);
|
|
541
|
+
fs7.gracefulify = patch;
|
|
542
|
+
fs7.createReadStream = createReadStream;
|
|
543
|
+
fs7.createWriteStream = createWriteStream;
|
|
544
|
+
var fs$readFile = fs7.readFile;
|
|
545
|
+
fs7.readFile = readFile;
|
|
546
546
|
function readFile(path10, options, cb) {
|
|
547
547
|
if (typeof options === "function")
|
|
548
548
|
cb = options, options = null;
|
|
@@ -558,8 +558,8 @@ var require_graceful_fs = __commonJS({
|
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
var fs$writeFile =
|
|
562
|
-
|
|
561
|
+
var fs$writeFile = fs7.writeFile;
|
|
562
|
+
fs7.writeFile = writeFile;
|
|
563
563
|
function writeFile(path10, data, options, cb) {
|
|
564
564
|
if (typeof options === "function")
|
|
565
565
|
cb = options, options = null;
|
|
@@ -575,9 +575,9 @@ var require_graceful_fs = __commonJS({
|
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
var fs$appendFile =
|
|
578
|
+
var fs$appendFile = fs7.appendFile;
|
|
579
579
|
if (fs$appendFile)
|
|
580
|
-
|
|
580
|
+
fs7.appendFile = appendFile;
|
|
581
581
|
function appendFile(path10, data, options, cb) {
|
|
582
582
|
if (typeof options === "function")
|
|
583
583
|
cb = options, options = null;
|
|
@@ -593,9 +593,9 @@ var require_graceful_fs = __commonJS({
|
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
var fs$copyFile =
|
|
596
|
+
var fs$copyFile = fs7.copyFile;
|
|
597
597
|
if (fs$copyFile)
|
|
598
|
-
|
|
598
|
+
fs7.copyFile = copyFile;
|
|
599
599
|
function copyFile(src, dest, flags, cb) {
|
|
600
600
|
if (typeof flags === "function") {
|
|
601
601
|
cb = flags;
|
|
@@ -613,8 +613,8 @@ var require_graceful_fs = __commonJS({
|
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
var fs$readdir =
|
|
617
|
-
|
|
616
|
+
var fs$readdir = fs7.readdir;
|
|
617
|
+
fs7.readdir = readdir;
|
|
618
618
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
619
619
|
function readdir(path10, options, cb) {
|
|
620
620
|
if (typeof options === "function")
|
|
@@ -655,21 +655,21 @@ var require_graceful_fs = __commonJS({
|
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
658
|
-
var legStreams = legacy(
|
|
658
|
+
var legStreams = legacy(fs7);
|
|
659
659
|
ReadStream = legStreams.ReadStream;
|
|
660
660
|
WriteStream = legStreams.WriteStream;
|
|
661
661
|
}
|
|
662
|
-
var fs$ReadStream =
|
|
662
|
+
var fs$ReadStream = fs7.ReadStream;
|
|
663
663
|
if (fs$ReadStream) {
|
|
664
664
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
665
665
|
ReadStream.prototype.open = ReadStream$open;
|
|
666
666
|
}
|
|
667
|
-
var fs$WriteStream =
|
|
667
|
+
var fs$WriteStream = fs7.WriteStream;
|
|
668
668
|
if (fs$WriteStream) {
|
|
669
669
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
670
670
|
WriteStream.prototype.open = WriteStream$open;
|
|
671
671
|
}
|
|
672
|
-
Object.defineProperty(
|
|
672
|
+
Object.defineProperty(fs7, "ReadStream", {
|
|
673
673
|
get: function() {
|
|
674
674
|
return ReadStream;
|
|
675
675
|
},
|
|
@@ -679,7 +679,7 @@ var require_graceful_fs = __commonJS({
|
|
|
679
679
|
enumerable: true,
|
|
680
680
|
configurable: true
|
|
681
681
|
});
|
|
682
|
-
Object.defineProperty(
|
|
682
|
+
Object.defineProperty(fs7, "WriteStream", {
|
|
683
683
|
get: function() {
|
|
684
684
|
return WriteStream;
|
|
685
685
|
},
|
|
@@ -690,7 +690,7 @@ var require_graceful_fs = __commonJS({
|
|
|
690
690
|
configurable: true
|
|
691
691
|
});
|
|
692
692
|
var FileReadStream = ReadStream;
|
|
693
|
-
Object.defineProperty(
|
|
693
|
+
Object.defineProperty(fs7, "FileReadStream", {
|
|
694
694
|
get: function() {
|
|
695
695
|
return FileReadStream;
|
|
696
696
|
},
|
|
@@ -701,7 +701,7 @@ var require_graceful_fs = __commonJS({
|
|
|
701
701
|
configurable: true
|
|
702
702
|
});
|
|
703
703
|
var FileWriteStream = WriteStream;
|
|
704
|
-
Object.defineProperty(
|
|
704
|
+
Object.defineProperty(fs7, "FileWriteStream", {
|
|
705
705
|
get: function() {
|
|
706
706
|
return FileWriteStream;
|
|
707
707
|
},
|
|
@@ -750,13 +750,13 @@ var require_graceful_fs = __commonJS({
|
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
752
|
function createReadStream(path10, options) {
|
|
753
|
-
return new
|
|
753
|
+
return new fs7.ReadStream(path10, options);
|
|
754
754
|
}
|
|
755
755
|
function createWriteStream(path10, options) {
|
|
756
|
-
return new
|
|
756
|
+
return new fs7.WriteStream(path10, options);
|
|
757
757
|
}
|
|
758
|
-
var fs$open =
|
|
759
|
-
|
|
758
|
+
var fs$open = fs7.open;
|
|
759
|
+
fs7.open = open;
|
|
760
760
|
function open(path10, flags, mode, cb) {
|
|
761
761
|
if (typeof mode === "function")
|
|
762
762
|
cb = mode, mode = null;
|
|
@@ -772,20 +772,20 @@ var require_graceful_fs = __commonJS({
|
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
return
|
|
775
|
+
return fs7;
|
|
776
776
|
}
|
|
777
777
|
function enqueue(elem) {
|
|
778
778
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
779
|
-
|
|
779
|
+
fs6[gracefulQueue].push(elem);
|
|
780
780
|
retry();
|
|
781
781
|
}
|
|
782
782
|
var retryTimer;
|
|
783
783
|
function resetQueue() {
|
|
784
784
|
var now = Date.now();
|
|
785
|
-
for (var i = 0; i <
|
|
786
|
-
if (
|
|
787
|
-
|
|
788
|
-
|
|
785
|
+
for (var i = 0; i < fs6[gracefulQueue].length; ++i) {
|
|
786
|
+
if (fs6[gracefulQueue][i].length > 2) {
|
|
787
|
+
fs6[gracefulQueue][i][3] = now;
|
|
788
|
+
fs6[gracefulQueue][i][4] = now;
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
retry();
|
|
@@ -793,9 +793,9 @@ var require_graceful_fs = __commonJS({
|
|
|
793
793
|
function retry() {
|
|
794
794
|
clearTimeout(retryTimer);
|
|
795
795
|
retryTimer = void 0;
|
|
796
|
-
if (
|
|
796
|
+
if (fs6[gracefulQueue].length === 0)
|
|
797
797
|
return;
|
|
798
|
-
var elem =
|
|
798
|
+
var elem = fs6[gracefulQueue].shift();
|
|
799
799
|
var fn = elem[0];
|
|
800
800
|
var args = elem[1];
|
|
801
801
|
var err = elem[2];
|
|
@@ -817,7 +817,7 @@ var require_graceful_fs = __commonJS({
|
|
|
817
817
|
debug("RETRY", fn.name, args);
|
|
818
818
|
fn.apply(null, args.concat([startTime]));
|
|
819
819
|
} else {
|
|
820
|
-
|
|
820
|
+
fs6[gracefulQueue].push(elem);
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
823
|
if (retryTimer === void 0) {
|
|
@@ -1577,7 +1577,7 @@ var require_utils = __commonJS({
|
|
|
1577
1577
|
"../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js"(exports2) {
|
|
1578
1578
|
"use strict";
|
|
1579
1579
|
init_cjs_shims();
|
|
1580
|
-
var
|
|
1580
|
+
var fs6 = require("fs");
|
|
1581
1581
|
var ini2 = require_ini();
|
|
1582
1582
|
var path10 = require("path");
|
|
1583
1583
|
var stripJsonComments = require_strip_json_comments();
|
|
@@ -1596,7 +1596,7 @@ var require_utils = __commonJS({
|
|
|
1596
1596
|
var file2 = path10.join.apply(null, args);
|
|
1597
1597
|
var content;
|
|
1598
1598
|
try {
|
|
1599
|
-
return
|
|
1599
|
+
return fs6.readFileSync(file2, "utf-8");
|
|
1600
1600
|
} catch (err) {
|
|
1601
1601
|
return;
|
|
1602
1602
|
}
|
|
@@ -1635,7 +1635,7 @@ var require_utils = __commonJS({
|
|
|
1635
1635
|
function find2(start, rel2) {
|
|
1636
1636
|
var file2 = path10.join(start, rel2);
|
|
1637
1637
|
try {
|
|
1638
|
-
|
|
1638
|
+
fs6.statSync(file2);
|
|
1639
1639
|
return file2;
|
|
1640
1640
|
} catch (err) {
|
|
1641
1641
|
if (path10.dirname(start) !== start)
|
|
@@ -2034,54 +2034,54 @@ var require_polyfills2 = __commonJS({
|
|
|
2034
2034
|
}
|
|
2035
2035
|
var chdir;
|
|
2036
2036
|
module2.exports = patch;
|
|
2037
|
-
function patch(
|
|
2037
|
+
function patch(fs6) {
|
|
2038
2038
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
2039
|
-
patchLchmod(
|
|
2040
|
-
}
|
|
2041
|
-
if (!
|
|
2042
|
-
patchLutimes(
|
|
2043
|
-
}
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
if (
|
|
2063
|
-
|
|
2039
|
+
patchLchmod(fs6);
|
|
2040
|
+
}
|
|
2041
|
+
if (!fs6.lutimes) {
|
|
2042
|
+
patchLutimes(fs6);
|
|
2043
|
+
}
|
|
2044
|
+
fs6.chown = chownFix(fs6.chown);
|
|
2045
|
+
fs6.fchown = chownFix(fs6.fchown);
|
|
2046
|
+
fs6.lchown = chownFix(fs6.lchown);
|
|
2047
|
+
fs6.chmod = chmodFix(fs6.chmod);
|
|
2048
|
+
fs6.fchmod = chmodFix(fs6.fchmod);
|
|
2049
|
+
fs6.lchmod = chmodFix(fs6.lchmod);
|
|
2050
|
+
fs6.chownSync = chownFixSync(fs6.chownSync);
|
|
2051
|
+
fs6.fchownSync = chownFixSync(fs6.fchownSync);
|
|
2052
|
+
fs6.lchownSync = chownFixSync(fs6.lchownSync);
|
|
2053
|
+
fs6.chmodSync = chmodFixSync(fs6.chmodSync);
|
|
2054
|
+
fs6.fchmodSync = chmodFixSync(fs6.fchmodSync);
|
|
2055
|
+
fs6.lchmodSync = chmodFixSync(fs6.lchmodSync);
|
|
2056
|
+
fs6.stat = statFix(fs6.stat);
|
|
2057
|
+
fs6.fstat = statFix(fs6.fstat);
|
|
2058
|
+
fs6.lstat = statFix(fs6.lstat);
|
|
2059
|
+
fs6.statSync = statFixSync(fs6.statSync);
|
|
2060
|
+
fs6.fstatSync = statFixSync(fs6.fstatSync);
|
|
2061
|
+
fs6.lstatSync = statFixSync(fs6.lstatSync);
|
|
2062
|
+
if (fs6.chmod && !fs6.lchmod) {
|
|
2063
|
+
fs6.lchmod = function(path10, mode, cb) {
|
|
2064
2064
|
if (cb) process.nextTick(cb);
|
|
2065
2065
|
};
|
|
2066
|
-
|
|
2066
|
+
fs6.lchmodSync = function() {
|
|
2067
2067
|
};
|
|
2068
2068
|
}
|
|
2069
|
-
if (
|
|
2070
|
-
|
|
2069
|
+
if (fs6.chown && !fs6.lchown) {
|
|
2070
|
+
fs6.lchown = function(path10, uid, gid, cb) {
|
|
2071
2071
|
if (cb) process.nextTick(cb);
|
|
2072
2072
|
};
|
|
2073
|
-
|
|
2073
|
+
fs6.lchownSync = function() {
|
|
2074
2074
|
};
|
|
2075
2075
|
}
|
|
2076
2076
|
if (platform === "win32") {
|
|
2077
|
-
|
|
2077
|
+
fs6.rename = typeof fs6.rename !== "function" ? fs6.rename : function(fs$rename) {
|
|
2078
2078
|
function rename(from, to, cb) {
|
|
2079
2079
|
var start = Date.now();
|
|
2080
2080
|
var backoff = 0;
|
|
2081
2081
|
fs$rename(from, to, function CB(er) {
|
|
2082
2082
|
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) {
|
|
2083
2083
|
setTimeout(function() {
|
|
2084
|
-
|
|
2084
|
+
fs6.stat(to, function(stater, st) {
|
|
2085
2085
|
if (stater && stater.code === "ENOENT")
|
|
2086
2086
|
fs$rename(from, to, CB);
|
|
2087
2087
|
else
|
|
@@ -2097,9 +2097,9 @@ var require_polyfills2 = __commonJS({
|
|
|
2097
2097
|
}
|
|
2098
2098
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
2099
2099
|
return rename;
|
|
2100
|
-
}(
|
|
2100
|
+
}(fs6.rename);
|
|
2101
2101
|
}
|
|
2102
|
-
|
|
2102
|
+
fs6.read = typeof fs6.read !== "function" ? fs6.read : function(fs$read) {
|
|
2103
2103
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
2104
2104
|
var callback;
|
|
2105
2105
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -2107,22 +2107,22 @@ var require_polyfills2 = __commonJS({
|
|
|
2107
2107
|
callback = function(er, _, __) {
|
|
2108
2108
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
2109
2109
|
eagCounter++;
|
|
2110
|
-
return fs$read.call(
|
|
2110
|
+
return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
|
|
2111
2111
|
}
|
|
2112
2112
|
callback_.apply(this, arguments);
|
|
2113
2113
|
};
|
|
2114
2114
|
}
|
|
2115
|
-
return fs$read.call(
|
|
2115
|
+
return fs$read.call(fs6, fd, buffer, offset, length, position, callback);
|
|
2116
2116
|
}
|
|
2117
2117
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
2118
2118
|
return read;
|
|
2119
|
-
}(
|
|
2120
|
-
|
|
2119
|
+
}(fs6.read);
|
|
2120
|
+
fs6.readSync = typeof fs6.readSync !== "function" ? fs6.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
2121
2121
|
return function(fd, buffer, offset, length, position) {
|
|
2122
2122
|
var eagCounter = 0;
|
|
2123
2123
|
while (true) {
|
|
2124
2124
|
try {
|
|
2125
|
-
return fs$readSync.call(
|
|
2125
|
+
return fs$readSync.call(fs6, fd, buffer, offset, length, position);
|
|
2126
2126
|
} catch (er) {
|
|
2127
2127
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
2128
2128
|
eagCounter++;
|
|
@@ -2132,10 +2132,10 @@ var require_polyfills2 = __commonJS({
|
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
2134
|
};
|
|
2135
|
-
}(
|
|
2136
|
-
function patchLchmod(
|
|
2137
|
-
|
|
2138
|
-
|
|
2135
|
+
}(fs6.readSync);
|
|
2136
|
+
function patchLchmod(fs7) {
|
|
2137
|
+
fs7.lchmod = function(path10, mode, callback) {
|
|
2138
|
+
fs7.open(
|
|
2139
2139
|
path10,
|
|
2140
2140
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
2141
2141
|
mode,
|
|
@@ -2144,80 +2144,80 @@ var require_polyfills2 = __commonJS({
|
|
|
2144
2144
|
if (callback) callback(err);
|
|
2145
2145
|
return;
|
|
2146
2146
|
}
|
|
2147
|
-
|
|
2148
|
-
|
|
2147
|
+
fs7.fchmod(fd, mode, function(err2) {
|
|
2148
|
+
fs7.close(fd, function(err22) {
|
|
2149
2149
|
if (callback) callback(err2 || err22);
|
|
2150
2150
|
});
|
|
2151
2151
|
});
|
|
2152
2152
|
}
|
|
2153
2153
|
);
|
|
2154
2154
|
};
|
|
2155
|
-
|
|
2156
|
-
var fd =
|
|
2155
|
+
fs7.lchmodSync = function(path10, mode) {
|
|
2156
|
+
var fd = fs7.openSync(path10, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
2157
2157
|
var threw = true;
|
|
2158
2158
|
var ret;
|
|
2159
2159
|
try {
|
|
2160
|
-
ret =
|
|
2160
|
+
ret = fs7.fchmodSync(fd, mode);
|
|
2161
2161
|
threw = false;
|
|
2162
2162
|
} finally {
|
|
2163
2163
|
if (threw) {
|
|
2164
2164
|
try {
|
|
2165
|
-
|
|
2165
|
+
fs7.closeSync(fd);
|
|
2166
2166
|
} catch (er) {
|
|
2167
2167
|
}
|
|
2168
2168
|
} else {
|
|
2169
|
-
|
|
2169
|
+
fs7.closeSync(fd);
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
2172
|
return ret;
|
|
2173
2173
|
};
|
|
2174
2174
|
}
|
|
2175
|
-
function patchLutimes(
|
|
2176
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
2177
|
-
|
|
2178
|
-
|
|
2175
|
+
function patchLutimes(fs7) {
|
|
2176
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs7.futimes) {
|
|
2177
|
+
fs7.lutimes = function(path10, at, mt, cb) {
|
|
2178
|
+
fs7.open(path10, constants.O_SYMLINK, function(er, fd) {
|
|
2179
2179
|
if (er) {
|
|
2180
2180
|
if (cb) cb(er);
|
|
2181
2181
|
return;
|
|
2182
2182
|
}
|
|
2183
|
-
|
|
2184
|
-
|
|
2183
|
+
fs7.futimes(fd, at, mt, function(er2) {
|
|
2184
|
+
fs7.close(fd, function(er22) {
|
|
2185
2185
|
if (cb) cb(er2 || er22);
|
|
2186
2186
|
});
|
|
2187
2187
|
});
|
|
2188
2188
|
});
|
|
2189
2189
|
};
|
|
2190
|
-
|
|
2191
|
-
var fd =
|
|
2190
|
+
fs7.lutimesSync = function(path10, at, mt) {
|
|
2191
|
+
var fd = fs7.openSync(path10, constants.O_SYMLINK);
|
|
2192
2192
|
var ret;
|
|
2193
2193
|
var threw = true;
|
|
2194
2194
|
try {
|
|
2195
|
-
ret =
|
|
2195
|
+
ret = fs7.futimesSync(fd, at, mt);
|
|
2196
2196
|
threw = false;
|
|
2197
2197
|
} finally {
|
|
2198
2198
|
if (threw) {
|
|
2199
2199
|
try {
|
|
2200
|
-
|
|
2200
|
+
fs7.closeSync(fd);
|
|
2201
2201
|
} catch (er) {
|
|
2202
2202
|
}
|
|
2203
2203
|
} else {
|
|
2204
|
-
|
|
2204
|
+
fs7.closeSync(fd);
|
|
2205
2205
|
}
|
|
2206
2206
|
}
|
|
2207
2207
|
return ret;
|
|
2208
2208
|
};
|
|
2209
|
-
} else if (
|
|
2210
|
-
|
|
2209
|
+
} else if (fs7.futimes) {
|
|
2210
|
+
fs7.lutimes = function(_a, _b, _c, cb) {
|
|
2211
2211
|
if (cb) process.nextTick(cb);
|
|
2212
2212
|
};
|
|
2213
|
-
|
|
2213
|
+
fs7.lutimesSync = function() {
|
|
2214
2214
|
};
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
2217
2217
|
function chmodFix(orig) {
|
|
2218
2218
|
if (!orig) return orig;
|
|
2219
2219
|
return function(target, mode, cb) {
|
|
2220
|
-
return orig.call(
|
|
2220
|
+
return orig.call(fs6, target, mode, function(er) {
|
|
2221
2221
|
if (chownErOk(er)) er = null;
|
|
2222
2222
|
if (cb) cb.apply(this, arguments);
|
|
2223
2223
|
});
|
|
@@ -2227,7 +2227,7 @@ var require_polyfills2 = __commonJS({
|
|
|
2227
2227
|
if (!orig) return orig;
|
|
2228
2228
|
return function(target, mode) {
|
|
2229
2229
|
try {
|
|
2230
|
-
return orig.call(
|
|
2230
|
+
return orig.call(fs6, target, mode);
|
|
2231
2231
|
} catch (er) {
|
|
2232
2232
|
if (!chownErOk(er)) throw er;
|
|
2233
2233
|
}
|
|
@@ -2236,7 +2236,7 @@ var require_polyfills2 = __commonJS({
|
|
|
2236
2236
|
function chownFix(orig) {
|
|
2237
2237
|
if (!orig) return orig;
|
|
2238
2238
|
return function(target, uid, gid, cb) {
|
|
2239
|
-
return orig.call(
|
|
2239
|
+
return orig.call(fs6, target, uid, gid, function(er) {
|
|
2240
2240
|
if (chownErOk(er)) er = null;
|
|
2241
2241
|
if (cb) cb.apply(this, arguments);
|
|
2242
2242
|
});
|
|
@@ -2246,7 +2246,7 @@ var require_polyfills2 = __commonJS({
|
|
|
2246
2246
|
if (!orig) return orig;
|
|
2247
2247
|
return function(target, uid, gid) {
|
|
2248
2248
|
try {
|
|
2249
|
-
return orig.call(
|
|
2249
|
+
return orig.call(fs6, target, uid, gid);
|
|
2250
2250
|
} catch (er) {
|
|
2251
2251
|
if (!chownErOk(er)) throw er;
|
|
2252
2252
|
}
|
|
@@ -2266,13 +2266,13 @@ var require_polyfills2 = __commonJS({
|
|
|
2266
2266
|
}
|
|
2267
2267
|
if (cb) cb.apply(this, arguments);
|
|
2268
2268
|
}
|
|
2269
|
-
return options ? orig.call(
|
|
2269
|
+
return options ? orig.call(fs6, target, options, callback) : orig.call(fs6, target, callback);
|
|
2270
2270
|
};
|
|
2271
2271
|
}
|
|
2272
2272
|
function statFixSync(orig) {
|
|
2273
2273
|
if (!orig) return orig;
|
|
2274
2274
|
return function(target, options) {
|
|
2275
|
-
var stats = options ? orig.call(
|
|
2275
|
+
var stats = options ? orig.call(fs6, target, options) : orig.call(fs6, target);
|
|
2276
2276
|
if (stats) {
|
|
2277
2277
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
2278
2278
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -2303,7 +2303,7 @@ var require_legacy_streams2 = __commonJS({
|
|
|
2303
2303
|
init_cjs_shims();
|
|
2304
2304
|
var Stream = require("stream").Stream;
|
|
2305
2305
|
module2.exports = legacy;
|
|
2306
|
-
function legacy(
|
|
2306
|
+
function legacy(fs6) {
|
|
2307
2307
|
return {
|
|
2308
2308
|
ReadStream,
|
|
2309
2309
|
WriteStream
|
|
@@ -2346,7 +2346,7 @@ var require_legacy_streams2 = __commonJS({
|
|
|
2346
2346
|
});
|
|
2347
2347
|
return;
|
|
2348
2348
|
}
|
|
2349
|
-
|
|
2349
|
+
fs6.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
2350
2350
|
if (err) {
|
|
2351
2351
|
self.emit("error", err);
|
|
2352
2352
|
self.readable = false;
|
|
@@ -2385,7 +2385,7 @@ var require_legacy_streams2 = __commonJS({
|
|
|
2385
2385
|
this.busy = false;
|
|
2386
2386
|
this._queue = [];
|
|
2387
2387
|
if (this.fd === null) {
|
|
2388
|
-
this._open =
|
|
2388
|
+
this._open = fs6.open;
|
|
2389
2389
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
2390
2390
|
this.flush();
|
|
2391
2391
|
}
|
|
@@ -2423,7 +2423,7 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2423
2423
|
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
2424
2424
|
"use strict";
|
|
2425
2425
|
init_cjs_shims();
|
|
2426
|
-
var
|
|
2426
|
+
var fs6 = require("fs");
|
|
2427
2427
|
var polyfills = require_polyfills2();
|
|
2428
2428
|
var legacy = require_legacy_streams2();
|
|
2429
2429
|
var clone = require_clone2();
|
|
@@ -2455,12 +2455,12 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2455
2455
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
2456
2456
|
console.error(m);
|
|
2457
2457
|
};
|
|
2458
|
-
if (!
|
|
2458
|
+
if (!fs6[gracefulQueue]) {
|
|
2459
2459
|
queue = global[gracefulQueue] || [];
|
|
2460
|
-
publishQueue(
|
|
2461
|
-
|
|
2460
|
+
publishQueue(fs6, queue);
|
|
2461
|
+
fs6.close = function(fs$close) {
|
|
2462
2462
|
function close(fd, cb) {
|
|
2463
|
-
return fs$close.call(
|
|
2463
|
+
return fs$close.call(fs6, fd, function(err) {
|
|
2464
2464
|
if (!err) {
|
|
2465
2465
|
resetQueue();
|
|
2466
2466
|
}
|
|
@@ -2472,40 +2472,40 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2472
2472
|
value: fs$close
|
|
2473
2473
|
});
|
|
2474
2474
|
return close;
|
|
2475
|
-
}(
|
|
2476
|
-
|
|
2475
|
+
}(fs6.close);
|
|
2476
|
+
fs6.closeSync = function(fs$closeSync) {
|
|
2477
2477
|
function closeSync(fd) {
|
|
2478
|
-
fs$closeSync.apply(
|
|
2478
|
+
fs$closeSync.apply(fs6, arguments);
|
|
2479
2479
|
resetQueue();
|
|
2480
2480
|
}
|
|
2481
2481
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
2482
2482
|
value: fs$closeSync
|
|
2483
2483
|
});
|
|
2484
2484
|
return closeSync;
|
|
2485
|
-
}(
|
|
2485
|
+
}(fs6.closeSync);
|
|
2486
2486
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
2487
2487
|
process.on("exit", function() {
|
|
2488
|
-
debug(
|
|
2489
|
-
require("assert").equal(
|
|
2488
|
+
debug(fs6[gracefulQueue]);
|
|
2489
|
+
require("assert").equal(fs6[gracefulQueue].length, 0);
|
|
2490
2490
|
});
|
|
2491
2491
|
}
|
|
2492
2492
|
}
|
|
2493
2493
|
var queue;
|
|
2494
2494
|
if (!global[gracefulQueue]) {
|
|
2495
|
-
publishQueue(global,
|
|
2496
|
-
}
|
|
2497
|
-
module2.exports = patch(clone(
|
|
2498
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
2499
|
-
module2.exports = patch(
|
|
2500
|
-
|
|
2501
|
-
}
|
|
2502
|
-
function patch(
|
|
2503
|
-
polyfills(
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
var fs$readFile =
|
|
2508
|
-
|
|
2495
|
+
publishQueue(global, fs6[gracefulQueue]);
|
|
2496
|
+
}
|
|
2497
|
+
module2.exports = patch(clone(fs6));
|
|
2498
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs6.__patched) {
|
|
2499
|
+
module2.exports = patch(fs6);
|
|
2500
|
+
fs6.__patched = true;
|
|
2501
|
+
}
|
|
2502
|
+
function patch(fs7) {
|
|
2503
|
+
polyfills(fs7);
|
|
2504
|
+
fs7.gracefulify = patch;
|
|
2505
|
+
fs7.createReadStream = createReadStream;
|
|
2506
|
+
fs7.createWriteStream = createWriteStream;
|
|
2507
|
+
var fs$readFile = fs7.readFile;
|
|
2508
|
+
fs7.readFile = readFile;
|
|
2509
2509
|
function readFile(path10, options, cb) {
|
|
2510
2510
|
if (typeof options === "function")
|
|
2511
2511
|
cb = options, options = null;
|
|
@@ -2521,8 +2521,8 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2521
2521
|
});
|
|
2522
2522
|
}
|
|
2523
2523
|
}
|
|
2524
|
-
var fs$writeFile =
|
|
2525
|
-
|
|
2524
|
+
var fs$writeFile = fs7.writeFile;
|
|
2525
|
+
fs7.writeFile = writeFile;
|
|
2526
2526
|
function writeFile(path10, data, options, cb) {
|
|
2527
2527
|
if (typeof options === "function")
|
|
2528
2528
|
cb = options, options = null;
|
|
@@ -2538,9 +2538,9 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2538
2538
|
});
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
|
-
var fs$appendFile =
|
|
2541
|
+
var fs$appendFile = fs7.appendFile;
|
|
2542
2542
|
if (fs$appendFile)
|
|
2543
|
-
|
|
2543
|
+
fs7.appendFile = appendFile;
|
|
2544
2544
|
function appendFile(path10, data, options, cb) {
|
|
2545
2545
|
if (typeof options === "function")
|
|
2546
2546
|
cb = options, options = null;
|
|
@@ -2556,9 +2556,9 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2556
2556
|
});
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
|
-
var fs$copyFile =
|
|
2559
|
+
var fs$copyFile = fs7.copyFile;
|
|
2560
2560
|
if (fs$copyFile)
|
|
2561
|
-
|
|
2561
|
+
fs7.copyFile = copyFile;
|
|
2562
2562
|
function copyFile(src, dest, flags, cb) {
|
|
2563
2563
|
if (typeof flags === "function") {
|
|
2564
2564
|
cb = flags;
|
|
@@ -2576,8 +2576,8 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2576
2576
|
});
|
|
2577
2577
|
}
|
|
2578
2578
|
}
|
|
2579
|
-
var fs$readdir =
|
|
2580
|
-
|
|
2579
|
+
var fs$readdir = fs7.readdir;
|
|
2580
|
+
fs7.readdir = readdir;
|
|
2581
2581
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
2582
2582
|
function readdir(path10, options, cb) {
|
|
2583
2583
|
if (typeof options === "function")
|
|
@@ -2618,21 +2618,21 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2618
2618
|
}
|
|
2619
2619
|
}
|
|
2620
2620
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
2621
|
-
var legStreams = legacy(
|
|
2621
|
+
var legStreams = legacy(fs7);
|
|
2622
2622
|
ReadStream = legStreams.ReadStream;
|
|
2623
2623
|
WriteStream = legStreams.WriteStream;
|
|
2624
2624
|
}
|
|
2625
|
-
var fs$ReadStream =
|
|
2625
|
+
var fs$ReadStream = fs7.ReadStream;
|
|
2626
2626
|
if (fs$ReadStream) {
|
|
2627
2627
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
2628
2628
|
ReadStream.prototype.open = ReadStream$open;
|
|
2629
2629
|
}
|
|
2630
|
-
var fs$WriteStream =
|
|
2630
|
+
var fs$WriteStream = fs7.WriteStream;
|
|
2631
2631
|
if (fs$WriteStream) {
|
|
2632
2632
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
2633
2633
|
WriteStream.prototype.open = WriteStream$open;
|
|
2634
2634
|
}
|
|
2635
|
-
Object.defineProperty(
|
|
2635
|
+
Object.defineProperty(fs7, "ReadStream", {
|
|
2636
2636
|
get: function() {
|
|
2637
2637
|
return ReadStream;
|
|
2638
2638
|
},
|
|
@@ -2642,7 +2642,7 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2642
2642
|
enumerable: true,
|
|
2643
2643
|
configurable: true
|
|
2644
2644
|
});
|
|
2645
|
-
Object.defineProperty(
|
|
2645
|
+
Object.defineProperty(fs7, "WriteStream", {
|
|
2646
2646
|
get: function() {
|
|
2647
2647
|
return WriteStream;
|
|
2648
2648
|
},
|
|
@@ -2653,7 +2653,7 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2653
2653
|
configurable: true
|
|
2654
2654
|
});
|
|
2655
2655
|
var FileReadStream = ReadStream;
|
|
2656
|
-
Object.defineProperty(
|
|
2656
|
+
Object.defineProperty(fs7, "FileReadStream", {
|
|
2657
2657
|
get: function() {
|
|
2658
2658
|
return FileReadStream;
|
|
2659
2659
|
},
|
|
@@ -2664,7 +2664,7 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2664
2664
|
configurable: true
|
|
2665
2665
|
});
|
|
2666
2666
|
var FileWriteStream = WriteStream;
|
|
2667
|
-
Object.defineProperty(
|
|
2667
|
+
Object.defineProperty(fs7, "FileWriteStream", {
|
|
2668
2668
|
get: function() {
|
|
2669
2669
|
return FileWriteStream;
|
|
2670
2670
|
},
|
|
@@ -2713,13 +2713,13 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2713
2713
|
});
|
|
2714
2714
|
}
|
|
2715
2715
|
function createReadStream(path10, options) {
|
|
2716
|
-
return new
|
|
2716
|
+
return new fs7.ReadStream(path10, options);
|
|
2717
2717
|
}
|
|
2718
2718
|
function createWriteStream(path10, options) {
|
|
2719
|
-
return new
|
|
2719
|
+
return new fs7.WriteStream(path10, options);
|
|
2720
2720
|
}
|
|
2721
|
-
var fs$open =
|
|
2722
|
-
|
|
2721
|
+
var fs$open = fs7.open;
|
|
2722
|
+
fs7.open = open;
|
|
2723
2723
|
function open(path10, flags, mode, cb) {
|
|
2724
2724
|
if (typeof mode === "function")
|
|
2725
2725
|
cb = mode, mode = null;
|
|
@@ -2735,20 +2735,20 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2735
2735
|
});
|
|
2736
2736
|
}
|
|
2737
2737
|
}
|
|
2738
|
-
return
|
|
2738
|
+
return fs7;
|
|
2739
2739
|
}
|
|
2740
2740
|
function enqueue(elem) {
|
|
2741
2741
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
2742
|
-
|
|
2742
|
+
fs6[gracefulQueue].push(elem);
|
|
2743
2743
|
retry();
|
|
2744
2744
|
}
|
|
2745
2745
|
var retryTimer;
|
|
2746
2746
|
function resetQueue() {
|
|
2747
2747
|
var now = Date.now();
|
|
2748
|
-
for (var i = 0; i <
|
|
2749
|
-
if (
|
|
2750
|
-
|
|
2751
|
-
|
|
2748
|
+
for (var i = 0; i < fs6[gracefulQueue].length; ++i) {
|
|
2749
|
+
if (fs6[gracefulQueue][i].length > 2) {
|
|
2750
|
+
fs6[gracefulQueue][i][3] = now;
|
|
2751
|
+
fs6[gracefulQueue][i][4] = now;
|
|
2752
2752
|
}
|
|
2753
2753
|
}
|
|
2754
2754
|
retry();
|
|
@@ -2756,9 +2756,9 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2756
2756
|
function retry() {
|
|
2757
2757
|
clearTimeout(retryTimer);
|
|
2758
2758
|
retryTimer = void 0;
|
|
2759
|
-
if (
|
|
2759
|
+
if (fs6[gracefulQueue].length === 0)
|
|
2760
2760
|
return;
|
|
2761
|
-
var elem =
|
|
2761
|
+
var elem = fs6[gracefulQueue].shift();
|
|
2762
2762
|
var fn = elem[0];
|
|
2763
2763
|
var args = elem[1];
|
|
2764
2764
|
var err = elem[2];
|
|
@@ -2780,7 +2780,7 @@ var require_graceful_fs2 = __commonJS({
|
|
|
2780
2780
|
debug("RETRY", fn.name, args);
|
|
2781
2781
|
fn.apply(null, args.concat([startTime]));
|
|
2782
2782
|
} else {
|
|
2783
|
-
|
|
2783
|
+
fs6[gracefulQueue].push(elem);
|
|
2784
2784
|
}
|
|
2785
2785
|
}
|
|
2786
2786
|
if (retryTimer === void 0) {
|
|
@@ -2947,7 +2947,7 @@ var require_config_chain = __commonJS({
|
|
|
2947
2947
|
init_cjs_shims();
|
|
2948
2948
|
var ProtoList = require_proto_list();
|
|
2949
2949
|
var path10 = require("path");
|
|
2950
|
-
var
|
|
2950
|
+
var fs6 = require("fs");
|
|
2951
2951
|
var ini2 = require_ini();
|
|
2952
2952
|
var EE = require("events").EventEmitter;
|
|
2953
2953
|
var url = require("url");
|
|
@@ -2965,7 +2965,7 @@ var require_config_chain = __commonJS({
|
|
|
2965
2965
|
function find2(start, rel2) {
|
|
2966
2966
|
var file = path10.join(start, rel2);
|
|
2967
2967
|
try {
|
|
2968
|
-
|
|
2968
|
+
fs6.statSync(file);
|
|
2969
2969
|
return file;
|
|
2970
2970
|
} catch (err) {
|
|
2971
2971
|
if (path10.dirname(start) !== start)
|
|
@@ -3003,7 +3003,7 @@ var require_config_chain = __commonJS({
|
|
|
3003
3003
|
var file = path10.join.apply(null, args);
|
|
3004
3004
|
var content;
|
|
3005
3005
|
try {
|
|
3006
|
-
content =
|
|
3006
|
+
content = fs6.readFileSync(file, "utf-8");
|
|
3007
3007
|
} catch (err) {
|
|
3008
3008
|
return;
|
|
3009
3009
|
}
|
|
@@ -3096,7 +3096,7 @@ var require_config_chain = __commonJS({
|
|
|
3096
3096
|
data = ini2.stringify(data);
|
|
3097
3097
|
}
|
|
3098
3098
|
this._saving++;
|
|
3099
|
-
|
|
3099
|
+
fs6.writeFile(target.path, data, "utf8", function(er) {
|
|
3100
3100
|
this._saving--;
|
|
3101
3101
|
if (er) {
|
|
3102
3102
|
if (cb) return cb(er);
|
|
@@ -3115,7 +3115,7 @@ var require_config_chain = __commonJS({
|
|
|
3115
3115
|
this.sources[name] = { path: file, type };
|
|
3116
3116
|
this.push(marker);
|
|
3117
3117
|
this._await();
|
|
3118
|
-
|
|
3118
|
+
fs6.readFile(file, "utf8", function(er, data) {
|
|
3119
3119
|
if (er) this.emit("error", er);
|
|
3120
3120
|
this.addString(data, file, type, marker);
|
|
3121
3121
|
}.bind(this));
|
|
@@ -3266,7 +3266,7 @@ var require_util = __commonJS({
|
|
|
3266
3266
|
"../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/util.js"(exports2) {
|
|
3267
3267
|
"use strict";
|
|
3268
3268
|
init_cjs_shims();
|
|
3269
|
-
var
|
|
3269
|
+
var fs6 = require("fs");
|
|
3270
3270
|
var path10 = require("path");
|
|
3271
3271
|
var { envReplace } = require_dist2();
|
|
3272
3272
|
var parseKey = (key) => {
|
|
@@ -3339,7 +3339,7 @@ var require_util = __commonJS({
|
|
|
3339
3339
|
return original;
|
|
3340
3340
|
}
|
|
3341
3341
|
try {
|
|
3342
|
-
const files =
|
|
3342
|
+
const files = fs6.readdirSync(name2);
|
|
3343
3343
|
if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml")) {
|
|
3344
3344
|
return name2;
|
|
3345
3345
|
}
|
|
@@ -3513,7 +3513,7 @@ var require_conf = __commonJS({
|
|
|
3513
3513
|
"use strict";
|
|
3514
3514
|
init_cjs_shims();
|
|
3515
3515
|
var { readCAFileSync } = require_dist();
|
|
3516
|
-
var
|
|
3516
|
+
var fs6 = require("fs");
|
|
3517
3517
|
var path10 = require("path");
|
|
3518
3518
|
var { ConfigChain } = require_config_chain();
|
|
3519
3519
|
var envKeyToSetting = require_envKeyToSetting();
|
|
@@ -3548,7 +3548,7 @@ var require_conf = __commonJS({
|
|
|
3548
3548
|
this.push(marker);
|
|
3549
3549
|
this._await();
|
|
3550
3550
|
try {
|
|
3551
|
-
const contents =
|
|
3551
|
+
const contents = fs6.readFileSync(file, "utf8");
|
|
3552
3552
|
this.addString(contents, file, "ini", marker);
|
|
3553
3553
|
} catch (error) {
|
|
3554
3554
|
if (error.code === "ENOENT") {
|
|
@@ -3639,7 +3639,7 @@ var require_conf = __commonJS({
|
|
|
3639
3639
|
}
|
|
3640
3640
|
const prefix = path10.resolve(this.get("prefix"));
|
|
3641
3641
|
try {
|
|
3642
|
-
const stats =
|
|
3642
|
+
const stats = fs6.statSync(prefix);
|
|
3643
3643
|
defConf.user = stats.uid;
|
|
3644
3644
|
} catch (error) {
|
|
3645
3645
|
if (error.code === "ENOENT") {
|
|
@@ -3902,9 +3902,9 @@ var require_npm_conf = __commonJS({
|
|
|
3902
3902
|
}
|
|
3903
3903
|
});
|
|
3904
3904
|
|
|
3905
|
-
// ../../node_modules/.pnpm/registry-auth-token@5.0.
|
|
3905
|
+
// ../../node_modules/.pnpm/registry-auth-token@5.0.3/node_modules/registry-auth-token/index.js
|
|
3906
3906
|
var require_registry_auth_token = __commonJS({
|
|
3907
|
-
"../../node_modules/.pnpm/registry-auth-token@5.0.
|
|
3907
|
+
"../../node_modules/.pnpm/registry-auth-token@5.0.3/node_modules/registry-auth-token/index.js"(exports2, module2) {
|
|
3908
3908
|
"use strict";
|
|
3909
3909
|
init_cjs_shims();
|
|
3910
3910
|
var url = require("url");
|
|
@@ -5927,6 +5927,7 @@ __export(utils_exports, {
|
|
|
5927
5927
|
isObject: () => isObject,
|
|
5928
5928
|
isString: () => isString,
|
|
5929
5929
|
isUndefined: () => isUndefined,
|
|
5930
|
+
isWriteable: () => isWriteable,
|
|
5930
5931
|
omitObject: () => omitObject,
|
|
5931
5932
|
prettier: () => prettier
|
|
5932
5933
|
});
|
|
@@ -8012,10 +8013,10 @@ function stripAnsi(string) {
|
|
|
8012
8013
|
return string.replace(regex, "");
|
|
8013
8014
|
}
|
|
8014
8015
|
|
|
8015
|
-
// ../../node_modules/.pnpm/get-east-asian-width@1.
|
|
8016
|
+
// ../../node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
|
|
8016
8017
|
init_cjs_shims();
|
|
8017
8018
|
|
|
8018
|
-
// ../../node_modules/.pnpm/get-east-asian-width@1.
|
|
8019
|
+
// ../../node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js
|
|
8019
8020
|
init_cjs_shims();
|
|
8020
8021
|
function isAmbiguous(x) {
|
|
8021
8022
|
return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
|
|
@@ -8024,10 +8025,10 @@ function isFullWidth(x) {
|
|
|
8024
8025
|
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
|
8025
8026
|
}
|
|
8026
8027
|
function isWide(x) {
|
|
8027
|
-
return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9800 && x <= 9811 || x === 9855 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <=
|
|
8028
|
+
return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
|
|
8028
8029
|
}
|
|
8029
8030
|
|
|
8030
|
-
// ../../node_modules/.pnpm/get-east-asian-width@1.
|
|
8031
|
+
// ../../node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
|
|
8031
8032
|
function validate2(codePoint) {
|
|
8032
8033
|
if (!Number.isSafeInteger(codePoint)) {
|
|
8033
8034
|
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
@@ -9037,7 +9038,7 @@ var package_default = {
|
|
|
9037
9038
|
typecheck: " tsc --noEmit"
|
|
9038
9039
|
},
|
|
9039
9040
|
dependencies: {
|
|
9040
|
-
"@clack/prompts": "^0.
|
|
9041
|
+
"@clack/prompts": "^0.8.2",
|
|
9041
9042
|
chokidar: "^4.0.1",
|
|
9042
9043
|
"cli-check-node": "^1.3.4",
|
|
9043
9044
|
"cli-handle-unhandled": "^1.1.1",
|
|
@@ -9045,9 +9046,9 @@ var package_default = {
|
|
|
9045
9046
|
esbuild: "^0.24.0",
|
|
9046
9047
|
glob: "^11.0.0",
|
|
9047
9048
|
"node-eval": "^2.0.0",
|
|
9048
|
-
prettier: "^3.
|
|
9049
|
+
prettier: "^3.4.1",
|
|
9049
9050
|
tar: "^7.4.3",
|
|
9050
|
-
typescript: "^5.
|
|
9051
|
+
typescript: "^5.7.2"
|
|
9051
9052
|
},
|
|
9052
9053
|
devDependencies: {
|
|
9053
9054
|
"@types/update-notifier": "6.0.8",
|
|
@@ -9073,10 +9074,25 @@ ${source_default.bold.green("Yamada UI CLI")} v${package_default.version} ${sour
|
|
|
9073
9074
|
}).notify({ isGlobal: true });
|
|
9074
9075
|
};
|
|
9075
9076
|
|
|
9077
|
+
// src/utils/fs.ts
|
|
9078
|
+
init_cjs_shims();
|
|
9079
|
+
var import_fs = __toESM(require("fs"));
|
|
9080
|
+
var isWriteable = async (directory) => {
|
|
9081
|
+
try {
|
|
9082
|
+
await import_fs.default.promises.access(
|
|
9083
|
+
directory,
|
|
9084
|
+
("constants" in import_fs.default ? import_fs.default.constants : import_fs.default).W_OK
|
|
9085
|
+
);
|
|
9086
|
+
return true;
|
|
9087
|
+
} catch {
|
|
9088
|
+
return false;
|
|
9089
|
+
}
|
|
9090
|
+
};
|
|
9091
|
+
|
|
9076
9092
|
// src/utils/module.ts
|
|
9077
9093
|
init_cjs_shims();
|
|
9078
9094
|
var import_esbuild = require("esbuild");
|
|
9079
|
-
var
|
|
9095
|
+
var import_fs2 = require("fs");
|
|
9080
9096
|
var import_node_eval = __toESM(require("node-eval"));
|
|
9081
9097
|
var import_vm = require("vm");
|
|
9082
9098
|
var getModule = async (file, cwd) => {
|
|
@@ -9095,7 +9111,7 @@ var getModule = async (file, cwd) => {
|
|
|
9095
9111
|
const { text: code } = result.outputFiles[0] ?? {};
|
|
9096
9112
|
const dependencies = isObject(result.metafile) ? Object.keys(result.metafile.inputs) : [];
|
|
9097
9113
|
try {
|
|
9098
|
-
const realFileName =
|
|
9114
|
+
const realFileName = import_fs2.realpathSync.native(file);
|
|
9099
9115
|
if (!code) throw new Error("code is undefined");
|
|
9100
9116
|
const script = new import_vm.Script(code, { filename: realFileName });
|
|
9101
9117
|
const mod = { exports: {} };
|
|
@@ -9155,6 +9171,7 @@ var prettier = async (content, options) => {
|
|
|
9155
9171
|
isObject,
|
|
9156
9172
|
isString,
|
|
9157
9173
|
isUndefined,
|
|
9174
|
+
isWriteable,
|
|
9158
9175
|
omitObject,
|
|
9159
9176
|
prettier
|
|
9160
9177
|
});
|