fern-api 0.39.2 → 0.39.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 +19 -8
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -1192575,7 +1192575,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1192575
1192575
|
properties: {
|
|
1192576
1192576
|
...event,
|
|
1192577
1192577
|
...event.properties,
|
|
1192578
|
-
version: "0.39.
|
|
1192578
|
+
version: "0.39.4",
|
|
1192579
1192579
|
usingAccessToken: true
|
|
1192580
1192580
|
}
|
|
1192581
1192581
|
});
|
|
@@ -1192637,7 +1192637,7 @@ var UserPosthogManager = class {
|
|
|
1192637
1192637
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1192638
1192638
|
event: "CLI",
|
|
1192639
1192639
|
properties: {
|
|
1192640
|
-
version: "0.39.
|
|
1192640
|
+
version: "0.39.4",
|
|
1192641
1192641
|
...event,
|
|
1192642
1192642
|
...event.properties
|
|
1192643
1192643
|
}
|
|
@@ -1212048,6 +1212048,13 @@ var AbstractAsyncAPIV2ParserContext = class {
|
|
|
1212048
1212048
|
this.options = options2;
|
|
1212049
1212049
|
this.namespace = namespace;
|
|
1212050
1212050
|
}
|
|
1212051
|
+
resolveTags(operationTags, fallback2) {
|
|
1212052
|
+
if (this.namespace == null && operationTags == null && fallback2 != null) {
|
|
1212053
|
+
return [fallback2];
|
|
1212054
|
+
}
|
|
1212055
|
+
const tags = this.namespace ? [this.namespace] : [];
|
|
1212056
|
+
return tags.concat(operationTags ?? []);
|
|
1212057
|
+
}
|
|
1212051
1212058
|
resolveSchemaReference(schema2) {
|
|
1212052
1212059
|
var _a6;
|
|
1212053
1212060
|
if (this.document.components == null || this.document.components.schemas == null || !schema2.$ref.startsWith(SCHEMA_REFERENCE_PREFIX)) {
|
|
@@ -1213723,7 +1213730,7 @@ function getFernExamples(channel) {
|
|
|
1213723
1213730
|
|
|
1213724
1213731
|
// ../openapi-parser/lib/asyncapi/parse.js
|
|
1213725
1213732
|
function parseAsyncAPI({ document: document4, taskContext, options: options2, source, asyncApiOptions, namespace }) {
|
|
1213726
|
-
var _a6, _b4, _c4, _d2;
|
|
1213733
|
+
var _a6, _b4, _c4, _d2, _e, _f;
|
|
1213727
1213734
|
const breadcrumbs = [];
|
|
1213728
1213735
|
if (namespace != null) {
|
|
1213729
1213736
|
breadcrumbs.push(namespace);
|
|
@@ -1213862,7 +1213869,7 @@ function parseAsyncAPI({ document: document4, taskContext, options: options2, so
|
|
|
1213862
1213869
|
examples.push(autogenExample);
|
|
1213863
1213870
|
}
|
|
1213864
1213871
|
}
|
|
1213865
|
-
const
|
|
1213872
|
+
const tags = ((_e = (_d2 = document4.tags) == null ? void 0 : _d2[0]) == null ? void 0 : _e.name) != null ? [(_f = document4.tags) == null ? void 0 : _f[0].name] : void 0;
|
|
1213866
1213873
|
parsedChannel = {
|
|
1213867
1213874
|
handshake: {
|
|
1213868
1213875
|
headers: headers.map((header) => {
|
|
@@ -1213885,7 +1213892,7 @@ function parseAsyncAPI({ document: document4, taskContext, options: options2, so
|
|
|
1213885
1213892
|
};
|
|
1213886
1213893
|
})
|
|
1213887
1213894
|
},
|
|
1213888
|
-
groupName: (
|
|
1213895
|
+
groupName: context.resolveTags(tags, "Websocket"),
|
|
1213889
1213896
|
publish: publishSchema != null ? convertSchemaWithExampleToSchema(publishSchema) : publishSchema,
|
|
1213890
1213897
|
subscribe: subscribeSchema != null ? convertSchemaWithExampleToSchema(subscribeSchema) : subscribeSchema,
|
|
1213891
1213898
|
summary: getExtension(channel, FernAsyncAPIExtension.FERN_DISPLAY_NAME),
|
|
@@ -1222741,10 +1222748,10 @@ var CliContext = class {
|
|
|
1222741
1222748
|
return "fern-api";
|
|
1222742
1222749
|
}
|
|
1222743
1222750
|
getPackageVersion() {
|
|
1222744
|
-
if ("0.39.
|
|
1222751
|
+
if ("0.39.4" == null) {
|
|
1222745
1222752
|
this.logger.error("CLI_VERSION is not defined");
|
|
1222746
1222753
|
}
|
|
1222747
|
-
return "0.39.
|
|
1222754
|
+
return "0.39.4";
|
|
1222748
1222755
|
}
|
|
1222749
1222756
|
getCliName() {
|
|
1222750
1222757
|
if ("fern" == null) {
|
|
@@ -1246194,7 +1246201,11 @@ function convertService(irService, ir) {
|
|
|
1246194
1246201
|
key: pathParameter.name.originalName,
|
|
1246195
1246202
|
type: convertTypeReference(pathParameter.valueType)
|
|
1246196
1246203
|
})),
|
|
1246197
|
-
parts: [
|
|
1246204
|
+
parts: [
|
|
1246205
|
+
...ir.basePath != null ? convertHttpPath(ir.basePath) : [],
|
|
1246206
|
+
...convertHttpPath(irService.basePath),
|
|
1246207
|
+
...convertHttpPath(irEndpoint.path)
|
|
1246208
|
+
]
|
|
1246198
1246209
|
},
|
|
1246199
1246210
|
queryParameters: irEndpoint.queryParameters.map((queryParameter) => ({
|
|
1246200
1246211
|
description: queryParameter.docs ?? void 0,
|