nock 14.0.11 → 14.0.13
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/lib/common.js +2 -0
- package/package.json +2 -2
- package/types/index.d.ts +6 -1
package/lib/common.js
CHANGED
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"testing",
|
|
8
8
|
"isolation"
|
|
9
9
|
],
|
|
10
|
-
"version": "14.0.
|
|
10
|
+
"version": "14.0.13",
|
|
11
11
|
"author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"propagate": "^2.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@definitelytyped/dtslint": "^0.
|
|
30
|
+
"@definitelytyped/dtslint": "^0.2.39",
|
|
31
31
|
"@sinonjs/fake-timers": "^11.2.2",
|
|
32
32
|
"assert-rejects": "^1.0.0",
|
|
33
33
|
"chai": "^4.1.2",
|
package/types/index.d.ts
CHANGED
|
@@ -246,7 +246,12 @@ declare namespace nock {
|
|
|
246
246
|
body?: RequestBodyMatcher
|
|
247
247
|
reqheaders?: Record<string, RequestHeaderMatcher>
|
|
248
248
|
response?: ReplyBody
|
|
249
|
-
|
|
249
|
+
/**
|
|
250
|
+
* Response headers as recorded (object form). Values are strings; multi-value
|
|
251
|
+
* headers (e.g. set-cookie) may be string[] when definitions are loaded from
|
|
252
|
+
* fixtures or hand-written. This is what define() uses.
|
|
253
|
+
*/
|
|
254
|
+
rawHeaders?: Record<string, string | string[]>
|
|
250
255
|
options?: Options
|
|
251
256
|
}
|
|
252
257
|
|