@fern-api/fern-api-dev 5.38.0 → 5.38.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.
Files changed (2) hide show
  1. package/cli.cjs +24 -12
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -582549,6 +582549,13 @@ function getDocumentLevelResumable(document4) {
582549
582549
  }
582550
582550
  return typeof docStreaming.resumable === "boolean" ? docStreaming.resumable : void 0;
582551
582551
  }
582552
+ function getOperationLevelResumable(operation) {
582553
+ const streaming = getExtension(operation, FernOpenAPIExtension.STREAMING);
582554
+ if (streaming == null || typeof streaming === "boolean") {
582555
+ return void 0;
582556
+ }
582557
+ return typeof streaming.resumable === "boolean" ? streaming.resumable : void 0;
582558
+ }
582552
582559
  function maybeTrimRequestPrefix(streamCondition) {
582553
582560
  if (streamCondition.startsWith(REQUEST_PREFIX)) {
582554
582561
  return streamCondition.slice(REQUEST_PREFIX.length);
@@ -585099,7 +585106,7 @@ function convertOperation({ context: context3, pathItemContext, operation, conve
585099
585106
  type: "stream",
585100
585107
  format: "sse",
585101
585108
  terminator: void 0,
585102
- resumable: getDocumentLevelResumable(context3.document) ?? false
585109
+ resumable: getOperationLevelResumable(operation) ?? getDocumentLevelResumable(context3.document) ?? false
585103
585110
  };
585104
585111
  }
585105
585112
  }
@@ -669322,7 +669329,7 @@ var AccessTokenPosthogManager = class {
669322
669329
  properties: {
669323
669330
  ...event,
669324
669331
  ...event.properties,
669325
- version: "5.38.0",
669332
+ version: "5.38.2",
669326
669333
  usingAccessToken: true,
669327
669334
  ...getRunIdProperties()
669328
669335
  }
@@ -669386,7 +669393,7 @@ var UserPosthogManager = class {
669386
669393
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
669387
669394
  event: "CLI",
669388
669395
  properties: {
669389
- version: "5.38.0",
669396
+ version: "5.38.2",
669390
669397
  ...event,
669391
669398
  ...event.properties,
669392
669399
  usingAccessToken: false,
@@ -855497,6 +855504,7 @@ var ValidMarkdownLinks = {
855497
855504
  }
855498
855505
  }
855499
855506
  }
855507
+ const apiReferenceTitle = typeof config5.api === "string" ? config5.api : "API Reference";
855500
855508
  const pathToCheckViolations = await Promise.all([...uniquePathnames.values()].map(async (pathnameToCheck) => {
855501
855509
  const exists2 = await checkIfPathnameExists({
855502
855510
  pathname: pathnameToCheck.pathname,
@@ -855512,17 +855520,17 @@ var ValidMarkdownLinks = {
855512
855520
  if (exists2 === true) {
855513
855521
  return [];
855514
855522
  }
855515
- return exists2.map((brokenPathname) => {
855516
- const [message, relFilePath] = createLinkViolationMessage({
855523
+ const numBrokenSourceContexts = exists2.length > 0 ? exists2.length : 1;
855524
+ return Array.from({ length: numBrokenSourceContexts }, () => {
855525
+ const [message, relFilePath] = createApiReferenceLinkViolationMessage({
855517
855526
  pathnameToCheck,
855518
- targetPathname: brokenPathname,
855519
- absoluteFilepathToWorkspace: workspace.absoluteFilePath
855527
+ apiReferenceTitle
855520
855528
  });
855521
855529
  return {
855522
855530
  name: ValidMarkdownLinks.name,
855523
855531
  severity: "error",
855524
855532
  message,
855525
- relFilepath: relFilePath
855533
+ relativeFilepath: relFilePath
855526
855534
  };
855527
855535
  });
855528
855536
  }));
@@ -855547,6 +855555,10 @@ function createLinkViolationMessage({ pathnameToCheck, targetPathname, absoluteF
855547
855555
  fix here: ${relativeFilepath}:${position4.start.line}:${position4.start.column}`;
855548
855556
  return [msg, relativeFilepath];
855549
855557
  }
855558
+ function createApiReferenceLinkViolationMessage({ pathnameToCheck, apiReferenceTitle }) {
855559
+ const msg = `broken link to ${source_default.bold(pathnameToCheck.pathname)} in ${apiReferenceTitle} description`;
855560
+ return [msg, RelativeFilePath2.of("")];
855561
+ }
855550
855562
  function toLatest(apiDefinition) {
855551
855563
  const latest2 = api_definition_exports.ApiDefinitionV1ToLatest.from(apiDefinition).migrate();
855552
855564
  return latest2;
@@ -860294,7 +860306,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
860294
860306
  var LOGS_FOLDER_NAME = "logs";
860295
860307
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
860296
860308
  function getCliSource() {
860297
- const version7 = "5.38.0";
860309
+ const version7 = "5.38.2";
860298
860310
  return `cli@${version7}`;
860299
860311
  }
860300
860312
  var DebugLogger = class {
@@ -880895,7 +880907,7 @@ var LegacyDocsPublisher = class {
880895
880907
  previewId,
880896
880908
  disableTemplates: void 0,
880897
880909
  skipUpload,
880898
- cliVersion: "5.38.0",
880910
+ cliVersion: "5.38.2",
880899
880911
  loginCommand: "fern auth login"
880900
880912
  });
880901
880913
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -955815,7 +955827,7 @@ function getAutomationContextFromEnv() {
955815
955827
  config_branch: process.env.FERN_CONFIG_BRANCH,
955816
955828
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
955817
955829
  trigger: process.env.GITHUB_EVENT_NAME,
955818
- cli_version: "5.38.0"
955830
+ cli_version: "5.38.2"
955819
955831
  };
955820
955832
  }
955821
955833
  function isAutomationMode() {
@@ -956641,7 +956653,7 @@ var CliContext = class _CliContext {
956641
956653
  if (false) {
956642
956654
  this.logger.error("CLI_VERSION is not defined");
956643
956655
  }
956644
- return "5.38.0";
956656
+ return "5.38.2";
956645
956657
  }
956646
956658
  getCliName() {
956647
956659
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.38.0",
2
+ "version": "5.38.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",