@fern-api/fern-api-dev 4.90.0-15-gc20ce1bee4e → 4.90.0-21-g9945318015d
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 +31 -19
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -618353,7 +618353,7 @@ var AccessTokenPosthogManager = class {
|
|
|
618353
618353
|
properties: {
|
|
618354
618354
|
...event,
|
|
618355
618355
|
...event.properties,
|
|
618356
|
-
version: "4.90.0-
|
|
618356
|
+
version: "4.90.0-21-g9945318015d",
|
|
618357
618357
|
usingAccessToken: true
|
|
618358
618358
|
}
|
|
618359
618359
|
});
|
|
@@ -618407,7 +618407,7 @@ var UserPosthogManager = class {
|
|
|
618407
618407
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
618408
618408
|
event: "CLI",
|
|
618409
618409
|
properties: {
|
|
618410
|
-
version: "4.90.0-
|
|
618410
|
+
version: "4.90.0-21-g9945318015d",
|
|
618411
618411
|
...event,
|
|
618412
618412
|
...event.properties,
|
|
618413
618413
|
usingAccessToken: false,
|
|
@@ -835986,7 +835986,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
835986
835986
|
var LOGS_FOLDER_NAME = "logs";
|
|
835987
835987
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
835988
835988
|
function getCliSource() {
|
|
835989
|
-
const version7 = "4.90.0-
|
|
835989
|
+
const version7 = "4.90.0-21-g9945318015d";
|
|
835990
835990
|
return `cli@${version7}`;
|
|
835991
835991
|
}
|
|
835992
835992
|
var DebugLogger = class {
|
|
@@ -847740,7 +847740,7 @@ var LegacyDocsPublisher = class {
|
|
|
847740
847740
|
previewId,
|
|
847741
847741
|
disableTemplates: void 0,
|
|
847742
847742
|
skipUpload,
|
|
847743
|
-
cliVersion: "4.90.0-
|
|
847743
|
+
cliVersion: "4.90.0-21-g9945318015d"
|
|
847744
847744
|
});
|
|
847745
847745
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
847746
847746
|
return { success: false };
|
|
@@ -872774,7 +872774,7 @@ var EndpointSnippetGenerator3 = class {
|
|
|
872774
872774
|
}
|
|
872775
872775
|
switch (auth8.type) {
|
|
872776
872776
|
case "basic":
|
|
872777
|
-
return values2.type === "basic" ?
|
|
872777
|
+
return values2.type === "basic" ? this.getConstructorBasicAuthArgs({ auth: auth8, values: values2 }) : [];
|
|
872778
872778
|
case "bearer":
|
|
872779
872779
|
return values2.type === "bearer" ? [this.getConstructorBearerAuthArg({ auth: auth8, values: values2 })] : [];
|
|
872780
872780
|
case "header":
|
|
@@ -872793,19 +872793,31 @@ var EndpointSnippetGenerator3 = class {
|
|
|
872793
872793
|
addWarning(message) {
|
|
872794
872794
|
this.context.errors.add({ severity: Severity.Warning, message });
|
|
872795
872795
|
}
|
|
872796
|
-
|
|
872797
|
-
|
|
872798
|
-
|
|
872799
|
-
|
|
872800
|
-
|
|
872801
|
-
|
|
872802
|
-
|
|
872803
|
-
|
|
872804
|
-
|
|
872805
|
-
|
|
872806
|
-
|
|
872807
|
-
|
|
872808
|
-
|
|
872796
|
+
getConstructorBasicAuthArgs({ auth: auth8, values: values2 }) {
|
|
872797
|
+
const authRecord = auth8;
|
|
872798
|
+
const usernameOmitted = !!authRecord.usernameOmit;
|
|
872799
|
+
const passwordOmitted = !!authRecord.passwordOmit;
|
|
872800
|
+
if (usernameOmitted && passwordOmitted) {
|
|
872801
|
+
return [];
|
|
872802
|
+
}
|
|
872803
|
+
const arguments_ = [];
|
|
872804
|
+
if (!usernameOmitted) {
|
|
872805
|
+
arguments_.push(go_exports.TypeInstantiation.string(values2.username));
|
|
872806
|
+
}
|
|
872807
|
+
if (!passwordOmitted) {
|
|
872808
|
+
arguments_.push(go_exports.TypeInstantiation.string(values2.password));
|
|
872809
|
+
}
|
|
872810
|
+
return [
|
|
872811
|
+
go_exports.codeblock((writer2) => {
|
|
872812
|
+
writer2.writeNode(go_exports.invokeFunc({
|
|
872813
|
+
func: go_exports.typeReference({
|
|
872814
|
+
name: "WithBasicAuth",
|
|
872815
|
+
importPath: this.context.getOptionImportPath()
|
|
872816
|
+
}),
|
|
872817
|
+
arguments_
|
|
872818
|
+
}));
|
|
872819
|
+
})
|
|
872820
|
+
];
|
|
872809
872821
|
}
|
|
872810
872822
|
getConstructorBaseUrlArg({ baseUrl, environment: environment2 }) {
|
|
872811
872823
|
const baseUrlArg = this.getBaseUrlArg({ baseUrl, environment: environment2 });
|
|
@@ -921732,7 +921744,7 @@ var CliContext = class _CliContext {
|
|
|
921732
921744
|
if (false) {
|
|
921733
921745
|
this.logger.error("CLI_VERSION is not defined");
|
|
921734
921746
|
}
|
|
921735
|
-
return "4.90.0-
|
|
921747
|
+
return "4.90.0-21-g9945318015d";
|
|
921736
921748
|
}
|
|
921737
921749
|
getCliName() {
|
|
921738
921750
|
if (false) {
|
package/package.json
CHANGED