@fern-api/fern-api-dev 4.81.0 → 4.81.1
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 +85 -7
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -476772,6 +476772,15 @@ var PublishTarget = {
|
|
|
476772
476772
|
}
|
|
476773
476773
|
};
|
|
476774
476774
|
},
|
|
476775
|
+
go: (value2) => {
|
|
476776
|
+
return {
|
|
476777
|
+
...value2,
|
|
476778
|
+
type: "go",
|
|
476779
|
+
_visit: function(visitor) {
|
|
476780
|
+
return PublishTarget._visit(this, visitor);
|
|
476781
|
+
}
|
|
476782
|
+
};
|
|
476783
|
+
},
|
|
476775
476784
|
_visit: (value2, visitor) => {
|
|
476776
476785
|
switch (value2.type) {
|
|
476777
476786
|
case "postman":
|
|
@@ -476784,6 +476793,8 @@ var PublishTarget = {
|
|
|
476784
476793
|
return visitor.pypi(value2);
|
|
476785
476794
|
case "crates":
|
|
476786
476795
|
return visitor.crates(value2);
|
|
476796
|
+
case "go":
|
|
476797
|
+
return visitor.go(value2);
|
|
476787
476798
|
default:
|
|
476788
476799
|
return visitor._other(value2);
|
|
476789
476800
|
}
|
|
@@ -478370,6 +478381,7 @@ __export(serialization_exports2, {
|
|
|
478370
478381
|
FloatValidationRules: () => FloatValidationRules,
|
|
478371
478382
|
GenerationMetadata: () => GenerationMetadata,
|
|
478372
478383
|
GithubPublish: () => GithubPublish,
|
|
478384
|
+
GoPublishTarget: () => GoPublishTarget,
|
|
478373
478385
|
GrpcTransport: () => GrpcTransport2,
|
|
478374
478386
|
HeaderApiVersionScheme: () => HeaderApiVersionScheme,
|
|
478375
478387
|
HeaderAuthScheme: () => HeaderAuthScheme,
|
|
@@ -483296,6 +483308,12 @@ var CratesPublishTarget = schemas_exports3.objectWithoutOptionalProperties({
|
|
|
483296
483308
|
packageName: schemas_exports3.string().optional()
|
|
483297
483309
|
});
|
|
483298
483310
|
|
|
483311
|
+
// ../../ir-sdk/lib/sdk/serialization/resources/publish/types/GoPublishTarget.js
|
|
483312
|
+
var GoPublishTarget = schemas_exports3.objectWithoutOptionalProperties({
|
|
483313
|
+
version: schemas_exports3.string().optional(),
|
|
483314
|
+
modulePath: schemas_exports3.string().optional()
|
|
483315
|
+
});
|
|
483316
|
+
|
|
483299
483317
|
// ../../ir-sdk/lib/sdk/serialization/resources/publish/types/MavenPublishTarget.js
|
|
483300
483318
|
var MavenPublishTarget = schemas_exports3.objectWithoutOptionalProperties({
|
|
483301
483319
|
coordinate: schemas_exports3.string().optional(),
|
|
@@ -483331,7 +483349,8 @@ var PublishTarget2 = schemas_exports3.union("type", {
|
|
|
483331
483349
|
npm: NpmPublishTarget,
|
|
483332
483350
|
maven: MavenPublishTarget,
|
|
483333
483351
|
pypi: PypiPublishTarget,
|
|
483334
|
-
crates: CratesPublishTarget
|
|
483352
|
+
crates: CratesPublishTarget,
|
|
483353
|
+
go: GoPublishTarget
|
|
483335
483354
|
}).transform({
|
|
483336
483355
|
transform: (value2) => {
|
|
483337
483356
|
switch (value2.type) {
|
|
@@ -483345,6 +483364,8 @@ var PublishTarget2 = schemas_exports3.union("type", {
|
|
|
483345
483364
|
return PublishTarget.pypi(value2);
|
|
483346
483365
|
case "crates":
|
|
483347
483366
|
return PublishTarget.crates(value2);
|
|
483367
|
+
case "go":
|
|
483368
|
+
return PublishTarget.go(value2);
|
|
483348
483369
|
default:
|
|
483349
483370
|
return value2;
|
|
483350
483371
|
}
|
|
@@ -484319,6 +484340,7 @@ __export(publish_exports2, {
|
|
|
484319
484340
|
DirectPublish: () => DirectPublish,
|
|
484320
484341
|
Filesystem: () => Filesystem,
|
|
484321
484342
|
GithubPublish: () => GithubPublish,
|
|
484343
|
+
GoPublishTarget: () => GoPublishTarget,
|
|
484322
484344
|
MavenPublishTarget: () => MavenPublishTarget,
|
|
484323
484345
|
NpmPublishTarget: () => NpmPublishTarget,
|
|
484324
484346
|
PostmanPublishTarget: () => PostmanPublishTarget,
|
|
@@ -614334,7 +614356,7 @@ var AccessTokenPosthogManager = class {
|
|
|
614334
614356
|
properties: {
|
|
614335
614357
|
...event,
|
|
614336
614358
|
...event.properties,
|
|
614337
|
-
version: "4.81.
|
|
614359
|
+
version: "4.81.1",
|
|
614338
614360
|
usingAccessToken: true
|
|
614339
614361
|
}
|
|
614340
614362
|
});
|
|
@@ -614388,7 +614410,7 @@ var UserPosthogManager = class {
|
|
|
614388
614410
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
614389
614411
|
event: "CLI",
|
|
614390
614412
|
properties: {
|
|
614391
|
-
version: "4.81.
|
|
614413
|
+
version: "4.81.1",
|
|
614392
614414
|
...event,
|
|
614393
614415
|
...event.properties,
|
|
614394
614416
|
usingAccessToken: false,
|
|
@@ -746323,7 +746345,7 @@ function inflateIr(ir10, casingsGenerator) {
|
|
|
746323
746345
|
serviceTypeReferenceInfo: ir10.serviceTypeReferenceInfo,
|
|
746324
746346
|
readmeConfig: ir10.readmeConfig,
|
|
746325
746347
|
sourceConfig: ir10.sourceConfig,
|
|
746326
|
-
publishConfig: ir10.publishConfig,
|
|
746348
|
+
publishConfig: ir10.publishConfig != null ? convertPublishConfig2(ir10.publishConfig) : void 0,
|
|
746327
746349
|
dynamic: ir10.dynamic != null ? inflateDynamicIr(ir10.dynamic) : void 0,
|
|
746328
746350
|
selfHosted: ir10.selfHosted,
|
|
746329
746351
|
audiences: ir10.audiences,
|
|
@@ -746340,6 +746362,43 @@ function inflateIr(ir10, casingsGenerator) {
|
|
|
746340
746362
|
apiPlayground: ir10.apiPlayground
|
|
746341
746363
|
};
|
|
746342
746364
|
}
|
|
746365
|
+
function convertPublishConfig2(publishConfig) {
|
|
746366
|
+
return IrVersions_exports.V66.PublishingConfig._visit(publishConfig, {
|
|
746367
|
+
github: (github) => {
|
|
746368
|
+
const convertedTarget = convertPublishTarget3(github.target);
|
|
746369
|
+
return convertedTarget != null ? IrVersions_exports.V65.PublishingConfig.github({
|
|
746370
|
+
...github,
|
|
746371
|
+
target: convertedTarget
|
|
746372
|
+
}) : void 0;
|
|
746373
|
+
},
|
|
746374
|
+
direct: (direct) => {
|
|
746375
|
+
const convertedTarget = convertPublishTarget3(direct.target);
|
|
746376
|
+
return convertedTarget != null ? IrVersions_exports.V65.PublishingConfig.direct({
|
|
746377
|
+
target: convertedTarget
|
|
746378
|
+
}) : void 0;
|
|
746379
|
+
},
|
|
746380
|
+
filesystem: (filesystem) => {
|
|
746381
|
+
const convertedTarget = filesystem.publishTarget != null ? convertPublishTarget3(filesystem.publishTarget) : void 0;
|
|
746382
|
+
return IrVersions_exports.V65.PublishingConfig.filesystem({
|
|
746383
|
+
generateFullProject: filesystem.generateFullProject,
|
|
746384
|
+
publishTarget: convertedTarget
|
|
746385
|
+
});
|
|
746386
|
+
},
|
|
746387
|
+
_other: () => void 0
|
|
746388
|
+
});
|
|
746389
|
+
}
|
|
746390
|
+
function convertPublishTarget3(target) {
|
|
746391
|
+
return IrVersions_exports.V66.PublishTarget._visit(target, {
|
|
746392
|
+
postman: IrVersions_exports.V65.PublishTarget.postman,
|
|
746393
|
+
npm: IrVersions_exports.V65.PublishTarget.npm,
|
|
746394
|
+
maven: IrVersions_exports.V65.PublishTarget.maven,
|
|
746395
|
+
pypi: IrVersions_exports.V65.PublishTarget.pypi,
|
|
746396
|
+
crates: IrVersions_exports.V65.PublishTarget.crates,
|
|
746397
|
+
// go publish target is not supported in v65, return undefined
|
|
746398
|
+
go: () => void 0,
|
|
746399
|
+
_other: () => void 0
|
|
746400
|
+
});
|
|
746401
|
+
}
|
|
746343
746402
|
|
|
746344
746403
|
// ../generation/ir-migrations/lib/IntermediateRepresentationMigrator.js
|
|
746345
746404
|
function getIntermediateRepresentationMigrator() {
|
|
@@ -831669,7 +831728,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
831669
831728
|
var LOGS_FOLDER_NAME = "logs";
|
|
831670
831729
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
831671
831730
|
function getCliSource() {
|
|
831672
|
-
const version7 = "4.81.
|
|
831731
|
+
const version7 = "4.81.1";
|
|
831673
831732
|
return `cli@${version7}`;
|
|
831674
831733
|
}
|
|
831675
831734
|
var DebugLogger = class {
|
|
@@ -843236,7 +843295,7 @@ var LegacyDocsPublisher = class {
|
|
|
843236
843295
|
previewId,
|
|
843237
843296
|
disableTemplates: void 0,
|
|
843238
843297
|
skipUpload,
|
|
843239
|
-
cliVersion: "4.81.
|
|
843298
|
+
cliVersion: "4.81.1"
|
|
843240
843299
|
});
|
|
843241
843300
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
843242
843301
|
return { success: false };
|
|
@@ -896912,6 +896971,25 @@ function getPublishConfig2({ generatorInvocation, org, version: version7, userPr
|
|
|
896912
896971
|
packageName
|
|
896913
896972
|
});
|
|
896914
896973
|
context3.logger.debug(`Created CratesPublishTarget: version ${version7} package name: ${packageName}`);
|
|
896974
|
+
} else if (generatorInvocation.language === "go") {
|
|
896975
|
+
if (userProvidedVersion != null) {
|
|
896976
|
+
const goModulePath = (() => {
|
|
896977
|
+
const config5 = generatorInvocation.raw?.config;
|
|
896978
|
+
if (typeof config5 !== "object" || config5 === null) {
|
|
896979
|
+
return void 0;
|
|
896980
|
+
}
|
|
896981
|
+
const module4 = config5.module;
|
|
896982
|
+
if (module4 == null || typeof module4.path !== "string") {
|
|
896983
|
+
return void 0;
|
|
896984
|
+
}
|
|
896985
|
+
return module4.path;
|
|
896986
|
+
})();
|
|
896987
|
+
publishTarget = PublishTarget.go({
|
|
896988
|
+
version: userProvidedVersion,
|
|
896989
|
+
modulePath: goModulePath
|
|
896990
|
+
});
|
|
896991
|
+
context3.logger.debug(`Created GoPublishTarget: version ${userProvidedVersion} module path: ${goModulePath}`);
|
|
896992
|
+
}
|
|
896915
896993
|
} else if (generatorInvocation.language === "java") {
|
|
896916
896994
|
const config5 = generatorInvocation.raw?.config;
|
|
896917
896995
|
const mavenCoordinate = (() => {
|
|
@@ -918337,7 +918415,7 @@ var CliContext = class _CliContext {
|
|
|
918337
918415
|
if (false) {
|
|
918338
918416
|
this.logger.error("CLI_VERSION is not defined");
|
|
918339
918417
|
}
|
|
918340
|
-
return "4.81.
|
|
918418
|
+
return "4.81.1";
|
|
918341
918419
|
}
|
|
918342
918420
|
getCliName() {
|
|
918343
918421
|
if (false) {
|
package/package.json
CHANGED