@fern-api/fern-api-dev 5.70.2 → 5.70.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.
- package/cli.cjs +15 -7
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -262030,7 +262030,15 @@ function computeName(inputName, opts, config5) {
|
|
|
262030
262030
|
return word2;
|
|
262031
262031
|
}).join("") + nameTrailing);
|
|
262032
262032
|
}
|
|
262033
|
-
const smartSnakeFn = (n2) => n2.split(" ").map((part) =>
|
|
262033
|
+
const smartSnakeFn = (n2) => n2.split(" ").map((part) => {
|
|
262034
|
+
const segments = part.split(/(\d+)/);
|
|
262035
|
+
return segments.map((segment, index3) => {
|
|
262036
|
+
const casedSegment = snakeCase_default(segment);
|
|
262037
|
+
const previousSegment = segments[index3 - 1];
|
|
262038
|
+
const startsNewWord = casedSegment !== "" && previousSegment != null && /^\d+$/.test(previousSegment) && /^[^a-z0-9]/.test(segment);
|
|
262039
|
+
return startsNewWord ? `_${casedSegment}` : casedSegment;
|
|
262040
|
+
}).join("");
|
|
262041
|
+
}).join("_");
|
|
262034
262042
|
snakeCaseName = preserve ? withUnderscorePreservation(name2, smartSnakeFn) : smartSnakeFn(name2);
|
|
262035
262043
|
}
|
|
262036
262044
|
return {
|
|
@@ -689343,7 +689351,7 @@ var AccessTokenPosthogManager = class {
|
|
|
689343
689351
|
properties: {
|
|
689344
689352
|
...event,
|
|
689345
689353
|
...event.properties,
|
|
689346
|
-
version: "5.70.
|
|
689354
|
+
version: "5.70.3",
|
|
689347
689355
|
usingAccessToken: true,
|
|
689348
689356
|
...getRunIdProperties()
|
|
689349
689357
|
}
|
|
@@ -689409,7 +689417,7 @@ var UserPosthogManager = class {
|
|
|
689409
689417
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
689410
689418
|
event: "CLI",
|
|
689411
689419
|
properties: {
|
|
689412
|
-
version: "5.70.
|
|
689420
|
+
version: "5.70.3",
|
|
689413
689421
|
...event,
|
|
689414
689422
|
...event.properties,
|
|
689415
689423
|
usingAccessToken: false,
|
|
@@ -870510,7 +870518,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
870510
870518
|
var LOGS_FOLDER_NAME = "logs";
|
|
870511
870519
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
870512
870520
|
function getCliSource() {
|
|
870513
|
-
const version7 = "5.70.
|
|
870521
|
+
const version7 = "5.70.3";
|
|
870514
870522
|
return `cli@${version7}`;
|
|
870515
870523
|
}
|
|
870516
870524
|
var DebugLogger = class {
|
|
@@ -903082,7 +903090,7 @@ var LegacyDocsPublisher = class {
|
|
|
903082
903090
|
previewId,
|
|
903083
903091
|
disableTemplates: void 0,
|
|
903084
903092
|
skipUpload,
|
|
903085
|
-
cliVersion: "5.70.
|
|
903093
|
+
cliVersion: "5.70.3",
|
|
903086
903094
|
loginCommand: "fern auth login"
|
|
903087
903095
|
});
|
|
903088
903096
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -969508,7 +969516,7 @@ function getAutomationContextFromEnv() {
|
|
|
969508
969516
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
969509
969517
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
969510
969518
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
969511
|
-
cli_version: "5.70.
|
|
969519
|
+
cli_version: "5.70.3"
|
|
969512
969520
|
};
|
|
969513
969521
|
}
|
|
969514
969522
|
function isAutomationMode() {
|
|
@@ -970340,7 +970348,7 @@ var CliContext = class _CliContext {
|
|
|
970340
970348
|
if (false) {
|
|
970341
970349
|
this.logger.error("CLI_VERSION is not defined");
|
|
970342
970350
|
}
|
|
970343
|
-
return "5.70.
|
|
970351
|
+
return "5.70.3";
|
|
970344
970352
|
}
|
|
970345
970353
|
getCliName() {
|
|
970346
970354
|
if (false) {
|
package/package.json
CHANGED