nock 9.0.8 → 9.0.9
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/.nyc_output/0cfc9aa0c50eae765941a555f8482a68.json +1 -0
- package/.nyc_output/0ecdf591be62cb4571ebf9c4df59da37.json +1 -0
- package/.nyc_output/1df5c7adcf4885ae588bf8be3e508036.json +1 -0
- package/.nyc_output/2db2fc1c81ebebec5066673d7751e720.json +1 -0
- package/.nyc_output/2f9ccd224c0ce9793bb47cb95818e613.json +1 -0
- package/.nyc_output/302922273ee8b73467d3d8f160d41764.json +1 -0
- package/.nyc_output/402abf6bfd9ba80ba17d063c7aff8c5c.json +1 -0
- package/.nyc_output/4192a6afdd7ca9d506a9007e60f313c6.json +1 -0
- package/.nyc_output/4db6e0367725f3697aff401f14e83d8e.json +1 -0
- package/.nyc_output/51727eb8342f2b80aad8f5cf58247bb8.json +1 -0
- package/.nyc_output/53edcbd3a01e01726702fd59ad18528c.json +1 -0
- package/.nyc_output/{85b573cd72b2a67856800ef51b338c48.json → 58b1c38b2f1be3dcecbca9bab068a18f.json} +1 -1
- package/.nyc_output/5c23da3e51b1f6cb82b2337ac4b79674.json +1 -0
- package/.nyc_output/{e9834c64db2599dc6286e89396122776.json → 6e39c409325db21e0a6645f24d62ea78.json} +0 -0
- package/.nyc_output/71230f985baca9b3c3a5c96f7db17ce3.json +1 -0
- package/.nyc_output/75853f8bad86af123b6ab837115f9154.json +1 -0
- package/.nyc_output/79b9684388f3f8d578c0960b2cc38567.json +1 -0
- package/.nyc_output/83796d88fa4f05b5616674d83b9ea40a.json +1 -0
- package/.nyc_output/9d996c278cdb585d083b6f2cd90514a7.json +1 -0
- package/.nyc_output/a5f208db2341f743b5cd29d3fb47f97c.json +1 -0
- package/.nyc_output/ae6685d46041b4ede6cc2c43ca0e6021.json +1 -0
- package/.nyc_output/b0199893e52a27aa0d6c7ffdc52ae9d1.json +1 -0
- package/.nyc_output/d5d71e5d97fce722c611ef2e65170947.json +1 -0
- package/.nyc_output/d91d008aa4d6431aa91127a791303d24.json +1 -0
- package/.nyc_output/deceb761e61a0f642f51a304fae33d8a.json +1 -0
- package/.nyc_output/dfceb102965a150e5812732c638882ef.json +1 -0
- package/.nyc_output/e0656fe48b57b517e2c979a8a1578639.json +1 -0
- package/.nyc_output/{0e751ff9ea7264d2d57783ab4b83e0f2.json → e59e4c5a4d398d7ff45be9f48a01a932.json} +0 -0
- package/.nyc_output/fecdd97de458efb187320ed600a1253c.json +1 -0
- package/CHANGELOG.md +23 -16
- package/lib/request_overrider.js +2 -4
- package/node_modules/changelog/package.json +1 -1
- package/package.json +2 -2
- package/tests/browserify-public/browserify-bundle.js +2 -4
- package/tests/test_intercept.js +1 -1
- package/.nyc_output/11768effb3499f1a3b4fe690433a8763.json +0 -1
- package/.nyc_output/22881eea5594e749ab2ba5e9ad15e526.json +0 -1
- package/.nyc_output/2cc52f8bff66c1eb2db96d1a64d085cc.json +0 -1
- package/.nyc_output/40011f4152d8d83bf82bb10807b00c02.json +0 -1
- package/.nyc_output/40b92472404885a75fb1c0a5b48d06ce.json +0 -1
- package/.nyc_output/41d62786330670177c462ab58617ae5b.json +0 -1
- package/.nyc_output/44189120e1353b276ca67003a61ea2c8.json +0 -1
- package/.nyc_output/45c3396ebe8994f980d883340c36da6f.json +0 -1
- package/.nyc_output/48e05a45b1d1f5615be0b36561cc3f28.json +0 -1
- package/.nyc_output/4a3853b8360f1ab3c7ecac20ef57f6ba.json +0 -1
- package/.nyc_output/5c7b3ffa97d2296452da2714373c7ac0.json +0 -1
- package/.nyc_output/82a0ffbd82f81138f92b18056ef96a89.json +0 -1
- package/.nyc_output/8a776f51f8abf8b2888c1f2eadae0318.json +0 -1
- package/.nyc_output/8fee482be99c768b70b3aa35128774cf.json +0 -1
- package/.nyc_output/92c98a91ec45a763a3d1997381ccea14.json +0 -1
- package/.nyc_output/950c163c77308cae9442b6917d9f42a8.json +0 -1
- package/.nyc_output/a20549892c2d00e90056b9340ac66069.json +0 -1
- package/.nyc_output/a7b25cd1f7ca57500fd1edeb22dc820f.json +0 -1
- package/.nyc_output/b55f27e9a958ce01812e9750425b1aae.json +0 -1
- package/.nyc_output/be109dfa0402463161ecc598aec533a8.json +0 -1
- package/.nyc_output/c2b4a643ee7b4814fa287acd3f4b3dbb.json +0 -1
- package/.nyc_output/cdc6274fa2e2020733f05f570419eff4.json +0 -1
- package/.nyc_output/eb3f7534cb646b6ac33bbda677788231.json +0 -1
- package/.nyc_output/f1c2ce5de9e86908748c411935095704.json +0 -1
- package/.nyc_output/f2b36b21871401f627aaec0c7c5434df.json +0 -1
- package/.nyc_output/fe0a4584cb35021925e400480d3ec654.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
9.0.8 / 2017-02-27
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
* 9.0.8: Fix for [#754](https://github.com/node-nock/nock/issues/754)
|
|
5
|
+
* Merge pull request [#836](https://github.com/node-nock/nock/issues/836) from node-nock/greenkeeper-superagent-3.5.0
|
|
6
|
+
Update superagent to version 3.5.0 🚀
|
|
7
|
+
* Merge pull request [#802](https://github.com/node-nock/nock/issues/802) from aleung/fix-754
|
|
8
|
+
Fix request timeout no working
|
|
9
|
+
|
|
10
|
+
9.0.7 / 2017-02-23
|
|
11
|
+
==================
|
|
12
|
+
|
|
13
|
+
* Changelog
|
|
14
|
+
* 9.0.7: Fix for [#610](https://github.com/node-nock/nock/issues/610)
|
|
15
|
+
* Merge pull request [#829](https://github.com/node-nock/nock/issues/829) from yodeyer/fixQs
|
|
16
|
+
Fix interceptor if query have no query strings
|
|
17
|
+
* chore(package): update superagent to version 3.5.0
|
|
18
|
+
https://greenkeeper.io/
|
|
19
|
+
* Test against request 2.79.0, with which timeout issue occured.
|
|
20
|
+
* Add Visual Studio Code folder into gitignore
|
|
21
|
+
* Update the failed test case
|
|
22
|
+
* Fix https://github.com/node-nock/nock/issues/754
|
|
23
|
+
|
|
1
24
|
9.0.6 / 2017-02-13
|
|
2
25
|
==================
|
|
3
26
|
|
|
@@ -153,19 +176,3 @@
|
|
|
153
176
|
* Make pendingMocks and isDone behave consistently
|
|
154
177
|
* Removed coverage folder from npm
|
|
155
178
|
* Update PendingMocks when an interceptor is removed
|
|
156
|
-
* Update CHANGELOG
|
|
157
|
-
|
|
158
|
-
8.1.0 / 2016-10-10
|
|
159
|
-
==================
|
|
160
|
-
|
|
161
|
-
* 8.1.0
|
|
162
|
-
* Enable harmony mode when running tests
|
|
163
|
-
* Remove duplicated Interceptor.replyWithFile function
|
|
164
|
-
* Merge pull request [#710](https://github.com/node-nock/nock/issues/710) from hugoduraes/master
|
|
165
|
-
Leave rawHeaders case untouched on nock's replies
|
|
166
|
-
* Leave rawHeaders case untouched on nock's replies
|
|
167
|
-
* Re-enable previously skipped tests
|
|
168
|
-
* Merge pull request [#586](https://github.com/node-nock/nock/issues/586) from Elergy/master
|
|
169
|
-
Fix some broken tests
|
|
170
|
-
* Add nodejs v6 to travis config
|
|
171
|
-
* use public TravisCI badge icon, which shows failing tests.
|
package/lib/request_overrider.js
CHANGED
|
@@ -133,7 +133,6 @@ function RequestOverrider(req, options, interceptors, remove, cb) {
|
|
|
133
133
|
};
|
|
134
134
|
|
|
135
135
|
req.socket = response.socket = Socket({ proto: options.proto });
|
|
136
|
-
req.socket.connecting = true;
|
|
137
136
|
|
|
138
137
|
req.write = function(buffer, encoding) {
|
|
139
138
|
debug('write', arguments);
|
|
@@ -195,6 +194,8 @@ function RequestOverrider(req, options, interceptors, remove, cb) {
|
|
|
195
194
|
// emit a fake socket.
|
|
196
195
|
if (event == 'socket') {
|
|
197
196
|
listener.call(req, req.socket);
|
|
197
|
+
req.socket.emit('connect', req.socket);
|
|
198
|
+
req.socket.emit('secureConnect', req.socket);
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
EventEmitter.prototype.on.call(this, event, listener);
|
|
@@ -490,9 +491,6 @@ function RequestOverrider(req, options, interceptors, remove, cb) {
|
|
|
490
491
|
|
|
491
492
|
debug('emitting response');
|
|
492
493
|
|
|
493
|
-
req.socket.emit('connect', req.socket);
|
|
494
|
-
req.socket.emit('secureConnect', req.socket);
|
|
495
|
-
|
|
496
494
|
if (typeof cb === 'function') {
|
|
497
495
|
debug('callback with response');
|
|
498
496
|
cb(response);
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"_requiredBy": [
|
|
29
29
|
"#DEV:/"
|
|
30
30
|
],
|
|
31
|
-
"_resolved": "https://
|
|
31
|
+
"_resolved": "https://registry.npmjs.org/changelog/-/changelog-1.0.7.tgz",
|
|
32
32
|
"_shasum": "e95de6dc14082948bd49618304e9c9e854e821e5",
|
|
33
33
|
"_shrinkwrap": null,
|
|
34
34
|
"_spec": "changelog@^1.0.7",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"testing",
|
|
8
8
|
"isolation"
|
|
9
9
|
],
|
|
10
|
-
"version": "9.0.
|
|
10
|
+
"version": "9.0.9",
|
|
11
11
|
"author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
|
|
12
12
|
"contributors": [
|
|
13
13
|
{
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"node-static": "^0.7.7",
|
|
192
192
|
"nyc": "^10.0.0",
|
|
193
193
|
"pre-commit": "1.1.2",
|
|
194
|
-
"request": "2.
|
|
194
|
+
"request": "2.71.0",
|
|
195
195
|
"request-promise": "^2.0.1",
|
|
196
196
|
"restify": "^4.0.4",
|
|
197
197
|
"restler": "3.4.0",
|
|
@@ -2355,7 +2355,6 @@ function RequestOverrider(req, options, interceptors, remove, cb) {
|
|
|
2355
2355
|
};
|
|
2356
2356
|
|
|
2357
2357
|
req.socket = response.socket = Socket({ proto: options.proto });
|
|
2358
|
-
req.socket.connecting = true;
|
|
2359
2358
|
|
|
2360
2359
|
req.write = function(buffer, encoding) {
|
|
2361
2360
|
debug('write', arguments);
|
|
@@ -2417,6 +2416,8 @@ function RequestOverrider(req, options, interceptors, remove, cb) {
|
|
|
2417
2416
|
// emit a fake socket.
|
|
2418
2417
|
if (event == 'socket') {
|
|
2419
2418
|
listener.call(req, req.socket);
|
|
2419
|
+
req.socket.emit('connect', req.socket);
|
|
2420
|
+
req.socket.emit('secureConnect', req.socket);
|
|
2420
2421
|
}
|
|
2421
2422
|
|
|
2422
2423
|
EventEmitter.prototype.on.call(this, event, listener);
|
|
@@ -2712,9 +2713,6 @@ function RequestOverrider(req, options, interceptors, remove, cb) {
|
|
|
2712
2713
|
|
|
2713
2714
|
debug('emitting response');
|
|
2714
2715
|
|
|
2715
|
-
req.socket.emit('connect', req.socket);
|
|
2716
|
-
req.socket.emit('secureConnect', req.socket);
|
|
2717
|
-
|
|
2718
2716
|
if (typeof cb === 'function') {
|
|
2719
2717
|
debug('callback with response');
|
|
2720
2718
|
cb(response);
|
package/tests/test_intercept.js
CHANGED
|
@@ -4234,12 +4234,12 @@ test('socket emits connect and secureConnect', function(t) {
|
|
|
4234
4234
|
|
|
4235
4235
|
req.on('socket', function(socket) {
|
|
4236
4236
|
socket.once('connect', function() {
|
|
4237
|
+
req.end();
|
|
4237
4238
|
t.ok(true);
|
|
4238
4239
|
});
|
|
4239
4240
|
socket.once('secureConnect', function() {
|
|
4240
4241
|
t.ok(true);
|
|
4241
4242
|
});
|
|
4242
|
-
req.end();
|
|
4243
4243
|
});
|
|
4244
4244
|
|
|
4245
4245
|
req.once('response', function(res) {
|