()
| 155 | } |
| 156 | |
| 157 | function readVersion() { |
| 158 | try { |
| 159 | return require(path.join(__dirname, 'package.json')).version; |
| 160 | } catch (e) { |
| 161 | fail('could not read this package\'s version to locate a matching release.'); |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | // GET with manual redirect following (GitHub release URLs redirect to a CDN). |
| 166 | function download(url, dest, redirectsLeft) { |
no test coverage detected