fern-api 0.15.0-rc75 → 0.15.0-rc76
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 +29 -24
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -690446,7 +690446,7 @@ var AccessTokenPosthogManager = class {
|
|
|
690446
690446
|
properties: {
|
|
690447
690447
|
...event,
|
|
690448
690448
|
...event.properties,
|
|
690449
|
-
version: "0.15.0-
|
|
690449
|
+
version: "0.15.0-rc76",
|
|
690450
690450
|
usingAccessToken: true
|
|
690451
690451
|
}
|
|
690452
690452
|
});
|
|
@@ -690508,7 +690508,7 @@ var UserPosthogManager = class {
|
|
|
690508
690508
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
690509
690509
|
event: "CLI",
|
|
690510
690510
|
properties: {
|
|
690511
|
-
version: "0.15.0-
|
|
690511
|
+
version: "0.15.0-rc76",
|
|
690512
690512
|
...event,
|
|
690513
690513
|
...event.properties
|
|
690514
690514
|
}
|
|
@@ -705833,32 +705833,37 @@ function getFernAvailability(operationObject) {
|
|
|
705833
705833
|
|
|
705834
705834
|
// pnp:/home/circleci/project/packages/cli/openapi-parser/lib/v3/converters/convertServer.js
|
|
705835
705835
|
function convertServer(server) {
|
|
705836
|
+
return {
|
|
705837
|
+
url: getServerUrl({ url: server.url, variables: server.variables ?? {} }),
|
|
705838
|
+
description: server.description,
|
|
705839
|
+
name: getServerName(server)
|
|
705840
|
+
};
|
|
705841
|
+
}
|
|
705842
|
+
function getServerUrl({ url, variables }) {
|
|
705843
|
+
const valuesToSubstitute = Object.fromEntries(Object.entries(variables).map(([name2, declaration]) => {
|
|
705844
|
+
return [name2, declaration.default];
|
|
705845
|
+
}));
|
|
705846
|
+
for (const [variable, value] of Object.entries(valuesToSubstitute)) {
|
|
705847
|
+
url = url.replace(`{${variable}}`, value);
|
|
705848
|
+
}
|
|
705849
|
+
return url;
|
|
705850
|
+
}
|
|
705851
|
+
function getServerName(server) {
|
|
705836
705852
|
var _a2, _b2;
|
|
705837
705853
|
const name2 = getExtension(server, [
|
|
705838
705854
|
FernOpenAPIExtension.SERVER_NAME_V1,
|
|
705839
705855
|
FernOpenAPIExtension.SERVER_NAME_V2
|
|
705840
705856
|
]);
|
|
705841
|
-
if (name2
|
|
705842
|
-
|
|
705843
|
-
return {
|
|
705844
|
-
url: server.url,
|
|
705845
|
-
description: void 0,
|
|
705846
|
-
name: "Production"
|
|
705847
|
-
};
|
|
705848
|
-
}
|
|
705849
|
-
if (((_b2 = server.description) == null ? void 0 : _b2.toLowerCase()) === "sandbox") {
|
|
705850
|
-
return {
|
|
705851
|
-
url: server.url,
|
|
705852
|
-
description: void 0,
|
|
705853
|
-
name: "Sandbox"
|
|
705854
|
-
};
|
|
705855
|
-
}
|
|
705857
|
+
if (name2 != null) {
|
|
705858
|
+
return name2;
|
|
705856
705859
|
}
|
|
705857
|
-
|
|
705858
|
-
|
|
705859
|
-
|
|
705860
|
-
|
|
705861
|
-
|
|
705860
|
+
if (((_a2 = server.description) == null ? void 0 : _a2.toLowerCase()) === "production") {
|
|
705861
|
+
return "Production";
|
|
705862
|
+
}
|
|
705863
|
+
if (((_b2 = server.description) == null ? void 0 : _b2.toLowerCase()) === "sandbox") {
|
|
705864
|
+
return "Sandbox";
|
|
705865
|
+
}
|
|
705866
|
+
return void 0;
|
|
705862
705867
|
}
|
|
705863
705868
|
|
|
705864
705869
|
// pnp:/home/circleci/project/packages/cli/openapi-parser/lib/v3/converters/endpoint/convertParameters.js
|
|
@@ -714622,10 +714627,10 @@ var CliContext = class {
|
|
|
714622
714627
|
return "fern-api";
|
|
714623
714628
|
}
|
|
714624
714629
|
getPackageVersion() {
|
|
714625
|
-
if ("0.15.0-
|
|
714630
|
+
if ("0.15.0-rc76" == null) {
|
|
714626
714631
|
this.logger.error("CLI_VERSION is not defined");
|
|
714627
714632
|
}
|
|
714628
|
-
return "0.15.0-
|
|
714633
|
+
return "0.15.0-rc76";
|
|
714629
714634
|
}
|
|
714630
714635
|
getCliName() {
|
|
714631
714636
|
if ("fern" == null) {
|