@fern-api/fern-api-dev 5.92.3 → 5.92.4

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 +18 -10
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -453889,7 +453889,7 @@ function parseMarkdownImage(content5, start2, metadata) {
453889
453889
  }
453890
453890
  const urlEnd = i5 - 1;
453891
453891
  const url3 = content5.slice(urlStart, urlEnd).trim();
453892
- const rawSrc = trimAnchor(splitDestinationAndTitle(url3));
453892
+ const rawSrc = trimAnchor(unwrapDelimitedDestination(splitDestinationAndTitle(url3)).path);
453893
453893
  const src = rawSrc != null ? unescapeMarkdownUrl(rawSrc) : void 0;
453894
453894
  const resolvedPath = resolvePath5(src, metadata);
453895
453895
  if (rawSrc && src && resolvedPath) {
@@ -453926,6 +453926,12 @@ function splitDestinationAndTitle(url3) {
453926
453926
  const isTitle = title2.length >= 2 && (title2.startsWith('"') && title2.endsWith('"') || title2.startsWith("'") && title2.endsWith("'") || title2.startsWith("(") && title2.endsWith(")"));
453927
453927
  return isTitle ? url3.slice(0, i5) : url3;
453928
453928
  }
453929
+ function unwrapDelimitedDestination(destination) {
453930
+ if (destination.length >= 2 && destination.startsWith("<") && destination.endsWith(">")) {
453931
+ return { path: destination.slice(1, -1), wrapped: true };
453932
+ }
453933
+ return { path: destination, wrapped: false };
453934
+ }
453929
453935
  function parseMarkdownLink(content5, start2, metadata) {
453930
453936
  const len = content5.length;
453931
453937
  const labelEnd2 = findLabelEnd(content5, start2);
@@ -454370,18 +454376,20 @@ function replaceImagePathsAndUrls(markdown, fileIdsMap, markdownFilesToPathName,
454370
454376
  const href = content5.slice(urlStart, urlEnd).trim();
454371
454377
  const destination = splitDestinationAndTitle(href);
454372
454378
  const hrefTitle = href.slice(destination.length);
454373
- const trimmedHref = trimAnchor(destination) ?? destination;
454374
- const hrefAnchor = trimmedHref !== destination ? destination.slice(trimmedHref.length) : "";
454379
+ const { path: hrefPath, wrapped } = unwrapDelimitedDestination(destination);
454380
+ const trimmedHref = trimAnchor(hrefPath) ?? hrefPath;
454381
+ const hrefAnchor = trimmedHref !== hrefPath ? hrefPath.slice(trimmedHref.length) : "";
454375
454382
  const replacedHref = getReplacedHref({
454376
454383
  href: trimmedHref,
454377
454384
  markdownFilesToPathName,
454378
454385
  metadata
454379
454386
  });
454380
454387
  if (replacedHref && replacedHref.type === "replace") {
454388
+ const slug = replacedHref.slug + hrefAnchor;
454381
454389
  edits.push({
454382
454390
  start: urlStart,
454383
454391
  end: urlEnd,
454384
- replacement: replacedHref.slug + hrefAnchor + hrefTitle
454392
+ replacement: (wrapped ? `<${slug}>` : slug) + hrefTitle
454385
454393
  });
454386
454394
  }
454387
454395
  i5 = j5;
@@ -702750,7 +702758,7 @@ var AccessTokenPosthogManager = class {
702750
702758
  properties: {
702751
702759
  ...event,
702752
702760
  ...event.properties,
702753
- version: "5.92.3",
702761
+ version: "5.92.4",
702754
702762
  usingAccessToken: true,
702755
702763
  ...getRunIdProperties()
702756
702764
  }
@@ -702816,7 +702824,7 @@ var UserPosthogManager = class {
702816
702824
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
702817
702825
  event: "CLI",
702818
702826
  properties: {
702819
- version: "5.92.3",
702827
+ version: "5.92.4",
702820
702828
  ...event,
702821
702829
  ...event.properties,
702822
702830
  usingAccessToken: false,
@@ -883982,7 +883990,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
883982
883990
  var LOGS_FOLDER_NAME = "logs";
883983
883991
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
883984
883992
  function getCliSource() {
883985
- const version7 = "5.92.3";
883993
+ const version7 = "5.92.4";
883986
883994
  return `cli@${version7}`;
883987
883995
  }
883988
883996
  var DebugLogger = class {
@@ -909298,7 +909306,7 @@ var LegacyDocsPublisher = class {
909298
909306
  previewId,
909299
909307
  disableTemplates: void 0,
909300
909308
  skipUpload,
909301
- cliVersion: "5.92.3",
909309
+ cliVersion: "5.92.4",
909302
909310
  loginCommand: "fern auth login"
909303
909311
  });
909304
909312
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -976214,7 +976222,7 @@ function getAutomationContextFromEnv() {
976214
976222
  config_branch: process.env.FERN_CONFIG_BRANCH,
976215
976223
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
976216
976224
  trigger: process.env.GITHUB_EVENT_NAME,
976217
- cli_version: "5.92.3"
976225
+ cli_version: "5.92.4"
976218
976226
  };
976219
976227
  }
976220
976228
  function isAutomationMode() {
@@ -977046,7 +977054,7 @@ var CliContext = class _CliContext {
977046
977054
  if (false) {
977047
977055
  this.logger.error("CLI_VERSION is not defined");
977048
977056
  }
977049
- return "5.92.3";
977057
+ return "5.92.4";
977050
977058
  }
977051
977059
  getCliName() {
977052
977060
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.92.3",
2
+ "version": "5.92.4",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",