fern-api 0.19.14-rc3 → 0.19.15
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 +25 -12
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -828806,13 +828806,20 @@ async function convertOutputMode({ absolutePathToGeneratorsConfiguration, genera
|
|
|
828806
828806
|
packageName: generator.output["package-name"],
|
|
828807
828807
|
token: generator.output.token ?? ""
|
|
828808
828808
|
}));
|
|
828809
|
-
case "maven":
|
|
828809
|
+
case "maven": {
|
|
828810
|
+
const hasSignature = generator.output.signature != null;
|
|
828810
828811
|
return import_fiddle_sdk.FernFiddle.OutputMode.publishV2(import_fiddle_sdk.FernFiddle.remoteGen.PublishOutputModeV2.mavenOverride({
|
|
828811
|
-
registryUrl: generator.output.url ?? "https://s01.oss.sonatype.org/content/repositories/releases/",
|
|
828812
|
+
registryUrl: generator.output.url ?? hasSignature ? "https://oss.sonatype.org/service/local/staging/deploy/maven2/" : "https://s01.oss.sonatype.org/content/repositories/releases/",
|
|
828812
828813
|
username: generator.output.username ?? "",
|
|
828813
828814
|
password: generator.output.password ?? "",
|
|
828814
|
-
coordinate: generator.output.coordinate
|
|
828815
|
+
coordinate: generator.output.coordinate,
|
|
828816
|
+
signature: generator.output.signature != null ? {
|
|
828817
|
+
keyId: generator.output.signature.keyId,
|
|
828818
|
+
secretKey: generator.output.signature.secretKey,
|
|
828819
|
+
password: generator.output.signature.password
|
|
828820
|
+
} : void 0
|
|
828815
828821
|
}));
|
|
828822
|
+
}
|
|
828816
828823
|
case "postman":
|
|
828817
828824
|
return import_fiddle_sdk.FernFiddle.OutputMode.publishV2(import_fiddle_sdk.FernFiddle.remoteGen.PublishOutputModeV2.postman({
|
|
828818
828825
|
apiKey: generator.output["api-key"],
|
|
@@ -828874,6 +828881,11 @@ function getGithubPublishInfo(output) {
|
|
|
828874
828881
|
credentials: output.username != null && output.password != null ? {
|
|
828875
828882
|
username: output.username,
|
|
828876
828883
|
password: output.password
|
|
828884
|
+
} : void 0,
|
|
828885
|
+
signature: output.signature != null ? {
|
|
828886
|
+
keyId: output.signature.keyId,
|
|
828887
|
+
password: output.signature.password,
|
|
828888
|
+
secretKey: output.signature.secretKey
|
|
828877
828889
|
} : void 0
|
|
828878
828890
|
});
|
|
828879
828891
|
case "postman":
|
|
@@ -832147,7 +832159,7 @@ var AccessTokenPosthogManager = class {
|
|
|
832147
832159
|
properties: {
|
|
832148
832160
|
...event,
|
|
832149
832161
|
...event.properties,
|
|
832150
|
-
version: "0.19.
|
|
832162
|
+
version: "0.19.15",
|
|
832151
832163
|
usingAccessToken: true
|
|
832152
832164
|
}
|
|
832153
832165
|
});
|
|
@@ -832209,7 +832221,7 @@ var UserPosthogManager = class {
|
|
|
832209
832221
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
832210
832222
|
event: "CLI",
|
|
832211
832223
|
properties: {
|
|
832212
|
-
version: "0.19.
|
|
832224
|
+
version: "0.19.15",
|
|
832213
832225
|
...event,
|
|
832214
832226
|
...event.properties
|
|
832215
832227
|
}
|
|
@@ -855766,10 +855778,10 @@ var CliContext = class {
|
|
|
855766
855778
|
return "fern-api";
|
|
855767
855779
|
}
|
|
855768
855780
|
getPackageVersion() {
|
|
855769
|
-
if ("0.19.
|
|
855781
|
+
if ("0.19.15" == null) {
|
|
855770
855782
|
this.logger.error("CLI_VERSION is not defined");
|
|
855771
855783
|
}
|
|
855772
|
-
return "0.19.
|
|
855784
|
+
return "0.19.15";
|
|
855773
855785
|
}
|
|
855774
855786
|
getCliName() {
|
|
855775
855787
|
if ("fern" == null) {
|
|
@@ -871838,16 +871850,16 @@ function getGithubPublishConfig(githubPublishInfo) {
|
|
|
871838
871850
|
tokenEnvironmentVariable: (0, import_api2.EnvironmentVariable)(value.token ?? "")
|
|
871839
871851
|
}),
|
|
871840
871852
|
maven: (value) => {
|
|
871841
|
-
var _a2, _b2
|
|
871853
|
+
var _a2, _b2;
|
|
871842
871854
|
return import_generator_exec_sdk.FernGeneratorExec.GithubPublishInfo.maven({
|
|
871843
871855
|
registryUrl: value.registryUrl,
|
|
871844
871856
|
coordinate: value.coordinate,
|
|
871845
871857
|
usernameEnvironmentVariable: (0, import_api2.EnvironmentVariable)(((_a2 = value.credentials) == null ? void 0 : _a2.username) ?? ""),
|
|
871846
871858
|
passwordEnvironmentVariable: (0, import_api2.EnvironmentVariable)(((_b2 = value.credentials) == null ? void 0 : _b2.password) ?? ""),
|
|
871847
871859
|
signature: value.signature != null ? {
|
|
871848
|
-
keyIdEnvironmentVariable: (0, import_api2.EnvironmentVariable)(
|
|
871849
|
-
passwordEnvironmentVariable: (0, import_api2.EnvironmentVariable)(
|
|
871850
|
-
secretKeyEnvironmentVariable: (0, import_api2.EnvironmentVariable)(
|
|
871860
|
+
keyIdEnvironmentVariable: (0, import_api2.EnvironmentVariable)(value.signature.keyId ?? ""),
|
|
871861
|
+
passwordEnvironmentVariable: (0, import_api2.EnvironmentVariable)(value.signature.password ?? ""),
|
|
871862
|
+
secretKeyEnvironmentVariable: (0, import_api2.EnvironmentVariable)(value.signature.secretKey ?? "")
|
|
871851
871863
|
} : void 0
|
|
871852
871864
|
});
|
|
871853
871865
|
},
|
|
@@ -871980,7 +871992,8 @@ function newDummyPublishOutputConfig(version3, multipleOutputMode) {
|
|
|
871980
871992
|
password: (outputMode == null ? void 0 : outputMode.password) ?? "",
|
|
871981
871993
|
registryUrl: (outputMode == null ? void 0 : outputMode.registryUrl) ?? "",
|
|
871982
871994
|
username: (outputMode == null ? void 0 : outputMode.username) ?? "",
|
|
871983
|
-
coordinate: (outputMode == null ? void 0 : outputMode.coordinate) ?? ""
|
|
871995
|
+
coordinate: (outputMode == null ? void 0 : outputMode.coordinate) ?? "",
|
|
871996
|
+
signature: outputMode == null ? void 0 : outputMode.signature
|
|
871984
871997
|
},
|
|
871985
871998
|
npm: {
|
|
871986
871999
|
registryUrl: (outputMode == null ? void 0 : outputMode.registryUrl) ?? "",
|