urllib 2.37.3 → 2.37.4
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/History.md +9 -0
- package/README.md +1 -1
- package/package.json +2 -2
package/History.md
CHANGED
@@ -1,4 +1,13 @@
|
|
1
1
|
|
2
|
+
2.37.4 / 2021-09-07
|
3
|
+
==================
|
4
|
+
|
5
|
+
**fixes**
|
6
|
+
* [[`1e6622a`](http://github.com/node-modules/urllib/commit/1e6622a571b3e6f72c5f187a224bddedcbc382cf)] - fix: upgrade proxy-agent to fix the security vulnerability. (#368) (hyj1991 <<yeekwanvong@gmail.com>>)
|
7
|
+
|
8
|
+
**others**
|
9
|
+
* [[`ae27498`](http://github.com/node-modules/urllib/commit/ae2749811e40262da8bf2641599b066344fa6b05)] - docs: notes contentType's value (#349) (changzhi <<changzhiwin@gmail.com>>)
|
10
|
+
|
2
11
|
2.37.3 / 2021-07-05
|
3
12
|
==================
|
4
13
|
|
package/README.md
CHANGED
@@ -125,7 +125,7 @@ httpclient.request('http://nodejs.org', function (err, body) {
|
|
125
125
|
- ***writeStream*** [stream.Writable](http://nodejs.org/api/stream.html#stream_class_stream_writable) - A writable stream to be piped by the response stream. Responding data will be write to this stream and `callback` will be called with `data` set `null` after finished writing.
|
126
126
|
- ***files*** {Array<ReadStream|Buffer|String> | Object | ReadStream | Buffer | String - The files will send with `multipart/form-data` format, base on `formstream`. If `method` not set, will use `POST` method by default.
|
127
127
|
- ***consumeWriteStream*** [true] - consume the writeStream, invoke the callback after writeStream close.
|
128
|
-
- ***contentType*** String - Type of request data. Could be `json
|
128
|
+
- ***contentType*** String - Type of request data. Could be `json` (**Notes**: not use `application/json` here). If it's `json`, will auto set `Content-Type: application/json` header.
|
129
129
|
- ***nestedQuerystring*** Boolean - urllib default use querystring to stringify form data which don't support nested object, will use [qs](https://github.com/ljharb/qs) instead of querystring to support nested object by set this option to true.
|
130
130
|
- ***dataType*** String - Type of response data. Could be `text` or `json`. If it's `text`, the `callback`ed `data` would be a String. If it's `json`, the `data` of callback would be a parsed JSON Object and will auto set `Accept: application/json` header. Default `callback`ed `data` would be a `Buffer`.
|
131
131
|
- **fixJSONCtlChars** Boolean - Fix the control characters (U+0000 through U+001F) before JSON parse response. Default is `false`.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "urllib",
|
3
|
-
"version": "2.37.
|
3
|
+
"version": "2.37.4",
|
4
4
|
"description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more.",
|
5
5
|
"keywords": [
|
6
6
|
"urllib",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"humanize-ms": "^1.2.0",
|
43
43
|
"iconv-lite": "^0.4.15",
|
44
44
|
"ip": "^1.1.5",
|
45
|
-
"proxy-agent": "^
|
45
|
+
"proxy-agent": "^5.0.0",
|
46
46
|
"pump": "^3.0.0",
|
47
47
|
"qs": "^6.4.0",
|
48
48
|
"statuses": "^1.3.1",
|