@fern-api/fern-api-dev 4.68.2-4-gdf0d0f25d7c → 4.68.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 +15 -77
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -612978,62 +612978,8 @@ var FernGlobalHeadersExtension = class extends AbstractExtension {
|
|
|
612978
612978
|
}
|
|
612979
612979
|
};
|
|
612980
612980
|
|
|
612981
|
-
// ../api-importers/openapi-to-ir/lib/utils/convertGlobalHeaderOverrides.js
|
|
612982
|
-
function convertDefaultToLiteral2(defaultValue) {
|
|
612983
|
-
if (defaultValue == null) {
|
|
612984
|
-
return void 0;
|
|
612985
|
-
}
|
|
612986
|
-
if (typeof defaultValue === "string") {
|
|
612987
|
-
return api_exports.Literal.string(defaultValue);
|
|
612988
|
-
}
|
|
612989
|
-
if (typeof defaultValue === "boolean") {
|
|
612990
|
-
return api_exports.Literal.boolean(defaultValue);
|
|
612991
|
-
}
|
|
612992
|
-
return void 0;
|
|
612993
|
-
}
|
|
612994
|
-
function convertGlobalHeaderOverrides({ globalHeaderOverrides, context: context3 }) {
|
|
612995
|
-
const headers2 = [];
|
|
612996
|
-
for (const [headerKey, headerSchema] of Object.entries(globalHeaderOverrides.headers ?? {})) {
|
|
612997
|
-
if (typeof headerSchema === "string") {
|
|
612998
|
-
headers2.push({
|
|
612999
|
-
name: context3.casingsGenerator.generateNameAndWireValue({
|
|
613000
|
-
name: headerKey,
|
|
613001
|
-
wireValue: headerKey
|
|
613002
|
-
}),
|
|
613003
|
-
valueType: AbstractConverter.STRING,
|
|
613004
|
-
env: void 0,
|
|
613005
|
-
v2Examples: {
|
|
613006
|
-
userSpecifiedExamples: {},
|
|
613007
|
-
autogeneratedExamples: {}
|
|
613008
|
-
},
|
|
613009
|
-
availability: void 0,
|
|
613010
|
-
docs: void 0,
|
|
613011
|
-
clientDefault: void 0
|
|
613012
|
-
});
|
|
613013
|
-
} else {
|
|
613014
|
-
const name2 = headerSchema.name ?? headerKey;
|
|
613015
|
-
headers2.push({
|
|
613016
|
-
name: context3.casingsGenerator.generateNameAndWireValue({
|
|
613017
|
-
name: name2,
|
|
613018
|
-
wireValue: headerKey
|
|
613019
|
-
}),
|
|
613020
|
-
valueType: AbstractConverter.STRING,
|
|
613021
|
-
env: headerSchema.env,
|
|
613022
|
-
v2Examples: {
|
|
613023
|
-
userSpecifiedExamples: {},
|
|
613024
|
-
autogeneratedExamples: {}
|
|
613025
|
-
},
|
|
613026
|
-
availability: void 0,
|
|
613027
|
-
docs: headerSchema.docs,
|
|
613028
|
-
clientDefault: convertDefaultToLiteral2(headerSchema.default)
|
|
613029
|
-
});
|
|
613030
|
-
}
|
|
613031
|
-
}
|
|
613032
|
-
return headers2;
|
|
613033
|
-
}
|
|
613034
|
-
|
|
613035
612981
|
// ../api-importers/openapi-to-ir/lib/utils/convertGlobalHeadersExtension.js
|
|
613036
|
-
function
|
|
612982
|
+
function convertDefaultToLiteral2(defaultValue) {
|
|
613037
612983
|
if (defaultValue == null) {
|
|
613038
612984
|
return void 0;
|
|
613039
612985
|
}
|
|
@@ -613056,7 +613002,7 @@ function convertGlobalHeadersExtension({ globalHeaders, context: context3 }) {
|
|
|
613056
613002
|
v2Examples: header.optional ? void 0 : constructGlobalHeaderExample({ header, context: context3 }),
|
|
613057
613003
|
availability: void 0,
|
|
613058
613004
|
docs: void 0,
|
|
613059
|
-
clientDefault:
|
|
613005
|
+
clientDefault: convertDefaultToLiteral2(header["x-fern-default"])
|
|
613060
613006
|
}));
|
|
613061
613007
|
}
|
|
613062
613008
|
function constructGlobalHeaderExample({ header, context: context3 }) {
|
|
@@ -616077,13 +616023,6 @@ var OpenAPIConverter = class extends AbstractSpecConverter {
|
|
|
616077
616023
|
}
|
|
616078
616024
|
convertGlobalHeaders() {
|
|
616079
616025
|
if (this.context.globalHeaderOverrides) {
|
|
616080
|
-
const globalHeaders = convertGlobalHeaderOverrides({
|
|
616081
|
-
globalHeaderOverrides: this.context.globalHeaderOverrides,
|
|
616082
|
-
context: this.context
|
|
616083
|
-
});
|
|
616084
|
-
this.addGlobalHeadersToIr(globalHeaders);
|
|
616085
|
-
this.context.setGlobalHeaders(globalHeaders);
|
|
616086
|
-
return;
|
|
616087
616026
|
}
|
|
616088
616027
|
const globalHeadersExtension = new FernGlobalHeadersExtension({
|
|
616089
616028
|
breadcrumbs: ["x-fern-global-headers"],
|
|
@@ -627700,7 +627639,7 @@ var AccessTokenPosthogManager = class {
|
|
|
627700
627639
|
properties: {
|
|
627701
627640
|
...event,
|
|
627702
627641
|
...event.properties,
|
|
627703
|
-
version: "4.68.2
|
|
627642
|
+
version: "4.68.2",
|
|
627704
627643
|
usingAccessToken: true
|
|
627705
627644
|
}
|
|
627706
627645
|
});
|
|
@@ -627754,7 +627693,7 @@ var UserPosthogManager = class {
|
|
|
627754
627693
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
627755
627694
|
event: "CLI",
|
|
627756
627695
|
properties: {
|
|
627757
|
-
version: "4.68.2
|
|
627696
|
+
version: "4.68.2",
|
|
627758
627697
|
...event,
|
|
627759
627698
|
...event.properties,
|
|
627760
627699
|
usingAccessToken: false,
|
|
@@ -844029,7 +843968,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
844029
843968
|
var LOGS_FOLDER_NAME = "logs";
|
|
844030
843969
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
844031
843970
|
function getCliSource() {
|
|
844032
|
-
const version7 = "4.68.2
|
|
843971
|
+
const version7 = "4.68.2";
|
|
844033
843972
|
return `cli@${version7}`;
|
|
844034
843973
|
}
|
|
844035
843974
|
var DebugLogger = class {
|
|
@@ -855278,7 +855217,7 @@ var LegacyDocsPublisher = class {
|
|
|
855278
855217
|
previewId,
|
|
855279
855218
|
disableTemplates: void 0,
|
|
855280
855219
|
skipUpload,
|
|
855281
|
-
cliVersion: "4.68.2
|
|
855220
|
+
cliVersion: "4.68.2"
|
|
855282
855221
|
});
|
|
855283
855222
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
855284
855223
|
return { success: false };
|
|
@@ -904175,7 +904114,7 @@ function constructNpmPackage({ generatorConfig, isPackagePrivate }) {
|
|
|
904175
904114
|
registryUrl: outputMode.registriesV2.npm.registryUrl,
|
|
904176
904115
|
token: outputMode.registriesV2.npm.token
|
|
904177
904116
|
},
|
|
904178
|
-
license:
|
|
904117
|
+
license: void 0,
|
|
904179
904118
|
repoUrl: void 0
|
|
904180
904119
|
};
|
|
904181
904120
|
case "github":
|
|
@@ -904188,7 +904127,13 @@ function constructNpmPackage({ generatorConfig, isPackagePrivate }) {
|
|
|
904188
904127
|
private: isPackagePrivate,
|
|
904189
904128
|
publishInfo: void 0,
|
|
904190
904129
|
repoUrl: getRepoUrlFromUrl(outputMode.repoUrl),
|
|
904191
|
-
license:
|
|
904130
|
+
license: generatorConfig.license?._visit({
|
|
904131
|
+
basic: (basic2) => basic2.id,
|
|
904132
|
+
custom: (custom3) => `See ${custom3.filename}`,
|
|
904133
|
+
_other: () => {
|
|
904134
|
+
return void 0;
|
|
904135
|
+
}
|
|
904136
|
+
})
|
|
904192
904137
|
};
|
|
904193
904138
|
default:
|
|
904194
904139
|
throw new Error(`Encountered unknown output mode: ${outputMode}`);
|
|
@@ -904230,13 +904175,6 @@ function removeGitSuffix(repoUrl) {
|
|
|
904230
904175
|
}
|
|
904231
904176
|
return repoUrl;
|
|
904232
904177
|
}
|
|
904233
|
-
function licenseFromLicenseConfig(licenseConfig) {
|
|
904234
|
-
return licenseConfig?._visit({
|
|
904235
|
-
basic: (basic2) => basic2.id,
|
|
904236
|
-
custom: (custom3) => `See ${custom3.filename}`,
|
|
904237
|
-
_other: () => void 0
|
|
904238
|
-
});
|
|
904239
|
-
}
|
|
904240
904178
|
|
|
904241
904179
|
// ../../../generators/typescript-v2/browser-compatible-base/lib/utils/getNamespaceExport.js
|
|
904242
904180
|
init_lodash();
|
|
@@ -929019,7 +928957,7 @@ var CliContext = class _CliContext {
|
|
|
929019
928957
|
if (false) {
|
|
929020
928958
|
this.logger.error("CLI_VERSION is not defined");
|
|
929021
928959
|
}
|
|
929022
|
-
return "4.68.2
|
|
928960
|
+
return "4.68.2";
|
|
929023
928961
|
}
|
|
929024
928962
|
getCliName() {
|
|
929025
928963
|
if (false) {
|
package/package.json
CHANGED