Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shot

Package Overview
Dependencies
Maintainers
3
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shot - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

9

lib/index.js
// 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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc