()
| 166 | } |
| 167 | |
| 168 | function readVersion() { |
| 169 | try { |
| 170 | return require(path.join(__dirname, 'package.json')).version; |
| 171 | } catch (e) { |
| 172 | fail('could not read this package\'s version to locate a matching release.'); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | // GET with manual redirect following (GitHub release URLs redirect to a CDN). |
| 177 | function download(url, dest, redirectsLeft) { |
no test coverage detected