@fern-api/fern-api-dev 5.47.5 → 5.47.6

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 +25 -8
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -319185,6 +319185,20 @@ var init_walk_estree_jsx_attributes = __esm({
319185
319185
  });
319186
319186
 
319187
319187
  // ../docs-markdown-utils/lib/parseImagePaths.js
319188
+ function requoteLeadingZeroValues(doc) {
319189
+ const openIdx = doc.indexOf("---\n");
319190
+ if (openIdx !== 0) {
319191
+ return doc;
319192
+ }
319193
+ const closeIdx = doc.indexOf("\n---\n", 4);
319194
+ if (closeIdx === -1) {
319195
+ return doc;
319196
+ }
319197
+ const frontmatter = doc.slice(0, closeIdx);
319198
+ const rest = doc.slice(closeIdx);
319199
+ const fixed = frontmatter.replace(/^(\s*[\w][\w-]*:\s+)(0\d+)\s*$/gm, '$1"$2"');
319200
+ return fixed + rest;
319201
+ }
319188
319202
  function getLargeFileBytes() {
319189
319203
  return parseInt(process.env.FERN_DOCS_LARGE_FILE_BYTES ?? "5000000", 10);
319190
319204
  }
@@ -319560,7 +319574,10 @@ function parseImagePaths(markdown, metadata, context3) {
319560
319574
  });
319561
319575
  replacedContent = applyEdits(content5, edits);
319562
319576
  }
319563
- return { filepaths: [...filepaths], markdown: import_gray_matter3.default.stringify(replacedContent, data2) };
319577
+ return {
319578
+ filepaths: [...filepaths],
319579
+ markdown: requoteLeadingZeroValues(import_gray_matter3.default.stringify(replacedContent, data2))
319580
+ };
319564
319581
  }
319565
319582
  function resolvePath5(pathToImage, { absolutePathToFernFolder, absolutePathToMarkdownFile }) {
319566
319583
  if (pathToImage == null || isExternalUrl(pathToImage) || isDataUrl(pathToImage)) {
@@ -319858,7 +319875,7 @@ function replaceImagePathsAndUrls(markdown, fileIdsMap, markdownFilesToPathName,
319858
319875
  });
319859
319876
  replacedContent = applyEdits(content5, edits);
319860
319877
  }
319861
- return import_gray_matter3.default.stringify(replacedContent, data2);
319878
+ return requoteLeadingZeroValues(import_gray_matter3.default.stringify(replacedContent, data2));
319862
319879
  }
319863
319880
  function trimAnchor(text9) {
319864
319881
  if (typeof text9 !== "string") {
@@ -670464,7 +670481,7 @@ var AccessTokenPosthogManager = class {
670464
670481
  properties: {
670465
670482
  ...event,
670466
670483
  ...event.properties,
670467
- version: "5.47.5",
670484
+ version: "5.47.6",
670468
670485
  usingAccessToken: true,
670469
670486
  ...getRunIdProperties()
670470
670487
  }
@@ -670528,7 +670545,7 @@ var UserPosthogManager = class {
670528
670545
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
670529
670546
  event: "CLI",
670530
670547
  properties: {
670531
- version: "5.47.5",
670548
+ version: "5.47.6",
670532
670549
  ...event,
670533
670550
  ...event.properties,
670534
670551
  usingAccessToken: false,
@@ -862537,7 +862554,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
862537
862554
  var LOGS_FOLDER_NAME = "logs";
862538
862555
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
862539
862556
  function getCliSource() {
862540
- const version7 = "5.47.5";
862557
+ const version7 = "5.47.6";
862541
862558
  return `cli@${version7}`;
862542
862559
  }
862543
862560
  var DebugLogger = class {
@@ -893766,7 +893783,7 @@ var LegacyDocsPublisher = class {
893766
893783
  previewId,
893767
893784
  disableTemplates: void 0,
893768
893785
  skipUpload,
893769
- cliVersion: "5.47.5",
893786
+ cliVersion: "5.47.6",
893770
893787
  loginCommand: "fern auth login"
893771
893788
  });
893772
893789
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -959147,7 +959164,7 @@ function getAutomationContextFromEnv() {
959147
959164
  config_branch: process.env.FERN_CONFIG_BRANCH,
959148
959165
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
959149
959166
  trigger: process.env.GITHUB_EVENT_NAME,
959150
- cli_version: "5.47.5"
959167
+ cli_version: "5.47.6"
959151
959168
  };
959152
959169
  }
959153
959170
  function isAutomationMode() {
@@ -959973,7 +959990,7 @@ var CliContext = class _CliContext {
959973
959990
  if (false) {
959974
959991
  this.logger.error("CLI_VERSION is not defined");
959975
959992
  }
959976
- return "5.47.5";
959993
+ return "5.47.6";
959977
959994
  }
959978
959995
  getCliName() {
959979
959996
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.47.5",
2
+ "version": "5.47.6",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",