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