@fern-api/fern-api-dev 4.86.2-6-g0387580a729 → 4.86.2-8-g91735ebe233

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/cli.cjs +14 -6
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -614908,7 +614908,7 @@ var AccessTokenPosthogManager = class {
614908
614908
  properties: {
614909
614909
  ...event,
614910
614910
  ...event.properties,
614911
- version: "4.86.2-6-g0387580a729",
614911
+ version: "4.86.2-8-g91735ebe233",
614912
614912
  usingAccessToken: true
614913
614913
  }
614914
614914
  });
@@ -614962,7 +614962,7 @@ var UserPosthogManager = class {
614962
614962
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
614963
614963
  event: "CLI",
614964
614964
  properties: {
614965
- version: "4.86.2-6-g0387580a729",
614965
+ version: "4.86.2-8-g91735ebe233",
614966
614966
  ...event,
614967
614967
  ...event.properties,
614968
614968
  usingAccessToken: false,
@@ -832484,7 +832484,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
832484
832484
  var LOGS_FOLDER_NAME = "logs";
832485
832485
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
832486
832486
  function getCliSource() {
832487
- const version7 = "4.86.2-6-g0387580a729";
832487
+ const version7 = "4.86.2-8-g91735ebe233";
832488
832488
  return `cli@${version7}`;
832489
832489
  }
832490
832490
  var DebugLogger = class {
@@ -833593,7 +833593,7 @@ async function getPreviewDocsDefinition({ domain: domain3, project, context: con
833593
833593
  filesV2,
833594
833594
  pages: dbDocsDefinition.pages,
833595
833595
  jsFiles: dbDocsDefinition.jsFiles,
833596
- apiNameToId: {},
833596
+ apiNameToId: apiCollector.getApiNameToId(),
833597
833597
  id: void 0
833598
833598
  };
833599
833599
  if (docsWorkspace.config.settings?.substituteEnvVars) {
@@ -833606,6 +833606,7 @@ async function getPreviewDocsDefinition({ domain: domain3, project, context: con
833606
833606
  var ReferencedAPICollector = class {
833607
833607
  context;
833608
833608
  apis = {};
833609
+ apiNameToId = {};
833609
833610
  constructor(context3) {
833610
833611
  this.context = context3;
833611
833612
  }
@@ -833629,6 +833630,10 @@ var ReferencedAPICollector = class {
833629
833630
  }));
833630
833631
  const readApiDefinition = convertDbAPIDefinitionToRead(dbApiDefinition);
833631
833632
  this.apis[id] = readApiDefinition;
833633
+ const resolvedApiName = apiName ?? getOriginalName(ir10.apiName);
833634
+ if (resolvedApiName) {
833635
+ this.apiNameToId[resolvedApiName] = id;
833636
+ }
833632
833637
  return id;
833633
833638
  } catch (e5) {
833634
833639
  const err = e5;
@@ -833643,6 +833648,9 @@ var ReferencedAPICollector = class {
833643
833648
  getAPIsForDefinition() {
833644
833649
  return this.apis;
833645
833650
  }
833651
+ getApiNameToId() {
833652
+ return this.apiNameToId;
833653
+ }
833646
833654
  };
833647
833655
  var ReferencedAPICollectorV2 = class {
833648
833656
  context;
@@ -844224,7 +844232,7 @@ var LegacyDocsPublisher = class {
844224
844232
  previewId,
844225
844233
  disableTemplates: void 0,
844226
844234
  skipUpload,
844227
- cliVersion: "4.86.2-6-g0387580a729"
844235
+ cliVersion: "4.86.2-8-g91735ebe233"
844228
844236
  });
844229
844237
  if (taskContext.getResult() === TaskResult.Failure) {
844230
844238
  return { success: false };
@@ -919612,7 +919620,7 @@ var CliContext = class _CliContext {
919612
919620
  if (false) {
919613
919621
  this.logger.error("CLI_VERSION is not defined");
919614
919622
  }
919615
- return "4.86.2-6-g0387580a729";
919623
+ return "4.86.2-8-g91735ebe233";
919616
919624
  }
919617
919625
  getCliName() {
919618
919626
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.86.2-6-g0387580a729",
2
+ "version": "4.86.2-8-g91735ebe233",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",