urllib 2.39.0 → 2.40.0
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 +12 -0
- package/lib/index.d.ts +3 -2
- package/package.json +2 -2
package/History.md
CHANGED
@@ -1,4 +1,16 @@
|
|
1
1
|
|
2
|
+
2.40.0 / 2022-10-22
|
3
|
+
==================
|
4
|
+
|
5
|
+
**features**
|
6
|
+
* [[`59b8cad`](http://github.com/node-modules/urllib/commit/59b8cad667ff856552647cb20edec6ad60fa4d50)] - 👌 IMPROVE: Upgrade digest-header to v1 (#415) (fengmk2 <<fengmk2@gmail.com>>)
|
7
|
+
|
8
|
+
2.39.1 / 2022-10-09
|
9
|
+
==================
|
10
|
+
|
11
|
+
**fixes**
|
12
|
+
* [[`01b54a9`](http://github.com/node-modules/urllib/commit/01b54a9fa48bdd745798fd06ad32ed41f22815d3)] - 🐛 FIX: support old ts version (fengmk2 <<fengmk2@gmail.com>>)
|
13
|
+
|
2
14
|
2.39.0 / 2022-10-09
|
3
15
|
==================
|
4
16
|
|
package/lib/index.d.ts
CHANGED
@@ -7,12 +7,13 @@ import { EventEmitter } from 'events';
|
|
7
7
|
import { LookupFunction } from 'net';
|
8
8
|
|
9
9
|
export { IncomingHttpHeaders, OutgoingHttpHeaders };
|
10
|
-
export type HttpMethod = "GET" | "POST" | "DELETE" | "PUT" | "HEAD" | "OPTIONS" | "PATCH" | "TRACE" | "CONNECT"
|
10
|
+
export type HttpMethod = "GET" | "POST" | "DELETE" | "PUT" | "HEAD" | "OPTIONS" | "PATCH" | "TRACE" | "CONNECT"
|
11
|
+
| "get" | "post" | "delete" | "put" | "head" | "options" | "patch" | "trace" | "connect";
|
11
12
|
|
12
13
|
export as namespace urllib;
|
13
14
|
export interface RequestOptions {
|
14
15
|
/** Request method, defaults to GET. Could be GET, POST, DELETE or PUT. Alias 'type'. */
|
15
|
-
method?: HttpMethod
|
16
|
+
method?: HttpMethod;
|
16
17
|
/** Alias method */
|
17
18
|
type?: HttpMethod;
|
18
19
|
/** Data to be sent. Will be stringify automatically. */
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "urllib",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.40.0",
|
4
4
|
"publishConfig": {
|
5
5
|
"tag": "latest-2"
|
6
6
|
},
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"content-type": "^1.0.2",
|
41
41
|
"debug": "^2.6.9",
|
42
42
|
"default-user-agent": "^1.0.0",
|
43
|
-
"digest-header": "^0.0
|
43
|
+
"digest-header": "^1.0.0",
|
44
44
|
"ee-first": "~1.1.1",
|
45
45
|
"formstream": "^1.1.0",
|
46
46
|
"humanize-ms": "^1.2.0",
|