apps 0.0.1-beta.116 → 0.0.1-beta.117

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/js/openapi.js CHANGED
@@ -2000,12 +2000,15 @@ var planOperationNames = (inputs) => {
2000
2000
  const tokens = pathTokens(input.path);
2001
2001
  return { input, group, leaf, prefix, versionSegment, tokens, name: `${group}.${leaf}` };
2002
2002
  });
2003
+ const wanted = /* @__PURE__ */ new Map();
2004
+ for (const item of staged) wanted.set(item.name, (wanted.get(item.name) ?? 0) + 1);
2005
+ const settled = new Set(staged.filter((item) => wanted.get(item.name) === 1));
2003
2006
  const refine = (rename) => {
2004
2007
  const buckets = /* @__PURE__ */ new Map();
2005
2008
  for (const item of staged) buckets.set(item.name, [...buckets.get(item.name) ?? [], item]);
2006
2009
  for (const bucket of buckets.values())
2007
2010
  if (bucket.length > 1) {
2008
- const names = bucket.map((item) => rename(item, bucket));
2011
+ const names = bucket.map((item) => settled.has(item) ? item.name : rename(item, bucket));
2009
2012
  for (const [index, item] of bucket.entries()) item.name = names[index] ?? item.name;
2010
2013
  }
2011
2014
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps",
3
- "version": "0.0.1-beta.116",
3
+ "version": "0.0.1-beta.117",
4
4
  "description": "TypeScript apps with typed tools, accounts, storage, and UI.",
5
5
  "type": "module",
6
6
  "sideEffects": false,