nock 9.4.2 → 9.4.3
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 +1 -1
- package/README.md +1 -2
- package/lib/interceptor.js +1 -0
- package/package.json +1 -1
package/CODE_OF_CONDUCT.md
CHANGED
|
@@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
|
|
|
34
34
|
|
|
35
35
|
## Enforcement
|
|
36
36
|
|
|
37
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at nock+coc@martynus.net or
|
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at nock+coc@martynus.net or coc+nock@maintainer.io. 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
38
|
|
|
39
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
40
|
|
package/README.md
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
[](https://coveralls.io/github/nock/nock?branch=master)
|
|
5
5
|
[](https://greenkeeper.io/)
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
Nock is an HTTP server mocking and expectations library for Node.js.
|
|
7
|
+
> HTTP server mocking and expectations library for Node.js
|
|
9
8
|
|
|
10
9
|
Nock can be used to test modules that perform HTTP requests in isolation.
|
|
11
10
|
|
package/lib/interceptor.js
CHANGED
|
@@ -306,6 +306,7 @@ Interceptor.prototype.match = function match(options, body, hostNameOnly) {
|
|
|
306
306
|
|
|
307
307
|
if (typeof this.uri === 'function') {
|
|
308
308
|
matches = matchQueries &&
|
|
309
|
+
method === this.method &&
|
|
309
310
|
common.matchStringOrRegexp(matchKey, this.basePath) &&
|
|
310
311
|
this.uri.call(this, path);
|
|
311
312
|
} else {
|