@farm.js/core 0.2.0-beta.0 → 0.2.0-beta.1

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 (92) hide show
  1. package/dist/analyzer-IIWSUXSQ.cjs +17 -0
  2. package/dist/{analyzer-PWHYGER6.mjs → analyzer-RYSF2BM3.mjs} +2 -2
  3. package/dist/api/route-manager.cjs +3 -3
  4. package/dist/api/route-manager.mjs +2 -2
  5. package/dist/api.cjs +4 -4
  6. package/dist/api.mjs +3 -3
  7. package/dist/{app.d-b3A4cca5.d.ts → app.d-CoY-zsJt.d.ts} +1 -1
  8. package/dist/{app.d-AVZXCfcO.d.mts → app.d-DE5KNbmf.d.mts} +1 -1
  9. package/dist/{chunk-W3ZBLFLU.mjs → chunk-23BZ7ZH6.mjs} +1 -1
  10. package/dist/{chunk-FEWCWBOF.cjs → chunk-27ESPHQA.cjs} +4 -4
  11. package/dist/{chunk-WPB6HJC7.mjs → chunk-2U2GRXP5.mjs} +1 -1
  12. package/dist/{chunk-L6ZL35ZJ.mjs → chunk-4A6A6P4T.mjs} +2 -2
  13. package/dist/{chunk-JGUMFTZT.cjs → chunk-6BMAGVDI.cjs} +4 -4
  14. package/dist/{chunk-CFLRUCN7.cjs → chunk-6ETHVRFO.cjs} +135 -135
  15. package/dist/{chunk-MZPPT5NA.mjs → chunk-AMMFRXFW.mjs} +1 -1
  16. package/dist/{chunk-GV5D5EM6.mjs → chunk-ANKMAGFJ.mjs} +1 -1
  17. package/dist/{chunk-SCOKBXHS.mjs → chunk-CIQCJ72N.mjs} +13 -13
  18. package/dist/{chunk-ZOD6EYWE.mjs → chunk-CPMK7EFR.mjs} +1 -1
  19. package/dist/{chunk-MM4U2NNI.mjs → chunk-DZC2XGK4.mjs} +24 -18
  20. package/dist/{chunk-XJJQAFZX.mjs → chunk-EBKYRP2P.mjs} +1 -1
  21. package/dist/{chunk-CNGGEHXY.cjs → chunk-FJGA3XWL.cjs} +2 -2
  22. package/dist/{chunk-PTAGDZ7I.mjs → chunk-GTHBWZUK.mjs} +5 -1
  23. package/dist/{chunk-SG5RFGV6.cjs → chunk-HENPVGZC.cjs} +2 -2
  24. package/dist/{chunk-MRULVIH3.mjs → chunk-ISSFWEPY.mjs} +1 -1
  25. package/dist/{chunk-PQ6DBVJ2.cjs → chunk-KBIM7PFQ.cjs} +73 -67
  26. package/dist/{chunk-ERV422FO.cjs → chunk-KRU3XPOW.cjs} +2 -2
  27. package/dist/{chunk-TQFIZRON.cjs → chunk-L4B7PB3H.cjs} +126 -126
  28. package/dist/{chunk-VMGQOP7X.cjs → chunk-M3JYBZO2.cjs} +2 -2
  29. package/dist/{chunk-SUACCCZG.cjs → chunk-N2ZMSSPP.cjs} +11 -11
  30. package/dist/{chunk-7LBNWL3L.cjs → chunk-ND65INFS.cjs} +2 -2
  31. package/dist/{chunk-WOTAU3BN.mjs → chunk-NVXU5BEG.mjs} +47 -28
  32. package/dist/{chunk-HU4R2PPW.cjs → chunk-NZRAUCUL.cjs} +2 -2
  33. package/dist/{chunk-PA3VZNWU.cjs → chunk-OIPPISQ6.cjs} +81 -62
  34. package/dist/{chunk-H47EH24T.mjs → chunk-OQOII62L.mjs} +1 -1
  35. package/dist/{chunk-LUGQUU4S.mjs → chunk-PKV3JGMS.mjs} +1 -1
  36. package/dist/{chunk-BQHIJOZM.cjs → chunk-SIECKBNK.cjs} +6 -2
  37. package/dist/{chunk-JDO3X7RB.mjs → chunk-SPKZCFPH.mjs} +1 -1
  38. package/dist/{chunk-3MY6TNNE.cjs → chunk-TWFJJPE7.cjs} +3 -3
  39. package/dist/{chunk-6266WH6X.cjs → chunk-V3Y3R3JJ.cjs} +1 -1
  40. package/dist/{chunk-YCHIR3X6.mjs → chunk-VZWAXQME.mjs} +1 -1
  41. package/dist/{chunk-5ZWXTIGE.cjs → chunk-WEZTGM7N.cjs} +2 -2
  42. package/dist/{chunk-BJHXFEAF.mjs → chunk-YPAOC3FO.mjs} +2 -2
  43. package/dist/{chunk-M4CNAZMS.mjs → chunk-Z7ZRBCAB.mjs} +11 -11
  44. package/dist/{chunk-XRYLMTYF.cjs → chunk-ZPQY7O64.cjs} +3 -3
  45. package/dist/{devtools-2CRVXV7E.mjs → devtools-5DBTT2DI.mjs} +1 -1
  46. package/dist/{devtools-RL4AU5KD.cjs → devtools-JTJA2KIZ.cjs} +2 -2
  47. package/dist/docs.cjs +3 -3
  48. package/dist/docs.mjs +2 -2
  49. package/dist/environment/vite.cjs +3 -3
  50. package/dist/environment/vite.mjs +2 -2
  51. package/dist/index.cjs +22 -22
  52. package/dist/index.d.mts +1 -1
  53. package/dist/index.d.ts +1 -1
  54. package/dist/index.mjs +17 -17
  55. package/dist/internal/build-runtime.cjs +17 -17
  56. package/dist/internal/build-runtime.mjs +16 -16
  57. package/dist/internal/cli-runtime.cjs +5 -5
  58. package/dist/internal/cli-runtime.mjs +4 -4
  59. package/dist/internal/client-error-overlay.cjs +4 -4
  60. package/dist/internal/client-error-overlay.mjs +1 -1
  61. package/dist/internal/config-runtime.cjs +3 -3
  62. package/dist/internal/config-runtime.mjs +2 -2
  63. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  64. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  65. package/dist/internal/native-server-fns.cjs +4 -4
  66. package/dist/internal/native-server-fns.mjs +3 -3
  67. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  68. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  69. package/dist/internal/production-runtime.cjs +4 -4
  70. package/dist/internal/production-runtime.mjs +3 -3
  71. package/dist/{manager-D4DZRBRS.cjs → manager-37UJPUN4.cjs} +4 -4
  72. package/dist/{manager-PKPQGBAE.mjs → manager-7BNSJKME.mjs} +3 -3
  73. package/dist/plugin.cjs +12 -12
  74. package/dist/plugin.mjs +11 -11
  75. package/dist/{rsc-pipeline-3DYC5ZXW.cjs → rsc-pipeline-LGXJGGMW.cjs} +3 -3
  76. package/dist/{rsc-pipeline-LRB4ZG6I.mjs → rsc-pipeline-W5DSWDHD.mjs} +2 -2
  77. package/dist/{runtime-3WJNNAAR.mjs → runtime-UOZKSM5S.mjs} +2 -2
  78. package/dist/{runtime-CRFF32H6.cjs → runtime-YV4X5FAK.cjs} +4 -4
  79. package/dist/server.cjs +36 -35
  80. package/dist/server.d.mts +1 -1
  81. package/dist/server.d.ts +1 -1
  82. package/dist/server.mjs +16 -15
  83. package/dist/testing.cjs +2 -2
  84. package/dist/testing.mjs +2 -2
  85. package/dist/version.cjs +2 -2
  86. package/dist/version.mjs +1 -1
  87. package/dist/vite.cjs +12 -12
  88. package/dist/vite.mjs +11 -11
  89. package/package.json +1 -1
  90. package/dist/analyzer-B2TRJT3B.cjs +0 -17
  91. /package/dist/{chunk-IRPXOTEN.cjs → chunk-FLKG2PYH.cjs} +0 -0
  92. /package/dist/{chunk-BGEA4K7C.mjs → chunk-OOOUYA6L.mjs} +0 -0
@@ -18,14 +18,14 @@ var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
18
18
  var _chunkWMRGIQTAcjs = require('./chunk-WMRGIQTA.cjs');
19
19
 
20
20
 
21
- var _chunk6266WH6Xcjs = require('./chunk-6266WH6X.cjs');
21
+ var _chunkV3Y3R3JJcjs = require('./chunk-V3Y3R3JJ.cjs');
22
22
 
23
23
  // src/mobile/analyzer.ts
24
24
  var _crypto = require('crypto');
25
25
  var _fs = require('fs');
26
26
  var _promises = require('fs/promises');
27
27
  var _path = require('path'); var path = _interopRequireWildcard(_path);
28
- var ANALYZER_VERSION = `8:${_chunk6266WH6Xcjs.FARM_VERSION}`;
28
+ var ANALYZER_VERSION = `8:${_chunkV3Y3R3JJcjs.FARM_VERSION}`;
29
29
  var INTRINSIC_KINDS = {};
30
30
  for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
31
31
  INTRINSIC_KINDS[tag] = "View";
@@ -9,14 +9,14 @@ var _chunkKBGZ5FD6cjs = require('./chunk-KBGZ5FD6.cjs');
9
9
  var _chunkP2355C6Ecjs = require('./chunk-P2355C6E.cjs');
10
10
 
11
11
 
12
- var _chunk3MY6TNNEcjs = require('./chunk-3MY6TNNE.cjs');
12
+ var _chunkTWFJJPE7cjs = require('./chunk-TWFJJPE7.cjs');
13
13
 
14
14
 
15
15
  var _chunkHS4JPIGRcjs = require('./chunk-HS4JPIGR.cjs');
16
16
 
17
17
 
18
18
 
19
- var _chunkBQHIJOZMcjs = require('./chunk-BQHIJOZM.cjs');
19
+ var _chunkSIECKBNKcjs = require('./chunk-SIECKBNK.cjs');
20
20
 
21
21
 
22
22
 
@@ -149,7 +149,7 @@ function farmApiPlugin(options = {}) {
149
149
  const existing = apiRoutesCache.get(routePath);
150
150
  const existingFile = _optionalChain([endpointSources, 'access', _4 => _4.get, 'call', _5 => _5(routePath), 'optionalAccess', _6 => _6.get, 'call', _7 => _7(normalizedMethod)]);
151
151
  if (existingFile) {
152
- throw new (0, _chunk3MY6TNNEcjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
152
+ throw new (0, _chunkTWFJJPE7cjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
153
153
  }
154
154
  if (existing) {
155
155
  if (!existing.methods.includes(normalizedMethod)) {
@@ -277,7 +277,7 @@ function farmApiPlugin(options = {}) {
277
277
  name: "@farm.js/core:api",
278
278
  enforce: "pre",
279
279
  configureServer(server) {
280
- const polyroute = _chunkBQHIJOZMcjs.hasPolyroutePlugin.call(void 0, server.config.plugins);
280
+ const polyroute = _chunkSIECKBNKcjs.hasPolyroutePlugin.call(void 0, server.config.plugins);
281
281
  projectRoot = server.config.root;
282
282
  devServer = server;
283
283
  const discoverFileRoutes = async (apiDir) => {
@@ -295,7 +295,7 @@ function farmApiPlugin(options = {}) {
295
295
  const fullPath = path.join(dir, entry.name);
296
296
  if (entry.isDirectory()) {
297
297
  files.push(...findRouteFiles(fullPath));
298
- } else if (_chunkBQHIJOZMcjs.isFarmAPIRouteFileName.call(void 0, entry.name, polyroute)) {
298
+ } else if (_chunkSIECKBNKcjs.isFarmAPIRouteFileName.call(void 0, entry.name, polyroute)) {
299
299
  files.push(fullPath);
300
300
  }
301
301
  }
@@ -325,7 +325,7 @@ function farmApiPlugin(options = {}) {
325
325
  log(`API route discovered: ${availableMethods.join(", ")} ${routePath}`);
326
326
  }
327
327
  } catch (e) {
328
- if (e instanceof _chunk3MY6TNNEcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
328
+ if (e instanceof _chunkTWFJJPE7cjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
329
329
  log(`API route load failed at ${filePath}: ${e.message}`);
330
330
  }
331
331
  }
@@ -352,7 +352,7 @@ function farmApiPlugin(options = {}) {
352
352
  }
353
353
  }
354
354
  } catch (e) {
355
- if (e instanceof _chunk3MY6TNNEcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
355
+ if (e instanceof _chunkTWFJJPE7cjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
356
356
  log(`Root routes.ts load failed: ${e.message}`);
357
357
  }
358
358
  break;
@@ -383,7 +383,7 @@ function farmApiPlugin(options = {}) {
383
383
  }
384
384
  }
385
385
  } catch (e) {
386
- if (e instanceof _chunk3MY6TNNEcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
386
+ if (e instanceof _chunkTWFJJPE7cjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
387
387
  log(`Programmatic routes file load failed at ${routeFile}: ${e.message}`);
388
388
  }
389
389
  }
@@ -608,12 +608,12 @@ function farmApiPlugin(options = {}) {
608
608
  log(`API router recreated`);
609
609
  } catch (e) {
610
610
  restoreRouteState(previousState);
611
- if (e instanceof _chunk3MY6TNNEcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
611
+ if (e instanceof _chunkTWFJJPE7cjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
612
612
  log(`Root routes.ts HMR failed: ${e.message}`);
613
613
  }
614
614
  return [];
615
615
  }
616
- if (normalizedFile.includes("/api/") && _chunkBQHIJOZMcjs.isFarmAPIRouteFileName.call(void 0, fileName, _chunkBQHIJOZMcjs.hasPolyroutePlugin.call(void 0, server.config.plugins))) {
616
+ if (normalizedFile.includes("/api/") && _chunkSIECKBNKcjs.isFarmAPIRouteFileName.call(void 0, fileName, _chunkSIECKBNKcjs.hasPolyroutePlugin.call(void 0, server.config.plugins))) {
617
617
  const shortPath = normalizedFile.split("/api/")[1] || normalizedFile;
618
618
  log(`API route updated: ${shortPath}`);
619
619
  for (const mod of modules) {
@@ -646,7 +646,7 @@ function farmApiPlugin(options = {}) {
646
646
  log(`API router recreated`);
647
647
  } catch (e) {
648
648
  restoreRouteState(previousState);
649
- if (e instanceof _chunk3MY6TNNEcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
649
+ if (e instanceof _chunkTWFJJPE7cjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
650
650
  log(`API route HMR failed: ${e.message}`);
651
651
  }
652
652
  return [];
@@ -3,7 +3,7 @@
3
3
  var _chunkPWMJBCANcjs = require('./chunk-PWMJBCAN.cjs');
4
4
 
5
5
 
6
- var _chunkIRPXOTENcjs = require('./chunk-IRPXOTEN.cjs');
6
+ var _chunkFLKG2PYHcjs = require('./chunk-FLKG2PYH.cjs');
7
7
 
8
8
 
9
9
 
@@ -163,7 +163,7 @@ async function createFarmRscViteConfig(userConfig, options) {
163
163
  server: { environmentName: "rsc" },
164
164
  config: {
165
165
  preset: options.preset,
166
- outputDir: options.outputDir && _chunkIRPXOTENcjs.resolveDeployOutputPath.call(void 0, root, options.outputDir)
166
+ outputDir: options.outputDir && _chunkFLKG2PYHcjs.resolveDeployOutputPath.call(void 0, root, options.outputDir)
167
167
  }
168
168
  })
169
169
  ]
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-U6GMCDRS.mjs";
29
29
  import {
30
30
  FARM_VERSION
31
- } from "./chunk-XJJQAFZX.mjs";
31
+ } from "./chunk-EBKYRP2P.mjs";
32
32
 
33
33
  // src/environment-vite.ts
34
34
  import { existsSync, readFileSync, realpathSync } from "fs";
@@ -1769,16 +1769,23 @@ function specifierPackage(specifier) {
1769
1769
  return specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0];
1770
1770
  }
1771
1771
  function packageLookup(directory, packageName) {
1772
- for (let current = directory; ; current = path4.dirname(current)) {
1773
- if (path4.basename(current) !== "node_modules") {
1774
- const candidate = path4.join(current, "node_modules", packageName);
1775
- try {
1776
- return { from: current, real: fs3.realpathSync(candidate) };
1777
- } catch {
1772
+ return memoizeInFarmSourceSnapshot(
1773
+ "package-lookup",
1774
+ `${farmSourceSnapshotPathKey(directory)}\0${packageName}`,
1775
+ () => {
1776
+ for (let current = directory; ; current = path4.dirname(current)) {
1777
+ if (path4.basename(current) !== "node_modules") {
1778
+ const candidate = path4.join(current, "node_modules", packageName);
1779
+ try {
1780
+ return { from: current, real: fs3.realpathSync(candidate) };
1781
+ } catch {
1782
+ }
1783
+ }
1784
+ if (path4.dirname(current) === current) return null;
1778
1785
  }
1779
- }
1780
- if (path4.dirname(current) === current) return null;
1781
- }
1786
+ },
1787
+ (result) => result !== null
1788
+ );
1782
1789
  }
1783
1790
  function referenceResolveFrom(root, specifier, importer) {
1784
1791
  const packageName = specifierPackage(specifier);
@@ -3909,9 +3916,12 @@ function scanImportSpecifiers(content, { reexportsOnly = false, dynamic = false
3909
3916
  }
3910
3917
  function isTypeOnlyNamedClause(tokens, startIndex, endIndex) {
3911
3918
  if (tokens[startIndex]?.value !== "{") return false;
3912
- const closingBraceIndex = tokens.findIndex(
3913
- (token, index) => index > startIndex && index < endIndex && token.value === "}"
3914
- );
3919
+ let closingBraceIndex = -1;
3920
+ for (let index = startIndex + 1; index < endIndex; index++) {
3921
+ if (tokens[index].value !== "}") continue;
3922
+ closingBraceIndex = index;
3923
+ break;
3924
+ }
3915
3925
  if (closingBraceIndex === -1) return false;
3916
3926
  let entryStartsAt = startIndex + 1;
3917
3927
  for (let index = entryStartsAt; index <= closingBraceIndex; index++) {
@@ -3986,19 +3996,22 @@ function matchProjectImportAlias(alias, specifier) {
3986
3996
  return specifier.slice(alias.prefix.length, specifier.length - alias.suffix.length);
3987
3997
  }
3988
3998
  function getProjectImportAliases(projectRoot) {
3989
- const stamp = PROJECT_ALIAS_FILES.map((file) => {
3990
- try {
3991
- return String(fs7.statSync(path8.join(projectRoot, file)).mtimeMs);
3992
- } catch {
3993
- return "-";
3994
- }
3995
- }).join(":");
3996
3999
  const sourceDir = getFarmProjectSourceDir(projectRoot);
3997
- const cacheStamp = `${stamp}:${sourceDir}`;
3998
4000
  const cached = projectImportAliasCache.get(projectRoot);
3999
- if (cached?.stamp === cacheStamp) return cached.aliases;
4001
+ const dependencies = new Set(
4002
+ cached?.stamps.keys() ?? PROJECT_ALIAS_FILES.map((file) => path8.join(projectRoot, file))
4003
+ );
4004
+ const stamps = /* @__PURE__ */ new Map();
4005
+ for (const file of dependencies) {
4006
+ noteFarmSourceRead(file);
4007
+ stamps.set(file, getFarmSourceStamp(file));
4008
+ }
4009
+ if (cached?.sourceDir === sourceDir && [...stamps].every(([file, stamp]) => cached.stamps.get(file) === stamp))
4010
+ return cached.aliases;
4011
+ dependencies.clear();
4012
+ for (const file of PROJECT_ALIAS_FILES) dependencies.add(path8.join(projectRoot, file));
4000
4013
  const aliases = [
4001
- ...readTsconfigPathAliases(projectRoot),
4014
+ ...readTsconfigPathAliases(projectRoot, dependencies),
4002
4015
  ...readPackageImportAliases(projectRoot)
4003
4016
  ];
4004
4017
  if (!aliases.some((alias) => alias.prefix === "@/")) {
@@ -4009,14 +4022,19 @@ function getProjectImportAliases(projectRoot) {
4009
4022
  targets: [path8.join(projectRoot, sourceDir, "*")]
4010
4023
  });
4011
4024
  }
4012
- projectImportAliasCache.set(projectRoot, { stamp: cacheStamp, aliases });
4025
+ stamps.clear();
4026
+ for (const file of dependencies) {
4027
+ noteFarmSourceRead(file);
4028
+ stamps.set(file, getFarmSourceStamp(file));
4029
+ }
4030
+ projectImportAliasCache.set(projectRoot, { sourceDir, stamps, aliases });
4013
4031
  return aliases;
4014
4032
  }
4015
- function readTsconfigPathAliases(projectRoot) {
4033
+ function readTsconfigPathAliases(projectRoot, dependencies) {
4016
4034
  for (const name of ["tsconfig.json", "jsconfig.json"]) {
4017
4035
  const configPath = path8.join(projectRoot, name);
4018
4036
  if (!fs7.existsSync(configPath)) continue;
4019
- const resolved = readTsconfigPaths(configPath, /* @__PURE__ */ new Set());
4037
+ const resolved = readTsconfigPaths(configPath, /* @__PURE__ */ new Set(), dependencies);
4020
4038
  if (!resolved?.paths) return [];
4021
4039
  const base2 = resolved.baseUrl ?? resolved.pathsDirectory;
4022
4040
  return Object.entries(resolved.paths).flatMap(([pattern, targets]) => {
@@ -4034,9 +4052,10 @@ function readTsconfigPathAliases(projectRoot) {
4034
4052
  }
4035
4053
  return [];
4036
4054
  }
4037
- function readTsconfigPaths(configPath, visited) {
4055
+ function readTsconfigPaths(configPath, visited, dependencies) {
4038
4056
  if (visited.has(configPath)) return null;
4039
4057
  visited.add(configPath);
4058
+ dependencies.add(configPath);
4040
4059
  const config = readJsonWithComments(configPath);
4041
4060
  if (!config) return null;
4042
4061
  const directory = path8.dirname(configPath);
@@ -4049,7 +4068,7 @@ function readTsconfigPaths(configPath, visited) {
4049
4068
  directory,
4050
4069
  parent.endsWith(".json") ? parent : `${parent}.json`
4051
4070
  );
4052
- inherited = readTsconfigPaths(parentPath, visited) ?? inherited;
4071
+ inherited = readTsconfigPaths(parentPath, visited, dependencies) ?? inherited;
4053
4072
  }
4054
4073
  const options = config.compilerOptions ?? {};
4055
4074
  const baseUrl = typeof options.baseUrl === "string" ? path8.resolve(directory, options.baseUrl) : inherited?.baseUrl;
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk5ZWXTIGEcjs = require('./chunk-5ZWXTIGE.cjs');
3
+ var _chunkWEZTGM7Ncjs = require('./chunk-WEZTGM7N.cjs');
4
4
 
5
5
 
6
6
  var _chunkVWIW47FWcjs = require('./chunk-VWIW47FW.cjs');
@@ -678,7 +678,7 @@ var OpenAPIManager = class {
678
678
  this.config = config;
679
679
  this.mountedRoutes = context.routes;
680
680
  this.generator = new OpenAPIGenerator(this.appDir, config, context);
681
- this.apiTypeGenerator = new (0, _chunk5ZWXTIGEcjs.APITypeGenerator)(appDirs);
681
+ this.apiTypeGenerator = new (0, _chunkWEZTGM7Ncjs.APITypeGenerator)(appDirs);
682
682
  }
683
683
  getRoutes() {
684
684
  if (!this.mountedRoutes) return this.apiTypeGenerator.scanAPIRoutes();