@fern-api/fern-api-dev 5.64.1 → 5.64.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 +18 -8
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -164335,9 +164335,10 @@ function convertResponse({ operationContext, responses, context: context3, respo
|
|
|
164335
164335
|
context: context3,
|
|
164336
164336
|
content: resolved.content ?? {}
|
|
164337
164337
|
});
|
|
164338
|
-
if (jsonMedia
|
|
164339
|
-
|
|
164338
|
+
if (jsonMedia != null) {
|
|
164339
|
+
context3.logger.warn(`${operationContext.method.toUpperCase()} ${operationContext.path}: the 204 response declares a body, but a 204 (No Content) response cannot include one. Ignoring the declared 204 body and treating the success response as optional.`);
|
|
164340
164340
|
}
|
|
164341
|
+
hasNoContentResponse = true;
|
|
164341
164342
|
}
|
|
164342
164343
|
}
|
|
164343
164344
|
if (hasNoContentResponse && convertedResponse != null && convertedResponse.type === "json") {
|
|
@@ -350046,6 +350047,15 @@ var init_ResponseBodyConverter = __esm({
|
|
|
350046
350047
|
this.streamingExtension = streamingExtension;
|
|
350047
350048
|
}
|
|
350048
350049
|
convert() {
|
|
350050
|
+
if (parseInt(this.statusCode) === 204) {
|
|
350051
|
+
if (this.responseBody.content != null && Object.keys(this.responseBody.content).length > 0) {
|
|
350052
|
+
this.context.errorCollector.collect({
|
|
350053
|
+
message: "A 204 (No Content) response declares a body, but a 204 response cannot include one. Ignoring the declared body and treating the success response as optional.",
|
|
350054
|
+
path: this.breadcrumbs
|
|
350055
|
+
});
|
|
350056
|
+
}
|
|
350057
|
+
return void 0;
|
|
350058
|
+
}
|
|
350049
350059
|
return this.shouldConvertAsStreaming() ? this.convertStreamingResponseBody() : this.convertNonStreamingResponseBody();
|
|
350050
350060
|
}
|
|
350051
350061
|
convertStreamingResponseBody() {
|
|
@@ -687217,7 +687227,7 @@ var AccessTokenPosthogManager = class {
|
|
|
687217
687227
|
properties: {
|
|
687218
687228
|
...event,
|
|
687219
687229
|
...event.properties,
|
|
687220
|
-
version: "5.64.
|
|
687230
|
+
version: "5.64.2",
|
|
687221
687231
|
usingAccessToken: true,
|
|
687222
687232
|
...getRunIdProperties()
|
|
687223
687233
|
}
|
|
@@ -687283,7 +687293,7 @@ var UserPosthogManager = class {
|
|
|
687283
687293
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
687284
687294
|
event: "CLI",
|
|
687285
687295
|
properties: {
|
|
687286
|
-
version: "5.64.
|
|
687296
|
+
version: "5.64.2",
|
|
687287
687297
|
...event,
|
|
687288
687298
|
...event.properties,
|
|
687289
687299
|
usingAccessToken: false,
|
|
@@ -868378,7 +868388,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
868378
868388
|
var LOGS_FOLDER_NAME = "logs";
|
|
868379
868389
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
868380
868390
|
function getCliSource() {
|
|
868381
|
-
const version7 = "5.64.
|
|
868391
|
+
const version7 = "5.64.2";
|
|
868382
868392
|
return `cli@${version7}`;
|
|
868383
868393
|
}
|
|
868384
868394
|
var DebugLogger = class {
|
|
@@ -900895,7 +900905,7 @@ var LegacyDocsPublisher = class {
|
|
|
900895
900905
|
previewId,
|
|
900896
900906
|
disableTemplates: void 0,
|
|
900897
900907
|
skipUpload,
|
|
900898
|
-
cliVersion: "5.64.
|
|
900908
|
+
cliVersion: "5.64.2",
|
|
900899
900909
|
loginCommand: "fern auth login"
|
|
900900
900910
|
});
|
|
900901
900911
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -967203,7 +967213,7 @@ function getAutomationContextFromEnv() {
|
|
|
967203
967213
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
967204
967214
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
967205
967215
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
967206
|
-
cli_version: "5.64.
|
|
967216
|
+
cli_version: "5.64.2"
|
|
967207
967217
|
};
|
|
967208
967218
|
}
|
|
967209
967219
|
function isAutomationMode() {
|
|
@@ -968035,7 +968045,7 @@ var CliContext = class _CliContext {
|
|
|
968035
968045
|
if (false) {
|
|
968036
968046
|
this.logger.error("CLI_VERSION is not defined");
|
|
968037
968047
|
}
|
|
968038
|
-
return "5.64.
|
|
968048
|
+
return "5.64.2";
|
|
968039
968049
|
}
|
|
968040
968050
|
getCliName() {
|
|
968041
968051
|
if (false) {
|
package/package.json
CHANGED