@fern-api/fern-api-dev 4.68.3-1-g429be56b56f → 4.68.3-3-g2b499fcba0f

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 +23 -10
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -485222,7 +485222,8 @@ var CliError = class _CliError extends Error {
485222
485222
  ValidationError: "VALIDATION_ERROR",
485223
485223
  NetworkError: "NETWORK_ERROR",
485224
485224
  AuthError: "AUTH_ERROR",
485225
- ConfigError: "CONFIG_ERROR"
485225
+ ConfigError: "CONFIG_ERROR",
485226
+ Unclassified: "UNCLASSIFIED"
485226
485227
  };
485227
485228
  })(CliError || (CliError = {}));
485228
485229
  var SENTRY_REPORTABLE = {
@@ -485237,7 +485238,8 @@ var SENTRY_REPORTABLE = {
485237
485238
  [CliError.Code.ValidationError]: false,
485238
485239
  [CliError.Code.NetworkError]: false,
485239
485240
  [CliError.Code.AuthError]: false,
485240
- [CliError.Code.ConfigError]: false
485241
+ [CliError.Code.ConfigError]: false,
485242
+ [CliError.Code.Unclassified]: false
485241
485243
  };
485242
485244
  function shouldReportToSentry(code5) {
485243
485245
  return SENTRY_REPORTABLE[code5];
@@ -485261,7 +485263,7 @@ function resolveErrorCode(error50, explicitCode) {
485261
485263
  if (isNodeVersionError(error50)) {
485262
485264
  return CliError.Code.EnvironmentError;
485263
485265
  }
485264
- return CliError.Code.InternalError;
485266
+ return CliError.Code.Unclassified;
485265
485267
  }
485266
485268
 
485267
485269
  // ../logger/lib/LogLevel.js
@@ -564393,7 +564395,7 @@ function mergeIntermediateRepresentation(ir1, ir23, casingsGenerator) {
564393
564395
  schemes: ir23.auth?.schemes?.length != null && ir23.auth.schemes.length > (ir1.auth?.schemes?.length ?? 0) ? ir23.auth.schemes : ir1.auth?.schemes ?? [],
564394
564396
  docs: ir1.auth?.docs ?? ir23.auth?.docs
564395
564397
  },
564396
- headers: [...ir1.headers ?? [], ...ir23.headers ?? []],
564398
+ headers: deduplicateHeaders([...ir1.headers ?? [], ...ir23.headers ?? []]),
564397
564399
  environments: environments2,
564398
564400
  types: {
564399
564401
  ...ir1.types ?? {},
@@ -564431,7 +564433,7 @@ function mergeIntermediateRepresentation(ir1, ir23, casingsGenerator) {
564431
564433
  },
564432
564434
  fdrApiDefinitionId: ir1.fdrApiDefinitionId ?? ir23.fdrApiDefinitionId,
564433
564435
  apiVersion: ir1.apiVersion ?? ir23.apiVersion,
564434
- idempotencyHeaders: [...ir1.idempotencyHeaders ?? [], ...ir23.idempotencyHeaders ?? []],
564436
+ idempotencyHeaders: deduplicateHeaders([...ir1.idempotencyHeaders ?? [], ...ir23.idempotencyHeaders ?? []]),
564435
564437
  pathParameters: [...ir1.pathParameters ?? [], ...ir23.pathParameters ?? []],
564436
564438
  errorDiscriminationStrategy: ir1.errorDiscriminationStrategy ?? ir23.errorDiscriminationStrategy,
564437
564439
  variables: [...ir1.variables ?? [], ...ir23.variables ?? []],
@@ -564763,6 +564765,17 @@ function isWebsocketEnvironment(environment2) {
564763
564765
  }
564764
564766
  return false;
564765
564767
  }
564768
+ function deduplicateHeaders(headers2) {
564769
+ const seen = /* @__PURE__ */ new Set();
564770
+ return headers2.filter((header) => {
564771
+ const wireValue = getWireValue(header.name).toLowerCase();
564772
+ if (seen.has(wireValue)) {
564773
+ return false;
564774
+ }
564775
+ seen.add(wireValue);
564776
+ return true;
564777
+ });
564778
+ }
564766
564779
  function generateUniqueName(id2, existingIds) {
564767
564780
  let uniqueName = id2;
564768
564781
  let suffix = 1;
@@ -627003,7 +627016,7 @@ var AccessTokenPosthogManager = class {
627003
627016
  properties: {
627004
627017
  ...event,
627005
627018
  ...event.properties,
627006
- version: "4.68.3-1-g429be56b56f",
627019
+ version: "4.68.3-3-g2b499fcba0f",
627007
627020
  usingAccessToken: true
627008
627021
  }
627009
627022
  });
@@ -627057,7 +627070,7 @@ var UserPosthogManager = class {
627057
627070
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
627058
627071
  event: "CLI",
627059
627072
  properties: {
627060
- version: "4.68.3-1-g429be56b56f",
627073
+ version: "4.68.3-3-g2b499fcba0f",
627061
627074
  ...event,
627062
627075
  ...event.properties,
627063
627076
  usingAccessToken: false,
@@ -844109,7 +844122,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
844109
844122
  var LOGS_FOLDER_NAME = "logs";
844110
844123
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
844111
844124
  function getCliSource() {
844112
- const version7 = "4.68.3-1-g429be56b56f";
844125
+ const version7 = "4.68.3-3-g2b499fcba0f";
844113
844126
  return `cli@${version7}`;
844114
844127
  }
844115
844128
  var DebugLogger = class {
@@ -855359,7 +855372,7 @@ var LegacyDocsPublisher = class {
855359
855372
  previewId,
855360
855373
  disableTemplates: void 0,
855361
855374
  skipUpload,
855362
- cliVersion: "4.68.3-1-g429be56b56f"
855375
+ cliVersion: "4.68.3-3-g2b499fcba0f"
855363
855376
  });
855364
855377
  if (taskContext.getResult() === TaskResult.Failure) {
855365
855378
  return { success: false };
@@ -929180,7 +929193,7 @@ var CliContext = class _CliContext {
929180
929193
  if (false) {
929181
929194
  this.logger.error("CLI_VERSION is not defined");
929182
929195
  }
929183
- return "4.68.3-1-g429be56b56f";
929196
+ return "4.68.3-3-g2b499fcba0f";
929184
929197
  }
929185
929198
  getCliName() {
929186
929199
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.68.3-1-g429be56b56f",
2
+ "version": "4.68.3-3-g2b499fcba0f",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",