Unified · Split
| @@ -16,8 +16,7 @@ module Docs · 15 unmodified lines | |||
| 16 | HTML | 16 | HTML |
| 17 | 17 | ||
| 18 | def get_latest_version(opts) | 18 | def get_latest_version(opts) |
| 19 | contents = get_github_file_contents('GoogleChrome', 'puppeteer', 'README.md', opts) | 19 | get_npm_version('puppeteer', opts) |
| 20 | contents.scan(/\/v([0-9.]+)\/docs\/api\.md/)[0][0] | ||
| 21 | end | 20 | end |
| 22 | end | 21 | end |
| 23 | end | 22 | end |