Comparing version 1.4.0 to 1.4.1
// Load modules | ||
var Util = require('util'); | ||
var Http = require('http'); | ||
var Stream = require('stream'); | ||
var Util = require('util'); | ||
var Url = require('url'); | ||
var Hoek = require('hoek'); | ||
@@ -259,6 +260,6 @@ | ||
options = (typeof options === 'string' ? { method: 'GET', url: options } : options); | ||
options.method = options.method || 'GET'; | ||
options = (typeof options === 'string' ? { url: options } : options); | ||
var settings = Hoek.applyToDefaults({ method: 'GET' }, options); | ||
var req = new internals.Request(options); | ||
var req = new internals.Request(settings); | ||
var res = new internals.Response(req, callback); | ||
@@ -265,0 +266,0 @@ dispatchFunc(req, res); |
{ | ||
"name": "shot", | ||
"description": "Injects a fake HTTP request/response into a node HTTP server", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"repository": "git://github.com/hapijs/shot", | ||
@@ -16,3 +16,5 @@ "main": "index", | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"hoek": "2.x.x" | ||
}, | ||
"devDependencies": { | ||
@@ -19,0 +21,0 @@ "lab": "4.x.x" |
![shot Logo](https://raw.github.com/hapijs/shot/master/images/shot.png) | ||
Injects a fake HTTP request/response into a node HTTP server for simulating server logic, writing tests, or debugging. Does not use a socket | ||
connection so can be run against an inactive server (server not in listen mode). This module is still experimental. | ||
connection so can be run against an inactive server (server not in listen mode). | ||
@@ -6,0 +6,0 @@ [![Build Status](https://secure.travis-ci.org/hapijs/shot.png)](http://travis-ci.org/hapijs/shot) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
65051
592
2
1
+ Addedhoek@2.x.x
+ Addedhoek@2.16.3(transitive)