nock 7.6.0 → 8.0.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/CHANGELOG.md +45 -33
- package/README.md +1 -1
- package/coverage/coverage.json +1 -1
- package/coverage/lcov-report/base.css +143 -113
- package/coverage/lcov-report/index.html +55 -35
- package/coverage/lcov-report/nock/index.html +46 -26
- package/coverage/lcov-report/nock/index.js.html +45 -25
- package/coverage/lcov-report/nock/lib/back.js.html +144 -121
- package/coverage/lcov-report/nock/lib/common.js.html +185 -165
- package/coverage/lcov-report/nock/lib/delayed_body.js.html +61 -41
- package/coverage/lcov-report/nock/lib/global_emitter.js.html +42 -22
- package/coverage/lcov-report/nock/lib/index.html +111 -91
- package/coverage/lcov-report/nock/lib/intercept.js.html +219 -244
- package/coverage/lcov-report/nock/lib/interceptor.js.html +309 -259
- package/coverage/lcov-report/nock/lib/match_body.js.html +76 -56
- package/coverage/lcov-report/nock/lib/mixin.js.html +50 -30
- package/coverage/lcov-report/nock/lib/request_overrider.js.html +285 -265
- package/coverage/lcov-report/nock/lib/scope.js.html +204 -184
- package/coverage/lcov-report/nock/lib/socket.js.html +89 -54
- package/coverage/lcov-report/sorter.js +4 -2
- package/coverage/lcov.info +1225 -1213
- package/lib/common.js +2 -2
- package/lib/intercept.js +8 -23
- package/lib/request_overrider.js +1 -1
- package/lib/socket.js +6 -1
- package/package.json +14 -13
- package/tests/browserify-public/browserify-bundle.js +26754 -23296
- package/tests/test_back.js +14 -26
- package/tests/test_back_2.js +10 -5
- package/tests/test_events.js +19 -6
- package/tests/test_intercept.js +168 -146
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
7.7.2 / 2016-03-25
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
* v7.7.2
|
|
5
|
+
* v7.7.1
|
|
6
|
+
* Merge branch 'master' of github.com:node-nock/nock
|
|
7
|
+
|
|
8
|
+
7.7.0 / 2016-03-25
|
|
9
|
+
==================
|
|
10
|
+
|
|
11
|
+
* v7.7.0
|
|
12
|
+
* Merge pull request [#514](https://github.com/node-nock/nock/issues/514) from kevinburkeshyp/fix-req-no-match
|
|
13
|
+
Fix nock.emitter.on('no match') undefined argument
|
|
14
|
+
* Merge pull request [#512](https://github.com/node-nock/nock/issues/512) from kevinburkeshyp/fix-typo
|
|
15
|
+
Fix typo in tests
|
|
16
|
+
* browserify bundle update
|
|
17
|
+
* request abort destroys socket. fixes [#511](https://github.com/node-nock/nock/issues/511)
|
|
18
|
+
* Fix nock.emitter.on('no match') undefined argument
|
|
19
|
+
Previously if you disabled net connect via `nock.disableNetConnect`,
|
|
20
|
+
`nock.emitter.on('no match')` would return undefined for its first argument,
|
|
21
|
+
since `req` is never initialized. Replaces `req` with `options`, which is
|
|
22
|
+
present and set to a Url instance.
|
|
23
|
+
Fixes the global nock.emitter.on event listener to remove all event listeners
|
|
24
|
+
at the end of each test, otherwise an event listener registered in one test
|
|
25
|
+
might bleed over into the next.
|
|
26
|
+
(This might not be the right fix, I'm happy to change as necessary).
|
|
27
|
+
* Fix typo in tests
|
|
28
|
+
|
|
29
|
+
7.6.0 / 2016-03-25
|
|
30
|
+
==================
|
|
31
|
+
|
|
32
|
+
* v7.6.0
|
|
33
|
+
* Merge pull request [#509](https://github.com/node-nock/nock/issues/509) from mihar/patch-2
|
|
34
|
+
Update README.md
|
|
35
|
+
* Merge pull request [#510](https://github.com/node-nock/nock/issues/510) from RedCattleWealth/master
|
|
36
|
+
query accept a function to determine if the query is matched
|
|
37
|
+
* update README
|
|
38
|
+
* query accept a function to determin if the query is matched
|
|
39
|
+
for some case object compare is not enough
|
|
40
|
+
* Update README.md
|
|
41
|
+
* Merge pull request [#501](https://github.com/node-nock/nock/issues/501) from reconbot/patch-1
|
|
42
|
+
Make the source of NetConnectNotAllowedError clear
|
|
43
|
+
* changelog update
|
|
44
|
+
|
|
1
45
|
7.5.0 / 2016-03-20
|
|
2
46
|
==================
|
|
3
47
|
|
|
@@ -7,6 +51,7 @@
|
|
|
7
51
|
* Merge branch 'satazor-request-promise'
|
|
8
52
|
* Add ability to pass options to recorder from nodeback.
|
|
9
53
|
* Do not automatically consume responses, respect original consumer.
|
|
54
|
+
* Make the source of NetConnectNotAllowedError clear
|
|
10
55
|
* Merge pull request [#480](https://github.com/node-nock/nock/issues/480) from JemiloII/patch-1
|
|
11
56
|
Use lodash size function
|
|
12
57
|
* coveralls badge url
|
|
@@ -142,36 +187,3 @@
|
|
|
142
187
|
==================
|
|
143
188
|
|
|
144
189
|
* v5.5.0
|
|
145
|
-
* Merge branch 'BinChang-parse_json_content'
|
|
146
|
-
* clean up tests
|
|
147
|
-
* parse requestBody if it is JSON content.
|
|
148
|
-
|
|
149
|
-
5.4.0 / 2016-01-18
|
|
150
|
-
==================
|
|
151
|
-
|
|
152
|
-
* v5.4.0
|
|
153
|
-
* callback reply with array can now contain headers. fixes [#449](https://github.com/node-nock/nock/issues/449)
|
|
154
|
-
* skip test if node 0.10
|
|
155
|
-
|
|
156
|
-
5.3.1 / 2016-01-08
|
|
157
|
-
==================
|
|
158
|
-
|
|
159
|
-
* browserify bundle update
|
|
160
|
-
* Merge branch 'master' of github.com:pgte/nock
|
|
161
|
-
|
|
162
|
-
5.3.0 / 2016-01-08
|
|
163
|
-
==================
|
|
164
|
-
|
|
165
|
-
* v5.3.0
|
|
166
|
-
* buffer may not be an array
|
|
167
|
-
* Merge pull request [#445](https://github.com/node-nock/nock/issues/445) from pgte/emit-events
|
|
168
|
-
no match emitted globally. fixes [#442](https://github.com/node-nock/nock/issues/442)
|
|
169
|
-
* no match emitted globally. fixes [#442](https://github.com/node-nock/nock/issues/442)
|
|
170
|
-
* Merge pull request [#443](https://github.com/node-nock/nock/issues/443) from pgte/emit-events
|
|
171
|
-
emit request and replied events
|
|
172
|
-
* fixed test name
|
|
173
|
-
* added event tests to test list
|
|
174
|
-
* documented events
|
|
175
|
-
* emit request and replied events
|
|
176
|
-
* corrected test name
|
|
177
|
-
* removed node test event sequence on abort, it's too inconsistent
|
package/README.md
CHANGED
|
@@ -302,7 +302,7 @@ var scope = nock('http://www.google.com')
|
|
|
302
302
|
});
|
|
303
303
|
```
|
|
304
304
|
|
|
305
|
-
An
|
|
305
|
+
An asynchronous function that gets an error-first callback as last argument also works:
|
|
306
306
|
|
|
307
307
|
```js
|
|
308
308
|
var scope = nock('http://www.google.com')
|