@fern-api/fern-api-dev 4.68.3-2-g063113b6335 → 4.68.3-3-g2b499fcba0f
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 +18 -7
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -564395,7 +564395,7 @@ function mergeIntermediateRepresentation(ir1, ir23, casingsGenerator) {
|
|
|
564395
564395
|
schemes: ir23.auth?.schemes?.length != null && ir23.auth.schemes.length > (ir1.auth?.schemes?.length ?? 0) ? ir23.auth.schemes : ir1.auth?.schemes ?? [],
|
|
564396
564396
|
docs: ir1.auth?.docs ?? ir23.auth?.docs
|
|
564397
564397
|
},
|
|
564398
|
-
headers: [...ir1.headers ?? [], ...ir23.headers ?? []],
|
|
564398
|
+
headers: deduplicateHeaders([...ir1.headers ?? [], ...ir23.headers ?? []]),
|
|
564399
564399
|
environments: environments2,
|
|
564400
564400
|
types: {
|
|
564401
564401
|
...ir1.types ?? {},
|
|
@@ -564433,7 +564433,7 @@ function mergeIntermediateRepresentation(ir1, ir23, casingsGenerator) {
|
|
|
564433
564433
|
},
|
|
564434
564434
|
fdrApiDefinitionId: ir1.fdrApiDefinitionId ?? ir23.fdrApiDefinitionId,
|
|
564435
564435
|
apiVersion: ir1.apiVersion ?? ir23.apiVersion,
|
|
564436
|
-
idempotencyHeaders: [...ir1.idempotencyHeaders ?? [], ...ir23.idempotencyHeaders ?? []],
|
|
564436
|
+
idempotencyHeaders: deduplicateHeaders([...ir1.idempotencyHeaders ?? [], ...ir23.idempotencyHeaders ?? []]),
|
|
564437
564437
|
pathParameters: [...ir1.pathParameters ?? [], ...ir23.pathParameters ?? []],
|
|
564438
564438
|
errorDiscriminationStrategy: ir1.errorDiscriminationStrategy ?? ir23.errorDiscriminationStrategy,
|
|
564439
564439
|
variables: [...ir1.variables ?? [], ...ir23.variables ?? []],
|
|
@@ -564765,6 +564765,17 @@ function isWebsocketEnvironment(environment2) {
|
|
|
564765
564765
|
}
|
|
564766
564766
|
return false;
|
|
564767
564767
|
}
|
|
564768
|
+
function deduplicateHeaders(headers2) {
|
|
564769
|
+
const seen = /* @__PURE__ */ new Set();
|
|
564770
|
+
return headers2.filter((header) => {
|
|
564771
|
+
const wireValue = getWireValue(header.name).toLowerCase();
|
|
564772
|
+
if (seen.has(wireValue)) {
|
|
564773
|
+
return false;
|
|
564774
|
+
}
|
|
564775
|
+
seen.add(wireValue);
|
|
564776
|
+
return true;
|
|
564777
|
+
});
|
|
564778
|
+
}
|
|
564768
564779
|
function generateUniqueName(id2, existingIds) {
|
|
564769
564780
|
let uniqueName = id2;
|
|
564770
564781
|
let suffix = 1;
|
|
@@ -627005,7 +627016,7 @@ var AccessTokenPosthogManager = class {
|
|
|
627005
627016
|
properties: {
|
|
627006
627017
|
...event,
|
|
627007
627018
|
...event.properties,
|
|
627008
|
-
version: "4.68.3-
|
|
627019
|
+
version: "4.68.3-3-g2b499fcba0f",
|
|
627009
627020
|
usingAccessToken: true
|
|
627010
627021
|
}
|
|
627011
627022
|
});
|
|
@@ -627059,7 +627070,7 @@ var UserPosthogManager = class {
|
|
|
627059
627070
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
627060
627071
|
event: "CLI",
|
|
627061
627072
|
properties: {
|
|
627062
|
-
version: "4.68.3-
|
|
627073
|
+
version: "4.68.3-3-g2b499fcba0f",
|
|
627063
627074
|
...event,
|
|
627064
627075
|
...event.properties,
|
|
627065
627076
|
usingAccessToken: false,
|
|
@@ -844111,7 +844122,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
844111
844122
|
var LOGS_FOLDER_NAME = "logs";
|
|
844112
844123
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
844113
844124
|
function getCliSource() {
|
|
844114
|
-
const version7 = "4.68.3-
|
|
844125
|
+
const version7 = "4.68.3-3-g2b499fcba0f";
|
|
844115
844126
|
return `cli@${version7}`;
|
|
844116
844127
|
}
|
|
844117
844128
|
var DebugLogger = class {
|
|
@@ -855361,7 +855372,7 @@ var LegacyDocsPublisher = class {
|
|
|
855361
855372
|
previewId,
|
|
855362
855373
|
disableTemplates: void 0,
|
|
855363
855374
|
skipUpload,
|
|
855364
|
-
cliVersion: "4.68.3-
|
|
855375
|
+
cliVersion: "4.68.3-3-g2b499fcba0f"
|
|
855365
855376
|
});
|
|
855366
855377
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
855367
855378
|
return { success: false };
|
|
@@ -929182,7 +929193,7 @@ var CliContext = class _CliContext {
|
|
|
929182
929193
|
if (false) {
|
|
929183
929194
|
this.logger.error("CLI_VERSION is not defined");
|
|
929184
929195
|
}
|
|
929185
|
-
return "4.68.3-
|
|
929196
|
+
return "4.68.3-3-g2b499fcba0f";
|
|
929186
929197
|
}
|
|
929187
929198
|
getCliName() {
|
|
929188
929199
|
if (false) {
|
package/package.json
CHANGED