@fern-api/fern-api-dev 5.23.3-682-g344be4bbfdf → 5.23.3-686-ge1408e97e4f

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 +71 -7
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -669559,7 +669559,7 @@ var AccessTokenPosthogManager = class {
669559
669559
  properties: {
669560
669560
  ...event,
669561
669561
  ...event.properties,
669562
- version: "5.23.3-682-g344be4bbfdf",
669562
+ version: "5.23.3-686-ge1408e97e4f",
669563
669563
  usingAccessToken: true,
669564
669564
  ...getRunIdProperties()
669565
669565
  }
@@ -669623,7 +669623,7 @@ var UserPosthogManager = class {
669623
669623
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
669624
669624
  event: "CLI",
669625
669625
  properties: {
669626
- version: "5.23.3-682-g344be4bbfdf",
669626
+ version: "5.23.3-686-ge1408e97e4f",
669627
669627
  ...event,
669628
669628
  ...event.properties,
669629
669629
  usingAccessToken: false,
@@ -861361,7 +861361,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
861361
861361
  var LOGS_FOLDER_NAME = "logs";
861362
861362
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
861363
861363
  function getCliSource() {
861364
- const version7 = "5.23.3-682-g344be4bbfdf";
861364
+ const version7 = "5.23.3-686-ge1408e97e4f";
861365
861365
  return `cli@${version7}`;
861366
861366
  }
861367
861367
  var DebugLogger = class {
@@ -892453,7 +892453,7 @@ var LegacyDocsPublisher = class {
892453
892453
  previewId,
892454
892454
  disableTemplates: void 0,
892455
892455
  skipUpload,
892456
- cliVersion: "5.23.3-682-g344be4bbfdf",
892456
+ cliVersion: "5.23.3-686-ge1408e97e4f",
892457
892457
  loginCommand: "fern auth login"
892458
892458
  });
892459
892459
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -919606,6 +919606,70 @@ function parameter2(args) {
919606
919606
  return new Parameter3(args);
919607
919607
  }
919608
919608
 
919609
+ // ../../../generators/java-v2/ast/lib/utils/JavaKeywords.js
919610
+ var JAVA_RESERVED_WORDS = /* @__PURE__ */ new Set([
919611
+ "abstract",
919612
+ "assert",
919613
+ "boolean",
919614
+ "break",
919615
+ "byte",
919616
+ "case",
919617
+ "catch",
919618
+ "char",
919619
+ "class",
919620
+ "const",
919621
+ "continue",
919622
+ "default",
919623
+ "do",
919624
+ "double",
919625
+ "else",
919626
+ "enum",
919627
+ "extends",
919628
+ "final",
919629
+ "finally",
919630
+ "float",
919631
+ "for",
919632
+ "goto",
919633
+ "if",
919634
+ "implements",
919635
+ "import",
919636
+ "instanceof",
919637
+ "int",
919638
+ "interface",
919639
+ "long",
919640
+ "native",
919641
+ "new",
919642
+ "package",
919643
+ "private",
919644
+ "protected",
919645
+ "public",
919646
+ "return",
919647
+ "short",
919648
+ "static",
919649
+ "strictfp",
919650
+ "super",
919651
+ "switch",
919652
+ "synchronized",
919653
+ "this",
919654
+ "throw",
919655
+ "throws",
919656
+ "transient",
919657
+ "try",
919658
+ "void",
919659
+ "volatile",
919660
+ "while",
919661
+ "true",
919662
+ "false",
919663
+ "null",
919664
+ "_"
919665
+ ]);
919666
+ function isJavaReservedWord(value2) {
919667
+ return JAVA_RESERVED_WORDS.has(value2.toLowerCase());
919668
+ }
919669
+ function escapeJavaKeyword(name2) {
919670
+ return isJavaReservedWord(name2) ? "_" + name2 : name2;
919671
+ }
919672
+
919609
919673
  // ../../../generators/java-v2/dynamic-snippets/lib/context/DynamicSnippetsGeneratorContext.js
919610
919674
  init_lodash();
919611
919675
 
@@ -920928,7 +920992,7 @@ var DynamicSnippetsGeneratorContext3 = class _DynamicSnippetsGeneratorContext ex
920928
920992
  }
920929
920993
  joinPackageTokens(tokens) {
920930
920994
  const sanitizedTokens = tokens.map((token) => {
920931
- return this.startsWithNumber(token) ? "_" + token : token;
920995
+ return this.startsWithNumber(token) ? "_" + token : escapeJavaKeyword(token);
920932
920996
  });
920933
920997
  return sanitizedTokens.join(".");
920934
920998
  }
@@ -957657,7 +957721,7 @@ function getAutomationContextFromEnv() {
957657
957721
  config_branch: process.env.FERN_CONFIG_BRANCH,
957658
957722
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
957659
957723
  trigger: process.env.GITHUB_EVENT_NAME,
957660
- cli_version: "5.23.3-682-g344be4bbfdf"
957724
+ cli_version: "5.23.3-686-ge1408e97e4f"
957661
957725
  };
957662
957726
  }
957663
957727
  function isAutomationMode() {
@@ -958483,7 +958547,7 @@ var CliContext = class _CliContext {
958483
958547
  if (false) {
958484
958548
  this.logger.error("CLI_VERSION is not defined");
958485
958549
  }
958486
- return "5.23.3-682-g344be4bbfdf";
958550
+ return "5.23.3-686-ge1408e97e4f";
958487
958551
  }
958488
958552
  getCliName() {
958489
958553
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.23.3-682-g344be4bbfdf",
2
+ "version": "5.23.3-686-ge1408e97e4f",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",