@fern-api/fern-api-dev 3.30.4-1-gbe41ac4efe → 3.30.5
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 +40 -4
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -1413665,7 +1413665,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1413665
1413665
|
properties: {
|
|
1413666
1413666
|
...event,
|
|
1413667
1413667
|
...event.properties,
|
|
1413668
|
-
version: "3.30.
|
|
1413668
|
+
version: "3.30.5",
|
|
1413669
1413669
|
usingAccessToken: true
|
|
1413670
1413670
|
}
|
|
1413671
1413671
|
});
|
|
@@ -1413764,7 +1413764,7 @@ var UserPosthogManager = class {
|
|
|
1413764
1413764
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1413765
1413765
|
event: "CLI",
|
|
1413766
1413766
|
properties: {
|
|
1413767
|
-
version: "3.30.
|
|
1413767
|
+
version: "3.30.5",
|
|
1413768
1413768
|
...event,
|
|
1413769
1413769
|
...event.properties,
|
|
1413770
1413770
|
usingAccessToken: false,
|
|
@@ -1493831,7 +1493831,7 @@ var CliContext = class {
|
|
|
1493831
1493831
|
if (false) {
|
|
1493832
1493832
|
this.logger.error("CLI_VERSION is not defined");
|
|
1493833
1493833
|
}
|
|
1493834
|
-
return "3.30.
|
|
1493834
|
+
return "3.30.5";
|
|
1493835
1493835
|
}
|
|
1493836
1493836
|
getCliName() {
|
|
1493837
1493837
|
if (false) {
|
|
@@ -1534528,6 +1534528,30 @@ var AsyncAPIConverterContext = class extends AbstractConverterContext {
|
|
|
1534528
1534528
|
// ../api-importers/openapi-to-ir/lib/3.1/OpenAPIConverter.js
|
|
1534529
1534529
|
var import_openapi_types2 = __toESM(require_dist20(), 1);
|
|
1534530
1534530
|
|
|
1534531
|
+
// ../api-importers/openapi-to-ir/lib/extensions/x-fern-base-path.js
|
|
1534532
|
+
var FernBasePathExtension = class extends AbstractExtension {
|
|
1534533
|
+
document;
|
|
1534534
|
+
key = "x-fern-base-path";
|
|
1534535
|
+
constructor({ breadcrumbs, document: document4, context: context2 }) {
|
|
1534536
|
+
super({ breadcrumbs, context: context2 });
|
|
1534537
|
+
this.document = document4;
|
|
1534538
|
+
}
|
|
1534539
|
+
convert() {
|
|
1534540
|
+
const extensionValue = this.getExtensionValue(this.document);
|
|
1534541
|
+
if (extensionValue == null) {
|
|
1534542
|
+
return void 0;
|
|
1534543
|
+
}
|
|
1534544
|
+
if (typeof extensionValue !== "string") {
|
|
1534545
|
+
this.context.errorCollector.collect({
|
|
1534546
|
+
message: "Received unexpected non-string value for x-fern-base-path",
|
|
1534547
|
+
path: this.breadcrumbs
|
|
1534548
|
+
});
|
|
1534549
|
+
return void 0;
|
|
1534550
|
+
}
|
|
1534551
|
+
return extensionValue;
|
|
1534552
|
+
}
|
|
1534553
|
+
};
|
|
1534554
|
+
|
|
1534531
1534555
|
// ../api-importers/openapi-to-ir/lib/extensions/x-fern-global-headers.js
|
|
1534532
1534556
|
var FernGlobalHeadersExtension = class extends AbstractExtension {
|
|
1534533
1534557
|
document;
|
|
@@ -1537051,6 +1537075,7 @@ var OpenAPIConverter = class extends AbstractSpecConverter {
|
|
|
1537051
1537075
|
this.overrideOpenApiAuthWithGeneratorsAuth();
|
|
1537052
1537076
|
this.convertSecuritySchemes();
|
|
1537053
1537077
|
this.convertGlobalHeaders();
|
|
1537078
|
+
this.convertBasePath();
|
|
1537054
1537079
|
this.convertSchemas();
|
|
1537055
1537080
|
this.convertWebhooks();
|
|
1537056
1537081
|
const { endpointLevelServers, errors: errors4 } = this.convertPaths();
|
|
@@ -1537081,6 +1537106,17 @@ var OpenAPIConverter = class extends AbstractSpecConverter {
|
|
|
1537081
1537106
|
this.context.setGlobalHeaders(globalHeaders);
|
|
1537082
1537107
|
}
|
|
1537083
1537108
|
}
|
|
1537109
|
+
convertBasePath() {
|
|
1537110
|
+
const basePathExtension = new FernBasePathExtension({
|
|
1537111
|
+
breadcrumbs: ["x-fern-base-path"],
|
|
1537112
|
+
document: this.context.spec,
|
|
1537113
|
+
context: this.context
|
|
1537114
|
+
});
|
|
1537115
|
+
const basePath = basePathExtension.convert();
|
|
1537116
|
+
if (basePath != null) {
|
|
1537117
|
+
this.ir.basePath = constructHttpPath(basePath);
|
|
1537118
|
+
}
|
|
1537119
|
+
}
|
|
1537084
1537120
|
convertSecuritySchemes() {
|
|
1537085
1537121
|
if (this.context.authOverrides) {
|
|
1537086
1537122
|
const overrideAuth = convertApiAuth({
|
|
@@ -1588652,7 +1588688,7 @@ var import_path35 = __toESM(require("path"), 1);
|
|
|
1588652
1588688
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
1588653
1588689
|
var LOGS_FOLDER_NAME = "logs";
|
|
1588654
1588690
|
function getCliSource() {
|
|
1588655
|
-
const version6 = "3.30.
|
|
1588691
|
+
const version6 = "3.30.5";
|
|
1588656
1588692
|
return `cli@${version6}`;
|
|
1588657
1588693
|
}
|
|
1588658
1588694
|
var DebugLogger = class {
|
package/package.json
CHANGED