fern-api 0.19.7-rc1 → 0.19.7

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/bundle.cjs +10 -8
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -832468,7 +832468,7 @@ var AccessTokenPosthogManager = class {
832468
832468
  properties: {
832469
832469
  ...event,
832470
832470
  ...event.properties,
832471
- version: "0.19.7-rc1",
832471
+ version: "0.19.7",
832472
832472
  usingAccessToken: true
832473
832473
  }
832474
832474
  });
@@ -832530,7 +832530,7 @@ var UserPosthogManager = class {
832530
832530
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
832531
832531
  event: "CLI",
832532
832532
  properties: {
832533
- version: "0.19.7-rc1",
832533
+ version: "0.19.7",
832534
832534
  ...event,
832535
832535
  ...event.properties
832536
832536
  }
@@ -859186,10 +859186,10 @@ var CliContext = class {
859186
859186
  return "fern-api";
859187
859187
  }
859188
859188
  getPackageVersion() {
859189
- if ("0.19.7-rc1" == null) {
859189
+ if ("0.19.7" == null) {
859190
859190
  this.logger.error("CLI_VERSION is not defined");
859191
859191
  }
859192
- return "0.19.7-rc1";
859192
+ return "0.19.7";
859193
859193
  }
859194
859194
  getCliName() {
859195
859195
  if ("fern" == null) {
@@ -901701,15 +901701,14 @@ async function constructRegisterDocsRequest({ parsedDocsConfig, organization, fe
901701
901701
  ...convertedDocsConfiguration.pages
901702
901702
  };
901703
901703
  pages = Object.fromEntries(Object.entries(pages).map(([pageId, pageContent]) => {
901704
- var _a2, _b2;
901705
- const slug = (_a2 = fullSlugs[pageId]) == null ? void 0 : _a2.fullSlug;
901704
+ var _a2;
901706
901705
  const references = getReferencedMarkdownFiles({
901707
901706
  content: pageContent.markdown,
901708
- absoluteFilepath: AbsoluteFilePath.of(pageId)
901707
+ absoluteFilepath: pageId.startsWith("/") ? AbsoluteFilePath.of(pageId) : convertFdrFilepathToAbsoluteFilepath(RelativeFilePath.of(pageId), parsedDocsConfig)
901709
901708
  });
901710
901709
  let markdown = pageContent.markdown;
901711
901710
  for (const reference of references) {
901712
- const referenceSlug = (_b2 = fullSlugs[reference.absolutePath]) == null ? void 0 : _b2.fullSlug;
901711
+ const referenceSlug = (_a2 = fullSlugs[reference.absolutePath]) == null ? void 0 : _a2.fullSlug;
901713
901712
  if (referenceSlug == null) {
901714
901713
  context.logger.error(`${reference.path} has no slug defined but is referenced by ${pageId}.`);
901715
901714
  continue;
@@ -902288,6 +902287,9 @@ function getFilepathsToUpload(parsedDocsConfig) {
902288
902287
  function convertAbsoluteFilepathToFdrFilepath(filepath, parsedDocsConfig) {
902289
902288
  return relative(dirname(parsedDocsConfig.absoluteFilepath), filepath);
902290
902289
  }
902290
+ function convertFdrFilepathToAbsoluteFilepath(filepath, parsedDocsConfig) {
902291
+ return join(dirname(parsedDocsConfig.absoluteFilepath), filepath);
902292
+ }
902291
902293
  function wrapWithHttps(url) {
902292
902294
  return url.startsWith("https://") || url.startsWith("http://") ? url : `https://${url}`;
902293
902295
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.19.7-rc1",
3
+ "version": "0.19.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",