@fern-api/fern-api-dev 3.31.1 → 3.31.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 +13 -4
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -1413665,7 +1413665,7 @@ var AccessTokenPosthogManager = class {
1413665
1413665
  properties: {
1413666
1413666
  ...event,
1413667
1413667
  ...event.properties,
1413668
- version: "3.31.1",
1413668
+ version: "3.31.2",
1413669
1413669
  usingAccessToken: true
1413670
1413670
  }
1413671
1413671
  });
@@ -1413764,7 +1413764,7 @@ var UserPosthogManager = class {
1413764
1413764
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1413765
1413765
  event: "CLI",
1413766
1413766
  properties: {
1413767
- version: "3.31.1",
1413767
+ version: "3.31.2",
1413768
1413768
  ...event,
1413769
1413769
  ...event.properties,
1413770
1413770
  usingAccessToken: false,
@@ -1493831,7 +1493831,7 @@ var CliContext = class {
1493831
1493831
  if (false) {
1493832
1493832
  this.logger.error("CLI_VERSION is not defined");
1493833
1493833
  }
1493834
- return "3.31.1";
1493834
+ return "3.31.2";
1493835
1493835
  }
1493836
1493836
  getCliName() {
1493837
1493837
  if (false) {
@@ -1588688,7 +1588688,7 @@ var import_path35 = __toESM(require("path"), 1);
1588688
1588688
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
1588689
1588689
  var LOGS_FOLDER_NAME = "logs";
1588690
1588690
  function getCliSource() {
1588691
- const version6 = "3.31.1";
1588691
+ const version6 = "3.31.2";
1588692
1588692
  return `cli@${version6}`;
1588693
1588693
  }
1588694
1588694
  var DebugLogger = class {
@@ -1604030,6 +1604030,9 @@ async function checkIfPathnameExists({ pathname, markdown, absoluteFilepath, wor
1604030
1604030
  }
1604031
1604031
  redirectedPath = nextRedirectPath;
1604032
1604032
  }
1604033
+ if (isExternalUrl4(redirectedPath)) {
1604034
+ return true;
1604035
+ }
1604033
1604036
  if (markdown && pageSlugs.has(removeLeadingSlash2(redirectedPath))) {
1604034
1604037
  return true;
1604035
1604038
  }
@@ -1604058,6 +1604061,9 @@ async function checkIfPathnameExists({ pathname, markdown, absoluteFilepath, wor
1604058
1604061
  for (const slug of slugs) {
1604059
1604062
  const url2 = new URL(`/${slug}`, wrapWithHttps(baseUrl.domain));
1604060
1604063
  const targetSlug = withRedirects(new URL(pathname, url2).pathname, baseUrl, redirects);
1604064
+ if (isExternalUrl4(targetSlug)) {
1604065
+ continue;
1604066
+ }
1604061
1604067
  if (!pageSlugs.has(removeLeadingSlash2(targetSlug))) {
1604062
1604068
  brokenSlugs.push(slug);
1604063
1604069
  }
@@ -1604078,6 +1604084,9 @@ function withoutAnchors(slug) {
1604078
1604084
  }
1604079
1604085
  return slug.substring(0, hashIndex);
1604080
1604086
  }
1604087
+ function isExternalUrl4(path68) {
1604088
+ return path68.startsWith("http://") || path68.startsWith("https://");
1604089
+ }
1604081
1604090
 
1604082
1604091
  // ../yaml/docs-validator/lib/rules/valid-markdown-link/collect-links.js
1604083
1604092
  var import_node_fs21 = require("fs");
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.31.1",
2
+ "version": "3.31.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",