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 +1 -1
- package/dist/commonjs/HttpClient.js +1 -1
- package/dist/commonjs/Request.d.ts +1 -1
- package/dist/esm/HttpClient.js +1 -1
- package/dist/esm/Request.d.ts +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/src/Request.ts +1 -1
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 `
|
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.
|
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 `
|
103
|
+
/** Accept `gzip, br` response content and auto decode it, default is `false`. */
|
104
104
|
compressed?: boolean;
|
105
105
|
/**
|
106
106
|
* @deprecated
|
package/dist/esm/HttpClient.js
CHANGED
@@ -30,7 +30,7 @@ function noop() {
|
|
30
30
|
// noop
|
31
31
|
}
|
32
32
|
const debug = debuglog('urllib:HttpClient');
|
33
|
-
export const VERSION = '4.6.
|
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) {
|
package/dist/esm/Request.d.ts
CHANGED
@@ -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 `
|
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
package/package.json
CHANGED
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 `
|
108
|
+
/** Accept `gzip, br` response content and auto decode it, default is `false`. */
|
109
109
|
compressed?: boolean;
|
110
110
|
/**
|
111
111
|
* @deprecated
|