@fern-api/fern-api-dev 4.65.1 → 4.65.2

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 +14 -11
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -604115,7 +604115,7 @@ var AccessTokenPosthogManager = class {
604115
604115
  properties: {
604116
604116
  ...event,
604117
604117
  ...event.properties,
604118
- version: "4.65.1",
604118
+ version: "4.65.2",
604119
604119
  usingAccessToken: true
604120
604120
  }
604121
604121
  });
@@ -604166,7 +604166,7 @@ var UserPosthogManager = class {
604166
604166
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
604167
604167
  event: "CLI",
604168
604168
  properties: {
604169
- version: "4.65.1",
604169
+ version: "4.65.2",
604170
604170
  ...event,
604171
604171
  ...event.properties,
604172
604172
  usingAccessToken: false,
@@ -754388,9 +754388,9 @@ var V66_TO_V65_MIGRATION = {
754388
754388
  [GeneratorName.TYPESCRIPT]: "3.61.0-rc.0",
754389
754389
  [GeneratorName.TYPESCRIPT_SDK]: "3.61.0-rc.0",
754390
754390
  [GeneratorName.TYPESCRIPT_EXPRESS]: "0.20.0-rc.0",
754391
- [GeneratorName.JAVA]: GeneratorWasNeverUpdatedToConsumeNewIR,
754392
- [GeneratorName.JAVA_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
754393
- [GeneratorName.JAVA_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
754391
+ [GeneratorName.JAVA]: "4.2.0-rc.0",
754392
+ [GeneratorName.JAVA_MODEL]: "1.9.0-rc.0",
754393
+ [GeneratorName.JAVA_SDK]: "4.2.0-rc.0",
754394
754394
  [GeneratorName.JAVA_SPRING]: GeneratorWasNeverUpdatedToConsumeNewIR,
754395
754395
  [GeneratorName.OPENAPI_PYTHON_CLIENT]: GeneratorWasNeverUpdatedToConsumeNewIR,
754396
754396
  [GeneratorName.OPENAPI]: "0.4.0-rc.0",
@@ -841147,7 +841147,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
841147
841147
  var LOGS_FOLDER_NAME = "logs";
841148
841148
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
841149
841149
  function getCliSource() {
841150
- const version7 = "4.65.1";
841150
+ const version7 = "4.65.2";
841151
841151
  return `cli@${version7}`;
841152
841152
  }
841153
841153
  var DebugLogger = class {
@@ -852345,7 +852345,7 @@ var LegacyDocsPublisher = class {
852345
852345
  previewId,
852346
852346
  disableTemplates: void 0,
852347
852347
  skipUpload,
852348
- cliVersion: "4.65.1"
852348
+ cliVersion: "4.65.2"
852349
852349
  });
852350
852350
  if (taskContext.getResult() === TaskResult.Failure) {
852351
852351
  return { success: false };
@@ -873516,7 +873516,7 @@ var EndpointSnippetGenerator2 = class extends WithGeneration {
873516
873516
  throw new Error("Unsupported");
873517
873517
  }
873518
873518
  buildCodeBlock({ endpoint: endpoint3, snippet: snippet2, options: options2 }) {
873519
- if (endpoint3.examples && !endpoint3.examples?.find((each2) => is9.DynamicIR.EndpointExample(snippet2) && each2.id === snippet2.id)) {
873519
+ if (endpoint3.examples && is9.DynamicIR.EndpointExample(snippet2) && !endpoint3.examples.find((each2) => each2.id === snippet2.id)) {
873520
873520
  throw new Error("Endpoint does not have an example that matches the snippet");
873521
873521
  }
873522
873522
  const body = this.csharp.codeblock((writer2) => {
@@ -925934,7 +925934,7 @@ var CliContext = class {
925934
925934
  if (false) {
925935
925935
  this.logger.error("CLI_VERSION is not defined");
925936
925936
  }
925937
- return "4.65.1";
925937
+ return "4.65.2";
925938
925938
  }
925939
925939
  getCliName() {
925940
925940
  if (false) {
@@ -932903,11 +932903,14 @@ async function listDocsPreview({
932903
932903
  return context3.failAndThrow(
932904
932904
  "Unauthorized to list preview deployments. Please run 'fern login' to refresh your credentials, or set the FERN_TOKEN environment variable."
932905
932905
  );
932906
- default:
932906
+ default: {
932907
+ const errorContent = listResponse.error.content != null && typeof listResponse.error.content === "object" && "body" in listResponse.error.content ? listResponse.error.content.body : listResponse.error.content;
932908
+ context3.logger.debug(`Error fetching preview deployments: ${JSON.stringify(errorContent)}`);
932907
932909
  return context3.failAndThrow(
932908
- "Failed to fetch preview deployments. Please check your network connection and try again.",
932910
+ "Failed to fetch preview deployments. Please ensure you are logged in with 'fern login' or have FERN_TOKEN set, then try again.",
932909
932911
  listResponse.error
932910
932912
  );
932913
+ }
932911
932914
  }
932912
932915
  }
932913
932916
  const previewUrlPattern = /-preview-[a-f0-9-]+\.docs\.buildwithfern\.com$/;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.65.1",
2
+ "version": "4.65.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",