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