@fern-api/fern-api-dev 5.4.1 → 5.4.2-3-g47bc39245e5

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 +44 -5
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -610726,6 +610726,14 @@ var OperationConverter = class _OperationConverter extends AbstractOperationConv
610726
610726
  const converted = responseBodyConverter.convert();
610727
610727
  if (converted == null) {
610728
610728
  hasNoContentResponse = true;
610729
+ if (convertedResponseBody.response == null) {
610730
+ convertedResponseBody.response = {
610731
+ statusCode: statusCodeNum,
610732
+ isWildcardStatusCode: isWildcardStatusCode ? true : void 0,
610733
+ body: void 0,
610734
+ docs: resolvedResponse.description
610735
+ };
610736
+ }
610729
610737
  continue;
610730
610738
  }
610731
610739
  if (converted != null) {
@@ -622387,7 +622395,7 @@ var AccessTokenPosthogManager = class {
622387
622395
  properties: {
622388
622396
  ...event,
622389
622397
  ...event.properties,
622390
- version: "5.4.1",
622398
+ version: "5.4.2-3-g47bc39245e5",
622391
622399
  usingAccessToken: true
622392
622400
  }
622393
622401
  });
@@ -622441,7 +622449,7 @@ var UserPosthogManager = class {
622441
622449
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
622442
622450
  event: "CLI",
622443
622451
  properties: {
622444
- version: "5.4.1",
622452
+ version: "5.4.2-3-g47bc39245e5",
622445
622453
  ...event,
622446
622454
  ...event.properties,
622447
622455
  usingAccessToken: false,
@@ -829143,6 +829151,31 @@ function withBasepath2(source2, basePath) {
829143
829151
  return basePath == null ? source2 : source2.startsWith(basePath) ? source2 : (0, import_url_join22.default)(basePath, source2);
829144
829152
  }
829145
829153
 
829154
+ // ../yaml/docs-validator/lib/rules/valid-markdown-link/with-base-path-prepended.js
829155
+ function withBasePathPrepended(pathname, basePath) {
829156
+ if (basePath == null) {
829157
+ return null;
829158
+ }
829159
+ const basePathSlug = stripSlashes(basePath);
829160
+ if (basePathSlug === "") {
829161
+ return null;
829162
+ }
829163
+ const bare = stripLeadingSlash2(pathname);
829164
+ if (bare === basePathSlug || bare.startsWith(basePathSlug + "/")) {
829165
+ return null;
829166
+ }
829167
+ return `${basePathSlug}/${bare}`;
829168
+ }
829169
+ function stripLeadingSlash2(value2) {
829170
+ return value2.startsWith("/") ? value2.slice(1) : value2;
829171
+ }
829172
+ function stripTrailingSlash(value2) {
829173
+ return value2.endsWith("/") ? value2.slice(0, -1) : value2;
829174
+ }
829175
+ function stripSlashes(value2) {
829176
+ return stripLeadingSlash2(stripTrailingSlash(value2));
829177
+ }
829178
+
829146
829179
  // ../yaml/docs-validator/lib/rules/valid-markdown-link/check-if-pathname-exists.js
829147
829180
  async function checkIfPathnameExists({ pathname, markdown, absoluteFilepath, workspaceAbsoluteFilePath, pageSlugs, absoluteFilePathsToSlugs, redirects = [], baseUrl, versionSlugs = [], productSlugs = [] }) {
829148
829181
  pathname = removeTrailingSlash3(pathname);
@@ -829166,6 +829199,12 @@ async function checkIfPathnameExists({ pathname, markdown, absoluteFilepath, wor
829166
829199
  if (markdown && pageSlugs.has(removeLeadingSlash(redirectedPath))) {
829167
829200
  return true;
829168
829201
  }
829202
+ if (markdown) {
829203
+ const basePathPrefixed = withBasePathPrepended(redirectedPath, baseUrl.basePath);
829204
+ if (basePathPrefixed != null && pageSlugs.has(basePathPrefixed)) {
829205
+ return true;
829206
+ }
829207
+ }
829169
829208
  const contextSlugs = [...versionSlugs, ...productSlugs];
829170
829209
  if (markdown && contextSlugs.length > 0) {
829171
829210
  for (const slug of slugs) {
@@ -834779,7 +834818,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
834779
834818
  var LOGS_FOLDER_NAME = "logs";
834780
834819
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
834781
834820
  function getCliSource() {
834782
- const version7 = "5.4.1";
834821
+ const version7 = "5.4.2-3-g47bc39245e5";
834783
834822
  return `cli@${version7}`;
834784
834823
  }
834785
834824
  var DebugLogger = class {
@@ -847241,7 +847280,7 @@ var LegacyDocsPublisher = class {
847241
847280
  previewId,
847242
847281
  disableTemplates: void 0,
847243
847282
  skipUpload,
847244
- cliVersion: "5.4.1",
847283
+ cliVersion: "5.4.2-3-g47bc39245e5",
847245
847284
  loginCommand: "fern auth login"
847246
847285
  });
847247
847286
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -921573,7 +921612,7 @@ var CliContext = class _CliContext {
921573
921612
  if (false) {
921574
921613
  this.logger.error("CLI_VERSION is not defined");
921575
921614
  }
921576
- return "5.4.1";
921615
+ return "5.4.2-3-g47bc39245e5";
921577
921616
  }
921578
921617
  getCliName() {
921579
921618
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.4.1",
2
+ "version": "5.4.2-3-g47bc39245e5",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",