Unified · Split
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Npm < UrlScraper | 2 | class Npm < UrlScraper |
| 3 | self.name = 'npm' | 3 | self.name = 'npm' |
| 4 | self.type = 'npm' | 4 | self.type = 'npm' |
| 5 | self.release = '3.8.5' | 5 | self.release = '3.9.0' |
| 6 | self.base_url = 'https://docs.npmjs.com/' | 6 | self.base_url = 'https://docs.npmjs.com/' |
| 7 | self.links = { | 7 | self.links = { |
| 8 | home: 'https://www.npmjs.com/', | 8 | home: 'https://www.npmjs.com/', |
| @@ -27,5 +27,11 @@ module Docs · 18 unmodified lines | |||
| 27 | Licensed under the npm License.<br> | 27 | Licensed under the npm License.<br> |
| 28 | npm is a trademark of npm, Inc. | 28 | npm is a trademark of npm, Inc. |
| 29 | HTML | 29 | HTML |
| 30 | |||
| 31 | private | ||
| 32 | |||
| 33 | def request_options | ||
| 34 | super.merge accept_encoding: 'gzip' | ||
| 35 | end | ||
| 30 | end | 36 | end |
| 31 | end | 37 | end |