@kubb/studio 5.15.1 → 5.15.2

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/dist/index.cjs CHANGED
@@ -234,7 +234,7 @@ function getElapsedMs(hrStart) {
234
234
  return Math.round(ms * 100) / 100;
235
235
  }
236
236
  // package.json
237
- var version = "5.15.1";
237
+ var version = "5.15.2";
238
238
  // ../../internals/shared/src/constants.ts
239
239
  /**
240
240
  * Extensions `kubb` ships at its own version, so they count as installed without being a direct
@@ -1424,19 +1424,6 @@ async function listDisk({ root, outputPath, maxFiles }) {
1424
1424
  };
1425
1425
  }
1426
1426
  /**
1427
- * The input as Studio stores and receives it. `JSON.stringify` writes a `Set` as `{}`, so the `meta` name sets become arrays.
1428
- */
1429
- function toInputJson(input) {
1430
- return {
1431
- ...input,
1432
- meta: {
1433
- ...input.meta,
1434
- circularNames: [...input.meta.circularNames],
1435
- enumNames: [...input.meta.enumNames]
1436
- }
1437
- };
1438
- }
1439
- /**
1440
1427
  * Keeps recent generations by job id in `storage`, with an index next to them so a store on disk
1441
1428
  * survives a restart. A generation is only ever looked up by its job id, so on a pooled sandbox one
1442
1429
  * tenant never reaches another's output. Initial disk output and generated jobs each get their
@@ -1543,10 +1530,10 @@ function createGenerationStore({ storage, maxCount, maxMb, ttlMs, now = Date.now
1543
1530
  if (!input) return 0;
1544
1531
  let json;
1545
1532
  try {
1546
- json = JSON.stringify(toInputJson(_kubb_ast.ast.transform(input, { schema: (node) => node.type === "ref" && node.schema ? {
1533
+ json = JSON.stringify(_kubb_ast.ast.transform(input, { schema: (node) => node.type === "ref" && node.schema ? {
1547
1534
  ...node,
1548
1535
  schema: void 0
1549
- } : void 0 })));
1536
+ } : void 0 }));
1550
1537
  } catch {
1551
1538
  return 0;
1552
1539
  }
@@ -2265,9 +2252,9 @@ const INSTALL_TIMEOUT_MS = 3e5;
2265
2252
  const REGISTRY_ID = /^[a-z0-9]+(?:-[a-z0-9]+)*(?:\/[a-z0-9]+(?:-[a-z0-9]+)*)?$/;
2266
2253
  /** The CLI the project depends on, so `kubb add` installs next to what the config imports. */
2267
2254
  function findKubbBin(root) {
2268
- const require$1 = (0, node_module.createRequire)(node_path.default.resolve(root, "package.json"));
2255
+ const requireModule = (0, node_module.createRequire)(node_path.default.resolve(root, "package.json"));
2269
2256
  const names = ["kubb", "@kubb/cli"];
2270
- return (require$1.resolve.paths("kubb") ?? []).flatMap((dir) => names.map((name) => node_path.default.join(dir, name, "bin", "kubb.js"))).find((bin) => (0, node_fs.existsSync)(bin));
2257
+ return (requireModule.resolve.paths("kubb") ?? []).flatMap((dir) => names.map((name) => node_path.default.join(dir, name, "bin", "kubb.js"))).find((bin) => (0, node_fs.existsSync)(bin));
2271
2258
  }
2272
2259
  /** Runs a `kubb` command without a shell, and keeps the end of its output for the failure reason. */
2273
2260
  async function runKubb({ bin, args, cwd, signal }) {