🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

nock

Package Overview
Dependencies
Maintainers
1
Versions
445
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nock - npm Package Compare versions

Comparing version

to
0.15.3

10

lib/scope.js

@@ -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

2

package.json
{ "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 [![Build Status](https://secure.travis-ci.org/flatiron/nock.png)](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]])`: