nock 12.0.1 → 12.0.2

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/README.md CHANGED
@@ -113,15 +113,17 @@ The latest version of nock supports all currently maintained Node versions, see
113
113
 
114
114
  Here is a list of past nock versions with respective node version support
115
115
 
116
- | node | nock |
117
- | ---- | --------- |
118
- | 0.10 | up to 8.x |
119
- | 0.11 | up to 8.x |
120
- | 0.12 | up to 8.x |
121
- | 4 | up to 9.x |
122
- | 5 | up to 8.x |
123
- | 7 | up to 9.x |
124
- | 9 | up to 9.x |
116
+ | node | nock |
117
+ | ---- | ---------- |
118
+ | 0.10 | up to 8.x |
119
+ | 0.11 | up to 8.x |
120
+ | 0.12 | up to 8.x |
121
+ | 4 | up to 9.x |
122
+ | 5 | up to 8.x |
123
+ | 6 | up to 10.x |
124
+ | 7 | up to 9.x |
125
+ | 8 | up to 11.x |
126
+ | 9 | up to 9.x |
125
127
 
126
128
  ## Usage
127
129
 
package/lib/back.js CHANGED
@@ -24,13 +24,6 @@ try {
24
24
  // do nothing, probably in browser
25
25
  }
26
26
 
27
- let mkdirp
28
- try {
29
- mkdirp = require('mkdirp')
30
- } catch (err) {
31
- // do nothing, probably in browser
32
- }
33
-
34
27
  /**
35
28
  * nock the current function with the fixture given
36
29
  *
@@ -176,7 +169,7 @@ const record = {
176
169
  typeof outputs === 'string' ? outputs : JSON.stringify(outputs, null, 4)
177
170
  debug('recorder outputs:', outputs)
178
171
 
179
- mkdirp.sync(path.dirname(fixture))
172
+ fs.mkdirSync(path.dirname(fixture), { recursive: true })
180
173
  fs.writeFileSync(fixture, outputs)
181
174
  }
182
175
  },
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "testing",
8
8
  "isolation"
9
9
  ],
10
- "version": "12.0.1",
10
+ "version": "12.0.2",
11
11
  "author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
12
12
  "repository": {
13
13
  "type": "git",
@@ -25,7 +25,6 @@
25
25
  "debug": "^4.1.0",
26
26
  "json-stringify-safe": "^5.0.1",
27
27
  "lodash": "^4.17.13",
28
- "mkdirp": "^1.0.0",
29
28
  "propagate": "^2.0.0"
30
29
  },
31
30
  "devDependencies": {
package/types/index.d.ts CHANGED
@@ -127,7 +127,6 @@ declare namespace nock {
127
127
 
128
128
  done(): void
129
129
  isDone(): boolean
130
- restore(): void
131
130
  pendingMocks(): string[]
132
131
  activeMocks(): string[]
133
132
  }