@types/node 16.18.54 → 16.18.55
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.
- node v16.18/README.md +1 -1
- node v16.18/http.d.ts +81 -1
- node v16.18/package.json +2 -2
- node v16.18/ts4.8/http.d.ts +81 -1
node v16.18/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 29 Sep 2023 15:35:13 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node v16.18/http.d.ts
CHANGED
|
@@ -112,7 +112,87 @@ declare module "http" {
|
|
|
112
112
|
}
|
|
113
113
|
// outgoing headers allows numbers (as they are converted internally to strings)
|
|
114
114
|
type OutgoingHttpHeader = number | string | string[];
|
|
115
|
-
interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
|
|
115
|
+
interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
|
|
116
|
+
accept?: string | string[] | undefined;
|
|
117
|
+
'accept-charset'?: string | string[] | undefined;
|
|
118
|
+
'accept-encoding'?: string | string[] | undefined;
|
|
119
|
+
'accept-language'?: string | string[] | undefined;
|
|
120
|
+
'accept-ranges'?: string | undefined;
|
|
121
|
+
'access-control-allow-credentials'?: string | undefined;
|
|
122
|
+
'access-control-allow-headers'?: string | undefined;
|
|
123
|
+
'access-control-allow-methods'?: string | undefined;
|
|
124
|
+
'access-control-allow-origin'?: string | undefined;
|
|
125
|
+
'access-control-expose-headers'?: string | undefined;
|
|
126
|
+
'access-control-max-age'?: string | undefined;
|
|
127
|
+
'access-control-request-headers'?: string | undefined;
|
|
128
|
+
'access-control-request-method'?: string | undefined;
|
|
129
|
+
age?: string | undefined;
|
|
130
|
+
allow?: string | undefined;
|
|
131
|
+
authorization?: string | undefined;
|
|
132
|
+
'cache-control'?: string | undefined;
|
|
133
|
+
'cdn-cache-control'?: string | undefined;
|
|
134
|
+
connection?: string | string[] | undefined;
|
|
135
|
+
'content-disposition'?: string | undefined;
|
|
136
|
+
'content-encoding'?: string | undefined;
|
|
137
|
+
'content-language'?: string | undefined;
|
|
138
|
+
'content-length'?: string | number | undefined;
|
|
139
|
+
'content-location'?: string | undefined;
|
|
140
|
+
'content-range'?: string | undefined;
|
|
141
|
+
'content-security-policy'?: string | undefined;
|
|
142
|
+
'content-security-policy-report-only'?: string | undefined;
|
|
143
|
+
cookie?: string | string[] | undefined;
|
|
144
|
+
dav?: string | string[] | undefined;
|
|
145
|
+
dnt?: string | undefined;
|
|
146
|
+
date?: string | undefined;
|
|
147
|
+
etag?: string | undefined;
|
|
148
|
+
expect?: string | undefined;
|
|
149
|
+
expires?: string | undefined;
|
|
150
|
+
forwarded?: string | undefined;
|
|
151
|
+
from?: string | undefined;
|
|
152
|
+
host?: string | undefined;
|
|
153
|
+
'if-match'?: string | undefined;
|
|
154
|
+
'if-modified-since'?: string | undefined;
|
|
155
|
+
'if-none-match'?: string | undefined;
|
|
156
|
+
'if-range'?: string | undefined;
|
|
157
|
+
'if-unmodified-since'?: string | undefined;
|
|
158
|
+
'last-modified'?: string | undefined;
|
|
159
|
+
link?: string | string[] | undefined;
|
|
160
|
+
location?: string | undefined;
|
|
161
|
+
'max-forwards'?: string | undefined;
|
|
162
|
+
origin?: string | undefined;
|
|
163
|
+
prgama?: string | string[] | undefined;
|
|
164
|
+
'proxy-authenticate'?: string | string[] | undefined;
|
|
165
|
+
'proxy-authorization'?: string | undefined;
|
|
166
|
+
'public-key-pins'?: string | undefined;
|
|
167
|
+
'public-key-pins-report-only'?: string | undefined;
|
|
168
|
+
range?: string | undefined;
|
|
169
|
+
referer?: string | undefined;
|
|
170
|
+
'referrer-policy'?: string | undefined;
|
|
171
|
+
refresh?: string | undefined;
|
|
172
|
+
'retry-after'?: string | undefined;
|
|
173
|
+
'sec-websocket-accept'?: string | undefined;
|
|
174
|
+
'sec-websocket-extensions'?: string | string[] | undefined;
|
|
175
|
+
'sec-websocket-key'?: string | undefined;
|
|
176
|
+
'sec-websocket-protocol'?: string | string[] | undefined;
|
|
177
|
+
'sec-websocket-version'?: string | undefined;
|
|
178
|
+
server?: string | undefined;
|
|
179
|
+
'set-cookie'?: string | string[] | undefined;
|
|
180
|
+
'strict-transport-security'?: string | undefined;
|
|
181
|
+
te?: string | undefined;
|
|
182
|
+
trailer?: string | undefined;
|
|
183
|
+
'transfer-encoding'?: string | undefined;
|
|
184
|
+
'user-agent'?: string | undefined;
|
|
185
|
+
upgrade?: string | undefined;
|
|
186
|
+
'upgrade-insecure-requests'?: string | undefined;
|
|
187
|
+
vary?: string | undefined;
|
|
188
|
+
via?: string | string[] | undefined;
|
|
189
|
+
warning?: string | undefined;
|
|
190
|
+
'www-authenticate'?: string | string[] | undefined;
|
|
191
|
+
'x-content-type-options'?: string | undefined;
|
|
192
|
+
'x-dns-prefetch-control'?: string | undefined;
|
|
193
|
+
'x-frame-options'?: string | undefined;
|
|
194
|
+
'x-xss-protection'?: string | undefined;
|
|
195
|
+
}
|
|
116
196
|
interface ClientRequestArgs {
|
|
117
197
|
signal?: AbortSignal | undefined;
|
|
118
198
|
protocol?: string | null | undefined;
|
node v16.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.18.
|
|
3
|
+
"version": "16.18.55",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -227,6 +227,6 @@
|
|
|
227
227
|
},
|
|
228
228
|
"scripts": {},
|
|
229
229
|
"dependencies": {},
|
|
230
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "5bfb542684c3f26af7cca44f82a2a5d72095e95c52e550b9274eb6d225217ad0",
|
|
231
231
|
"typeScriptVersion": "4.5"
|
|
232
232
|
}
|
node v16.18/ts4.8/http.d.ts
CHANGED
|
@@ -111,7 +111,87 @@ declare module "http" {
|
|
|
111
111
|
}
|
|
112
112
|
// outgoing headers allows numbers (as they are converted internally to strings)
|
|
113
113
|
type OutgoingHttpHeader = number | string | string[];
|
|
114
|
-
interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
|
|
114
|
+
interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
|
|
115
|
+
accept?: string | string[] | undefined;
|
|
116
|
+
'accept-charset'?: string | string[] | undefined;
|
|
117
|
+
'accept-encoding'?: string | string[] | undefined;
|
|
118
|
+
'accept-language'?: string | string[] | undefined;
|
|
119
|
+
'accept-ranges'?: string | undefined;
|
|
120
|
+
'access-control-allow-credentials'?: string | undefined;
|
|
121
|
+
'access-control-allow-headers'?: string | undefined;
|
|
122
|
+
'access-control-allow-methods'?: string | undefined;
|
|
123
|
+
'access-control-allow-origin'?: string | undefined;
|
|
124
|
+
'access-control-expose-headers'?: string | undefined;
|
|
125
|
+
'access-control-max-age'?: string | undefined;
|
|
126
|
+
'access-control-request-headers'?: string | undefined;
|
|
127
|
+
'access-control-request-method'?: string | undefined;
|
|
128
|
+
age?: string | undefined;
|
|
129
|
+
allow?: string | undefined;
|
|
130
|
+
authorization?: string | undefined;
|
|
131
|
+
'cache-control'?: string | undefined;
|
|
132
|
+
'cdn-cache-control'?: string | undefined;
|
|
133
|
+
connection?: string | string[] | undefined;
|
|
134
|
+
'content-disposition'?: string | undefined;
|
|
135
|
+
'content-encoding'?: string | undefined;
|
|
136
|
+
'content-language'?: string | undefined;
|
|
137
|
+
'content-length'?: string | number | undefined;
|
|
138
|
+
'content-location'?: string | undefined;
|
|
139
|
+
'content-range'?: string | undefined;
|
|
140
|
+
'content-security-policy'?: string | undefined;
|
|
141
|
+
'content-security-policy-report-only'?: string | undefined;
|
|
142
|
+
cookie?: string | string[] | undefined;
|
|
143
|
+
dav?: string | string[] | undefined;
|
|
144
|
+
dnt?: string | undefined;
|
|
145
|
+
date?: string | undefined;
|
|
146
|
+
etag?: string | undefined;
|
|
147
|
+
expect?: string | undefined;
|
|
148
|
+
expires?: string | undefined;
|
|
149
|
+
forwarded?: string | undefined;
|
|
150
|
+
from?: string | undefined;
|
|
151
|
+
host?: string | undefined;
|
|
152
|
+
'if-match'?: string | undefined;
|
|
153
|
+
'if-modified-since'?: string | undefined;
|
|
154
|
+
'if-none-match'?: string | undefined;
|
|
155
|
+
'if-range'?: string | undefined;
|
|
156
|
+
'if-unmodified-since'?: string | undefined;
|
|
157
|
+
'last-modified'?: string | undefined;
|
|
158
|
+
link?: string | string[] | undefined;
|
|
159
|
+
location?: string | undefined;
|
|
160
|
+
'max-forwards'?: string | undefined;
|
|
161
|
+
origin?: string | undefined;
|
|
162
|
+
prgama?: string | string[] | undefined;
|
|
163
|
+
'proxy-authenticate'?: string | string[] | undefined;
|
|
164
|
+
'proxy-authorization'?: string | undefined;
|
|
165
|
+
'public-key-pins'?: string | undefined;
|
|
166
|
+
'public-key-pins-report-only'?: string | undefined;
|
|
167
|
+
range?: string | undefined;
|
|
168
|
+
referer?: string | undefined;
|
|
169
|
+
'referrer-policy'?: string | undefined;
|
|
170
|
+
refresh?: string | undefined;
|
|
171
|
+
'retry-after'?: string | undefined;
|
|
172
|
+
'sec-websocket-accept'?: string | undefined;
|
|
173
|
+
'sec-websocket-extensions'?: string | string[] | undefined;
|
|
174
|
+
'sec-websocket-key'?: string | undefined;
|
|
175
|
+
'sec-websocket-protocol'?: string | string[] | undefined;
|
|
176
|
+
'sec-websocket-version'?: string | undefined;
|
|
177
|
+
server?: string | undefined;
|
|
178
|
+
'set-cookie'?: string | string[] | undefined;
|
|
179
|
+
'strict-transport-security'?: string | undefined;
|
|
180
|
+
te?: string | undefined;
|
|
181
|
+
trailer?: string | undefined;
|
|
182
|
+
'transfer-encoding'?: string | undefined;
|
|
183
|
+
'user-agent'?: string | undefined;
|
|
184
|
+
upgrade?: string | undefined;
|
|
185
|
+
'upgrade-insecure-requests'?: string | undefined;
|
|
186
|
+
vary?: string | undefined;
|
|
187
|
+
via?: string | string[] | undefined;
|
|
188
|
+
warning?: string | undefined;
|
|
189
|
+
'www-authenticate'?: string | string[] | undefined;
|
|
190
|
+
'x-content-type-options'?: string | undefined;
|
|
191
|
+
'x-dns-prefetch-control'?: string | undefined;
|
|
192
|
+
'x-frame-options'?: string | undefined;
|
|
193
|
+
'x-xss-protection'?: string | undefined;
|
|
194
|
+
}
|
|
115
195
|
interface ClientRequestArgs {
|
|
116
196
|
signal?: AbortSignal | undefined;
|
|
117
197
|
protocol?: string | null | undefined;
|