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 1fe8716 commit 6b78e74Copy full SHA for 6b78e74
api/download.js
@@ -19,10 +19,7 @@ module.exports = (req, res) => {
19
headers: { ...req.headers, authorization },
20
})
21
.then((r) => r.json())
22
- .then((r) => {
23
- console.log(r);
24
- return r.versions[r['dist-tags'].latest].dist.tarball;
25
- })
+ .then((r) => r.versions[r['dist-tags'].latest].dist.tarball)
26
.then((link) => fetch(link, {
27
redirect: 'manual',
28
headers: { authorization },
0 commit comments