@fern-api/fern-api-dev 4.63.2 → 4.63.3-1-gf196af65499

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 +12 -9
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -520500,7 +520500,7 @@ function convertSchemaObject(schema2, wrapAsOptional, wrapAsNullable, context3,
520500
520500
  }
520501
520501
  if (schema2.type === "boolean") {
520502
520502
  const literalValue = getExtension(schema2, FernOpenAPIExtension.BOOLEAN_LITERAL);
520503
- const resolvedLiteral = literalValue ?? getSingleBooleanEnumValue(schema2, blockConstCoercionToLiteral);
520503
+ const resolvedLiteral = literalValue ?? getSingleBooleanEnumValue(schema2, blockConstCoercionToLiteral, context3.options.coerceEnumsToLiterals);
520504
520504
  if (resolvedLiteral != null) {
520505
520505
  return wrapLiteral({
520506
520506
  nameOverride,
@@ -521245,10 +521245,13 @@ function convertSchemaObject(schema2, wrapAsOptional, wrapAsNullable, context3,
521245
521245
  });
521246
521246
  }
521247
521247
  }
521248
- function getSingleBooleanEnumValue(schema2, blockConstCoercionToLiteral) {
521248
+ function getSingleBooleanEnumValue(schema2, blockConstCoercionToLiteral, coerceEnumsToLiterals) {
521249
521249
  if (blockConstCoercionToLiteral) {
521250
521250
  return void 0;
521251
521251
  }
521252
+ if (!coerceEnumsToLiterals) {
521253
+ return void 0;
521254
+ }
521252
521255
  if (schema2.enum != null && schema2.enum.length === 1 && typeof schema2.enum[0] === "boolean") {
521253
521256
  return schema2.enum[0];
521254
521257
  }
@@ -603121,7 +603124,7 @@ var AccessTokenPosthogManager = class {
603121
603124
  properties: {
603122
603125
  ...event,
603123
603126
  ...event.properties,
603124
- version: "4.63.2",
603127
+ version: "4.63.3-1-gf196af65499",
603125
603128
  usingAccessToken: true
603126
603129
  }
603127
603130
  });
@@ -603172,7 +603175,7 @@ var UserPosthogManager = class {
603172
603175
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
603173
603176
  event: "CLI",
603174
603177
  properties: {
603175
- version: "4.63.2",
603178
+ version: "4.63.3-1-gf196af65499",
603176
603179
  ...event,
603177
603180
  ...event.properties,
603178
603181
  usingAccessToken: false,
@@ -839766,7 +839769,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
839766
839769
  var LOGS_FOLDER_NAME = "logs";
839767
839770
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
839768
839771
  function getCliSource() {
839769
- const version7 = "4.63.2";
839772
+ const version7 = "4.63.3-1-gf196af65499";
839770
839773
  return `cli@${version7}`;
839771
839774
  }
839772
839775
  var DebugLogger = class {
@@ -850964,7 +850967,7 @@ var LegacyDocsPublisher = class {
850964
850967
  previewId,
850965
850968
  disableTemplates: void 0,
850966
850969
  skipUpload,
850967
- cliVersion: "4.63.2"
850970
+ cliVersion: "4.63.3-1-gf196af65499"
850968
850971
  });
850969
850972
  if (taskContext.getResult() === TaskResult.Failure) {
850970
850973
  return { success: false };
@@ -874353,11 +874356,11 @@ function getMajorVersionSuffix({ config: config5 }) {
874353
874356
  }
874354
874357
  function parseMajorVersion({ config: config5 }) {
874355
874358
  const version7 = getVersion(config5);
874356
- if (version7 == null) {
874359
+ if (version7 == null || version7 === "") {
874357
874360
  return void 0;
874358
874361
  }
874359
874362
  const split2 = version7.split(".");
874360
- if (split2[0] == null) {
874363
+ if (split2[0] == null || split2[0] === "" || split2[0] === "v") {
874361
874364
  return void 0;
874362
874365
  }
874363
874366
  const majorVersion2 = split2[0];
@@ -924342,7 +924345,7 @@ var CliContext = class {
924342
924345
  if (false) {
924343
924346
  this.logger.error("CLI_VERSION is not defined");
924344
924347
  }
924345
- return "4.63.2";
924348
+ return "4.63.3-1-gf196af65499";
924346
924349
  }
924347
924350
  getCliName() {
924348
924351
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.63.2",
2
+ "version": "4.63.3-1-gf196af65499",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",