urllib 4.6.10 → 4.6.11

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.
package/README.md CHANGED
@@ -73,7 +73,7 @@ console.log('status: %s, body size: %d, headers: %j', res.status, data.length, r
73
73
  - ***formatRedirectUrl*** Function - Format the redirect url by your self. Default is `url.resolve(from, to)`.
74
74
  - ***beforeRequest*** Function - Before request hook, you can change every thing here.
75
75
  - ***streaming*** Boolean - let you get the `res` object when request connected, default `false`. alias `customResponse`
76
- - ***compressed*** Boolean - Accept `gzip, br` response content and auto decode it, default is `true`.
76
+ - ***compressed*** Boolean - Accept `gzip, br` response content and auto decode it, default is `false`.
77
77
  - ***timing*** Boolean - Enable timing or not, default is `true`.
78
78
  - ***socketPath*** String | null - request a unix socket service, default is `null`.
79
79
  - ***highWaterMark*** Number - default is `67108864`, 64 KiB.
@@ -36,7 +36,7 @@ function noop() {
36
36
  // noop
37
37
  }
38
38
  const debug = (0, node_util_1.debuglog)('urllib:HttpClient');
39
- exports.VERSION = '4.6.10';
39
+ exports.VERSION = '4.6.11';
40
40
  // 'node-urllib/4.0.0 Node.js/18.19.0 (darwin; x64)'
41
41
  exports.HEADER_USER_AGENT = `node-urllib/${exports.VERSION} Node.js/${process.version.substring(1)} (${process.platform}; ${process.arch})`;
42
42
  function getFileName(stream) {
@@ -100,7 +100,7 @@ export type RequestOptions = {
100
100
  formatRedirectUrl?: (a: any, b: any) => void;
101
101
  /** Before request hook, you can change every thing here. */
102
102
  beforeRequest?: (...args: any[]) => void;
103
- /** Accept `gzip, br` response content and auto decode it, default is `true`. */
103
+ /** Accept `gzip, br` response content and auto decode it, default is `false`. */
104
104
  compressed?: boolean;
105
105
  /**
106
106
  * @deprecated
@@ -30,7 +30,7 @@ function noop() {
30
30
  // noop
31
31
  }
32
32
  const debug = debuglog('urllib:HttpClient');
33
- export const VERSION = '4.6.10';
33
+ export const VERSION = '4.6.11';
34
34
  // 'node-urllib/4.0.0 Node.js/18.19.0 (darwin; x64)'
35
35
  export const HEADER_USER_AGENT = `node-urllib/${VERSION} Node.js/${process.version.substring(1)} (${process.platform}; ${process.arch})`;
36
36
  function getFileName(stream) {
@@ -100,7 +100,7 @@ export type RequestOptions = {
100
100
  formatRedirectUrl?: (a: any, b: any) => void;
101
101
  /** Before request hook, you can change every thing here. */
102
102
  beforeRequest?: (...args: any[]) => void;
103
- /** Accept `gzip, br` response content and auto decode it, default is `true`. */
103
+ /** Accept `gzip, br` response content and auto decode it, default is `false`. */
104
104
  compressed?: boolean;
105
105
  /**
106
106
  * @deprecated
package/dist/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "urllib",
3
- "version": "4.6.10"
3
+ "version": "4.6.11"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "urllib",
3
- "version": "4.6.10",
3
+ "version": "4.6.11",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },
package/src/Request.ts CHANGED
@@ -105,7 +105,7 @@ export type RequestOptions = {
105
105
  formatRedirectUrl?: (a: any, b: any) => void;
106
106
  /** Before request hook, you can change every thing here. */
107
107
  beforeRequest?: (...args: any[]) => void;
108
- /** Accept `gzip, br` response content and auto decode it, default is `true`. */
108
+ /** Accept `gzip, br` response content and auto decode it, default is `false`. */
109
109
  compressed?: boolean;
110
110
  /**
111
111
  * @deprecated