@arcgis/create 5.0.0-next.140 → 5.0.0-next.141

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.
Files changed (2) hide show
  1. package/dist/init.js +31 -31
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -1676,7 +1676,7 @@ Expecting one of '${g.join("', '")}'`);
1676
1676
  if (h.existsSync(I)) return I;
1677
1677
  if (u.includes(o.extname(P))) return;
1678
1678
  const N = u.find(
1679
- (X) => h.existsSync(`${I}${X}`)
1679
+ (Y) => h.existsSync(`${I}${Y}`)
1680
1680
  );
1681
1681
  if (N) return `${I}${N}`;
1682
1682
  }
@@ -2610,7 +2610,7 @@ const $i = /* @__PURE__ */ je(xi), {
2610
2610
  Argument: Zu,
2611
2611
  Option: Qu,
2612
2612
  Help: eo
2613
- } = $i, Pi = "5.0.0-next.140", Ri = {
2613
+ } = $i, Pi = "5.0.0-next.141", Ri = {
2614
2614
  version: Pi
2615
2615
  }, T = {
2616
2616
  VANILLA: "vanilla JS",
@@ -3600,7 +3600,7 @@ const Yn = Object.defineProperties(() => {
3600
3600
  return r !== -1 && (n = Wn(n, i, h, r)), h + n + i;
3601
3601
  };
3602
3602
  Object.defineProperties(we.prototype, be);
3603
- const Y = we();
3603
+ const X = we();
3604
3604
  we({ level: sr ? sr.level : 0 });
3605
3605
  var Me = { exports: {} }, Kn = Me.exports, or;
3606
3606
  function Jn() {
@@ -3653,7 +3653,7 @@ function Jn() {
3653
3653
  return F = b.r / 255, w = b.g / 255, B = b.b / 255, F <= 0.03928 ? _ = F / 12.92 : _ = Math.pow((F + 0.055) / 1.055, 2.4), w <= 0.03928 ? G = w / 12.92 : G = Math.pow((w + 0.055) / 1.055, 2.4), B <= 0.03928 ? k = B / 12.92 : k = Math.pow((B + 0.055) / 1.055, 2.4), 0.2126 * _ + 0.7152 * G + 0.0722 * k;
3654
3654
  },
3655
3655
  setAlpha: function(b) {
3656
- return this._a = X(b), this._roundA = Math.round(100 * this._a) / 100, this;
3656
+ return this._a = Y(b), this._roundA = Math.round(100 * this._a) / 100, this;
3657
3657
  },
3658
3658
  toHsv: function() {
3659
3659
  var b = d(this._r, this._g, this._b);
@@ -3800,7 +3800,7 @@ function Jn() {
3800
3800
  g: 0,
3801
3801
  b: 0
3802
3802
  }, F = 1, w = null, B = null, _ = null, G = !1, k = !1;
3803
- return typeof E == "string" && (E = pi(E)), o(E) == "object" && (De(E.r) && De(E.g) && De(E.b) ? (b = a(E.r, E.g, E.b), G = !0, k = String(E.r).substr(-1) === "%" ? "prgb" : "rgb") : De(E.h) && De(E.s) && De(E.v) ? (w = he(E.s), B = he(E.v), b = v(E.h, w, B), G = !0, k = "hsv") : De(E.h) && De(E.s) && De(E.l) && (w = he(E.s), _ = he(E.l), b = C(E.h, w, _), G = !0, k = "hsl"), E.hasOwnProperty("a") && (F = E.a)), F = X(F), {
3803
+ return typeof E == "string" && (E = pi(E)), o(E) == "object" && (De(E.r) && De(E.g) && De(E.b) ? (b = a(E.r, E.g, E.b), G = !0, k = String(E.r).substr(-1) === "%" ? "prgb" : "rgb") : De(E.h) && De(E.s) && De(E.v) ? (w = he(E.s), B = he(E.v), b = v(E.h, w, B), G = !0, k = "hsv") : De(E.h) && De(E.s) && De(E.l) && (w = he(E.s), _ = he(E.l), b = C(E.h, w, _), G = !0, k = "hsl"), E.hasOwnProperty("a") && (F = E.a)), F = Y(F), {
3804
3804
  ok: G,
3805
3805
  format: E.format || k,
3806
3806
  r: Math.min(255, Math.max(b.r, 0)),
@@ -4185,7 +4185,7 @@ function Jn() {
4185
4185
  E.hasOwnProperty(F) && (b[E[F]] = F);
4186
4186
  return b;
4187
4187
  }
4188
- function X(E) {
4188
+ function Y(E) {
4189
4189
  return E = parseFloat(E), (isNaN(E) || E < 0 || E > 1) && (E = 1), E;
4190
4190
  }
4191
4191
  function M(E, b) {
@@ -4567,7 +4567,7 @@ function es(s, n, o) {
4567
4567
  const h = xt(o), i = Math.max(s.replace(/\s/g, "").length, n.stops.length), r = Jr(n, h, i);
4568
4568
  let e = "";
4569
4569
  for (const a of s)
4570
- e += a.match(/\s/g) ? a : Y.hex(r.shift()?.toHex() || "#000")(a);
4570
+ e += a.match(/\s/g) ? a : X.hex(r.shift()?.toHex() || "#000")(a);
4571
4571
  return e;
4572
4572
  }
4573
4573
  function ts(s, n, o) {
@@ -4577,7 +4577,7 @@ function ts(s, n, o) {
4577
4577
  const C = e.slice(0);
4578
4578
  let d = "";
4579
4579
  for (const v of l)
4580
- d += Y.hex(C.shift()?.toHex() || "#000")(v);
4580
+ d += X.hex(C.shift()?.toHex() || "#000")(v);
4581
4581
  a.push(d);
4582
4582
  }
4583
4583
  return a.join(`
@@ -4652,12 +4652,12 @@ async function ds() {
4652
4652
  });
4653
4653
  }
4654
4654
  function ti() {
4655
- Ee(Y.greenBright("Your new project is ready!"));
4655
+ Ee(X.greenBright("Your new project is ready!"));
4656
4656
  }
4657
4657
  function ms() {
4658
4658
  Ee(
4659
- Y.greenBright(
4660
- "Configuration files created: .yarnrc.yml, eslint.config.js, prettier.config.js, and lint-staged.config.js. If you are in a monorepo, you will need to manually integrate these files with your project configuration."
4659
+ X.greenBright(
4660
+ "Configuration files created: .npmrc, eslint.config.js, prettier.config.js, and lint-staged.config.js. If you are in a monorepo, you will need to manually integrate these files with your project configuration."
4661
4661
  )
4662
4662
  );
4663
4663
  }
@@ -5788,7 +5788,7 @@ function xs() {
5788
5788
  return this.#m;
5789
5789
  }
5790
5790
  constructor(D) {
5791
- const { max: p = 0, ttl: f, ttlResolution: A = 1, ttlAutopurge: t, updateAgeOnGet: c, updateAgeOnHas: g, allowStale: u, dispose: m, disposeAfter: y, noDisposeOnSet: S, noUpdateTTL: O, maxSize: R = 0, maxEntrySize: x = 0, sizeCalculation: P, fetchMethod: I, memoMethod: N, noDeleteOnFetchRejection: X, noDeleteOnStaleGet: M, allowStaleOnFetchRejection: V, allowStaleOnFetchAbort: H, ignoreFetchAbort: de } = D;
5791
+ const { max: p = 0, ttl: f, ttlResolution: A = 1, ttlAutopurge: t, updateAgeOnGet: c, updateAgeOnHas: g, allowStale: u, dispose: m, disposeAfter: y, noDisposeOnSet: S, noUpdateTTL: O, maxSize: R = 0, maxEntrySize: x = 0, sizeCalculation: P, fetchMethod: I, memoMethod: N, noDeleteOnFetchRejection: Y, noDeleteOnStaleGet: M, allowStaleOnFetchRejection: V, allowStaleOnFetchAbort: H, ignoreFetchAbort: de } = D;
5792
5792
  if (p !== 0 && !a(p))
5793
5793
  throw new TypeError("max option must be a nonnegative integer");
5794
5794
  const le = p ? l(p) : Array;
@@ -5804,7 +5804,7 @@ function xs() {
5804
5804
  throw new TypeError("memoMethod must be a function if defined");
5805
5805
  if (this.#$ = N, I !== void 0 && typeof I != "function")
5806
5806
  throw new TypeError("fetchMethod must be a function if specified");
5807
- if (this.#x = I, this.#S = !!I, this.#s = /* @__PURE__ */ new Map(), this.#i = new Array(p).fill(void 0), this.#e = new Array(p).fill(void 0), this.#h = new le(p), this.#f = new le(p), this.#c = 0, this.#o = 0, this.#C = d.create(p), this.#u = 0, this.#g = 0, typeof m == "function" && (this.#t = m), typeof y == "function" ? (this.#m = y, this.#a = []) : (this.#m = void 0, this.#a = void 0), this.#b = !!this.#t, this.#D = !!this.#m, this.noDisposeOnSet = !!S, this.noUpdateTTL = !!O, this.noDeleteOnFetchRejection = !!X, this.allowStaleOnFetchRejection = !!V, this.allowStaleOnFetchAbort = !!H, this.ignoreFetchAbort = !!de, this.maxEntrySize !== 0) {
5807
+ if (this.#x = I, this.#S = !!I, this.#s = /* @__PURE__ */ new Map(), this.#i = new Array(p).fill(void 0), this.#e = new Array(p).fill(void 0), this.#h = new le(p), this.#f = new le(p), this.#c = 0, this.#o = 0, this.#C = d.create(p), this.#u = 0, this.#g = 0, typeof m == "function" && (this.#t = m), typeof y == "function" ? (this.#m = y, this.#a = []) : (this.#m = void 0, this.#a = void 0), this.#b = !!this.#t, this.#D = !!this.#m, this.noDisposeOnSet = !!S, this.noUpdateTTL = !!O, this.noDeleteOnFetchRejection = !!Y, this.allowStaleOnFetchRejection = !!V, this.allowStaleOnFetchAbort = !!H, this.ignoreFetchAbort = !!de, this.maxEntrySize !== 0) {
5808
5808
  if (this.#l !== 0 && !a(this.#l))
5809
5809
  throw new TypeError("maxSize must be a positive integer if specified");
5810
5810
  if (!a(this.maxEntrySize))
@@ -6274,21 +6274,21 @@ function xs() {
6274
6274
  options: f,
6275
6275
  context: A
6276
6276
  }, m = (P, I = !1) => {
6277
- const { aborted: N } = c.signal, X = f.ignoreFetchAbort && P !== void 0;
6278
- if (f.status && (N && !I ? (f.status.fetchAborted = !0, f.status.fetchError = c.signal.reason, X && (f.status.fetchAbortIgnored = !0)) : f.status.fetchResolved = !0), N && !X && !I)
6277
+ const { aborted: N } = c.signal, Y = f.ignoreFetchAbort && P !== void 0;
6278
+ if (f.status && (N && !I ? (f.status.fetchAborted = !0, f.status.fetchError = c.signal.reason, Y && (f.status.fetchAbortIgnored = !0)) : f.status.fetchResolved = !0), N && !Y && !I)
6279
6279
  return S(c.signal.reason);
6280
6280
  const M = R;
6281
6281
  return this.#e[p] === R && (P === void 0 ? M.__staleWhileFetching ? this.#e[p] = M.__staleWhileFetching : this.#y(D, "fetch") : (f.status && (f.status.fetchUpdated = !0), this.set(D, P, u.options))), P;
6282
6282
  }, y = (P) => (f.status && (f.status.fetchRejected = !0, f.status.fetchError = P), S(P)), S = (P) => {
6283
- const { aborted: I } = c.signal, N = I && f.allowStaleOnFetchAbort, X = N || f.allowStaleOnFetchRejection, M = X || f.noDeleteOnFetchRejection, V = R;
6284
- if (this.#e[p] === R && (!M || V.__staleWhileFetching === void 0 ? this.#y(D, "fetch") : N || (this.#e[p] = V.__staleWhileFetching)), X)
6283
+ const { aborted: I } = c.signal, N = I && f.allowStaleOnFetchAbort, Y = N || f.allowStaleOnFetchRejection, M = Y || f.noDeleteOnFetchRejection, V = R;
6284
+ if (this.#e[p] === R && (!M || V.__staleWhileFetching === void 0 ? this.#y(D, "fetch") : N || (this.#e[p] = V.__staleWhileFetching)), Y)
6285
6285
  return f.status && V.__staleWhileFetching !== void 0 && (f.status.returnedStale = !0), V.__staleWhileFetching;
6286
6286
  if (V.__returned === V)
6287
6287
  throw P;
6288
6288
  }, O = (P, I) => {
6289
6289
  const N = this.#x?.(D, t, u);
6290
- N && N instanceof Promise && N.then((X) => P(X === void 0 ? void 0 : X), I), c.signal.addEventListener("abort", () => {
6291
- (!f.ignoreFetchAbort || f.allowStaleOnFetchAbort) && (P(void 0), f.allowStaleOnFetchAbort && (P = (X) => m(X, !0)));
6290
+ N && N instanceof Promise && N.then((Y) => P(Y === void 0 ? void 0 : Y), I), c.signal.addEventListener("abort", () => {
6291
+ (!f.ignoreFetchAbort || f.allowStaleOnFetchAbort) && (P(void 0), f.allowStaleOnFetchAbort && (P = (Y) => m(Y, !0)));
6292
6292
  });
6293
6293
  };
6294
6294
  f.status && (f.status.fetchDispatched = !0);
@@ -6325,7 +6325,7 @@ function xs() {
6325
6325
  context: P,
6326
6326
  forceRefresh: I = !1,
6327
6327
  status: N,
6328
- signal: X
6328
+ signal: Y
6329
6329
  } = p;
6330
6330
  if (!this.#S)
6331
6331
  return N && (N.fetch = "get"), this.get(D, {
@@ -6348,7 +6348,7 @@ function xs() {
6348
6348
  allowStaleOnFetchAbort: x,
6349
6349
  ignoreFetchAbort: R,
6350
6350
  status: N,
6351
- signal: X
6351
+ signal: Y
6352
6352
  };
6353
6353
  let V = this.#s.get(D);
6354
6354
  if (V === void 0) {
@@ -7248,11 +7248,11 @@ function hi(s) {
7248
7248
  name: s.name,
7249
7249
  shouldCleanup: !1,
7250
7250
  async doCleanup(o) {
7251
- if (console.error(Y.bgRed(o)), this.shouldCleanup && this.name)
7251
+ if (console.error(X.bgRed(o)), this.shouldCleanup && this.name)
7252
7252
  try {
7253
7253
  await vu(this.name);
7254
7254
  } catch (h) {
7255
- console.error(Y.bgRed(h));
7255
+ console.error(X.bgRed(h));
7256
7256
  }
7257
7257
  throw o;
7258
7258
  }
@@ -7261,7 +7261,7 @@ function hi(s) {
7261
7261
  async function Di(s, n, o) {
7262
7262
  const { startMsg: h, successMsg: i, failureMsg: r } = s, e = Rn();
7263
7263
  e.start(h), await n().then(() => e.stop(i)).catch((a) => {
7264
- e.stop(Y.bgRed(r), 1), o(a, e);
7264
+ e.stop(X.bgRed(r), 1), o(a, e);
7265
7265
  });
7266
7266
  }
7267
7267
  async function wu(s) {
@@ -7293,12 +7293,12 @@ async function wu(s) {
7293
7293
  await ai(o.projectName, i, h), n.shouldCleanup = !0;
7294
7294
  },
7295
7295
  (a) => {
7296
- throw Ee(Y.bgRed("Please ensure git is installed and try again.")), a;
7296
+ throw Ee(X.bgRed("Please ensure git is installed and try again.")), a;
7297
7297
  }
7298
7298
  );
7299
7299
  const r = await li(o.projectName), e = bu(r);
7300
- ti(), console.log(Y.magenta(`To get started, run the following commands:
7301
- `)), console.log(Y.grey(`$ cd ${o.projectName}`)), console.log(Y.grey("$ npm install")), console.log(Y.grey(`$ npm run ${e}`)), console.log(Zr(`
7300
+ ti(), console.log(X.magenta(`To get started, run the following commands:
7301
+ `)), console.log(X.grey(`$ cd ${o.projectName}`)), console.log(X.grey("$ npm install")), console.log(X.grey(`$ npm run ${e}`)), console.log(Zr(`
7302
7302
 
7303
7303
  Happy mapping!`));
7304
7304
  } catch (o) {
@@ -7307,7 +7307,7 @@ Happy mapping!`));
7307
7307
  }
7308
7308
  async function Ou(s) {
7309
7309
  const { template: n, branch: o = Gr } = s;
7310
- n !== T.LUMINA_COMPONENTS && (Ee(Y.red("Template is not a code sample")), process.exit(1)), s.host || (Ee(Y.red("Host option is required for the lumina-components template")), process.exit(1));
7310
+ n !== T.LUMINA_COMPONENTS && (Ee(X.red("Template is not a code sample")), process.exit(1)), s.host || (Ee(X.red("Host option is required for the lumina-components template")), process.exit(1));
7311
7311
  const h = hi(s);
7312
7312
  try {
7313
7313
  Qr();
@@ -7327,7 +7327,7 @@ async function Ou(s) {
7327
7327
  await ai(i, l, r, o), h.shouldCleanup = !0;
7328
7328
  },
7329
7329
  (g) => {
7330
- throw Ee(Y.bgRed("Please ensure git is installed and try again.")), g;
7330
+ throw Ee(X.bgRed("Please ensure git is installed and try again.")), g;
7331
7331
  }
7332
7332
  );
7333
7333
  const {
@@ -7349,8 +7349,8 @@ async function Ou(s) {
7349
7349
  ...t ? { resolutions: t } : {},
7350
7350
  ...A ? { files: A } : {}
7351
7351
  };
7352
- Lu(f, c), await Fu(i, c), ti(), ms(), console.log(Y.magenta(`To get started, run the following commands:
7353
- `)), console.log(Y.grey(`$ cd ${i}`)), console.log(Y.grey("$ pnpm set version 10.28.1")), console.log(Y.grey("$ pnpm install")), console.log(Y.grey("$ pnpm start"));
7352
+ Lu(f, c), await Fu(i, c), ti(), ms(), console.log(X.magenta(`To get started, run the following commands:
7353
+ `)), console.log(X.grey(`$ cd ${i}`)), console.log(X.grey("$ pnpm install")), console.log(X.grey("$ pnpm start"));
7354
7354
  } catch (i) {
7355
7355
  await h.doCleanup(i);
7356
7356
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/create",
3
- "version": "5.0.0-next.140",
3
+ "version": "5.0.0-next.141",
4
4
  "description": "ArcGIS command line tool to create new web GIS projects and applications",
5
5
  "keywords": [
6
6
  "ArcGIS",