@fern-api/fern-api-dev 5.109.1 → 5.109.2
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 +21 -6
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -373999,6 +373999,17 @@ async function getAuthFromOverrideFiles(specs) {
|
|
|
373999
373999
|
}
|
|
374000
374000
|
return void 0;
|
|
374001
374001
|
}
|
|
374002
|
+
function getOrphanedAuthSchemeWarning(api2) {
|
|
374003
|
+
if (api2?.auth != null) {
|
|
374004
|
+
return void 0;
|
|
374005
|
+
}
|
|
374006
|
+
const names2 = Object.keys(api2?.["auth-schemes"] ?? {});
|
|
374007
|
+
const first3 = names2[0];
|
|
374008
|
+
if (first3 == null) {
|
|
374009
|
+
return void 0;
|
|
374010
|
+
}
|
|
374011
|
+
return `generators.yml declares auth-schemes (${names2.join(", ")}) but no \`api.auth\`, so the entire auth-schemes block is ignored \u2014 including any \`env:\` overrides. Add \`auth: ${first3}\` under \`api\`` + (names2.length > 1 ? ", or list them all under an `auth.any` key" : "") + ". Without it, auth is re-derived from the spec's securitySchemes and each generator falls back to its own default environment variable name.";
|
|
374012
|
+
}
|
|
374002
374013
|
var import_promises41, OSSWorkspace;
|
|
374003
374014
|
var init_OSSWorkspace = __esm({
|
|
374004
374015
|
"../workspace/lazy-fern-workspace/lib/OSSWorkspace.js"() {
|
|
@@ -374176,6 +374187,10 @@ var init_OSSWorkspace = __esm({
|
|
|
374176
374187
|
const specs = await this.getOpenAPISpecsCached({ context: context3 });
|
|
374177
374188
|
const documents = await this.loader.loadDocuments({ context: context3, specs });
|
|
374178
374189
|
let authOverrides = this.generatorsConfiguration?.api?.auth != null ? { ...this.generatorsConfiguration?.api } : void 0;
|
|
374190
|
+
const orphanedAuthSchemeWarning = getOrphanedAuthSchemeWarning(this.generatorsConfiguration?.api);
|
|
374191
|
+
if (orphanedAuthSchemeWarning != null) {
|
|
374192
|
+
context3.logger.warn(orphanedAuthSchemeWarning);
|
|
374193
|
+
}
|
|
374179
374194
|
if (authOverrides == null) {
|
|
374180
374195
|
authOverrides = await getAuthFromOverrideFiles(specs);
|
|
374181
374196
|
}
|
|
@@ -705213,7 +705228,7 @@ var AccessTokenPosthogManager = class {
|
|
|
705213
705228
|
properties: {
|
|
705214
705229
|
...event,
|
|
705215
705230
|
...event.properties,
|
|
705216
|
-
version: "5.109.
|
|
705231
|
+
version: "5.109.2",
|
|
705217
705232
|
usingAccessToken: true,
|
|
705218
705233
|
...getRunIdProperties()
|
|
705219
705234
|
}
|
|
@@ -705279,7 +705294,7 @@ var UserPosthogManager = class {
|
|
|
705279
705294
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
705280
705295
|
event: "CLI",
|
|
705281
705296
|
properties: {
|
|
705282
|
-
version: "5.109.
|
|
705297
|
+
version: "5.109.2",
|
|
705283
705298
|
...event,
|
|
705284
705299
|
...event.properties,
|
|
705285
705300
|
usingAccessToken: false,
|
|
@@ -886953,7 +886968,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
886953
886968
|
var LOGS_FOLDER_NAME = "logs";
|
|
886954
886969
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
886955
886970
|
function getCliSource() {
|
|
886956
|
-
const version7 = "5.109.
|
|
886971
|
+
const version7 = "5.109.2";
|
|
886957
886972
|
return `cli@${version7}`;
|
|
886958
886973
|
}
|
|
886959
886974
|
var DebugLogger = class {
|
|
@@ -913917,7 +913932,7 @@ var LegacyDocsPublisher = class {
|
|
|
913917
913932
|
previewId,
|
|
913918
913933
|
disableTemplates: void 0,
|
|
913919
913934
|
skipUpload,
|
|
913920
|
-
cliVersion: "5.109.
|
|
913935
|
+
cliVersion: "5.109.2",
|
|
913921
913936
|
loginCommand: "fern auth login"
|
|
913922
913937
|
});
|
|
913923
913938
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -980837,7 +980852,7 @@ function getAutomationContextFromEnv() {
|
|
|
980837
980852
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
980838
980853
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
980839
980854
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
980840
|
-
cli_version: "5.109.
|
|
980855
|
+
cli_version: "5.109.2"
|
|
980841
980856
|
};
|
|
980842
980857
|
}
|
|
980843
980858
|
function isAutomationMode() {
|
|
@@ -981669,7 +981684,7 @@ var CliContext = class _CliContext {
|
|
|
981669
981684
|
if (false) {
|
|
981670
981685
|
this.logger.error("CLI_VERSION is not defined");
|
|
981671
981686
|
}
|
|
981672
|
-
return "5.109.
|
|
981687
|
+
return "5.109.2";
|
|
981673
981688
|
}
|
|
981674
981689
|
getCliName() {
|
|
981675
981690
|
if (false) {
|
package/package.json
CHANGED