소스 검색

Update npm documentation (3.9.0)

Thibaut Courouble 9 년 전
부모
커밋
cccb6093e0
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      lib/docs/scrapers/npm.rb

+ 7 - 1
lib/docs/scrapers/npm.rb

@@ -2,7 +2,7 @@ module Docs
   class Npm < UrlScraper
     self.name = 'npm'
     self.type = 'npm'
-    self.release = '3.8.5'
+    self.release = '3.9.0'
     self.base_url = 'https://docs.npmjs.com/'
     self.links = {
       home: 'https://www.npmjs.com/',
@@ -27,5 +27,11 @@ module Docs
       Licensed under the npm License.<br>
       npm is a trademark of npm, Inc.
     HTML
+
+    private
+
+    def request_options
+      super.merge accept_encoding: 'gzip'
+    end
   end
 end