@vuetify/cli 0.1.0 → 0.1.1

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as __esmMin } from "./chunk-DXKUnWKO.mjs";
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$1, { directoryFilter: directoryFilter$1, entryFilter: entryFilter$1, parentPath = "", depth = 1 }) {
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$1);
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$1(walkEntry);
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$1(walkEntry);
435
+ let shouldWalkDirectory = directoryFilter(walkEntry);
436
436
  if (shouldWalkDirectory.then) shouldWalkDirectory = await shouldWalkDirectory;
437
437
  if (!shouldWalkDirectory) continue;
438
- yield* walk(dirPath$1 instanceof URL ? new URL(listEntry.name, dirPath$1.href.endsWith("/") ? dirPath$1.href : `${dirPath$1.href}/`) : `${dirPath$1.endsWith("/") ? dirPath$1 : `${dirPath$1}/`}${listEntry.name}`, {
439
- directoryFilter: directoryFilter$1,
440
- entryFilter: entryFilter$1,
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$1, reject;
579
+ let resolve, reject;
580
580
  const promise = new Promise((res, rej) => {
581
- resolve$1 = res;
581
+ resolve = res;
582
582
  reject = rej;
583
583
  });
584
- if (resolve$1 === void 0 || reject === void 0) throw new Error("Promise executor did not initialize resolve or reject.");
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: resolve$1,
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$1, reject, signal) {
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$1;
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: resolve$1, reject }) {
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$1(value);
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$1, reject, signal);
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: resolve$1, reject } = createPromise();
798
+ const { promise, resolve, reject } = createPromise();
799
799
  this.#pending.push(() => this.#call(fn, {
800
800
  signal,
801
801
  promise,
802
- resolve: resolve$1,
802
+ resolve,
803
803
  reject
804
804
  }));
805
805
  this.#processPending();