fern-api 0.17.6 → 0.17.7
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.
- package/bundle.cjs +6 -5
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -735187,7 +735187,7 @@ var AccessTokenPosthogManager = class {
|
|
|
735187
735187
|
properties: {
|
|
735188
735188
|
...event,
|
|
735189
735189
|
...event.properties,
|
|
735190
|
-
version: "0.17.
|
|
735190
|
+
version: "0.17.7",
|
|
735191
735191
|
usingAccessToken: true
|
|
735192
735192
|
}
|
|
735193
735193
|
});
|
|
@@ -735249,7 +735249,7 @@ var UserPosthogManager = class {
|
|
|
735249
735249
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
735250
735250
|
event: "CLI",
|
|
735251
735251
|
properties: {
|
|
735252
|
-
version: "0.17.
|
|
735252
|
+
version: "0.17.7",
|
|
735253
735253
|
...event,
|
|
735254
735254
|
...event.properties
|
|
735255
735255
|
}
|
|
@@ -761101,10 +761101,10 @@ var CliContext = class {
|
|
|
761101
761101
|
return "fern-api";
|
|
761102
761102
|
}
|
|
761103
761103
|
getPackageVersion() {
|
|
761104
|
-
if ("0.17.
|
|
761104
|
+
if ("0.17.7" == null) {
|
|
761105
761105
|
this.logger.error("CLI_VERSION is not defined");
|
|
761106
761106
|
}
|
|
761107
|
-
return "0.17.
|
|
761107
|
+
return "0.17.7";
|
|
761108
761108
|
}
|
|
761109
761109
|
getCliName() {
|
|
761110
761110
|
if ("fern" == null) {
|
|
@@ -762403,6 +762403,7 @@ var RESERVED_KEYWORDS = {
|
|
|
762403
762403
|
};
|
|
762404
762404
|
|
|
762405
762405
|
// pnp:/home/circleci/project/packages/cli/generation/ir-generator/lib/casings/CasingsGenerator.js
|
|
762406
|
+
var CAPITALIZE_INITIALISM = ["go", "ruby"];
|
|
762406
762407
|
function constructCasingsGenerator({ generationLanguage, smartCasing }) {
|
|
762407
762408
|
const casingsGenerator = {
|
|
762408
762409
|
generateName: (name2) => {
|
|
@@ -762415,7 +762416,7 @@ function constructCasingsGenerator({ generationLanguage, smartCasing }) {
|
|
|
762415
762416
|
let snakeCaseName = snakeCase_default(name2);
|
|
762416
762417
|
const camelCaseWords = words_default(camelCaseName);
|
|
762417
762418
|
if (smartCasing) {
|
|
762418
|
-
if (!hasAdjacentCommonInitialisms(camelCaseWords)) {
|
|
762419
|
+
if (!hasAdjacentCommonInitialisms(camelCaseWords) && (generationLanguage == null || CAPITALIZE_INITIALISM.includes(generationLanguage))) {
|
|
762419
762420
|
camelCaseName = camelCaseWords.map((word, index2) => {
|
|
762420
762421
|
if (index2 > 0) {
|
|
762421
762422
|
const pluralInitialism = maybeGetPluralInitialism(word);
|