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 6c34cec commit 429d4c0Copy full SHA for 429d4c0
npm/postinstall.js
@@ -6,8 +6,10 @@ const os = require("os");
6
const {version} = require("./package.json");
7
8
const prefix = getPlatformPrefix();
9
-const url = `https://github.com/graphql-java/graphql-anonymizer/releases/download/v${version}/graphql-anonymizer-${version}-${prefix}`;
10
-
+let url = `https://github.com/graphql-java/graphql-anonymizer/releases/download/v${version}/graphql-anonymizer-${version}-${prefix}`;
+if (prefix === 'windows') {
11
+ url += '.exe';
12
+}
13
axios({url, responseType: "stream"})
14
.then(res => {
15
return res.data.pipe(createWriteStream(join(__dirname, "graphql-anonymizer")));
0 commit comments