fern-api 0.30.3 → 0.30.4
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/bundle.cjs +43 -29
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -1030262,7 +1030262,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1030262
1030262
|
properties: {
|
|
1030263
1030263
|
...event,
|
|
1030264
1030264
|
...event.properties,
|
|
1030265
|
-
version: "0.30.
|
|
1030265
|
+
version: "0.30.4",
|
|
1030266
1030266
|
usingAccessToken: true
|
|
1030267
1030267
|
}
|
|
1030268
1030268
|
});
|
|
@@ -1030324,7 +1030324,7 @@ var UserPosthogManager = class {
|
|
|
1030324
1030324
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1030325
1030325
|
event: "CLI",
|
|
1030326
1030326
|
properties: {
|
|
1030327
|
-
version: "0.30.
|
|
1030327
|
+
version: "0.30.4",
|
|
1030328
1030328
|
...event,
|
|
1030329
1030329
|
...event.properties
|
|
1030330
1030330
|
}
|
|
@@ -1048497,41 +1048497,55 @@ function convertResponse({ operationContext, responses, context, responseBreadcr
|
|
|
1048497
1048497
|
return { value: void 0, errors: {} };
|
|
1048498
1048498
|
}
|
|
1048499
1048499
|
const errors = markErrorSchemas({ responses, context });
|
|
1048500
|
+
let successStatusCodePresent = false;
|
|
1048501
|
+
let convertedResponse = void 0;
|
|
1048500
1048502
|
for (const statusCode of responseStatusCode != null ? [responseStatusCode] : SUCCESSFUL_STATUS_CODES) {
|
|
1048501
1048503
|
const response = responses[statusCode];
|
|
1048502
1048504
|
if (response == null) {
|
|
1048503
1048505
|
continue;
|
|
1048504
1048506
|
}
|
|
1048505
|
-
|
|
1048507
|
+
successStatusCodePresent = true;
|
|
1048508
|
+
if (convertedResponse == null) {
|
|
1048509
|
+
convertedResponse = convertResolvedResponse({
|
|
1048510
|
+
operationContext,
|
|
1048511
|
+
response,
|
|
1048512
|
+
context,
|
|
1048513
|
+
responseBreadcrumbs,
|
|
1048514
|
+
streamFormat
|
|
1048515
|
+
});
|
|
1048516
|
+
}
|
|
1048517
|
+
}
|
|
1048518
|
+
if (convertedResponse == null && !successStatusCodePresent && responses.default != null) {
|
|
1048519
|
+
convertedResponse = convertResolvedResponse({
|
|
1048506
1048520
|
operationContext,
|
|
1048507
|
-
response,
|
|
1048521
|
+
response: responses.default,
|
|
1048508
1048522
|
context,
|
|
1048509
1048523
|
responseBreadcrumbs,
|
|
1048510
1048524
|
streamFormat
|
|
1048511
1048525
|
});
|
|
1048512
|
-
|
|
1048513
|
-
|
|
1048514
|
-
|
|
1048515
|
-
|
|
1048516
|
-
|
|
1048517
|
-
|
|
1048518
|
-
|
|
1048519
|
-
|
|
1048520
|
-
|
|
1048521
|
-
|
|
1048522
|
-
|
|
1048523
|
-
|
|
1048524
|
-
|
|
1048525
|
-
|
|
1048526
|
-
|
|
1048527
|
-
|
|
1048528
|
-
|
|
1048529
|
-
|
|
1048530
|
-
|
|
1048531
|
-
|
|
1048532
|
-
|
|
1048533
|
-
|
|
1048534
|
-
|
|
1048526
|
+
}
|
|
1048527
|
+
if (convertedResponse != null) {
|
|
1048528
|
+
switch (convertedResponse.type) {
|
|
1048529
|
+
case "json":
|
|
1048530
|
+
return {
|
|
1048531
|
+
value: convertedResponse,
|
|
1048532
|
+
errors
|
|
1048533
|
+
};
|
|
1048534
|
+
case "streamingJson":
|
|
1048535
|
+
case "streamingSse":
|
|
1048536
|
+
return {
|
|
1048537
|
+
value: convertedResponse,
|
|
1048538
|
+
errors
|
|
1048539
|
+
};
|
|
1048540
|
+
case "file":
|
|
1048541
|
+
case "text":
|
|
1048542
|
+
case "streamingText":
|
|
1048543
|
+
return {
|
|
1048544
|
+
value: convertedResponse,
|
|
1048545
|
+
errors
|
|
1048546
|
+
};
|
|
1048547
|
+
default:
|
|
1048548
|
+
assertNever(convertedResponse);
|
|
1048535
1048549
|
}
|
|
1048536
1048550
|
}
|
|
1048537
1048551
|
return {
|
|
@@ -1056120,10 +1056134,10 @@ var CliContext = class {
|
|
|
1056120
1056134
|
return "fern-api";
|
|
1056121
1056135
|
}
|
|
1056122
1056136
|
getPackageVersion() {
|
|
1056123
|
-
if ("0.30.
|
|
1056137
|
+
if ("0.30.4" == null) {
|
|
1056124
1056138
|
this.logger.error("CLI_VERSION is not defined");
|
|
1056125
1056139
|
}
|
|
1056126
|
-
return "0.30.
|
|
1056140
|
+
return "0.30.4";
|
|
1056127
1056141
|
}
|
|
1056128
1056142
|
getCliName() {
|
|
1056129
1056143
|
if ("fern" == null) {
|