New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hammock

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hammock - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

yarn.lock

8

lib/request.js

@@ -58,3 +58,7 @@ var Cookies = require('cookies');

var ret = http.ClientRequest.prototype.setHeader.call(this, name, value, clobber);
this.headers = this._headers;
if (http.ClientRequest.prototype.getHeaders) {
this.headers = http.ClientRequest.prototype.getHeaders.call(this);
} else {
this.headers = this._headers;
}
return ret;

@@ -76,2 +80,2 @@ } else if (clobber || !this.headers.hasOwnProperty(name)) {

module.exports = MockRequest;
module.exports = MockRequest;

@@ -64,3 +64,7 @@ var events = require('events');

var ret = http.ServerResponse.prototype.setHeader.call(this, name, value, clobber);
this.headers = this._headers;
if (http.ServerResponse.prototype.getHeaders) {
this.headers = http.ServerResponse.prototype.getHeaders.call(this);
} else {
this.headers = this._headers;
}
return ret;

@@ -67,0 +71,0 @@ } else if (clobber || !this.headers.hasOwnProperty(name)) {

{
"name": "hammock",
"version": "2.1.0",
"version": "2.2.0",
"description": "Node.js mock / polyfill http object library for http req / res",

@@ -22,8 +22,8 @@ "main": "index.js",

"dependencies": {
"cookies": "~0.3.6",
"lodash": "^3.0.0",
"readable-stream": "~1.0.33"
"cookies": "^0.7.1",
"lodash": "^4.17.4",
"readable-stream": "^2.3.3"
},
"devDependencies": {
"tape": "^3.0.3"
"tape": "^4.8.0"
},

@@ -30,0 +30,0 @@ "author": "Tommy Messbauer",

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