nock 9.0.24 → 9.0.28
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/CODE_OF_CONDUCT.md +46 -0
- package/README.md +50 -8
- package/lib/common.js +3 -1
- package/lib/interceptor.js +4 -1
- package/lib/match_body.js +5 -1
- package/lib/request_overrider.js +10 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -201
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
6
|
+
|
|
7
|
+
## Our Standards
|
|
8
|
+
|
|
9
|
+
Examples of behavior that contributes to creating a positive environment include:
|
|
10
|
+
|
|
11
|
+
* Using welcoming and inclusive language
|
|
12
|
+
* Being respectful of differing viewpoints and experiences
|
|
13
|
+
* Gracefully accepting constructive criticism
|
|
14
|
+
* Focusing on what is best for the community
|
|
15
|
+
* Showing empathy towards other community members
|
|
16
|
+
|
|
17
|
+
Examples of unacceptable behavior by participants include:
|
|
18
|
+
|
|
19
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
|
20
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
21
|
+
* Public or private harassment
|
|
22
|
+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
|
23
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
24
|
+
|
|
25
|
+
## Our Responsibilities
|
|
26
|
+
|
|
27
|
+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
|
|
28
|
+
|
|
29
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
|
|
30
|
+
|
|
31
|
+
## Scope
|
|
32
|
+
|
|
33
|
+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
|
|
34
|
+
|
|
35
|
+
## Enforcement
|
|
36
|
+
|
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at nock+coc@martynus.net. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
|
|
38
|
+
|
|
39
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
|
|
40
|
+
|
|
41
|
+
## Attribution
|
|
42
|
+
|
|
43
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
|
|
44
|
+
|
|
45
|
+
[homepage]: http://contributor-covenant.org
|
|
46
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
package/README.md
CHANGED
|
@@ -56,8 +56,10 @@ For instance, if a module performs HTTP requests to a CouchDB server or makes HT
|
|
|
56
56
|
* [.persist()](#persist)
|
|
57
57
|
* [.pendingMocks()](#pendingmocks)
|
|
58
58
|
* [.activeMocks()](#activemocks)
|
|
59
|
+
* [.isActive()](#isactive)
|
|
59
60
|
- [Logging](#logging)
|
|
60
61
|
- [Restoring](#restoring)
|
|
62
|
+
- [Activating](#activating)
|
|
61
63
|
- [Turning Nock Off (experimental!)](#turning-nock-off-experimental)
|
|
62
64
|
- [Enable/Disable real HTTP request](#enabledisable-real-http-request)
|
|
63
65
|
- [Recording](#recording)
|
|
@@ -78,7 +80,6 @@ For instance, if a module performs HTTP requests to a CouchDB server or makes HT
|
|
|
78
80
|
- [Debugging](#debugging)
|
|
79
81
|
- [PROTIP](#protip)
|
|
80
82
|
- [Contributing](#contributing)
|
|
81
|
-
* [Generate Changelog](#generate-changelog)
|
|
82
83
|
* [Generate README TOC](#generate-readme-toc)
|
|
83
84
|
* [Running tests](#running-tests)
|
|
84
85
|
+ [Airplane mode](#airplane-mode)
|
|
@@ -957,6 +958,17 @@ It is also available in the global scope:
|
|
|
957
958
|
console.error('active mocks: %j', nock.activeMocks());
|
|
958
959
|
```
|
|
959
960
|
|
|
961
|
+
## .isActive()
|
|
962
|
+
|
|
963
|
+
Your tests may sometimes want to deactivate the nock interceptor.
|
|
964
|
+
Once deactivated, nock needs to be re-activated to work.
|
|
965
|
+
You can check if nock interceptor is active or not by using `nock.isActive()`.
|
|
966
|
+
Sample:
|
|
967
|
+
|
|
968
|
+
```js
|
|
969
|
+
if (!nock.isActive()) nock.activate()
|
|
970
|
+
```
|
|
971
|
+
|
|
960
972
|
# Logging
|
|
961
973
|
|
|
962
974
|
Nock can log matches if you pass in a log function like this:
|
|
@@ -974,7 +986,19 @@ You can restore the HTTP interceptor to the normal unmocked behaviour by calling
|
|
|
974
986
|
```js
|
|
975
987
|
nock.restore();
|
|
976
988
|
```
|
|
977
|
-
**note**: restore does not clear the interceptor list. Use [nock.cleanAll()](#cleanall) if you expect the interceptor list to be empty.
|
|
989
|
+
**note 1**: restore does not clear the interceptor list. Use [nock.cleanAll()](#cleanall) if you expect the interceptor list to be empty.
|
|
990
|
+
|
|
991
|
+
**note 2**: restore will also remove the http interceptor itself. You need to run [nock.activate()](#activating) to re-activate the http interceptor. Without re-activation, nock will not intercept any calls.
|
|
992
|
+
|
|
993
|
+
# Activating
|
|
994
|
+
|
|
995
|
+
Only for cases where nock has been deactivated using [nock.restore()](#restoring), you can reactivate the HTTP interceptor to start intercepting HTTP calls using:
|
|
996
|
+
|
|
997
|
+
```js
|
|
998
|
+
nock.activate();
|
|
999
|
+
```
|
|
1000
|
+
|
|
1001
|
+
**note**: To check if nock HTTP interceptor is active or deactive, use [nock.isActive()](#isactive).
|
|
978
1002
|
|
|
979
1003
|
# Turning Nock Off (experimental!)
|
|
980
1004
|
|
|
@@ -988,7 +1012,7 @@ $ NOCK_OFF=true node my_test.js
|
|
|
988
1012
|
|
|
989
1013
|
# Enable/Disable real HTTP request
|
|
990
1014
|
|
|
991
|
-
By default, any requests made to a host that is not mocked will be executed normally. If you want to block these requests, nock allows you to do so.
|
|
1015
|
+
By default, any requests made to a host that is not mocked will be executed normally. If you want to block these requests, nock allows you to do so.
|
|
992
1016
|
|
|
993
1017
|
For disabling real http requests.
|
|
994
1018
|
|
|
@@ -1062,6 +1086,8 @@ nock.recorder.rec();
|
|
|
1062
1086
|
|
|
1063
1087
|
Recording relies on intercepting real requests and answers and then persisting them for later use.
|
|
1064
1088
|
|
|
1089
|
+
In order to stop recording you should call `nock.restore()` and recording will stop.
|
|
1090
|
+
|
|
1065
1091
|
**ATTENTION!:** when recording is enabled, nock does no validation.
|
|
1066
1092
|
|
|
1067
1093
|
## `dont_print` option
|
|
@@ -1359,13 +1385,29 @@ var scope = nock('http://api.myservice.com')
|
|
|
1359
1385
|
|
|
1360
1386
|
# Contributing
|
|
1361
1387
|
|
|
1362
|
-
|
|
1388
|
+
Please note that this project is released with a [Contributor Code of Conduct][./CODE_OF_CONDUCT.md].
|
|
1389
|
+
By participating in this project you agree to abide by its terms.
|
|
1363
1390
|
|
|
1364
|
-
|
|
1391
|
+
## Commit Message conventions
|
|
1365
1392
|
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1393
|
+
`nock` releases are automated using [semantic-release](https://github.com/semantic-release/semantic-release).
|
|
1394
|
+
To automatically calculate the correct version number as well as changelogs,
|
|
1395
|
+
three commit message conventions need to be followed
|
|
1396
|
+
|
|
1397
|
+
- Commit bug fixes with `fix: ...` or `fix(scope): ...` prefix in commit subject
|
|
1398
|
+
- Commit new features with `feat: ...` or `feat(scope): ...` prefix in commit subject
|
|
1399
|
+
- Commit breaking changes by adding `BREAKING CHANGE: ` in the commit body
|
|
1400
|
+
(not the subject line)
|
|
1401
|
+
|
|
1402
|
+
Other helpful conventions are
|
|
1403
|
+
|
|
1404
|
+
- Commit test files with `test: ...` or `test(scope): ...` prefix
|
|
1405
|
+
- Commit changes to `package.json`, `.gitignore` and other meta files with
|
|
1406
|
+
`chore(filename-without-ext): ...`
|
|
1407
|
+
- Commit changes to README files or comments with `docs: ...`
|
|
1408
|
+
- Code style changes with `style: standard`
|
|
1409
|
+
|
|
1410
|
+
The commit message(s) of a pull request can be fixed using the `squash & merge` button.
|
|
1369
1411
|
|
|
1370
1412
|
## Generate README TOC
|
|
1371
1413
|
|
package/lib/common.js
CHANGED
|
@@ -198,9 +198,11 @@ function stringifyRequest(options, body) {
|
|
|
198
198
|
|
|
199
199
|
if (port) port = ':' + port;
|
|
200
200
|
|
|
201
|
+
var path = options.path ? options.path : '';
|
|
202
|
+
|
|
201
203
|
var log = {
|
|
202
204
|
method: method,
|
|
203
|
-
url: options.proto + '://' + options.hostname + port +
|
|
205
|
+
url: options.proto + '://' + options.hostname + port + path,
|
|
204
206
|
headers: options.headers
|
|
205
207
|
};
|
|
206
208
|
|
package/lib/interceptor.js
CHANGED
|
@@ -339,7 +339,10 @@ Interceptor.prototype.matchIndependentOfBody = function matchIndependentOfBody(o
|
|
|
339
339
|
, path = options.path
|
|
340
340
|
, proto = options.proto;
|
|
341
341
|
|
|
342
|
-
|
|
342
|
+
// NOTE: Do not split off the query params as the regex could use them
|
|
343
|
+
if (!isRegex) {
|
|
344
|
+
path = path ? path.split('?')[0] : '';
|
|
345
|
+
}
|
|
343
346
|
|
|
344
347
|
if (this.scope.transformPathFunction) {
|
|
345
348
|
path = this.scope.transformPathFunction(path);
|
package/lib/match_body.js
CHANGED
|
@@ -43,7 +43,11 @@ function matchBody(spec, body) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
if (spec instanceof RegExp) {
|
|
46
|
-
|
|
46
|
+
if (typeof body === "string") {
|
|
47
|
+
return body.match(spec);
|
|
48
|
+
} else {
|
|
49
|
+
return qs.stringify(body).match(spec);
|
|
50
|
+
}
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
if (!isMultipart && typeof spec === "string") {
|
package/lib/request_overrider.js
CHANGED
|
@@ -159,6 +159,16 @@ function RequestOverrider(req, options, interceptors, remove, cb) {
|
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
|
|
162
|
+
req.flushHeaders = function() {
|
|
163
|
+
debug('req.flushHeaders');
|
|
164
|
+
if (!aborted && !ended) {
|
|
165
|
+
end(cb);
|
|
166
|
+
}
|
|
167
|
+
if (aborted) {
|
|
168
|
+
emitError(new Error('Request aborted'));
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
|
|
162
172
|
req.abort = function() {
|
|
163
173
|
if (aborted) {
|
|
164
174
|
return;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"nock","description":"HTTP Server mocking for Node.js","tags":["Mock","HTTP","testing","isolation"],"version":"9.0.
|
|
1
|
+
{"name":"nock","description":"HTTP Server mocking for Node.js","tags":["Mock","HTTP","testing","isolation"],"version":"9.0.28","author":"Pedro Teixeira <pedro.teixeira@gmail.com>","contributors":[{"name":"Bin Chang","url":"https://github.com/BinChang"},{"name":"Roman Hotsiy","url":"https://github.com/RomanGotsiy"},{"name":"Jeffrey Jagoda","url":"https://github.com/jagoda"},{"name":"Hidenari Nozaki","url":"https://github.com/ghiden"},{"name":"Ken Sheedlo","url":"https://github.com/ksheedlo"},{"name":"Douglas Eggleton","url":"https://github.com/douglaseggleton"},{"name":"José F. Romaniello","url":"https://github.com/jfromaniello"},{"name":"Benjamin Urban","url":"https://github.com/benurb"},{"name":"Justin","url":"https://github.com/justincy"},{"name":"Brett Porter"},{"name":"Matt Olson"},{"name":"Rémy HUBSCHER"},{"name":"Roly Fentanes"},{"name":"Alexander Simmerl"},{"name":"Pedro Teixeira"},{"name":"Nuno Job"},{"name":"Ian Young"},{"name":"nilsbunger"},{"name":"bacchusrx","email":"bacchusrx@eightstar.ca"},{"name":"Fabiano França"},{"name":"Sascha Drews"},{"name":"Mike Swift"},{"name":"James Herdman"},{"name":"David Björklund"},{"name":"Andrew Kramolisch"},{"name":"Balazs Nagy"},{"name":"Brian J Brennan"},{"name":"Attila Incze"},{"name":"Mac Angell"},{"name":"Tom Hosford"},{"name":"Aurélien Thieriot"},{"name":"Alex Zylman"},{"name":"Celestino Gomes","email":"contact@tinogomes.com"},{"name":"David Rousselie"},{"name":"spenceralger"},{"name":"Ivan Erceg","url":"https://github.com/ierceg","email":"ivan@softwaremarbles.com"},{"name":"Keith Laban","url":"https://github.com/kelaban","email":"kelaban17@gmail.com"},{"name":"Rui Marinho","url":"https://github.com/ruimarinho","email":"ruipmarinho@gmail.com"},{"name":"David Pate","url":"https://github.com/DavidTPate","email":"davidtpate@gmail.com"},{"name":"Matt Oakes","url":"https://github.com/matto1990"},{"name":"Ian Walker-Sperber","url":"https://github.com/ianwsperber"}],"repository":{"type":"git","url":"https://github.com/node-nock/nock.git"},"bugs":{"url":"http://github.com/node-nock/nock/issues"},"engines":["node >= 4.0"],"main":"./index","dependencies":{"chai":">=1.9.2 <4.0.0","debug":"^2.2.0","deep-equal":"^1.0.0","json-stringify-safe":"^5.0.1","lodash":"~4.17.2","mkdirp":"^0.5.0","propagate":"0.4.0","qs":"^6.0.2","semver":"^5.3.0"},"devDependencies":{"async":"^2.1.1","aws-sdk":"^2.0.15","browserify":"^13.0.0","coveralls":"^2.11.2","eslint":"^3.19.0","glob":"^7.1.1","hyperquest":"^1.3.0","isomorphic-fetch":"^2.2.0","istanbul":"^0.4.2","markdown-toc":"^0.13.0","needle":"^1.0.0","node-static":"^0.7.7","nyc":"^10.0.0","request":"2.71.0","request-promise":"^2.0.1","restify":"^4.0.4","restler":"3.4.0","rimraf":"^2.3.2","semver":"^5.3.0","superagent":"^3.5.0","tap":"^10.0.0","zombie":"^5.0.1","semantic-release":"^8.2.0"},"scripts":{"unit":"tap --harmony ./tests/test_*.js","preintegration":"./tests/bin/install_sub_deps versioned","integration":"tap --harmony ./tests/versioned/*/*.tap.js","test":"npm run lint && npm run unit && npm run integration","coverage":"nyc tap --harmony ./tests/test_*.js","coveralls":"cat ./coverage/lcov.info | coveralls","lint":"eslint '**/*.js'","toc":"markdown-toc -i README.md","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"nyc":{"reporter":["lcov","text-summary"],"exclude":["tests/test_*.js"]},"license":"MIT"}
|
package/CHANGELOG.md
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
9.0.22 / 2017-09-27
|
|
2
|
-
===================
|
|
3
|
-
|
|
4
|
-
* fix: query string recording where value is an array ([#917](https://github.com/node-nock/nock/issues/917))
|
|
5
|
-
* docs(README): link to license file, link to contributors, update Copyright years
|
|
6
|
-
* chore(LICENSE): MIT
|
|
7
|
-
* chore(CHANGELOG): v9.0.21
|
|
8
|
-
|
|
9
|
-
9.0.21 / 2017-09-25
|
|
10
|
-
===================
|
|
11
|
-
|
|
12
|
-
* 9.0.21
|
|
13
|
-
* fix: compare falsy header values & numbers correctly
|
|
14
|
-
* test: match number header values
|
|
15
|
-
* multiple interceptors override headers from unrelated requests
|
|
16
|
-
* Add an error code to NetConnectNotAllowedError
|
|
17
|
-
This is in line with nodejs error codes. I chose `ENETUNREACH` because it clearly defines the reason why the http request failed.
|
|
18
|
-
https://nodejs.org/api/all.html#errors_error_code
|
|
19
|
-
* chore(CHANGELOG): v9.0.20
|
|
20
|
-
|
|
21
|
-
9.0.20 / 2017-09-24
|
|
22
|
-
===================
|
|
23
|
-
|
|
24
|
-
* 9.0.20
|
|
25
|
-
* fix: match headers with falsy values (again)
|
|
26
|
-
follow up for https://github.com/node-nock/nock/pull/973/files#r140647611
|
|
27
|
-
* Switch from jshint to eslint ([#885](https://github.com/node-nock/nock/issues/885))
|
|
28
|
-
- Remove pre-commit hooks
|
|
29
|
-
- Fix a broken unit test (bug caught by lint)
|
|
30
|
-
- Minor lint + style cleanup
|
|
31
|
-
Closes [#868](https://github.com/node-nock/nock/issues/868)
|
|
32
|
-
* changed Real HTTP request documentation to be more readable
|
|
33
|
-
* docs(CHANGELOG): 9.0.19
|
|
34
|
-
|
|
35
|
-
9.0.19 / 2017-09-22
|
|
36
|
-
===================
|
|
37
|
-
|
|
38
|
-
* 9.0.19
|
|
39
|
-
* Improve Nock Back documentation
|
|
40
|
-
* Fix file permissions of intercept test
|
|
41
|
-
* Fix allowUnmocked when last interceptor was removed.
|
|
42
|
-
* Do not abort a an already aborted request, do not emit an error twice
|
|
43
|
-
Fixes [#882](https://github.com/node-nock/nock/issues/882)
|
|
44
|
-
When a request is aborted, "nock" emits an "abort"-error.
|
|
45
|
-
If the client reacts on that error by aborting the request (this is what
|
|
46
|
-
"popsicle" does), the code will end in an endless loop.
|
|
47
|
-
This commit makes that the the "abort"-code is only executed, if the
|
|
48
|
-
request has not already been aborted.
|
|
49
|
-
* fix broken link: allow-unmocked-requests-on-a-mocked-hostname
|
|
50
|
-
* fix: Specified request body not properly enforced ([#921](https://github.com/node-nock/nock/issues/921))
|
|
51
|
-
* Minor change in example code `scope(` => `var scope = nock(`
|
|
52
|
-
* nockBack.setMode: Improve error message
|
|
53
|
-
* chore(CHANGELOG): v9.0.18
|
|
54
|
-
|
|
55
|
-
9.0.18 / 2017-09-20
|
|
56
|
-
===================
|
|
57
|
-
|
|
58
|
-
* 9.0.18
|
|
59
|
-
* fix(recorder): don’t JSON.stringify output if output_objects is not enabled
|
|
60
|
-
This is a follow up fix for https://github.com/node-nock/nock/pull/959
|
|
61
|
-
* feat: promisify nock back ([#798](https://github.com/node-nock/nock/issues/798))
|
|
62
|
-
* chore(CHANGELOG) v9.0.17
|
|
63
|
-
|
|
64
|
-
9.0.17 / 2017-09-19
|
|
65
|
-
===================
|
|
66
|
-
|
|
67
|
-
* 9.0.17
|
|
68
|
-
* 835 support regex for both host and port with allowUnmocked
|
|
69
|
-
* 835-added-fail-test-case
|
|
70
|
-
* docs(README) - fix info about mocking ([#971](https://github.com/node-nock/nock/issues/971))
|
|
71
|
-
* Document replyWithFile using Content-Type header
|
|
72
|
-
* fix readme typo
|
|
73
|
-
add missing closing paren
|
|
74
|
-
* fix grammar
|
|
75
|
-
change `the response event will occur immediately, but the IncomingMessage not it's end event until after the delay` -> `the response event will occur immediately, but the IncomingMessage will not emit it's end event until after the delay`
|
|
76
|
-
* Improve Match Logging
|
|
77
|
-
Currently, matching logging does not include the method or path of the request. I have added these to make debugging non-matches easier.
|
|
78
|
-
* Update README.md
|
|
79
|
-
please review for accuracy. I actually don't know how it behaves but this section was very confusing to read.
|
|
80
|
-
* fix: printing recorded requests with output_objects resulted in output of [Object Object]
|
|
81
|
-
* chore(CHANGELOG): 9.0.16
|
|
82
|
-
|
|
83
|
-
9.0.16 / 2017-09-18
|
|
84
|
-
===================
|
|
85
|
-
|
|
86
|
-
* 9.0.16
|
|
87
|
-
* fix: match headers with falsy values
|
|
88
|
-
* test: match headers with falsy values
|
|
89
|
-
* chore(travis): don’t build twice for PRs and retry npm install
|
|
90
|
-
* chore(travis): don’t test in node v7
|
|
91
|
-
It’s no longer supported
|
|
92
|
-
* chore: remove console logs in tests
|
|
93
|
-
* docs(CHANGELOG): update for 9.0.15
|
|
94
|
-
|
|
95
|
-
9.0.15 / 2017-09-18
|
|
96
|
-
===================
|
|
97
|
-
|
|
98
|
-
* 9.0.15
|
|
99
|
-
* fix: `nock.define()` respects badheaders option
|
|
100
|
-
* test: `nock.define()` ignores badheaders option
|
|
101
|
-
* docs(README): document `nock.recorder.clear()`
|
|
102
|
-
|
|
103
|
-
9.0.14 / 2017-07-17
|
|
104
|
-
===================
|
|
105
|
-
|
|
106
|
-
* Fixes for Node 8
|
|
107
|
-
* Merge pull request [#948](https://github.com/node-nock/nock/issues/948) from martinkuba/master
|
|
108
|
-
Fix for [#947](https://github.com/node-nock/nock/issues/947)
|
|
109
|
-
* www.amazon.com does not return any data
|
|
110
|
-
* Merge pull request [#929](https://github.com/node-nock/nock/issues/929) from martinkuba/node8
|
|
111
|
-
Updates to unblock Node 8
|
|
112
|
-
* Merge pull request [#942](https://github.com/node-nock/nock/issues/942) from michaelnisi/browserify
|
|
113
|
-
Skip browserify test because zombie fails @7.10
|
|
114
|
-
* Skip browserify test because zombie fails @7.10
|
|
115
|
-
* wrap http.get on Node 8 only
|
|
116
|
-
* workaround for socket hang up
|
|
117
|
-
* fix recorder when calling res.end(data)
|
|
118
|
-
* use req.setHeader()
|
|
119
|
-
* override http.get
|
|
120
|
-
* added Node 8 to Travis
|
|
121
|
-
* Merge pull request [#667](https://github.com/node-nock/nock/issues/667) from ksmith97/master
|
|
122
|
-
Updated debug namespace to match file.
|
|
123
|
-
|
|
124
|
-
9.0.13 / 2017-04-10
|
|
125
|
-
===================
|
|
126
|
-
|
|
127
|
-
* 9.0.13: Revert [#863](https://github.com/node-nock/nock/issues/863)
|
|
128
|
-
* Merge pull request [#880](https://github.com/node-nock/nock/issues/880) from node-nock/revert-v9.0.12-issue-863
|
|
129
|
-
Revert "Merge branch 'fasterize-fix_match_body'"
|
|
130
|
-
* Revert "Merge branch 'fasterize-fix_match_body'"
|
|
131
|
-
This reverts commit 8333e3aef1e79dc2ed96dca819124f4a18f1af4d, reversing
|
|
132
|
-
changes made to 30881e2a72dbb950e771f912c5f9ddbcb91c0acd.
|
|
133
|
-
|
|
134
|
-
9.0.12 / 2017-04-10
|
|
135
|
-
===================
|
|
136
|
-
|
|
137
|
-
* 9.0.12: Use key length in array/object comparison
|
|
138
|
-
* Merge branch 'fasterize-fix_match_body'
|
|
139
|
-
* fasterize-fix_match_body:
|
|
140
|
-
[[#863](https://github.com/node-nock/nock/issues/863)] Fix matchBody for object and array comparison
|
|
141
|
-
* Merge branch 'fix_match_body' of https://github.com/fasterize/nock into fasterize-fix_match_body
|
|
142
|
-
* 'fix_match_body' of https://github.com/fasterize/nock:
|
|
143
|
-
[[#863](https://github.com/node-nock/nock/issues/863)] Fix matchBody for object and array comparison
|
|
144
|
-
* [[#863](https://github.com/node-nock/nock/issues/863)] Fix matchBody for object and array comparison
|
|
145
|
-
|
|
146
|
-
9.0.11 / 2017-03-29
|
|
147
|
-
===================
|
|
148
|
-
|
|
149
|
-
* 9.0.11: Fixes for [#856](https://github.com/node-nock/nock/issues/856) (pending mocks) and [#425](https://github.com/node-nock/nock/issues/425) (multipart forms)
|
|
150
|
-
* Merge pull request [#834](https://github.com/node-nock/nock/issues/834) from delijati/master
|
|
151
|
-
PR [#834](https://github.com/node-nock/nock/issues/834): Don't remove newlines from multipart form reqests
|
|
152
|
-
* Merge pull request [#857](https://github.com/node-nock/nock/issues/857) from disrupticons/fixing-issue-856
|
|
153
|
-
Fix [#856](https://github.com/node-nock/nock/issues/856): nock.cleanAll() should remove pending mocks
|
|
154
|
-
* fixing test description
|
|
155
|
-
|
|
156
|
-
9.0.10 / 2017-03-28
|
|
157
|
-
===================
|
|
158
|
-
|
|
159
|
-
* 9.0.10: Versioned tested and better .npmignore
|
|
160
|
-
* adding test for multipart match body
|
|
161
|
-
* Merge pull request [#858](https://github.com/node-nock/nock/issues/858) from fabiosantoscode/patch-1
|
|
162
|
-
Add some big folders to .npmignore
|
|
163
|
-
* Add some big folders to .npmignore
|
|
164
|
-
* Remove pending mocks from scopes on nock.cleanAll()
|
|
165
|
-
* Merge pull request [#842](https://github.com/node-nock/nock/issues/842) from node-nock/feature-832-versioned-tests
|
|
166
|
-
Feature [#832](https://github.com/node-nock/nock/issues/832): Versioned tests
|
|
167
|
-
* [#832](https://github.com/node-nock/nock/issues/832) Add glob as dev dep
|
|
168
|
-
* [#832](https://github.com/node-nock/nock/issues/832) Add integration tests to travis
|
|
169
|
-
* [#832](https://github.com/node-nock/nock/issues/832) Cleanup sub dep install script
|
|
170
|
-
* [#832](https://github.com/node-nock/nock/issues/832) Add tests for request & popsicle
|
|
171
|
-
* [#832](https://github.com/node-nock/nock/issues/832) Remove socketTimeout test
|
|
172
|
-
* [#832](https://github.com/node-nock/nock/issues/832) Run got tests using common test runner
|
|
173
|
-
* 832 Versioned tests for got module
|
|
174
|
-
* 832 Add sub dep install from NR
|
|
175
|
-
* Changelog v9.0.9
|
|
176
|
-
|
|
177
|
-
9.0.9 / 2017-02-28
|
|
178
|
-
==================
|
|
179
|
-
|
|
180
|
-
* 9.0.9: Revert PR [#802](https://github.com/node-nock/nock/issues/802)
|
|
181
|
-
* Merge pull request [#840](https://github.com/node-nock/nock/issues/840) from node-nock/revert-802-fix-754
|
|
182
|
-
Revert "Fix request timeout no working"
|
|
183
|
-
* Revert "Fix request timeout no working"
|
|
184
|
-
* Changelog v9.0.8
|
|
185
|
-
|
|
186
|
-
9.0.8 / 2017-02-27
|
|
187
|
-
==================
|
|
188
|
-
|
|
189
|
-
* 9.0.8: Fix for [#754](https://github.com/node-nock/nock/issues/754)
|
|
190
|
-
* Merge pull request [#836](https://github.com/node-nock/nock/issues/836) from node-nock/greenkeeper-superagent-3.5.0
|
|
191
|
-
Update superagent to version 3.5.0 🚀
|
|
192
|
-
* Merge pull request [#802](https://github.com/node-nock/nock/issues/802) from aleung/fix-754
|
|
193
|
-
Fix request timeout no working
|
|
194
|
-
|
|
195
|
-
9.0.7 / 2017-02-23
|
|
196
|
-
==================
|
|
197
|
-
|
|
198
|
-
* Changelog
|
|
199
|
-
* 9.0.7: Fix for [#610](https://github.com/node-nock/nock/issues/610)
|
|
200
|
-
* Merge pull request [#829](https://github.com/node-nock/nock/issues/829) from yodeyer/fixQs
|
|
201
|
-
Fix interceptor if query have no query strings
|