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

unexpected-http

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected-http - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

5

lib/unexpectedHttp.js

@@ -36,4 +36,3 @@ var http = require('http'),

isHttps = false,
host = location.hostname || 'localhost',
port = location.port || 80;
host = location.hostname || 'localhost';
if (!subject.isMessyHttpRequest) {

@@ -74,3 +73,3 @@ if (typeof subject === 'string') {

host: host,
port: port,
port: location.port || (isHttps ? 443 : 80),
method: httpRequest.method,

@@ -77,0 +76,0 @@ path: httpRequest.path,

2

package.json
{
"name": "unexpected-http",
"version": "1.1.0",
"version": "1.1.1",
"description": "Unexpected plugin for testing http servers",

@@ -5,0 +5,0 @@ "main": "lib/unexpectedHttp.js",

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