fern-api 0.31.25-rc0 → 0.31.25-rc1

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 +9 -6
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -1122319,7 +1122319,7 @@ var AccessTokenPosthogManager = class {
1122319
1122319
  properties: {
1122320
1122320
  ...event,
1122321
1122321
  ...event.properties,
1122322
- version: "0.31.25-rc0",
1122322
+ version: "0.31.25-rc1",
1122323
1122323
  usingAccessToken: true
1122324
1122324
  }
1122325
1122325
  });
@@ -1122381,7 +1122381,7 @@ var UserPosthogManager = class {
1122381
1122381
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1122382
1122382
  event: "CLI",
1122383
1122383
  properties: {
1122384
- version: "0.31.25-rc0",
1122384
+ version: "0.31.25-rc1",
1122385
1122385
  ...event,
1122386
1122386
  ...event.properties
1122387
1122387
  }
@@ -1134469,7 +1134469,7 @@ function parseImagePaths(markdown, metadata) {
1134469
1134469
  return { filepaths: [...filepaths], markdown: import_gray_matter.default.stringify(replacedContent, data2) };
1134470
1134470
  }
1134471
1134471
  function resolvePath(pathToImage, { absolutePathToFernFolder, absolutePathToMdx }) {
1134472
- if (pathToImage == null || isExternalUrl(pathToImage)) {
1134472
+ if (pathToImage == null || isExternalUrl(pathToImage) || isDataUrl(pathToImage)) {
1134473
1134473
  return void 0;
1134474
1134474
  }
1134475
1134475
  const filepath = resolve(pathToImage.startsWith("/") ? absolutePathToFernFolder : dirname(absolutePathToMdx), RelativeFilePath.of(pathToImage.replace(/^\//, "")));
@@ -1134478,6 +1134478,9 @@ function resolvePath(pathToImage, { absolutePathToFernFolder, absolutePathToMdx
1134478
1134478
  function isExternalUrl(url) {
1134479
1134479
  return /^(https?:)?\/\//.test(url);
1134480
1134480
  }
1134481
+ function isDataUrl(url) {
1134482
+ return /^data:/.test(url);
1134483
+ }
1134481
1134484
  function replaceImagePathsAndUrls(markdown, fileIdsMap, markdownFilesToPathName, metadata, context) {
1134482
1134485
  const { content: content5, data: data2 } = (0, import_gray_matter.default)(markdown);
1134483
1134486
  let replacedContent = content5;
@@ -1134494,7 +1134497,7 @@ function replaceImagePathsAndUrls(markdown, fileIdsMap, markdownFilesToPathName,
1134494
1134497
  const original = replacedContent.slice(start4 + offset2, start4 + offset2 + length);
1134495
1134498
  let replaced = original;
1134496
1134499
  function replaceSrc(src) {
1134497
- if (src != null && !isExternalUrl(src)) {
1134500
+ if (src != null && !isExternalUrl(src) && !isDataUrl(src)) {
1134498
1134501
  try {
1134499
1134502
  const fileId = fileIdsMap.get(AbsoluteFilePath.of(src));
1134500
1134503
  if (fileId != null) {
@@ -1149999,10 +1150002,10 @@ var CliContext = class {
1149999
1150002
  return "fern-api";
1150000
1150003
  }
1150001
1150004
  getPackageVersion() {
1150002
- if ("0.31.25-rc0" == null) {
1150005
+ if ("0.31.25-rc1" == null) {
1150003
1150006
  this.logger.error("CLI_VERSION is not defined");
1150004
1150007
  }
1150005
- return "0.31.25-rc0";
1150008
+ return "0.31.25-rc1";
1150006
1150009
  }
1150007
1150010
  getCliName() {
1150008
1150011
  if ("fern" == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.31.25-rc0",
3
+ "version": "0.31.25-rc1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",