@fern-api/fern-api-dev 4.71.0-2-g6ae7ba4916f → 4.71.0-3-g266c51a24e1

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 +17 -10
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -621062,7 +621062,7 @@ var AccessTokenPosthogManager = class {
621062
621062
  properties: {
621063
621063
  ...event,
621064
621064
  ...event.properties,
621065
- version: "4.71.0-2-g6ae7ba4916f",
621065
+ version: "4.71.0-3-g266c51a24e1",
621066
621066
  usingAccessToken: true
621067
621067
  }
621068
621068
  });
@@ -621116,7 +621116,7 @@ var UserPosthogManager = class {
621116
621116
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
621117
621117
  event: "CLI",
621118
621118
  properties: {
621119
- version: "4.71.0-2-g6ae7ba4916f",
621119
+ version: "4.71.0-3-g266c51a24e1",
621120
621120
  ...event,
621121
621121
  ...event.properties,
621122
621122
  usingAccessToken: false,
@@ -811869,13 +811869,20 @@ function isSlugCoveredByRedirect(oldSlug, redirects, basePath) {
811869
811869
  });
811870
811870
  }
811871
811871
  function findRemovedSlugs(publishedEntries, localPageIdToSlug) {
811872
+ const activeSlugs = new Set(localPageIdToSlug.values());
811872
811873
  const removed = [];
811873
- for (const entry of publishedEntries) {
811874
- const newSlug = localPageIdToSlug.get(entry.pageId);
811874
+ for (const publishedEntry of publishedEntries) {
811875
+ const newSlug = localPageIdToSlug.get(publishedEntry.pageId);
811875
811876
  if (newSlug === void 0) {
811876
- removed.push({ pageId: entry.pageId, oldSlug: entry.slug, newSlug: void 0 });
811877
- } else if (newSlug !== entry.slug) {
811878
- removed.push({ pageId: entry.pageId, oldSlug: entry.slug, newSlug });
811877
+ if (activeSlugs.has(publishedEntry.slug)) {
811878
+ continue;
811879
+ }
811880
+ removed.push({ pageId: publishedEntry.pageId, oldSlug: publishedEntry.slug, newSlug: void 0 });
811881
+ } else if (newSlug !== publishedEntry.slug) {
811882
+ if (activeSlugs.has(publishedEntry.slug)) {
811883
+ continue;
811884
+ }
811885
+ removed.push({ pageId: publishedEntry.pageId, oldSlug: publishedEntry.slug, newSlug });
811879
811886
  }
811880
811887
  }
811881
811888
  return removed;
@@ -838208,7 +838215,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
838208
838215
  var LOGS_FOLDER_NAME = "logs";
838209
838216
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
838210
838217
  function getCliSource() {
838211
- const version7 = "4.71.0-2-g6ae7ba4916f";
838218
+ const version7 = "4.71.0-3-g266c51a24e1";
838212
838219
  return `cli@${version7}`;
838213
838220
  }
838214
838221
  var DebugLogger = class {
@@ -849455,7 +849462,7 @@ var LegacyDocsPublisher = class {
849455
849462
  previewId,
849456
849463
  disableTemplates: void 0,
849457
849464
  skipUpload,
849458
- cliVersion: "4.71.0-2-g6ae7ba4916f"
849465
+ cliVersion: "4.71.0-3-g266c51a24e1"
849459
849466
  });
849460
849467
  if (taskContext.getResult() === TaskResult.Failure) {
849461
849468
  return { success: false };
@@ -923791,7 +923798,7 @@ var CliContext = class _CliContext {
923791
923798
  if (false) {
923792
923799
  this.logger.error("CLI_VERSION is not defined");
923793
923800
  }
923794
- return "4.71.0-2-g6ae7ba4916f";
923801
+ return "4.71.0-3-g266c51a24e1";
923795
923802
  }
923796
923803
  getCliName() {
923797
923804
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.71.0-2-g6ae7ba4916f",
2
+ "version": "4.71.0-3-g266c51a24e1",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",