@fern-api/fern-api-dev 4.62.3-27-g403aa496597 → 4.62.3-29-g6d6f906c0f8
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 +29 -14
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -547449,11 +547449,19 @@ var DynamicSnippetsConverter = class {
|
|
|
547449
547449
|
}
|
|
547450
547450
|
const scheme = auth8.schemes[0];
|
|
547451
547451
|
switch (scheme.type) {
|
|
547452
|
-
case "basic":
|
|
547453
|
-
|
|
547452
|
+
case "basic": {
|
|
547453
|
+
const basicAuth = {
|
|
547454
547454
|
username: this.inflateName(scheme.username),
|
|
547455
547455
|
password: this.inflateName(scheme.password)
|
|
547456
|
-
}
|
|
547456
|
+
};
|
|
547457
|
+
if (scheme.usernameOmit) {
|
|
547458
|
+
basicAuth.usernameOmit = scheme.usernameOmit;
|
|
547459
|
+
}
|
|
547460
|
+
if (scheme.passwordOmit) {
|
|
547461
|
+
basicAuth.passwordOmit = scheme.passwordOmit;
|
|
547462
|
+
}
|
|
547463
|
+
return dynamic_exports.Auth.basic(basicAuth);
|
|
547464
|
+
}
|
|
547457
547465
|
case "bearer":
|
|
547458
547466
|
return dynamic_exports.Auth.bearer({
|
|
547459
547467
|
token: this.inflateName(scheme.token)
|
|
@@ -603445,7 +603453,7 @@ var AccessTokenPosthogManager = class {
|
|
|
603445
603453
|
properties: {
|
|
603446
603454
|
...event,
|
|
603447
603455
|
...event.properties,
|
|
603448
|
-
version: "4.62.3-
|
|
603456
|
+
version: "4.62.3-29-g6d6f906c0f8",
|
|
603449
603457
|
usingAccessToken: true
|
|
603450
603458
|
}
|
|
603451
603459
|
});
|
|
@@ -603496,7 +603504,7 @@ var UserPosthogManager = class {
|
|
|
603496
603504
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
603497
603505
|
event: "CLI",
|
|
603498
603506
|
properties: {
|
|
603499
|
-
version: "4.62.3-
|
|
603507
|
+
version: "4.62.3-29-g6d6f906c0f8",
|
|
603500
603508
|
...event,
|
|
603501
603509
|
...event.properties,
|
|
603502
603510
|
usingAccessToken: false,
|
|
@@ -840792,7 +840800,7 @@ var import_path54 = __toESM(require("path"), 1);
|
|
|
840792
840800
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
840793
840801
|
var LOGS_FOLDER_NAME = "logs";
|
|
840794
840802
|
function getCliSource() {
|
|
840795
|
-
const version7 = "4.62.3-
|
|
840803
|
+
const version7 = "4.62.3-29-g6d6f906c0f8";
|
|
840796
840804
|
return `cli@${version7}`;
|
|
840797
840805
|
}
|
|
840798
840806
|
var DebugLogger = class {
|
|
@@ -851900,7 +851908,7 @@ var LegacyDocsPublisher = class {
|
|
|
851900
851908
|
previewId,
|
|
851901
851909
|
disableTemplates: void 0,
|
|
851902
851910
|
skipUpload,
|
|
851903
|
-
cliVersion: "4.62.3-
|
|
851911
|
+
cliVersion: "4.62.3-29-g6d6f906c0f8"
|
|
851904
851912
|
});
|
|
851905
851913
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
851906
851914
|
return { success: false };
|
|
@@ -873160,16 +873168,23 @@ var EndpointSnippetGenerator2 = class extends WithGeneration {
|
|
|
873160
873168
|
this.context.errors.add({ severity: Severity.Warning, message });
|
|
873161
873169
|
}
|
|
873162
873170
|
getConstructorBasicAuthArg({ auth: auth8, values: values2 }) {
|
|
873163
|
-
|
|
873164
|
-
|
|
873171
|
+
const authRecord = auth8;
|
|
873172
|
+
const usernameOmitted = !!authRecord.usernameOmit;
|
|
873173
|
+
const passwordOmitted = !!authRecord.passwordOmit;
|
|
873174
|
+
const args = [];
|
|
873175
|
+
if (!usernameOmitted) {
|
|
873176
|
+
args.push({
|
|
873165
873177
|
name: this.context.getParameterName(auth8.username),
|
|
873166
873178
|
assignment: this.csharp.Literal.string(values2.username)
|
|
873167
|
-
}
|
|
873168
|
-
|
|
873179
|
+
});
|
|
873180
|
+
}
|
|
873181
|
+
if (!passwordOmitted) {
|
|
873182
|
+
args.push({
|
|
873169
873183
|
name: this.context.getParameterName(auth8.password),
|
|
873170
873184
|
assignment: this.csharp.Literal.string(values2.password)
|
|
873171
|
-
}
|
|
873172
|
-
|
|
873185
|
+
});
|
|
873186
|
+
}
|
|
873187
|
+
return args;
|
|
873173
873188
|
}
|
|
873174
873189
|
getConstructorBearerAuthArgs({ auth: auth8, values: values2 }) {
|
|
873175
873190
|
return [
|
|
@@ -925200,7 +925215,7 @@ var CliContext = class {
|
|
|
925200
925215
|
if (false) {
|
|
925201
925216
|
this.logger.error("CLI_VERSION is not defined");
|
|
925202
925217
|
}
|
|
925203
|
-
return "4.62.3-
|
|
925218
|
+
return "4.62.3-29-g6d6f906c0f8";
|
|
925204
925219
|
}
|
|
925205
925220
|
getCliName() {
|
|
925206
925221
|
if (false) {
|
package/package.json
CHANGED