()
| 179 | } |
| 180 | |
| 181 | function readVersion() { |
| 182 | try { |
| 183 | return require(path.join(__dirname, 'package.json')).version; |
| 184 | } catch (e) { |
| 185 | fail('could not read this package\'s version to locate a matching release.'); |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | // GET with manual redirect following (GitHub release URLs redirect to a CDN). |
| 190 | function download(url, dest, redirectsLeft) { |
no test coverage detected