Explorar o código

puppeteer: get_npm_version

Simon Legner %!s(int64=3) %!d(string=hai) anos
pai
achega
02444cfacb
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      lib/docs/scrapers/puppeteer.rb

+ 1 - 2
lib/docs/scrapers/puppeteer.rb

@@ -16,8 +16,7 @@ module Docs
     HTML
 
     def get_latest_version(opts)
-      contents = get_github_file_contents('GoogleChrome', 'puppeteer', 'README.md', opts)
-      contents.scan(/\/v([0-9.]+)\/docs\/api\.md/)[0][0]
+      get_npm_version('puppeteer', opts)
     end
   end
 end