Comparing version 0.15.2 to 0.15.3
@@ -216,2 +216,10 @@ var path = require('path') | ||
function patch(uri, requestBody, options) { | ||
return intercept(uri, 'PATCH', requestBody, options); | ||
} | ||
function merge(uri, requestBody, options) { | ||
return intercept(uri, 'MERGE', requestBody, options); | ||
} | ||
function _delete(uri, requestBody, options) { | ||
@@ -327,2 +335,4 @@ return intercept(uri, 'DELETE', requestBody, options); | ||
, put: put | ||
, merge: merge | ||
, patch: patch | ||
, head: head | ||
@@ -329,0 +339,0 @@ , intercept: intercept |
{ "name" : "nock" | ||
, "description" : "HTTP Server mocking for Node.js" | ||
, "tags" : ["Mock", "HTTP", "testing", "isolation"] | ||
, "version" : "0.15.2" | ||
, "version" : "0.15.3" | ||
, "author" : "Pedro Teixeira <pedro.teixeira@gmail.com>" | ||
@@ -6,0 +6,0 @@ , "contributors" : |
@@ -119,3 +119,3 @@ # Nock [](http://travis-ci.org/flatiron/nock) | ||
Nock supports any HTTP verb, and it has convenience methods for the GET, POST, PUT, HEAD and DELETE HTTP verbs. | ||
Nock supports any HTTP verb, and it has convenience methods for the GET, POST, PUT, HEAD, DELETE, PATCH and MERGE HTTP verbs. | ||
@@ -122,0 +122,0 @@ You can intercept any HTTP verb using `.intercept(path, verb [, requestBody [, options]])`: |
74033
2163