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

supertest

Package Overview
Dependencies
Maintainers
7
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supertest - npm Package Compare versions

Comparing version 5.0.0 to 6.0.0

3

lib/agent.js

@@ -57,2 +57,5 @@ 'use strict';

req.key(this._key);
if (this._host) {
req.set('host', this._host);
}

@@ -59,0 +62,0 @@ req.on('response', this._saveCookies.bind(this));

8

lib/test.js

@@ -30,3 +30,3 @@ 'use strict';

function Test(app, method, path, host) {
function Test(app, method, path) {
Request.call(this, method.toUpperCase(), path);

@@ -39,3 +39,3 @@ this.redirects(0);

? app + path
: this.serverAddress(app, path, host);
: this.serverAddress(app, path);
}

@@ -58,3 +58,3 @@

Test.prototype.serverAddress = function(app, path, host) {
Test.prototype.serverAddress = function(app, path) {
var addr = app.address();

@@ -67,3 +67,3 @@ var port;

protocol = app instanceof https.Server ? 'https' : 'http';
return protocol + '://' + (host || '127.0.0.1') + ':' + port + path;
return protocol + '://127.0.0.1:' + port + path;
};

@@ -70,0 +70,0 @@

{
"name": "supertest",
"version": "5.0.0",
"version": "6.0.0",
"description": "SuperAgent driven library for testing HTTP servers",

@@ -5,0 +5,0 @@ "main": "index.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