@vuetify/cli 0.1.0 → 0.1.2
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/{chunk-DXKUnWKO.mjs → chunk-D1copJQv.mjs} +2 -3
- package/dist/index.mjs +34336 -49383
- package/dist/jiti-C_tmzcsl.mjs +4482 -0
- package/dist/nypm-Bg2ry-tJ.mjs +681 -0
- package/dist/nypm-Dl0ysHx5.mjs +4 -0
- package/dist/rolldown-runtime-BM60vSjP.mjs +15 -0
- package/dist/{src-BZD2p6YD.mjs → src-Cc5BV24k.mjs} +19 -19
- package/dist/tar-CdTjip02.mjs +2941 -0
- package/package.json +9 -11
- package/dist/jiti-CWCg-hIk.mjs +0 -4482
- package/dist/multipart-parser-yOJCSH9w.mjs +0 -176
- package/dist/node-DcggPaRf.mjs +0 -3975
- package/dist/prompt-BCBYX8qb.mjs +0 -848
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as __esmMin } from "./chunk-
|
|
2
|
+
import { n as __esmMin } from "./chunk-D1copJQv.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs/promises";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -413,10 +413,10 @@ var init_hfs = __esmMin((() => {
|
|
|
413
413
|
directoryFilter,
|
|
414
414
|
entryFilter
|
|
415
415
|
});
|
|
416
|
-
const walk = async function* (dirPath
|
|
416
|
+
const walk = async function* (dirPath, { directoryFilter, entryFilter, parentPath = "", depth = 1 }) {
|
|
417
417
|
let dirEntries;
|
|
418
418
|
try {
|
|
419
|
-
dirEntries = await this.#callImplMethodWithoutLog("list", dirPath
|
|
419
|
+
dirEntries = await this.#callImplMethodWithoutLog("list", dirPath);
|
|
420
420
|
} catch (error) {
|
|
421
421
|
if (error.code === "ENOENT") return;
|
|
422
422
|
throw error;
|
|
@@ -428,16 +428,16 @@ var init_hfs = __esmMin((() => {
|
|
|
428
428
|
...listEntry
|
|
429
429
|
};
|
|
430
430
|
if (parentPath) walkEntry.path = `${parentPath}/${walkEntry.path}`;
|
|
431
|
-
let shouldEmitEntry = entryFilter
|
|
431
|
+
let shouldEmitEntry = entryFilter(walkEntry);
|
|
432
432
|
if (shouldEmitEntry.then) shouldEmitEntry = await shouldEmitEntry;
|
|
433
433
|
if (shouldEmitEntry) yield walkEntry;
|
|
434
434
|
if (listEntry.isDirectory) {
|
|
435
|
-
let shouldWalkDirectory = directoryFilter
|
|
435
|
+
let shouldWalkDirectory = directoryFilter(walkEntry);
|
|
436
436
|
if (shouldWalkDirectory.then) shouldWalkDirectory = await shouldWalkDirectory;
|
|
437
437
|
if (!shouldWalkDirectory) continue;
|
|
438
|
-
yield* walk(dirPath
|
|
439
|
-
directoryFilter
|
|
440
|
-
entryFilter
|
|
438
|
+
yield* walk(dirPath instanceof URL ? new URL(listEntry.name, dirPath.href.endsWith("/") ? dirPath.href : `${dirPath.href}/`) : `${dirPath.endsWith("/") ? dirPath : `${dirPath}/`}${listEntry.name}`, {
|
|
439
|
+
directoryFilter,
|
|
440
|
+
entryFilter,
|
|
441
441
|
parentPath: walkEntry.path,
|
|
442
442
|
depth: depth + 1
|
|
443
443
|
});
|
|
@@ -576,15 +576,15 @@ function isTimeToBail(task, timeout) {
|
|
|
576
576
|
*/
|
|
577
577
|
function createPromise() {
|
|
578
578
|
if (Promise.withResolvers) return Promise.withResolvers();
|
|
579
|
-
let resolve
|
|
579
|
+
let resolve, reject;
|
|
580
580
|
const promise = new Promise((res, rej) => {
|
|
581
|
-
resolve
|
|
581
|
+
resolve = res;
|
|
582
582
|
reject = rej;
|
|
583
583
|
});
|
|
584
|
-
if (resolve
|
|
584
|
+
if (resolve === void 0 || reject === void 0) throw new Error("Promise executor did not initialize resolve or reject.");
|
|
585
585
|
return {
|
|
586
586
|
promise,
|
|
587
|
-
resolve
|
|
587
|
+
resolve,
|
|
588
588
|
reject
|
|
589
589
|
};
|
|
590
590
|
}
|
|
@@ -642,12 +642,12 @@ var init_retrier = __esmMin((() => {
|
|
|
642
642
|
* @param {Function} reject The reject function for the promise.
|
|
643
643
|
* @param {AbortSignal|undefined} signal The AbortSignal to monitor for cancellation.
|
|
644
644
|
*/
|
|
645
|
-
constructor(fn, error, resolve
|
|
645
|
+
constructor(fn, error, resolve, reject, signal) {
|
|
646
646
|
this.fn = fn;
|
|
647
647
|
this.error = error;
|
|
648
648
|
this.timestamp = Date.now();
|
|
649
649
|
this.lastAttempt = Date.now();
|
|
650
|
-
this.resolve = resolve
|
|
650
|
+
this.resolve = resolve;
|
|
651
651
|
this.reject = reject;
|
|
652
652
|
this.signal = signal;
|
|
653
653
|
}
|
|
@@ -748,7 +748,7 @@ var init_retrier = __esmMin((() => {
|
|
|
748
748
|
* @returns {Promise<any>} A promise that resolves when the function is
|
|
749
749
|
* called successfully.
|
|
750
750
|
*/
|
|
751
|
-
#call(fn, { signal, promise, resolve
|
|
751
|
+
#call(fn, { signal, promise, resolve, reject }) {
|
|
752
752
|
let result;
|
|
753
753
|
try {
|
|
754
754
|
result = fn();
|
|
@@ -767,13 +767,13 @@ var init_retrier = __esmMin((() => {
|
|
|
767
767
|
}).catch(() => {});
|
|
768
768
|
Promise.resolve(result).then((value) => {
|
|
769
769
|
debug("Function called successfully without retry.");
|
|
770
|
-
resolve
|
|
770
|
+
resolve(value);
|
|
771
771
|
}).catch((error) => {
|
|
772
772
|
if (!this.#check(error)) {
|
|
773
773
|
reject(error);
|
|
774
774
|
return;
|
|
775
775
|
}
|
|
776
|
-
const task = new RetryTask(fn, error, resolve
|
|
776
|
+
const task = new RetryTask(fn, error, resolve, reject, signal);
|
|
777
777
|
debug(`Function failed, queuing for retry with task ${task.id}.`);
|
|
778
778
|
this.#retrying.push(task);
|
|
779
779
|
signal?.addEventListener("abort", () => {
|
|
@@ -795,11 +795,11 @@ var init_retrier = __esmMin((() => {
|
|
|
795
795
|
*/
|
|
796
796
|
retry(fn, { signal } = {}) {
|
|
797
797
|
signal?.throwIfAborted();
|
|
798
|
-
const { promise, resolve
|
|
798
|
+
const { promise, resolve, reject } = createPromise();
|
|
799
799
|
this.#pending.push(() => this.#call(fn, {
|
|
800
800
|
signal,
|
|
801
801
|
promise,
|
|
802
|
-
resolve
|
|
802
|
+
resolve,
|
|
803
803
|
reject
|
|
804
804
|
}));
|
|
805
805
|
this.#processPending();
|