dv-browser 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +4 -3
package/index.js CHANGED
@@ -22,6 +22,7 @@ let DvBrowser = function (_config) {
22
22
  authBearer: null,
23
23
  noDeflate: false,
24
24
  lowSpeedTimeout: 15,
25
+ contentDecoding: null,
25
26
  }, _config);
26
27
 
27
28
  const cookiejar = new CookieJar(null);
@@ -139,6 +140,9 @@ let DvBrowser = function (_config) {
139
140
  if (!options.noDeflate) {
140
141
  curl.setOpt(Curl.option.ACCEPT_ENCODING, 'gzip');
141
142
  }
143
+ if (options.contentDecoding !== null) {
144
+ curl.setOpt(Curl.option.HTTP_CONTENT_DECODING, options.contentDecoding);
145
+ }
142
146
  if (options?.httpProxy?.address && options?.httpProxy?.port) {
143
147
  curl.setOpt(Curl.option.PROXY, options.httpProxy.address + ':' + options.httpProxy.port);
144
148
  if (options.httpProxy.auth) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dv-browser",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,8 @@
17
17
  },
18
18
  "homepage": "https://github.com/druidvav/node-browser",
19
19
  "dependencies": {
20
- "node-libcurl": "4.0.0",
20
+ "node-libcurl": "5.0.2",
21
21
  "tough-cookie": "4.1.3"
22
- }
22
+ },
23
+ "packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
23
24
  }