fern-api 0.19.24-rc0 → 0.19.24-rc2

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 +17 -5
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -827033,7 +827033,7 @@ var AccessTokenPosthogManager = class {
827033
827033
  properties: {
827034
827034
  ...event,
827035
827035
  ...event.properties,
827036
- version: "0.19.24-rc0",
827036
+ version: "0.19.24-rc2",
827037
827037
  usingAccessToken: true
827038
827038
  }
827039
827039
  });
@@ -827095,7 +827095,7 @@ var UserPosthogManager = class {
827095
827095
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
827096
827096
  event: "CLI",
827097
827097
  properties: {
827098
- version: "0.19.24-rc0",
827098
+ version: "0.19.24-rc2",
827099
827099
  ...event,
827100
827100
  ...event.properties
827101
827101
  }
@@ -839474,9 +839474,21 @@ function buildEnumTypeDeclaration(schema2) {
839474
839474
  if (schema2.description != null) {
839475
839475
  enumSchema.docs = schema2.description;
839476
839476
  }
839477
+ const uniqueEnumName = /* @__PURE__ */ new Set();
839478
+ const uniqueEnumSchema = {
839479
+ ...enumSchema,
839480
+ enum: []
839481
+ };
839482
+ for (const enumValue of enumSchema.enum) {
839483
+ const name2 = typeof enumValue === "string" ? enumValue : enumValue.name ?? enumValue.value;
839484
+ if (!uniqueEnumName.has(name2)) {
839485
+ uniqueEnumSchema.enum.push(enumValue);
839486
+ uniqueEnumName.add(name2);
839487
+ }
839488
+ }
839477
839489
  return {
839478
839490
  name: schema2.nameOverride ?? schema2.generatedName,
839479
- schema: enumSchema
839491
+ schema: uniqueEnumSchema
839480
839492
  };
839481
839493
  }
839482
839494
  function buildReferenceTypeDeclaration({ schema: schema2, context, declarationFile }) {
@@ -851112,10 +851124,10 @@ var CliContext = class {
851112
851124
  return "fern-api";
851113
851125
  }
851114
851126
  getPackageVersion() {
851115
- if ("0.19.24-rc0" == null) {
851127
+ if ("0.19.24-rc2" == null) {
851116
851128
  this.logger.error("CLI_VERSION is not defined");
851117
851129
  }
851118
- return "0.19.24-rc0";
851130
+ return "0.19.24-rc2";
851119
851131
  }
851120
851132
  getCliName() {
851121
851133
  if ("fern" == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.19.24-rc0",
3
+ "version": "0.19.24-rc2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",