@fern-api/fern-api-dev 5.41.0 → 5.41.1
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 +20 -7
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -600700,13 +600700,14 @@ function createExamplesForResponseStatusCodes({ endpoint: endpoint3, userRequest
|
|
|
600700
600700
|
requestExamplesUsed.add(firstUserRequestName);
|
|
600701
600701
|
}
|
|
600702
600702
|
let key2 = createExampleKey(firstUserRequestName ?? firstAutoRequestName ?? "base", firstAutoResponseName ?? "base", response?.statusCode);
|
|
600703
|
+
const userOrAutoStore = firstUserRequestExample != null ? userResults : autoResults;
|
|
600703
600704
|
if (maybeCreateAndStoreExample({
|
|
600704
600705
|
key: key2,
|
|
600705
600706
|
displayName: firstUserRequestName ?? firstAutoRequestName ?? fallbackExampleDisplayName,
|
|
600706
600707
|
request: firstUserRequestExample ?? firstAutoRequestExample ?? baseRequestExample,
|
|
600707
600708
|
response: firstAutoResponseExample ?? baseResponseExample,
|
|
600708
600709
|
exampleStore,
|
|
600709
|
-
userOrAutoStore
|
|
600710
|
+
userOrAutoStore
|
|
600710
600711
|
})) {
|
|
600711
600712
|
examplesCreatedForResponse = true;
|
|
600712
600713
|
}
|
|
@@ -669383,7 +669384,7 @@ var AccessTokenPosthogManager = class {
|
|
|
669383
669384
|
properties: {
|
|
669384
669385
|
...event,
|
|
669385
669386
|
...event.properties,
|
|
669386
|
-
version: "5.41.
|
|
669387
|
+
version: "5.41.1",
|
|
669387
669388
|
usingAccessToken: true,
|
|
669388
669389
|
...getRunIdProperties()
|
|
669389
669390
|
}
|
|
@@ -669447,7 +669448,7 @@ var UserPosthogManager = class {
|
|
|
669447
669448
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
669448
669449
|
event: "CLI",
|
|
669449
669450
|
properties: {
|
|
669450
|
-
version: "5.41.
|
|
669451
|
+
version: "5.41.1",
|
|
669451
669452
|
...event,
|
|
669452
669453
|
...event.properties,
|
|
669453
669454
|
usingAccessToken: false,
|
|
@@ -824046,10 +824047,22 @@ function convertService(irService, ir11) {
|
|
|
824046
824047
|
}),
|
|
824047
824048
|
includeInApiExplorer: irEndpoint.apiPlayground
|
|
824048
824049
|
};
|
|
824050
|
+
attachUserSpecifiedV2ExamplesMarker(endpoint3, irEndpoint);
|
|
824049
824051
|
endpoints.push(endpoint3);
|
|
824050
824052
|
}
|
|
824051
824053
|
return endpoints;
|
|
824052
824054
|
}
|
|
824055
|
+
function attachUserSpecifiedV2ExamplesMarker(endpoint3, irEndpoint) {
|
|
824056
|
+
const userSpecifiedExamples = irEndpoint.v2Examples?.userSpecifiedExamples;
|
|
824057
|
+
if (userSpecifiedExamples == null || Object.keys(userSpecifiedExamples).length === 0) {
|
|
824058
|
+
return;
|
|
824059
|
+
}
|
|
824060
|
+
const endpointWithV2ExamplesMarker = endpoint3;
|
|
824061
|
+
endpointWithV2ExamplesMarker.v2Examples = {
|
|
824062
|
+
userSpecifiedExamples,
|
|
824063
|
+
autogeneratedExamples: {}
|
|
824064
|
+
};
|
|
824065
|
+
}
|
|
824053
824066
|
function convertWebSocketChannel(channel3, ir11) {
|
|
824054
824067
|
let examples = [];
|
|
824055
824068
|
if (channel3.v2Examples != null && (Object.keys(channel3.v2Examples.userSpecifiedExamples).length > 0 || Object.keys(channel3.v2Examples.autogeneratedExamples).length > 0)) {
|
|
@@ -860398,7 +860411,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
860398
860411
|
var LOGS_FOLDER_NAME = "logs";
|
|
860399
860412
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
860400
860413
|
function getCliSource() {
|
|
860401
|
-
const version7 = "5.41.
|
|
860414
|
+
const version7 = "5.41.1";
|
|
860402
860415
|
return `cli@${version7}`;
|
|
860403
860416
|
}
|
|
860404
860417
|
var DebugLogger = class {
|
|
@@ -881038,7 +881051,7 @@ var LegacyDocsPublisher = class {
|
|
|
881038
881051
|
previewId,
|
|
881039
881052
|
disableTemplates: void 0,
|
|
881040
881053
|
skipUpload,
|
|
881041
|
-
cliVersion: "5.41.
|
|
881054
|
+
cliVersion: "5.41.1",
|
|
881042
881055
|
loginCommand: "fern auth login"
|
|
881043
881056
|
});
|
|
881044
881057
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -955968,7 +955981,7 @@ function getAutomationContextFromEnv() {
|
|
|
955968
955981
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
955969
955982
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
955970
955983
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
955971
|
-
cli_version: "5.41.
|
|
955984
|
+
cli_version: "5.41.1"
|
|
955972
955985
|
};
|
|
955973
955986
|
}
|
|
955974
955987
|
function isAutomationMode() {
|
|
@@ -956794,7 +956807,7 @@ var CliContext = class _CliContext {
|
|
|
956794
956807
|
if (false) {
|
|
956795
956808
|
this.logger.error("CLI_VERSION is not defined");
|
|
956796
956809
|
}
|
|
956797
|
-
return "5.41.
|
|
956810
|
+
return "5.41.1";
|
|
956798
956811
|
}
|
|
956799
956812
|
getCliName() {
|
|
956800
956813
|
if (false) {
|
package/package.json
CHANGED