@fern-api/fern-api-dev 5.23.3-1317-ge11126e8d5a → 5.23.3-1326-gfa13d565237
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 +24 -11
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -689229,7 +689229,7 @@ var AccessTokenPosthogManager = class {
|
|
|
689229
689229
|
properties: {
|
|
689230
689230
|
...event,
|
|
689231
689231
|
...event.properties,
|
|
689232
|
-
version: "5.23.3-
|
|
689232
|
+
version: "5.23.3-1326-gfa13d565237",
|
|
689233
689233
|
usingAccessToken: true,
|
|
689234
689234
|
...getRunIdProperties()
|
|
689235
689235
|
}
|
|
@@ -689295,7 +689295,7 @@ var UserPosthogManager = class {
|
|
|
689295
689295
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
689296
689296
|
event: "CLI",
|
|
689297
689297
|
properties: {
|
|
689298
|
-
version: "5.23.3-
|
|
689298
|
+
version: "5.23.3-1326-gfa13d565237",
|
|
689299
689299
|
...event,
|
|
689300
689300
|
...event.properties,
|
|
689301
689301
|
usingAccessToken: false,
|
|
@@ -834391,8 +834391,8 @@ var V67_TO_V66_MIGRATION = {
|
|
|
834391
834391
|
[GeneratorName.TYPESCRIPT_SDK]: "3.70.9-rc.0",
|
|
834392
834392
|
[GeneratorName.TYPESCRIPT_EXPRESS]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
834393
834393
|
[GeneratorName.JAVA]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
834394
|
-
[GeneratorName.JAVA_MODEL]:
|
|
834395
|
-
[GeneratorName.JAVA_SDK]:
|
|
834394
|
+
[GeneratorName.JAVA_MODEL]: "1.9.0-rc.1",
|
|
834395
|
+
[GeneratorName.JAVA_SDK]: "4.13.3-rc.0",
|
|
834396
834396
|
[GeneratorName.JAVA_SPRING]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
834397
834397
|
[GeneratorName.OPENAPI_PYTHON_CLIENT]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
834398
834398
|
[GeneratorName.OPENAPI]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
@@ -870396,7 +870396,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
870396
870396
|
var LOGS_FOLDER_NAME = "logs";
|
|
870397
870397
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
870398
870398
|
function getCliSource() {
|
|
870399
|
-
const version7 = "5.23.3-
|
|
870399
|
+
const version7 = "5.23.3-1326-gfa13d565237";
|
|
870400
870400
|
return `cli@${version7}`;
|
|
870401
870401
|
}
|
|
870402
870402
|
var DebugLogger = class {
|
|
@@ -902957,7 +902957,7 @@ var LegacyDocsPublisher = class {
|
|
|
902957
902957
|
previewId,
|
|
902958
902958
|
disableTemplates: void 0,
|
|
902959
902959
|
skipUpload,
|
|
902960
|
-
cliVersion: "5.23.3-
|
|
902960
|
+
cliVersion: "5.23.3-1326-gfa13d565237",
|
|
902961
902961
|
loginCommand: "fern auth login"
|
|
902962
902962
|
});
|
|
902963
902963
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -938804,6 +938804,19 @@ var DynamicSnippetsGeneratorContext5 = class _DynamicSnippetsGeneratorContext ex
|
|
|
938804
938804
|
}
|
|
938805
938805
|
return name2.snakeCase.safeName;
|
|
938806
938806
|
}
|
|
938807
|
+
/**
|
|
938808
|
+
* Module/subpackage directory name, preserving any leading/trailing underscores
|
|
938809
|
+
* from the original name that the casing functions would otherwise strip. This
|
|
938810
|
+
* keeps snippet accessors and module paths consistent with the generated module
|
|
938811
|
+
* directories (e.g. a group named `_agents` yields `client._agents`). It is scoped
|
|
938812
|
+
* to namespace/module names and intentionally not applied to property or method names.
|
|
938813
|
+
*/
|
|
938814
|
+
getModuleName(name2) {
|
|
938815
|
+
const leading = name2.originalName.match(/^(_+)/)?.[1] ?? "";
|
|
938816
|
+
const core2 = name2.originalName.slice(leading.length);
|
|
938817
|
+
const trailing = core2.match(/(_+)$/)?.[1] ?? "";
|
|
938818
|
+
return `${leading}${name2.snakeCase.safeName}${trailing}`;
|
|
938819
|
+
}
|
|
938807
938820
|
getRootClientClassReference() {
|
|
938808
938821
|
return python_exports.reference({
|
|
938809
938822
|
name: this.getRootClientClassName(),
|
|
@@ -938814,7 +938827,7 @@ var DynamicSnippetsGeneratorContext5 = class _DynamicSnippetsGeneratorContext ex
|
|
|
938814
938827
|
const className = this.getClassName(declaration.name);
|
|
938815
938828
|
const modulePath = [
|
|
938816
938829
|
...this.getRootModulePath(),
|
|
938817
|
-
...declaration.fernFilepath.allParts.map((part) => part
|
|
938830
|
+
...declaration.fernFilepath.allParts.map((part) => this.getModuleName(part))
|
|
938818
938831
|
];
|
|
938819
938832
|
return python_exports.reference({ name: className, modulePath });
|
|
938820
938833
|
}
|
|
@@ -938823,7 +938836,7 @@ var DynamicSnippetsGeneratorContext5 = class _DynamicSnippetsGeneratorContext ex
|
|
|
938823
938836
|
const variantName = discriminantValue.name.pascalCase.safeName;
|
|
938824
938837
|
const modulePath = [
|
|
938825
938838
|
...this.getRootModulePath(),
|
|
938826
|
-
...unionDeclaration.fernFilepath.allParts.map((part) => part
|
|
938839
|
+
...unionDeclaration.fernFilepath.allParts.map((part) => this.getModuleName(part))
|
|
938827
938840
|
];
|
|
938828
938841
|
const name2 = this.customConfig.pydantic_config?.union_naming === "v1" ? `${variantName}${unionClassName}` : `${unionClassName}_${variantName}`;
|
|
938829
938842
|
return python_exports.reference({ name: name2, modulePath });
|
|
@@ -939629,7 +939642,7 @@ var EndpointSnippetGenerator5 = class {
|
|
|
939629
939642
|
}
|
|
939630
939643
|
getMethod({ endpoint: endpoint3 }) {
|
|
939631
939644
|
if (endpoint3.declaration.fernFilepath.allParts.length > 0) {
|
|
939632
|
-
return `${endpoint3.declaration.fernFilepath.allParts.map((val) => this.context.
|
|
939645
|
+
return `${endpoint3.declaration.fernFilepath.allParts.map((val) => this.context.getModuleName(val)).join(".")}.${this.context.getMethodName(endpoint3.declaration.name)}`;
|
|
939633
939646
|
}
|
|
939634
939647
|
return this.context.getMethodName(endpoint3.declaration.name);
|
|
939635
939648
|
}
|
|
@@ -969305,7 +969318,7 @@ function getAutomationContextFromEnv() {
|
|
|
969305
969318
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
969306
969319
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
969307
969320
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
969308
|
-
cli_version: "5.23.3-
|
|
969321
|
+
cli_version: "5.23.3-1326-gfa13d565237"
|
|
969309
969322
|
};
|
|
969310
969323
|
}
|
|
969311
969324
|
function isAutomationMode() {
|
|
@@ -970137,7 +970150,7 @@ var CliContext = class _CliContext {
|
|
|
970137
970150
|
if (false) {
|
|
970138
970151
|
this.logger.error("CLI_VERSION is not defined");
|
|
970139
970152
|
}
|
|
970140
|
-
return "5.23.3-
|
|
970153
|
+
return "5.23.3-1326-gfa13d565237";
|
|
970141
970154
|
}
|
|
970142
970155
|
getCliName() {
|
|
970143
970156
|
if (false) {
|
package/package.json
CHANGED