@arcgis/create 5.1.0-next.89 → 5.1.0-next.90

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 +12 -6
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -2613,7 +2613,7 @@ const qa = /* @__PURE__ */ Mt(Ga), {
2613
2613
  Argument: jf,
2614
2614
  Option: Uf,
2615
2615
  Help: Hf
2616
- } = qa, Ua = "5.1.0-next.89", Ha = {
2616
+ } = qa, Ua = "5.1.0-next.90", Ha = {
2617
2617
  version: Ua
2618
2618
  }, D = {
2619
2619
  react: "react",
@@ -8475,6 +8475,7 @@ function Vt() {
8475
8475
  nullStr: "null",
8476
8476
  simpleKeys: !1,
8477
8477
  singleQuote: null,
8478
+ trailingComma: !1,
8478
8479
  trueStr: "true",
8479
8480
  verifyAliasOrder: !0
8480
8481
  }, o.schema.toStringOptions, p);
@@ -8815,8 +8816,8 @@ ${d}${E}` : `
8815
8816
  }
8816
8817
  C && (v = !0);
8817
8818
  let _ = h.stringify(E, d, () => C = null);
8818
- S < a.length - 1 && (_ += ","), C && (_ += m.lineComment(_, n, u(C))), !v && (b.length > r || _.includes(`
8819
- `)) && (v = !0), b.push(_), r = b.length;
8819
+ v || (v = b.length > r || _.includes(`
8820
+ `)), S < a.length - 1 ? _ += "," : o.options.trailingComma && (o.options.lineWidth > 0 && (v || (v = b.reduce(($, N) => $ + N.length + 2, 2) + (_.length + 2) > o.options.lineWidth)), v && (_ += ",")), C && (_ += m.lineComment(_, n, u(C))), b.push(_), r = b.length;
8820
8821
  }
8821
8822
  const { start: w, end: y } = p;
8822
8823
  if (b.length === 0)
@@ -10958,14 +10959,19 @@ function Ku() {
10958
10959
  case "block-map":
10959
10960
  case "block-seq":
10960
10961
  case "flow-collection":
10961
- w = m.composeCollection(s, n, t, l, c), r && (w.anchor = r.source.substring(1));
10962
+ try {
10963
+ w = m.composeCollection(s, n, t, l, c), r && (w.anchor = r.source.substring(1));
10964
+ } catch (S) {
10965
+ const E = S instanceof Error ? S.message : String(S);
10966
+ c(t, "RESOURCE_EXHAUSTION", E);
10967
+ }
10962
10968
  break;
10963
10969
  default: {
10964
10970
  const S = t.type === "error" ? t.message : `Unsupported token (type: ${t.type})`;
10965
- c(t, "UNEXPECTED_TOKEN", S), w = o(n, t.offset, void 0, null, l, c), y = !1;
10971
+ c(t, "UNEXPECTED_TOKEN", S), y = !1;
10966
10972
  }
10967
10973
  }
10968
- return r && w.anchor === "" && c(r, "BAD_ALIAS", "Anchor cannot be an empty string"), u && n.options.stringKeys && (!h.isScalar(w) || typeof w.value != "string" || w.tag && w.tag !== "tag:yaml.org,2002:str") && c(b ?? t, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), d && (w.spaceBefore = !0), v && (t.type === "scalar" && t.source === "" ? w.comment = v : w.commentBefore = v), n.options.keepSourceTokens && y && (w.srcToken = t), w;
10974
+ return w ?? (w = o(n, t.offset, void 0, null, l, c)), r && w.anchor === "" && c(r, "BAD_ALIAS", "Anchor cannot be an empty string"), u && n.options.stringKeys && (!h.isScalar(w) || typeof w.value != "string" || w.tag && w.tag !== "tag:yaml.org,2002:str") && c(b ?? t, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), d && (w.spaceBefore = !0), v && (t.type === "scalar" && t.source === "" ? w.comment = v : w.commentBefore = v), n.options.keepSourceTokens && y && (w.srcToken = t), w;
10969
10975
  }
10970
10976
  function o(n, t, l, c, { spaceBefore: u, comment: d, anchor: v, tag: r, end: b }, w) {
10971
10977
  const y = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/create",
3
- "version": "5.1.0-next.89",
3
+ "version": "5.1.0-next.90",
4
4
  "description": "The ArcGIS Maps SDK for JavaScript provides this CLI tool to streamline the process of creating a new web mapping application.",
5
5
  "keywords": [
6
6
  "ArcGIS",