@fern-api/fern-api-dev 3.60.1 → 3.60.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 +27 -23
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -1479340,24 +1479340,19 @@ function buildEndpointExample({ endpointExample, context: context2 }) {
1479340
1479340
  }
1479341
1479341
  }
1479342
1479342
  for (const [header, info] of Object.entries(globalHeaders)) {
1479343
- if (endpointHeaderNames.has(header)) {
1479344
- continue;
1479345
- }
1479346
1479343
  if (info != null && typeof info === "object" && info.type != null) {
1479347
1479344
  const valueToUse = recursivelyVisitRawTypeReference({
1479348
1479345
  type: info.type,
1479349
1479346
  _default: void 0,
1479350
1479347
  validation: void 0,
1479351
- // generic visitor to extract the string value from the literal
1479352
- // todo: add handling for other types in this visitor
1479353
1479348
  visitor: {
1479354
- primitive: (primitive) => primitive.toString(),
1479355
- map: (map16) => map16.toString(),
1479356
- list: (list15) => list15,
1479357
- optional: (optional9) => optional9,
1479358
- nullable: (nullable9) => nullable9,
1479359
- set: (set13) => set13,
1479360
- named: (named) => named,
1479349
+ primitive: noop2,
1479350
+ map: noop2,
1479351
+ list: noop2,
1479352
+ optional: (inner2) => inner2,
1479353
+ nullable: (inner2) => inner2,
1479354
+ set: noop2,
1479355
+ named: noop2,
1479361
1479356
  literal: (literal3) => {
1479362
1479357
  if (literal3.type === "string") {
1479363
1479358
  return literal3.string;
@@ -1479370,17 +1479365,26 @@ function buildEndpointExample({ endpointExample, context: context2 }) {
1479370
1479365
  }
1479371
1479366
  });
1479372
1479367
  if (valueToUse != null) {
1479373
- namedFullExamples.push({
1479368
+ const existingIdx = namedFullExamples.findIndex((e6) => e6.name === header);
1479369
+ const newExample = {
1479374
1479370
  name: header,
1479375
1479371
  value: FullExample.literal(LiteralExample.string(valueToUse))
1479376
- });
1479372
+ };
1479373
+ if (existingIdx >= 0) {
1479374
+ namedFullExamples[existingIdx] = newExample;
1479375
+ } else {
1479376
+ namedFullExamples.push(newExample);
1479377
+ }
1479378
+ continue;
1479377
1479379
  }
1479378
- } else {
1479379
- namedFullExamples.push({
1479380
- name: header,
1479381
- value: FullExample.primitive(PrimitiveExample.string(header))
1479382
- });
1479383
1479380
  }
1479381
+ if (endpointHeaderNames.has(header)) {
1479382
+ continue;
1479383
+ }
1479384
+ namedFullExamples.push({
1479385
+ name: header,
1479386
+ value: FullExample.primitive(PrimitiveExample.string(header))
1479387
+ });
1479384
1479388
  }
1479385
1479389
  example.headers = convertHeaderExamples2({
1479386
1479390
  context: context2,
@@ -1678888,7 +1678892,7 @@ var AccessTokenPosthogManager = class {
1678888
1678892
  properties: {
1678889
1678893
  ...event,
1678890
1678894
  ...event.properties,
1678891
- version: "3.60.1",
1678895
+ version: "3.60.2",
1678892
1678896
  usingAccessToken: true
1678893
1678897
  }
1678894
1678898
  });
@@ -1678938,7 +1678942,7 @@ var UserPosthogManager = class {
1678938
1678942
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1678939
1678943
  event: "CLI",
1678940
1678944
  properties: {
1678941
- version: "3.60.1",
1678945
+ version: "3.60.2",
1678942
1678946
  ...event,
1678943
1678947
  ...event.properties,
1678944
1678948
  usingAccessToken: false,
@@ -1710860,7 +1710864,7 @@ var CliContext = class {
1710860
1710864
  if (false) {
1710861
1710865
  this.logger.error("CLI_VERSION is not defined");
1710862
1710866
  }
1710863
- return "3.60.1";
1710867
+ return "3.60.2";
1710864
1710868
  }
1710865
1710869
  getCliName() {
1710866
1710870
  if (false) {
@@ -1713974,7 +1713978,7 @@ var import_path56 = __toESM(require("path"), 1);
1713974
1713978
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
1713975
1713979
  var LOGS_FOLDER_NAME = "logs";
1713976
1713980
  function getCliSource() {
1713977
- const version7 = "3.60.1";
1713981
+ const version7 = "3.60.2";
1713978
1713982
  return `cli@${version7}`;
1713979
1713983
  }
1713980
1713984
  var DebugLogger = class {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.60.1",
2
+ "version": "3.60.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",