We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 945d8c3 commit a5370caCopy full SHA for a5370ca
scripts/update-endpoints/fetch-json.js
@@ -33,6 +33,14 @@ const QUERY = `
33
34
main();
35
36
+const removeEnterpriseCloudFromDocumentationUrl = (endpoint) => ({
37
+ ...endpoint,
38
+ documentationUrl: endpoint.documentationUrl.replace(
39
+ "/enterprise-cloud@latest/",
40
+ ""
41
+ ),
42
+});
43
+
44
async function main() {
45
const {
46
data: { endpoints },
@@ -43,8 +51,11 @@ async function main() {
51
52
writeFileSync(
53
path.resolve(__dirname, "generated", "endpoints.json"),
- prettier.format(JSON.stringify(endpoints), {
47
- parser: "json",
48
- })
54
+ prettier.format(
55
+ JSON.stringify(endpoints.map(removeEnterpriseCloudFromDocumentationUrl)),
56
+ {
57
+ parser: "json",
58
+ }
59
+ )
49
60
);
50
61
}
0 commit comments