nock 13.3.6 → 13.3.8

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/types/index.d.ts +3 -1
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "testing",
8
8
  "isolation"
9
9
  ],
10
- "version": "13.3.6",
10
+ "version": "13.3.8",
11
11
  "author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
12
12
  "repository": {
13
13
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@definitelytyped/dtslint": "^0.0.163",
31
- "@sinonjs/fake-timers": "^10.0.0",
31
+ "@sinonjs/fake-timers": "^11.2.2",
32
32
  "assert-rejects": "^1.0.0",
33
33
  "chai": "^4.1.2",
34
34
  "dirty-chai": "^2.0.1",
@@ -59,7 +59,7 @@
59
59
  "lint:js": "eslint --cache --cache-location './.cache/eslint' '**/*.js'",
60
60
  "lint:js:fix": "eslint --cache --cache-location './.cache/eslint' --fix '**/*.js'",
61
61
  "lint:ts": "dtslint --expectOnly types",
62
- "test": "nyc --reporter=lcov --reporter=text mocha tests",
62
+ "test": "nyc --reporter=lcov --reporter=text mocha --recursive tests",
63
63
  "test:coverage": "open coverage/lcov-report/index.html"
64
64
  },
65
65
  "license": "MIT",
package/types/index.d.ts CHANGED
@@ -118,7 +118,9 @@ declare namespace nock {
118
118
  filteringPath(regex: RegExp, replace: string): this
119
119
  filteringPath(fn: (path: string) => string): this
120
120
  filteringRequestBody(regex: RegExp, replace: string): this
121
- filteringRequestBody(fn: (body: string) => string): this
121
+ filteringRequestBody(
122
+ fn: (body: string, recordedBody: string) => string,
123
+ ): this
122
124
 
123
125
  persist(flag?: boolean): this
124
126
  replyContentLength(): this