fern-api 0.17.2 → 0.17.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/bundle.cjs +27 -24
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -735189,7 +735189,7 @@ var AccessTokenPosthogManager = class {
735189
735189
  properties: {
735190
735190
  ...event,
735191
735191
  ...event.properties,
735192
- version: "0.17.2",
735192
+ version: "0.17.3",
735193
735193
  usingAccessToken: true
735194
735194
  }
735195
735195
  });
@@ -735251,7 +735251,7 @@ var UserPosthogManager = class {
735251
735251
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
735252
735252
  event: "CLI",
735253
735253
  properties: {
735254
- version: "0.17.2",
735254
+ version: "0.17.3",
735255
735255
  ...event,
735256
735256
  ...event.properties
735257
735257
  }
@@ -761045,10 +761045,10 @@ var CliContext = class {
761045
761045
  return "fern-api";
761046
761046
  }
761047
761047
  getPackageVersion() {
761048
- if ("0.17.2" == null) {
761048
+ if ("0.17.3" == null) {
761049
761049
  this.logger.error("CLI_VERSION is not defined");
761050
761050
  }
761051
- return "0.17.2";
761051
+ return "0.17.3";
761052
761052
  }
761053
761053
  getCliName() {
761054
761054
  if ("fern" == null) {
@@ -762356,11 +762356,23 @@ function constructCasingsGenerator({ generationLanguage, smartCasing }) {
762356
762356
  });
762357
762357
  let camelCaseName = camelCase_default(name2);
762358
762358
  let pascalCaseName = upperFirst_default(camelCaseName);
762359
- const snakeCaseName = snakeCase_default(name2);
762359
+ let snakeCaseName = snakeCase_default(name2);
762360
762360
  const camelCaseWords = words_default(camelCaseName);
762361
- if (smartCasing && !hasAdjacentCommonInitialisms(camelCaseWords)) {
762362
- camelCaseName = camelCaseWords.map((word, index2) => {
762363
- if (index2 > 0) {
762361
+ if (smartCasing) {
762362
+ if (!hasAdjacentCommonInitialisms(camelCaseWords)) {
762363
+ camelCaseName = camelCaseWords.map((word, index2) => {
762364
+ if (index2 > 0) {
762365
+ const pluralInitialism = maybeGetPluralInitialism(word);
762366
+ if (pluralInitialism != null) {
762367
+ return pluralInitialism;
762368
+ }
762369
+ if (isCommonInitialism(word)) {
762370
+ return word.toUpperCase();
762371
+ }
762372
+ }
762373
+ return word;
762374
+ }).join("");
762375
+ pascalCaseName = camelCaseWords.map((word, index2) => {
762364
762376
  const pluralInitialism = maybeGetPluralInitialism(word);
762365
762377
  if (pluralInitialism != null) {
762366
762378
  return pluralInitialism;
@@ -762368,22 +762380,13 @@ function constructCasingsGenerator({ generationLanguage, smartCasing }) {
762368
762380
  if (isCommonInitialism(word)) {
762369
762381
  return word.toUpperCase();
762370
762382
  }
762371
- }
762372
- return word;
762373
- }).join("");
762374
- pascalCaseName = camelCaseWords.map((word, index2) => {
762375
- const pluralInitialism = maybeGetPluralInitialism(word);
762376
- if (pluralInitialism != null) {
762377
- return pluralInitialism;
762378
- }
762379
- if (isCommonInitialism(word)) {
762380
- return word.toUpperCase();
762381
- }
762382
- if (index2 === 0) {
762383
- return upperFirst_default(word);
762384
- }
762385
- return word;
762386
- }).join("");
762383
+ if (index2 === 0) {
762384
+ return upperFirst_default(word);
762385
+ }
762386
+ return word;
762387
+ }).join("");
762388
+ }
762389
+ snakeCaseName = name2.split(" ").map((part) => part.split(/(\d+)/).map(snakeCase_default).join("")).join("_");
762387
762390
  }
762388
762391
  return {
762389
762392
  originalName: name2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",