@takeshape/cli 11.122.2 → 11.124.0

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/index.js +256 -179
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1471,7 +1471,7 @@ var require_camelcase_keys = __commonJS({
1471
1471
  x2.lastIndex = 0;
1472
1472
  return x2.test(key);
1473
1473
  });
1474
- var cache = new QuickLru({ maxSize: 1e5 });
1474
+ var cache2 = new QuickLru({ maxSize: 1e5 });
1475
1475
  var isObject7 = (value2) => typeof value2 === "object" && value2 !== null && !(value2 instanceof RegExp) && !(value2 instanceof Error) && !(value2 instanceof Date);
1476
1476
  var camelCaseConvert = (input, options2) => {
1477
1477
  if (!isObject7(input)) {
@@ -1493,12 +1493,12 @@ var require_camelcase_keys = __commonJS({
1493
1493
  }
1494
1494
  if (!(exclude && has2(exclude, key))) {
1495
1495
  const cacheKey = pascalCase5 ? `${key}_` : key;
1496
- if (cache.has(cacheKey)) {
1497
- key = cache.get(cacheKey);
1496
+ if (cache2.has(cacheKey)) {
1497
+ key = cache2.get(cacheKey);
1498
1498
  } else {
1499
1499
  const ret2 = camelCase3(key, { pascalCase: pascalCase5 });
1500
1500
  if (key.length < 100) {
1501
- cache.set(cacheKey, ret2);
1501
+ cache2.set(cacheKey, ret2);
1502
1502
  }
1503
1503
  key = ret2;
1504
1504
  }
@@ -5209,15 +5209,15 @@ var require_hosted_git_info = __commonJS({
5209
5209
  "http:": true,
5210
5210
  "git+http:": true
5211
5211
  };
5212
- var cache = {};
5212
+ var cache2 = {};
5213
5213
  module2.exports.fromUrl = function(giturl, opts) {
5214
5214
  if (typeof giturl !== "string")
5215
5215
  return;
5216
5216
  var key = giturl + JSON.stringify(opts || {});
5217
- if (!(key in cache)) {
5218
- cache[key] = fromUrl(giturl, opts);
5217
+ if (!(key in cache2)) {
5218
+ cache2[key] = fromUrl(giturl, opts);
5219
5219
  }
5220
- return cache[key];
5220
+ return cache2[key];
5221
5221
  };
5222
5222
  function fromUrl(giturl, opts) {
5223
5223
  if (giturl == null || giturl === "")
@@ -8107,7 +8107,7 @@ var require_range = __commonJS({
8107
8107
  parseRange(range) {
8108
8108
  const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
8109
8109
  const memoKey = memoOpts + ":" + range;
8110
- const cached = cache.get(memoKey);
8110
+ const cached = cache2.get(memoKey);
8111
8111
  if (cached) {
8112
8112
  return cached;
8113
8113
  }
@@ -8141,7 +8141,7 @@ var require_range = __commonJS({
8141
8141
  rangeMap.delete("");
8142
8142
  }
8143
8143
  const result = [...rangeMap.values()];
8144
- cache.set(memoKey, result);
8144
+ cache2.set(memoKey, result);
8145
8145
  return result;
8146
8146
  }
8147
8147
  intersects(range, options2) {
@@ -8180,7 +8180,7 @@ var require_range = __commonJS({
8180
8180
  };
8181
8181
  module2.exports = Range;
8182
8182
  var LRU = require_lrucache();
8183
- var cache = new LRU();
8183
+ var cache2 = new LRU();
8184
8184
  var parseOptions = require_parse_options();
8185
8185
  var Comparator = require_comparator();
8186
8186
  var debug = require_debug();
@@ -9982,7 +9982,7 @@ var require_hosted_git_info2 = __commonJS({
9982
9982
  var gitHosts = require_git_host_info2();
9983
9983
  var GitHost = module2.exports = require_git_host2();
9984
9984
  var LRU = require_lru_cache();
9985
- var cache = new LRU({ max: 1e3 });
9985
+ var cache2 = new LRU({ max: 1e3 });
9986
9986
  var protocolToRepresentationMap = {
9987
9987
  "git+ssh:": "sshurl",
9988
9988
  "git+https:": "https",
@@ -10005,10 +10005,10 @@ var require_hosted_git_info2 = __commonJS({
10005
10005
  return;
10006
10006
  }
10007
10007
  const key = giturl + JSON.stringify(opts || {});
10008
- if (!cache.has(key)) {
10009
- cache.set(key, fromUrl(giturl, opts));
10008
+ if (!cache2.has(key)) {
10009
+ cache2.set(key, fromUrl(giturl, opts));
10010
10010
  }
10011
- return cache.get(key);
10011
+ return cache2.get(key);
10012
10012
  };
10013
10013
  function fromUrl(giturl, opts) {
10014
10014
  if (!giturl) {
@@ -16663,33 +16663,33 @@ var require_ignore = __commonJS({
16663
16663
  };
16664
16664
  }
16665
16665
  // @returns {TestResult}
16666
- _test(originalPath, cache, checkUnignored, slices) {
16666
+ _test(originalPath, cache2, checkUnignored, slices) {
16667
16667
  const path16 = originalPath && checkPath.convert(originalPath);
16668
16668
  checkPath(
16669
16669
  path16,
16670
16670
  originalPath,
16671
16671
  this._allowRelativePaths ? RETURN_FALSE : throwError
16672
16672
  );
16673
- return this._t(path16, cache, checkUnignored, slices);
16673
+ return this._t(path16, cache2, checkUnignored, slices);
16674
16674
  }
16675
- _t(path16, cache, checkUnignored, slices) {
16676
- if (path16 in cache) {
16677
- return cache[path16];
16675
+ _t(path16, cache2, checkUnignored, slices) {
16676
+ if (path16 in cache2) {
16677
+ return cache2[path16];
16678
16678
  }
16679
16679
  if (!slices) {
16680
16680
  slices = path16.split(SLASH);
16681
16681
  }
16682
16682
  slices.pop();
16683
16683
  if (!slices.length) {
16684
- return cache[path16] = this._testOne(path16, checkUnignored);
16684
+ return cache2[path16] = this._testOne(path16, checkUnignored);
16685
16685
  }
16686
16686
  const parent = this._t(
16687
16687
  slices.join(SLASH) + SLASH,
16688
- cache,
16688
+ cache2,
16689
16689
  checkUnignored,
16690
16690
  slices
16691
16691
  );
16692
- return cache[path16] = parent.ignored ? parent : this._testOne(path16, checkUnignored);
16692
+ return cache2[path16] = parent.ignored ? parent : this._testOne(path16, checkUnignored);
16693
16693
  }
16694
16694
  ignores(path16) {
16695
16695
  return this._test(path16, this._ignoreCache, false).ignored;
@@ -27001,16 +27001,16 @@ var require_lodash = __commonJS({
27001
27001
  return this.__data__.has(key);
27002
27002
  }
27003
27003
  function stackSet(key, value2) {
27004
- var cache = this.__data__;
27005
- if (cache instanceof ListCache) {
27006
- var pairs = cache.__data__;
27004
+ var cache2 = this.__data__;
27005
+ if (cache2 instanceof ListCache) {
27006
+ var pairs = cache2.__data__;
27007
27007
  if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
27008
27008
  pairs.push([key, value2]);
27009
27009
  return this;
27010
27010
  }
27011
- cache = this.__data__ = new MapCache(pairs);
27011
+ cache2 = this.__data__ = new MapCache(pairs);
27012
27012
  }
27013
- cache.set(key, value2);
27013
+ cache2.set(key, value2);
27014
27014
  return this;
27015
27015
  }
27016
27016
  Stack.prototype.clear = stackClear;
@@ -39611,20 +39611,20 @@ var require_call_get = __commonJS({
39611
39611
  var makeGetter = function(propertyName) {
39612
39612
  return new Function("obj", " \n 'use strict'; \n return obj.propertyName; \n ".replace("propertyName", propertyName));
39613
39613
  };
39614
- var getCompiled = function(name, compiler, cache) {
39615
- var ret2 = cache[name];
39614
+ var getCompiled = function(name, compiler, cache2) {
39615
+ var ret2 = cache2[name];
39616
39616
  if (typeof ret2 !== "function") {
39617
39617
  if (!isIdentifier2(name)) {
39618
39618
  return null;
39619
39619
  }
39620
39620
  ret2 = compiler(name);
39621
- cache[name] = ret2;
39622
- cache[" size"]++;
39623
- if (cache[" size"] > 512) {
39624
- var keys = Object.keys(cache);
39621
+ cache2[name] = ret2;
39622
+ cache2[" size"]++;
39623
+ if (cache2[" size"] > 512) {
39624
+ var keys = Object.keys(cache2);
39625
39625
  for (var i2 = 0; i2 < 256; ++i2)
39626
- delete cache[keys[i2]];
39627
- cache[" size"] = keys.length - 256;
39626
+ delete cache2[keys[i2]];
39627
+ cache2[" size"] = keys.length - 256;
39628
39628
  }
39629
39629
  }
39630
39630
  return ret2;
@@ -44501,8 +44501,8 @@ var require_arraySome = __commonJS({
44501
44501
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js
44502
44502
  var require_cacheHas = __commonJS({
44503
44503
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js"(exports2, module2) {
44504
- function cacheHas(cache, key) {
44505
- return cache.has(key);
44504
+ function cacheHas(cache2, key) {
44505
+ return cache2.has(key);
44506
44506
  }
44507
44507
  module2.exports = cacheHas;
44508
44508
  }
@@ -44923,12 +44923,12 @@ var require_memoize = __commonJS({
44923
44923
  throw new TypeError(FUNC_ERROR_TEXT);
44924
44924
  }
44925
44925
  var memoized = function() {
44926
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
44927
- if (cache.has(key)) {
44928
- return cache.get(key);
44926
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache;
44927
+ if (cache2.has(key)) {
44928
+ return cache2.get(key);
44929
44929
  }
44930
44930
  var result = func.apply(this, args);
44931
- memoized.cache = cache.set(key, result) || cache;
44931
+ memoized.cache = cache2.set(key, result) || cache2;
44932
44932
  return result;
44933
44933
  };
44934
44934
  memoized.cache = new (memoize2.Cache || MapCache)();
@@ -44946,12 +44946,12 @@ var require_memoizeCapped = __commonJS({
44946
44946
  var MAX_MEMOIZE_SIZE = 500;
44947
44947
  function memoizeCapped(func) {
44948
44948
  var result = memoize2(func, function(key) {
44949
- if (cache.size === MAX_MEMOIZE_SIZE) {
44950
- cache.clear();
44949
+ if (cache2.size === MAX_MEMOIZE_SIZE) {
44950
+ cache2.clear();
44951
44951
  }
44952
44952
  return key;
44953
44953
  });
44954
- var cache = result.cache;
44954
+ var cache2 = result.cache;
44955
44955
  return result;
44956
44956
  }
44957
44957
  module2.exports = memoizeCapped;
@@ -83161,8 +83161,8 @@ var require_baseIntersection = __commonJS({
83161
83161
  if (!(seen ? cacheHas(seen, computed) : includes(result, computed, comparator))) {
83162
83162
  othIndex = othLength;
83163
83163
  while (--othIndex) {
83164
- var cache = caches[othIndex];
83165
- if (!(cache ? cacheHas(cache, computed) : includes(arrays[othIndex], computed, comparator))) {
83164
+ var cache2 = caches[othIndex];
83165
+ if (!(cache2 ? cacheHas(cache2, computed) : includes(arrays[othIndex], computed, comparator))) {
83166
83166
  continue outer;
83167
83167
  }
83168
83168
  }
@@ -88857,26 +88857,26 @@ var require_encode2 = __commonJS({
88857
88857
  "use strict";
88858
88858
  var encodeCache = {};
88859
88859
  function getEncodeCache(exclude) {
88860
- var i2, ch, cache = encodeCache[exclude];
88861
- if (cache) {
88862
- return cache;
88860
+ var i2, ch, cache2 = encodeCache[exclude];
88861
+ if (cache2) {
88862
+ return cache2;
88863
88863
  }
88864
- cache = encodeCache[exclude] = [];
88864
+ cache2 = encodeCache[exclude] = [];
88865
88865
  for (i2 = 0; i2 < 128; i2++) {
88866
88866
  ch = String.fromCharCode(i2);
88867
88867
  if (/^[0-9a-z]$/i.test(ch)) {
88868
- cache.push(ch);
88868
+ cache2.push(ch);
88869
88869
  } else {
88870
- cache.push("%" + ("0" + i2.toString(16).toUpperCase()).slice(-2));
88870
+ cache2.push("%" + ("0" + i2.toString(16).toUpperCase()).slice(-2));
88871
88871
  }
88872
88872
  }
88873
88873
  for (i2 = 0; i2 < exclude.length; i2++) {
88874
- cache[exclude.charCodeAt(i2)] = exclude[i2];
88874
+ cache2[exclude.charCodeAt(i2)] = exclude[i2];
88875
88875
  }
88876
- return cache;
88876
+ return cache2;
88877
88877
  }
88878
88878
  function encode2(string, exclude, keepEscaped) {
88879
- var i2, l, code2, nextCode, cache, result = "";
88879
+ var i2, l, code2, nextCode, cache2, result = "";
88880
88880
  if (typeof exclude !== "string") {
88881
88881
  keepEscaped = exclude;
88882
88882
  exclude = encode2.defaultChars;
@@ -88884,7 +88884,7 @@ var require_encode2 = __commonJS({
88884
88884
  if (typeof keepEscaped === "undefined") {
88885
88885
  keepEscaped = true;
88886
88886
  }
88887
- cache = getEncodeCache(exclude);
88887
+ cache2 = getEncodeCache(exclude);
88888
88888
  for (i2 = 0, l = string.length; i2 < l; i2++) {
88889
88889
  code2 = string.charCodeAt(i2);
88890
88890
  if (keepEscaped && code2 === 37 && i2 + 2 < l) {
@@ -88895,7 +88895,7 @@ var require_encode2 = __commonJS({
88895
88895
  }
88896
88896
  }
88897
88897
  if (code2 < 128) {
88898
- result += cache[code2];
88898
+ result += cache2[code2];
88899
88899
  continue;
88900
88900
  }
88901
88901
  if (code2 >= 55296 && code2 <= 57343) {
@@ -103388,7 +103388,7 @@ var require_to_regex = __commonJS({
103388
103388
  var extend = require_extend_shallow();
103389
103389
  var not = require_regex_not();
103390
103390
  var MAX_LENGTH = 1024 * 64;
103391
- var cache = {};
103391
+ var cache2 = {};
103392
103392
  module2.exports = function(patterns, options2) {
103393
103393
  if (!Array.isArray(patterns)) {
103394
103394
  return makeRe(patterns, options2);
@@ -103408,8 +103408,8 @@ var require_to_regex = __commonJS({
103408
103408
  var key = pattern;
103409
103409
  if (!options2 || options2 && options2.cache !== false) {
103410
103410
  key = createKey(pattern, options2);
103411
- if (cache.hasOwnProperty(key)) {
103412
- return cache[key];
103411
+ if (cache2.hasOwnProperty(key)) {
103412
+ return cache2[key];
103413
103413
  }
103414
103414
  }
103415
103415
  var opts = extend({}, options2);
@@ -103464,7 +103464,7 @@ var require_to_regex = __commonJS({
103464
103464
  define2(regex, "pattern", pattern);
103465
103465
  define2(regex, "options", options2);
103466
103466
  define2(regex, "key", key);
103467
- cache[key] = regex;
103467
+ cache2[key] = regex;
103468
103468
  }
103469
103469
  function createKey(pattern, options2) {
103470
103470
  if (!options2)
@@ -103852,7 +103852,7 @@ var require_repeat_string = __commonJS({
103852
103852
  "../../node_modules/.pnpm/repeat-string@1.6.1/node_modules/repeat-string/index.js"(exports2, module2) {
103853
103853
  "use strict";
103854
103854
  var res = "";
103855
- var cache;
103855
+ var cache2;
103856
103856
  module2.exports = repeat;
103857
103857
  function repeat(str, num) {
103858
103858
  if (typeof str !== "string") {
@@ -103863,8 +103863,8 @@ var require_repeat_string = __commonJS({
103863
103863
  if (num === 2)
103864
103864
  return str + str;
103865
103865
  var max = str.length * num;
103866
- if (cache !== str || typeof cache === "undefined") {
103867
- cache = str;
103866
+ if (cache2 !== str || typeof cache2 === "undefined") {
103867
+ cache2 = str;
103868
103868
  res = "";
103869
103869
  } else if (res.length >= max) {
103870
103870
  return res.substr(0, max);
@@ -103889,7 +103889,7 @@ var require_to_regex_range = __commonJS({
103889
103889
  "use strict";
103890
103890
  var repeat = require_repeat_string();
103891
103891
  var isNumber = require_is_number();
103892
- var cache = {};
103892
+ var cache2 = {};
103893
103893
  function toRegexRange(min, max, options2) {
103894
103894
  if (isNumber(min) === false) {
103895
103895
  throw new RangeError("toRegexRange: first argument is invalid.");
@@ -103905,8 +103905,8 @@ var require_to_regex_range = __commonJS({
103905
103905
  var shorthand = String(options2.shorthand);
103906
103906
  var capture = String(options2.capture);
103907
103907
  var key = min + ":" + max + "=" + relax + shorthand + capture;
103908
- if (cache.hasOwnProperty(key)) {
103909
- return cache[key].result;
103908
+ if (cache2.hasOwnProperty(key)) {
103909
+ return cache2[key].result;
103910
103910
  }
103911
103911
  var a3 = Math.min(min, max);
103912
103912
  var b2 = Math.max(min, max);
@@ -103940,7 +103940,7 @@ var require_to_regex_range = __commonJS({
103940
103940
  if (options2.capture && positives.length + negatives.length > 1) {
103941
103941
  tok.result = "(" + tok.result + ")";
103942
103942
  }
103943
- cache[key] = tok;
103943
+ cache2[key] = tok;
103944
103944
  return tok.result;
103945
103945
  }
103946
103946
  function siftPatterns(neg, pos, options2) {
@@ -106068,12 +106068,12 @@ var require_cache_base = __commonJS({
106068
106068
  var has2 = require_has_value2();
106069
106069
  var set13 = require_set_value();
106070
106070
  function namespace(prop) {
106071
- function Cache(cache) {
106071
+ function Cache(cache2) {
106072
106072
  if (prop) {
106073
106073
  this[prop] = {};
106074
106074
  }
106075
- if (cache) {
106076
- this.set(cache);
106075
+ if (cache2) {
106076
+ this.set(cache2);
106077
106077
  }
106078
106078
  }
106079
106079
  Emitter(Cache.prototype);
@@ -110310,13 +110310,13 @@ var require_braces2 = __commonJS({
110310
110310
  var Braces = require_braces();
110311
110311
  var utils = require_utils4();
110312
110312
  var MAX_LENGTH = 1024 * 64;
110313
- var cache = {};
110313
+ var cache2 = {};
110314
110314
  function braces(pattern, options2) {
110315
110315
  var key = utils.createKey(String(pattern), options2);
110316
110316
  var arr = [];
110317
110317
  var disabled = options2 && options2.cache === false;
110318
- if (!disabled && cache.hasOwnProperty(key)) {
110319
- return cache[key];
110318
+ if (!disabled && cache2.hasOwnProperty(key)) {
110319
+ return cache2[key];
110320
110320
  }
110321
110321
  if (Array.isArray(pattern)) {
110322
110322
  for (var i2 = 0; i2 < pattern.length; i2++) {
@@ -110329,7 +110329,7 @@ var require_braces2 = __commonJS({
110329
110329
  arr = unique2(arr);
110330
110330
  }
110331
110331
  if (!disabled) {
110332
- cache[key] = arr;
110332
+ cache2[key] = arr;
110333
110333
  }
110334
110334
  return arr;
110335
110335
  }
@@ -110398,7 +110398,7 @@ var require_braces2 = __commonJS({
110398
110398
  return proto2.compile(ast, options2);
110399
110399
  };
110400
110400
  braces.clearCache = function() {
110401
- cache = braces.cache = {};
110401
+ cache2 = braces.cache = {};
110402
110402
  };
110403
110403
  function memoize2(type, pattern, options2, fn) {
110404
110404
  var key = utils.createKey(type + ":" + pattern, options2);
@@ -110407,17 +110407,17 @@ var require_braces2 = __commonJS({
110407
110407
  braces.clearCache();
110408
110408
  return fn(pattern, options2);
110409
110409
  }
110410
- if (cache.hasOwnProperty(key)) {
110411
- return cache[key];
110410
+ if (cache2.hasOwnProperty(key)) {
110411
+ return cache2[key];
110412
110412
  }
110413
110413
  var res = fn(pattern, options2);
110414
- cache[key] = res;
110414
+ cache2[key] = res;
110415
110415
  return res;
110416
110416
  }
110417
110417
  braces.Braces = Braces;
110418
110418
  braces.compilers = compilers;
110419
110419
  braces.parsers = parsers;
110420
- braces.cache = cache;
110420
+ braces.cache = cache2;
110421
110421
  module2.exports = braces;
110422
110422
  }
110423
110423
  });
@@ -110937,9 +110937,9 @@ var require_fragment_cache = __commonJS({
110937
110937
  * @api public
110938
110938
  */
110939
110939
  set: function(cacheName, key, val) {
110940
- var cache = this.cache(cacheName);
110941
- cache.set(key, val);
110942
- return cache;
110940
+ var cache2 = this.cache(cacheName);
110941
+ cache2.set(key, val);
110942
+ return cache2;
110943
110943
  },
110944
110944
  /**
110945
110945
  * Returns true if a non-undefined value is set for `key` on fragment cache `name`.
@@ -110981,11 +110981,11 @@ var require_fragment_cache = __commonJS({
110981
110981
  * @api public
110982
110982
  */
110983
110983
  get: function(name, key) {
110984
- var cache = this.cache(name);
110984
+ var cache2 = this.cache(name);
110985
110985
  if (typeof key === "string") {
110986
- return cache.get(key);
110986
+ return cache2.get(key);
110987
110987
  }
110988
- return cache;
110988
+ return cache2;
110989
110989
  }
110990
110990
  };
110991
110991
  exports2 = module2.exports = FragmentCache;
@@ -111288,7 +111288,7 @@ var require_nanomatch = __commonJS({
111288
111288
  var extend = require_extend_shallow();
111289
111289
  var compilers = require_compilers2();
111290
111290
  var parsers = require_parsers2();
111291
- var cache = require_cache();
111291
+ var cache2 = require_cache();
111292
111292
  var utils = require_utils6();
111293
111293
  var MAX_LENGTH = 1024 * 64;
111294
111294
  function nanomatch(list2, patterns, options2) {
@@ -111610,16 +111610,16 @@ var require_nanomatch = __commonJS({
111610
111610
  if (options2 && options2.cache === false) {
111611
111611
  return fn(pattern, options2);
111612
111612
  }
111613
- if (cache.has(type, key)) {
111614
- return cache.get(type, key);
111613
+ if (cache2.has(type, key)) {
111614
+ return cache2.get(type, key);
111615
111615
  }
111616
111616
  var val = fn(pattern, options2);
111617
- cache.set(type, key, val);
111617
+ cache2.set(type, key, val);
111618
111618
  return val;
111619
111619
  }
111620
111620
  nanomatch.compilers = compilers;
111621
111621
  nanomatch.parsers = parsers;
111622
- nanomatch.cache = cache;
111622
+ nanomatch.cache = cache2;
111623
111623
  module2.exports = nanomatch;
111624
111624
  }
111625
111625
  });
@@ -112064,7 +112064,7 @@ var require_utils8 = __commonJS({
112064
112064
  var regex = require_regex_not();
112065
112065
  var Cache = require_fragment_cache();
112066
112066
  var utils = module2.exports;
112067
- var cache = utils.cache = new Cache();
112067
+ var cache2 = utils.cache = new Cache();
112068
112068
  utils.arrayify = function(val) {
112069
112069
  if (!Array.isArray(val)) {
112070
112070
  return [val];
@@ -112073,14 +112073,14 @@ var require_utils8 = __commonJS({
112073
112073
  };
112074
112074
  utils.memoize = function(type, pattern, options2, fn) {
112075
112075
  var key = utils.createKey(type + pattern, options2);
112076
- if (cache.has(type, key)) {
112077
- return cache.get(type, key);
112076
+ if (cache2.has(type, key)) {
112077
+ return cache2.get(type, key);
112078
112078
  }
112079
112079
  var val = fn(pattern, options2);
112080
112080
  if (options2 && options2.cache === false) {
112081
112081
  return val;
112082
112082
  }
112083
- cache.set(type, key, val);
112083
+ cache2.set(type, key, val);
112084
112084
  return val;
112085
112085
  };
112086
112086
  utils.createKey = function(pattern, options2) {
@@ -112655,7 +112655,7 @@ var require_micromatch = __commonJS({
112655
112655
  var extend = require_extend_shallow();
112656
112656
  var compilers = require_compilers5();
112657
112657
  var parsers = require_parsers5();
112658
- var cache = require_cache2();
112658
+ var cache2 = require_cache2();
112659
112659
  var utils = require_utils9();
112660
112660
  var MAX_LENGTH = 1024 * 64;
112661
112661
  function micromatch(list2, patterns, options2) {
@@ -112995,16 +112995,16 @@ var require_micromatch = __commonJS({
112995
112995
  if (options2 && options2.cache === false) {
112996
112996
  return fn(pattern, options2);
112997
112997
  }
112998
- if (cache.has(type, key)) {
112999
- return cache.get(type, key);
112998
+ if (cache2.has(type, key)) {
112999
+ return cache2.get(type, key);
113000
113000
  }
113001
113001
  var val = fn(pattern, options2);
113002
- cache.set(type, key, val);
113002
+ cache2.set(type, key, val);
113003
113003
  return val;
113004
113004
  }
113005
113005
  micromatch.compilers = compilers;
113006
113006
  micromatch.parsers = parsers;
113007
- micromatch.caches = cache.caches;
113007
+ micromatch.caches = cache2.caches;
113008
113008
  module2.exports = micromatch;
113009
113009
  }
113010
113010
  });
@@ -117591,10 +117591,10 @@ var require_old = __commonJS({
117591
117591
  splitRootRe = /^[\/]*/;
117592
117592
  }
117593
117593
  var splitRootRe;
117594
- exports2.realpathSync = function realpathSync2(p, cache) {
117594
+ exports2.realpathSync = function realpathSync2(p, cache2) {
117595
117595
  p = pathModule.resolve(p);
117596
- if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
117597
- return cache[p];
117596
+ if (cache2 && Object.prototype.hasOwnProperty.call(cache2, p)) {
117597
+ return cache2[p];
117598
117598
  }
117599
117599
  var original = p, seenLinks = {}, knownHard = {};
117600
117600
  var pos;
@@ -117620,18 +117620,18 @@ var require_old = __commonJS({
117620
117620
  current += result[0];
117621
117621
  base = previous + result[1];
117622
117622
  pos = nextPartRe.lastIndex;
117623
- if (knownHard[base] || cache && cache[base] === base) {
117623
+ if (knownHard[base] || cache2 && cache2[base] === base) {
117624
117624
  continue;
117625
117625
  }
117626
117626
  var resolvedLink;
117627
- if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
117628
- resolvedLink = cache[base];
117627
+ if (cache2 && Object.prototype.hasOwnProperty.call(cache2, base)) {
117628
+ resolvedLink = cache2[base];
117629
117629
  } else {
117630
117630
  var stat = fs11.lstatSync(base);
117631
117631
  if (!stat.isSymbolicLink()) {
117632
117632
  knownHard[base] = true;
117633
- if (cache)
117634
- cache[base] = base;
117633
+ if (cache2)
117634
+ cache2[base] = base;
117635
117635
  continue;
117636
117636
  }
117637
117637
  var linkTarget = null;
@@ -117646,26 +117646,26 @@ var require_old = __commonJS({
117646
117646
  linkTarget = fs11.readlinkSync(base);
117647
117647
  }
117648
117648
  resolvedLink = pathModule.resolve(previous, linkTarget);
117649
- if (cache)
117650
- cache[base] = resolvedLink;
117649
+ if (cache2)
117650
+ cache2[base] = resolvedLink;
117651
117651
  if (!isWindows)
117652
117652
  seenLinks[id] = linkTarget;
117653
117653
  }
117654
117654
  p = pathModule.resolve(resolvedLink, p.slice(pos));
117655
117655
  start();
117656
117656
  }
117657
- if (cache)
117658
- cache[original] = p;
117657
+ if (cache2)
117658
+ cache2[original] = p;
117659
117659
  return p;
117660
117660
  };
117661
- exports2.realpath = function realpath(p, cache, cb) {
117661
+ exports2.realpath = function realpath(p, cache2, cb) {
117662
117662
  if (typeof cb !== "function") {
117663
- cb = maybeCallback(cache);
117664
- cache = null;
117663
+ cb = maybeCallback(cache2);
117664
+ cache2 = null;
117665
117665
  }
117666
117666
  p = pathModule.resolve(p);
117667
- if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
117668
- return process.nextTick(cb.bind(null, null, cache[p]));
117667
+ if (cache2 && Object.prototype.hasOwnProperty.call(cache2, p)) {
117668
+ return process.nextTick(cb.bind(null, null, cache2[p]));
117669
117669
  }
117670
117670
  var original = p, seenLinks = {}, knownHard = {};
117671
117671
  var pos;
@@ -117692,8 +117692,8 @@ var require_old = __commonJS({
117692
117692
  }
117693
117693
  function LOOP() {
117694
117694
  if (pos >= p.length) {
117695
- if (cache)
117696
- cache[original] = p;
117695
+ if (cache2)
117696
+ cache2[original] = p;
117697
117697
  return cb(null, p);
117698
117698
  }
117699
117699
  nextPartRe.lastIndex = pos;
@@ -117702,11 +117702,11 @@ var require_old = __commonJS({
117702
117702
  current += result[0];
117703
117703
  base = previous + result[1];
117704
117704
  pos = nextPartRe.lastIndex;
117705
- if (knownHard[base] || cache && cache[base] === base) {
117705
+ if (knownHard[base] || cache2 && cache2[base] === base) {
117706
117706
  return process.nextTick(LOOP);
117707
117707
  }
117708
- if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
117709
- return gotResolvedLink(cache[base]);
117708
+ if (cache2 && Object.prototype.hasOwnProperty.call(cache2, base)) {
117709
+ return gotResolvedLink(cache2[base]);
117710
117710
  }
117711
117711
  return fs11.lstat(base, gotStat);
117712
117712
  }
@@ -117715,8 +117715,8 @@ var require_old = __commonJS({
117715
117715
  return cb(err);
117716
117716
  if (!stat.isSymbolicLink()) {
117717
117717
  knownHard[base] = true;
117718
- if (cache)
117719
- cache[base] = base;
117718
+ if (cache2)
117719
+ cache2[base] = base;
117720
117720
  return process.nextTick(LOOP);
117721
117721
  }
117722
117722
  if (!isWindows) {
@@ -117739,8 +117739,8 @@ var require_old = __commonJS({
117739
117739
  if (err)
117740
117740
  return cb(err);
117741
117741
  var resolvedLink = pathModule.resolve(previous, target);
117742
- if (cache)
117743
- cache[base2] = resolvedLink;
117742
+ if (cache2)
117743
+ cache2[base2] = resolvedLink;
117744
117744
  gotResolvedLink(resolvedLink);
117745
117745
  }
117746
117746
  function gotResolvedLink(resolvedLink) {
@@ -117769,31 +117769,31 @@ var require_fs3 = __commonJS({
117769
117769
  function newError(er) {
117770
117770
  return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG");
117771
117771
  }
117772
- function realpath(p, cache, cb) {
117772
+ function realpath(p, cache2, cb) {
117773
117773
  if (ok) {
117774
- return origRealpath(p, cache, cb);
117774
+ return origRealpath(p, cache2, cb);
117775
117775
  }
117776
- if (typeof cache === "function") {
117777
- cb = cache;
117778
- cache = null;
117776
+ if (typeof cache2 === "function") {
117777
+ cb = cache2;
117778
+ cache2 = null;
117779
117779
  }
117780
- origRealpath(p, cache, function(er, result) {
117780
+ origRealpath(p, cache2, function(er, result) {
117781
117781
  if (newError(er)) {
117782
- old.realpath(p, cache, cb);
117782
+ old.realpath(p, cache2, cb);
117783
117783
  } else {
117784
117784
  cb(er, result);
117785
117785
  }
117786
117786
  });
117787
117787
  }
117788
- function realpathSync2(p, cache) {
117788
+ function realpathSync2(p, cache2) {
117789
117789
  if (ok) {
117790
- return origRealpathSync(p, cache);
117790
+ return origRealpathSync(p, cache2);
117791
117791
  }
117792
117792
  try {
117793
- return origRealpathSync(p, cache);
117793
+ return origRealpathSync(p, cache2);
117794
117794
  } catch (er) {
117795
117795
  if (newError(er)) {
117796
- return old.realpathSync(p, cache);
117796
+ return old.realpathSync(p, cache2);
117797
117797
  } else {
117798
117798
  throw er;
117799
117799
  }
@@ -120420,8 +120420,8 @@ var require_lodash3 = __commonJS({
120420
120420
  return object2[key];
120421
120421
  });
120422
120422
  }
120423
- function cacheHas(cache, key) {
120424
- return cache.has(key);
120423
+ function cacheHas(cache2, key) {
120424
+ return cache2.has(key);
120425
120425
  }
120426
120426
  function charsStartIndex(strSymbols, chrSymbols) {
120427
120427
  var index2 = -1, length = strSymbols.length;
@@ -121236,8 +121236,8 @@ var require_lodash3 = __commonJS({
121236
121236
  if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) {
121237
121237
  othIndex = othLength;
121238
121238
  while (--othIndex) {
121239
- var cache = caches[othIndex];
121240
- if (!(cache ? cacheHas(cache, computed) : includes2(arrays[othIndex], computed, comparator))) {
121239
+ var cache2 = caches[othIndex];
121240
+ if (!(cache2 ? cacheHas(cache2, computed) : includes2(arrays[othIndex], computed, comparator))) {
121241
121241
  continue outer;
121242
121242
  }
121243
121243
  }
@@ -122811,12 +122811,12 @@ var require_lodash3 = __commonJS({
122811
122811
  }
122812
122812
  function memoizeCapped(func) {
122813
122813
  var result2 = memoize2(func, function(key) {
122814
- if (cache.size === MAX_MEMOIZE_SIZE) {
122815
- cache.clear();
122814
+ if (cache2.size === MAX_MEMOIZE_SIZE) {
122815
+ cache2.clear();
122816
122816
  }
122817
122817
  return key;
122818
122818
  });
122819
- var cache = result2.cache;
122819
+ var cache2 = result2.cache;
122820
122820
  return result2;
122821
122821
  }
122822
122822
  function mergeData(data, source) {
@@ -123770,12 +123770,12 @@ var require_lodash3 = __commonJS({
123770
123770
  throw new TypeError2(FUNC_ERROR_TEXT);
123771
123771
  }
123772
123772
  var memoized = function() {
123773
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
123774
- if (cache.has(key)) {
123775
- return cache.get(key);
123773
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache2 = memoized.cache;
123774
+ if (cache2.has(key)) {
123775
+ return cache2.get(key);
123776
123776
  }
123777
123777
  var result2 = func.apply(this, args);
123778
- memoized.cache = cache.set(key, result2) || cache;
123778
+ memoized.cache = cache2.set(key, result2) || cache2;
123779
123779
  return result2;
123780
123780
  };
123781
123781
  memoized.cache = new (memoize2.Cache || MapCache)();
@@ -200906,13 +200906,13 @@ var require_parse_filepath = __commonJS({
200906
200906
  var isAbsolute3 = require_is_absolute();
200907
200907
  var pathRoot = require_path_root();
200908
200908
  var MapCache = require_map_cache();
200909
- var cache = new MapCache();
200909
+ var cache2 = new MapCache();
200910
200910
  module2.exports = function(filepath) {
200911
200911
  if (typeof filepath !== "string") {
200912
200912
  throw new TypeError("parse-filepath expects a string");
200913
200913
  }
200914
- if (cache.has(filepath)) {
200915
- return cache.get(filepath);
200914
+ if (cache2.has(filepath)) {
200915
+ return cache2.get(filepath);
200916
200916
  }
200917
200917
  var obj2 = {};
200918
200918
  if (typeof path16.parse === "function") {
@@ -200962,7 +200962,7 @@ var require_parse_filepath = __commonJS({
200962
200962
  define2(obj2, "isAbsolute", function() {
200963
200963
  return isAbsolute3(this.path);
200964
200964
  });
200965
- cache.set(filepath, obj2);
200965
+ cache2.set(filepath, obj2);
200966
200966
  return obj2;
200967
200967
  };
200968
200968
  function define2(obj2, prop, fn) {
@@ -204950,7 +204950,7 @@ var require_queue3 = __commonJS({
204950
204950
  if (!(_concurrency >= 1)) {
204951
204951
  throw new Error("fastqueue concurrency must be equal to or greater than 1");
204952
204952
  }
204953
- var cache = reusify(Task);
204953
+ var cache2 = reusify(Task);
204954
204954
  var queueHead = null;
204955
204955
  var queueTail = null;
204956
204956
  var _running = 0;
@@ -205030,7 +205030,7 @@ var require_queue3 = __commonJS({
205030
205030
  return _running === 0 && self2.length() === 0;
205031
205031
  }
205032
205032
  function push2(value2, done) {
205033
- var current = cache.get();
205033
+ var current = cache2.get();
205034
205034
  current.context = context;
205035
205035
  current.release = release;
205036
205036
  current.value = value2;
@@ -205051,7 +205051,7 @@ var require_queue3 = __commonJS({
205051
205051
  }
205052
205052
  }
205053
205053
  function unshift2(value2, done) {
205054
- var current = cache.get();
205054
+ var current = cache2.get();
205055
205055
  current.context = context;
205056
205056
  current.release = release;
205057
205057
  current.value = value2;
@@ -205073,7 +205073,7 @@ var require_queue3 = __commonJS({
205073
205073
  }
205074
205074
  function release(holder) {
205075
205075
  if (holder) {
205076
- cache.release(holder);
205076
+ cache2.release(holder);
205077
205077
  }
205078
205078
  var next2 = queueHead;
205079
205079
  if (next2 && _running <= _concurrency) {
@@ -206930,7 +206930,7 @@ var engines = {
206930
206930
  };
206931
206931
  var package_default = {
206932
206932
  name: "@takeshape/cli",
206933
- version: "11.122.2",
206933
+ version: "11.124.0",
206934
206934
  description: "TakeShape CLI",
206935
206935
  homepage: "https://www.takeshape.io",
206936
206936
  repository: {
@@ -398014,6 +398014,34 @@ var createWrapTransform = (projectSchema) => (obj2, schema22, name, shape, next2
398014
398014
  }
398015
398015
  };
398016
398016
 
398017
+ // ../schema/dist/util/find-shape-at-path.js
398018
+ function findSchemaAtPath(projectSchema, schema22, queryPath) {
398019
+ if (queryPath.length === 0) {
398020
+ return schema22;
398021
+ }
398022
+ const [prop, ...rest] = queryPath;
398023
+ if (isRefSchema(schema22)) {
398024
+ const ref = getRef(projectSchema, schema22);
398025
+ if (ref) {
398026
+ const shapeSchema = refItemToShapeSchema(projectSchema, ref);
398027
+ if (shapeSchema) {
398028
+ return findSchemaAtPath(projectSchema, shapeSchema, queryPath);
398029
+ }
398030
+ }
398031
+ return void 0;
398032
+ }
398033
+ if (isArraySchema(schema22)) {
398034
+ return findSchemaAtPath(projectSchema, schema22.items, queryPath);
398035
+ }
398036
+ if (isObjectSchema(schema22)) {
398037
+ const propSchema = schema22.properties[prop];
398038
+ if (propSchema) {
398039
+ return findSchemaAtPath(projectSchema, propSchema, rest);
398040
+ }
398041
+ }
398042
+ return void 0;
398043
+ }
398044
+
398017
398045
  // ../schema/dist/util/has-arg.js
398018
398046
  function getArgs(prop) {
398019
398047
  return "@args" in prop ? prop["@args"] : "args" in prop ? prop.args : void 0;
@@ -398871,12 +398899,12 @@ var import_defaults = __toESM(require_defaults4(), 1);
398871
398899
  var inputSchemaCache = /* @__PURE__ */ new Map();
398872
398900
  function getInputSchemaCache(options2) {
398873
398901
  const key = JSON.stringify(options2, Object.keys(options2).sort());
398874
- let cache = inputSchemaCache.get(key);
398875
- if (!cache) {
398876
- cache = /* @__PURE__ */ new WeakMap();
398877
- inputSchemaCache.set(key, cache);
398902
+ let cache2 = inputSchemaCache.get(key);
398903
+ if (!cache2) {
398904
+ cache2 = /* @__PURE__ */ new WeakMap();
398905
+ inputSchemaCache.set(key, cache2);
398878
398906
  }
398879
- return cache;
398907
+ return cache2;
398880
398908
  }
398881
398909
  function createInputSchema(schema22, options2 = {}) {
398882
398910
  const inputSchemaCache2 = getInputSchemaCache((0, import_defaults.default)({ isUpdate: false }, options2));
@@ -401898,10 +401926,10 @@ JSONPath.toPointer = function(pointer) {
401898
401926
  };
401899
401927
  JSONPath.toPathArray = function(expr) {
401900
401928
  const {
401901
- cache
401929
+ cache: cache2
401902
401930
  } = JSONPath;
401903
- if (cache[expr]) {
401904
- return cache[expr].concat();
401931
+ if (cache2[expr]) {
401932
+ return cache2[expr].concat();
401905
401933
  }
401906
401934
  const subx = [];
401907
401935
  const normalized = expr.replaceAll(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/gu, ";$&;").replaceAll(/[['](\??\(.*?\))[\]'](?!.\])/gu, function($0, $1) {
@@ -401915,8 +401943,8 @@ JSONPath.toPathArray = function(expr) {
401915
401943
  const match3 = exp.match(/#(\d+)/u);
401916
401944
  return !match3 || !match3[1] ? exp : subx[match3[1]];
401917
401945
  });
401918
- cache[expr] = exprList;
401919
- return cache[expr].concat();
401946
+ cache2[expr] = exprList;
401947
+ return cache2[expr].concat();
401920
401948
  };
401921
401949
  JSONPath.prototype.safeVm = {
401922
401950
  Script: SafeScript
@@ -402600,6 +402628,50 @@ function getMcpToolMap(projectSchema) {
402600
402628
  return projectSchema.mcp?.tools;
402601
402629
  }
402602
402630
 
402631
+ // ../schema/dist/util/get-return-shape.js
402632
+ function isQuery(propOrQuery) {
402633
+ return "shape" in propOrQuery && "resolver" in propOrQuery;
402634
+ }
402635
+ function getReturnShapeHelper(projectSchema, propOrQuery) {
402636
+ let shape;
402637
+ if (isQuery(propOrQuery)) {
402638
+ const { shapeName: shapeName14 } = parseReturnShape(projectSchema, propOrQuery.shape);
402639
+ shape = projectSchema.shapes[shapeName14];
402640
+ } else {
402641
+ const ref = getRef(projectSchema, propOrQuery);
402642
+ if (ref) {
402643
+ shape = refItemToShape(projectSchema, ref);
402644
+ }
402645
+ }
402646
+ return shape;
402647
+ }
402648
+ var cache = /* @__PURE__ */ new WeakMap();
402649
+ function getReturnShape(projectSchema, propOrQuery) {
402650
+ let result = cache.get(propOrQuery);
402651
+ if (result === void 0) {
402652
+ result = getReturnShapeHelper(projectSchema, propOrQuery);
402653
+ cache.set(propOrQuery, result ?? null);
402654
+ }
402655
+ return result ?? void 0;
402656
+ }
402657
+
402658
+ // ../schema/dist/util/query-field-path.js
402659
+ function parseFieldName(fieldName) {
402660
+ return fieldName.split(".");
402661
+ }
402662
+ function getQueryFieldPath(operation, fieldName) {
402663
+ return [operation === "query" ? "queries" : "mutations", ...parseFieldName(fieldName)];
402664
+ }
402665
+ function findSchemaAtQueryFieldPath(schema22, queryFieldPath) {
402666
+ const [operationName, queryName, ...fieldPath] = queryFieldPath;
402667
+ const queryOrMutation = schema22[operationName]?.[queryName];
402668
+ if (!queryOrMutation) {
402669
+ return void 0;
402670
+ }
402671
+ const shape = getReturnShape(schema22, queryOrMutation);
402672
+ return shape ? findSchemaAtPath(schema22, shape.schema, fieldPath) : void 0;
402673
+ }
402674
+
402603
402675
  // ../schema/dist/validate/ai.js
402604
402676
  var import_get11 = __toESM(require_get(), 1);
402605
402677
 
@@ -404212,15 +404284,16 @@ async function validateResolverReferences(context, basePath, baseResolver) {
404212
404284
  await (0, import_p_map.default)(enumerateBasicResolvers(baseResolver, basePath), async ([resolver, path16]) => {
404213
404285
  if (resolver.name === "graphql:query" || resolver.name === "graphql:mutation") {
404214
404286
  const { service, fieldName } = resolver;
404215
- const prop = resolver.name === "graphql:query" ? "queries" : "mutations";
404287
+ const operationProp = resolver.name === "graphql:query" ? "query" : "mutation";
404288
+ const { projectSchema: { services } } = context;
404216
404289
  const layerState = await context.resolveLayer(service);
404217
- const valid = layerState.status === "ok" ? Boolean(layerState.schema[prop][fieldName]) : allowDisconnected(context, layerState.status);
404290
+ const { schema: layerSchema, status: layerStatus } = layerState;
404291
+ const valid = layerStatus === "ok" ? Boolean(findSchemaAtQueryFieldPath({ ...layerSchema, services }, getQueryFieldPath(operationProp, fieldName))) : allowDisconnected(context, layerState.status);
404218
404292
  if (!valid) {
404219
- const operation = resolver.name === "graphql:query" ? "query" : "mutation";
404220
404293
  errors.push({
404221
404294
  type: "notFound",
404222
404295
  path: path16.concat("fieldName"),
404223
- message: `Missing ${operation} "${resolver.fieldName}" in service layer "${service}"`
404296
+ message: `Missing ${operationProp} "${resolver.fieldName}" in service layer "${service}"`
404224
404297
  });
404225
404298
  }
404226
404299
  } else if (resolver.name === "delegate") {
@@ -404794,10 +404867,14 @@ async function validateSchema(context, obj2) {
404794
404867
  return invalidVersionResult;
404795
404868
  }
404796
404869
  const syntaxValidation = validateSyntax(contextWithDefaults, schema22);
404797
- if (!syntaxValidation.valid || !isValidateReferencesContext(contextWithDefaults)) {
404870
+ const validateReferencesContext = {
404871
+ ...contextWithDefaults,
404872
+ projectSchema: schema22
404873
+ };
404874
+ if (!syntaxValidation.valid || !isValidateReferencesContext(validateReferencesContext)) {
404798
404875
  return syntaxValidation;
404799
404876
  }
404800
- return validateReferences(contextWithDefaults, schema22);
404877
+ return validateReferences(validateReferencesContext, schema22);
404801
404878
  }
404802
404879
  function createRoleImportValidator() {
404803
404880
  const validator = createAjv({ useDefaults: true, removeAdditional: true });
@@ -405769,18 +405846,18 @@ function flattenListQueryConfigs(base, queryConfig, maybeConfigArray) {
405769
405846
  }
405770
405847
  function getQueryIndexConfigHelper(op) {
405771
405848
  return ({ shapes }, shapeName14) => {
405772
- const { cache, loaders } = shapes[shapeName14] ?? {};
405773
- if (cache && loaders) {
405774
- const idField = getIdField(cache);
405849
+ const { cache: cache2, loaders } = shapes[shapeName14] ?? {};
405850
+ if (cache2 && loaders) {
405851
+ const idField = getIdField(cache2);
405775
405852
  if (op === "list") {
405776
- return flattenListQueryConfigs({ shapeName: shapeName14, idField }, cache.fragment, loaders.list);
405853
+ return flattenListQueryConfigs({ shapeName: shapeName14, idField }, cache2.fragment, loaders.list);
405777
405854
  }
405778
405855
  const queryConfig = loaders.get;
405779
405856
  if (queryConfig) {
405780
405857
  return {
405781
405858
  idField,
405782
405859
  shapeName: shapeName14,
405783
- ...cache.fragment,
405860
+ ...cache2.fragment,
405784
405861
  ...queryConfig
405785
405862
  };
405786
405863
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/cli",
3
- "version": "11.122.2",
3
+ "version": "11.124.0",
4
4
  "description": "TakeShape CLI",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -69,11 +69,11 @@
69
69
  "stream-to-promise": "2.2.0",
70
70
  "tmp": "0.0.33",
71
71
  "unzipper": "0.10.11",
72
- "@takeshape/branches": "11.122.2",
73
- "@takeshape/util": "11.122.2",
74
- "@takeshape/ssg": "11.122.2",
75
- "@takeshape/streams": "11.122.2",
76
- "@takeshape/schema": "11.122.2"
72
+ "@takeshape/branches": "11.124.0",
73
+ "@takeshape/schema": "11.124.0",
74
+ "@takeshape/ssg": "11.124.0",
75
+ "@takeshape/util": "11.124.0",
76
+ "@takeshape/streams": "11.124.0"
77
77
  },
78
78
  "engines": {
79
79
  "node": ">=22"