@fern-api/fern-api-dev 4.80.3 → 4.80.4

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 +24 -8
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -531410,6 +531410,14 @@ function parseAsyncAPI({ document: document4, taskContext, options: options2, so
531410
531410
  init_lib4();
531411
531411
  init_lodash();
531412
531412
 
531413
+ // ../api-importers/openapi/openapi-ir-parser/lib/utils/sanitizeSecurityScopes.js
531414
+ function sanitizeSecurityScopes(security) {
531415
+ if (security == null) {
531416
+ return void 0;
531417
+ }
531418
+ return security.map((requirement) => Object.fromEntries(Object.entries(requirement).map(([key2, value2]) => [key2, value2 ?? []])));
531419
+ }
531420
+
531413
531421
  // ../api-importers/openapi/openapi-ir-parser/lib/openapi/v3/converters/operation/convertOperation.js
531414
531422
  init_lodash();
531415
531423
 
@@ -533307,7 +533315,7 @@ function createOperationSdkMethodName({ operationContext, request: request7 }) {
533307
533315
  };
533308
533316
  }
533309
533317
  function generateSecurity(operation) {
533310
- return operation.security;
533318
+ return sanitizeSecurityScopes(operation.security);
533311
533319
  }
533312
533320
  function isEndpointAuthed(operation, document4) {
533313
533321
  if (operation.security != null) {
@@ -534523,7 +534531,7 @@ function generateIr({ openApi, taskContext, options: options2, source: source2,
534523
534531
  }
534524
534532
  return [key2, convertedSecurityScheme];
534525
534533
  }).filter((entry) => entry !== null));
534526
- const security = openApi.security?.filter((requirement) => requirement != null);
534534
+ const security = sanitizeSecurityScopes(openApi.security?.filter((requirement) => requirement != null));
534527
534535
  const authHeaders = new Set(Object.entries(securitySchemes).map(([_7, securityScheme]) => {
534528
534536
  if (securityScheme.type === "basic" || securityScheme.type === "bearer" || securityScheme.type === "oauth") {
534529
534537
  return "Authorization";
@@ -598988,6 +598996,14 @@ var ERROR_NAMES_BY_STATUS_CODE2 = {
598988
598996
  };
598989
598997
  var ERROR_NAMES2 = new Set(Object.values(ERROR_NAMES_BY_STATUS_CODE2));
598990
598998
 
598999
+ // ../api-importers/v3-importer-commons/lib/utils/sanitizeSecurityScopes.js
599000
+ function sanitizeSecurityScopes2(security) {
599001
+ if (security == null) {
599002
+ return void 0;
599003
+ }
599004
+ return security.map((requirement) => Object.fromEntries(Object.entries(requirement).map(([key2, value2]) => [key2, value2 ?? []])));
599005
+ }
599006
+
598991
599007
  // ../api-importers/asyncapi-to-ir/lib/2.x/channel/ChannelConverter2_X.js
598992
599008
  init_lodash();
598993
599009
 
@@ -602809,7 +602825,7 @@ var OperationConverter = class _OperationConverter extends AbstractOperationConv
602809
602825
  if (this.context.authOverrides?.auth != null) {
602810
602826
  return this.getDefaultSecurityFromAuthOverrides();
602811
602827
  }
602812
- return this.operation.security ?? this.context.spec.security;
602828
+ return sanitizeSecurityScopes2(this.operation.security ?? this.context.spec.security);
602813
602829
  }
602814
602830
  /**
602815
602831
  * Converts security scheme IDs to HTTP headers
@@ -614282,7 +614298,7 @@ var AccessTokenPosthogManager = class {
614282
614298
  properties: {
614283
614299
  ...event,
614284
614300
  ...event.properties,
614285
- version: "4.80.3",
614301
+ version: "4.80.4",
614286
614302
  usingAccessToken: true
614287
614303
  }
614288
614304
  });
@@ -614336,7 +614352,7 @@ var UserPosthogManager = class {
614336
614352
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
614337
614353
  event: "CLI",
614338
614354
  properties: {
614339
- version: "4.80.3",
614355
+ version: "4.80.4",
614340
614356
  ...event,
614341
614357
  ...event.properties,
614342
614358
  usingAccessToken: false,
@@ -831617,7 +831633,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
831617
831633
  var LOGS_FOLDER_NAME = "logs";
831618
831634
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
831619
831635
  function getCliSource() {
831620
- const version7 = "4.80.3";
831636
+ const version7 = "4.80.4";
831621
831637
  return `cli@${version7}`;
831622
831638
  }
831623
831639
  var DebugLogger = class {
@@ -843131,7 +843147,7 @@ var LegacyDocsPublisher = class {
843131
843147
  previewId,
843132
843148
  disableTemplates: void 0,
843133
843149
  skipUpload,
843134
- cliVersion: "4.80.3"
843150
+ cliVersion: "4.80.4"
843135
843151
  });
843136
843152
  if (taskContext.getResult() === TaskResult.Failure) {
843137
843153
  return { success: false };
@@ -918220,7 +918236,7 @@ var CliContext = class _CliContext {
918220
918236
  if (false) {
918221
918237
  this.logger.error("CLI_VERSION is not defined");
918222
918238
  }
918223
- return "4.80.3";
918239
+ return "4.80.4";
918224
918240
  }
918225
918241
  getCliName() {
918226
918242
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.80.3",
2
+ "version": "4.80.4",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",