@fern-api/fern-api-dev 5.89.2 → 5.89.3

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 +20 -10
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -147333,6 +147333,9 @@ function resolveEndpointLocationWithNamespaceOverride({ location: location2, nam
147333
147333
  }
147334
147334
  return location2;
147335
147335
  }
147336
+ function sanitizeEndpointId(operationId) {
147337
+ return operationId.includes(".") ? camelCase_default(operationId) : operationId;
147338
+ }
147336
147339
  function getUnresolvedEndpointLocation(endpoint3) {
147337
147340
  const namespace = endpoint3.namespace;
147338
147341
  const tag2 = endpoint3.tags.filter((tag3) => tag3 !== namespace)[0];
@@ -147358,7 +147361,7 @@ function getUnresolvedEndpointLocation(endpoint3) {
147358
147361
  if (tag2 == null) {
147359
147362
  return {
147360
147363
  file: RelativeFilePath.of(FERN_PACKAGE_MARKER_FILENAME),
147361
- endpointId: operationId
147364
+ endpointId: sanitizeEndpointId(operationId)
147362
147365
  };
147363
147366
  }
147364
147367
  const tagTokens = tokenizeString(tag2);
@@ -147387,7 +147390,7 @@ function getUnresolvedEndpointLocation(endpoint3) {
147387
147390
  const camelCasedTag = camelCase_default(tag2);
147388
147391
  return {
147389
147392
  file: RelativeFilePath.of(`${camelCasedTag}.yml`),
147390
- endpointId: operationId,
147393
+ endpointId: sanitizeEndpointId(operationId),
147391
147394
  tag: tag2
147392
147395
  };
147393
147396
  }
@@ -353647,11 +353650,17 @@ var init_AbstractOperationConverter = __esm({
353647
353650
  }
353648
353651
  return operationId;
353649
353652
  }
353653
+ // A dot in a method name is parsed as a reference to another file (`import.endpoint`),
353654
+ // so dotted operation ids must be collapsed into a single name. This runs after
353655
+ // tokenization so that grouping still sees the individual tokens.
353656
+ sanitizeMethodName(methodName) {
353657
+ return methodName.includes(".") ? camelCase_default(methodName) : methodName;
353658
+ }
353650
353659
  computeGroupNameFromTagAndOperationId() {
353651
353660
  const tag2 = this.operation.tags?.[0];
353652
353661
  const methodName = this.evaluateMethodNameFromOperation();
353653
353662
  if (tag2 == null) {
353654
- return { method: methodName };
353663
+ return { method: this.sanitizeMethodName(methodName) };
353655
353664
  }
353656
353665
  const tagTokens = tokenizeString2(tag2);
353657
353666
  const methodNameTokens = tokenizeString2(methodName);
@@ -353672,7 +353681,7 @@ var init_AbstractOperationConverter = __esm({
353672
353681
  if (tagIsNotPrefixOfMethodName) {
353673
353682
  return {
353674
353683
  group: [tag2],
353675
- method: methodName
353684
+ method: this.sanitizeMethodName(methodName)
353676
353685
  };
353677
353686
  }
353678
353687
  const methodTokens = methodNameTokens.slice(tagTokens.length);
@@ -694317,7 +694326,7 @@ var AccessTokenPosthogManager = class {
694317
694326
  properties: {
694318
694327
  ...event,
694319
694328
  ...event.properties,
694320
- version: "5.89.2",
694329
+ version: "5.89.3",
694321
694330
  usingAccessToken: true,
694322
694331
  ...getRunIdProperties()
694323
694332
  }
@@ -694383,7 +694392,7 @@ var UserPosthogManager = class {
694383
694392
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
694384
694393
  event: "CLI",
694385
694394
  properties: {
694386
- version: "5.89.2",
694395
+ version: "5.89.3",
694387
694396
  ...event,
694388
694397
  ...event.properties,
694389
694398
  usingAccessToken: false,
@@ -875513,7 +875522,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
875513
875522
  var LOGS_FOLDER_NAME = "logs";
875514
875523
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
875515
875524
  function getCliSource() {
875516
- const version7 = "5.89.2";
875525
+ const version7 = "5.89.3";
875517
875526
  return `cli@${version7}`;
875518
875527
  }
875519
875528
  var DebugLogger = class {
@@ -908223,7 +908232,7 @@ var LegacyDocsPublisher = class {
908223
908232
  previewId,
908224
908233
  disableTemplates: void 0,
908225
908234
  skipUpload,
908226
- cliVersion: "5.89.2",
908235
+ cliVersion: "5.89.3",
908227
908236
  loginCommand: "fern auth login"
908228
908237
  });
908229
908238
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -958729,6 +958738,7 @@ var TypescriptCustomConfigSchema = external_exports2.strictObject({
958729
958738
  packagePath: external_exports2.optional(external_exports2.string()),
958730
958739
  omitFernHeaders: external_exports2.optional(external_exports2.boolean()),
958731
958740
  includePlatformHeaders: external_exports2.optional(external_exports2.boolean()),
958741
+ allowUserAgentAppInfo: external_exports2.optional(external_exports2.boolean()),
958732
958742
  useDefaultRequestParameterValues: external_exports2.optional(external_exports2.boolean()),
958733
958743
  packageManager: external_exports2.optional(external_exports2.enum(["pnpm", "yarn"])),
958734
958744
  flattenRequestParameters: external_exports2.optional(external_exports2.boolean()),
@@ -975098,7 +975108,7 @@ function getAutomationContextFromEnv() {
975098
975108
  config_branch: process.env.FERN_CONFIG_BRANCH,
975099
975109
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
975100
975110
  trigger: process.env.GITHUB_EVENT_NAME,
975101
- cli_version: "5.89.2"
975111
+ cli_version: "5.89.3"
975102
975112
  };
975103
975113
  }
975104
975114
  function isAutomationMode() {
@@ -975930,7 +975940,7 @@ var CliContext = class _CliContext {
975930
975940
  if (false) {
975931
975941
  this.logger.error("CLI_VERSION is not defined");
975932
975942
  }
975933
- return "5.89.2";
975943
+ return "5.89.3";
975934
975944
  }
975935
975945
  getCliName() {
975936
975946
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.89.2",
2
+ "version": "5.89.3",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",