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

should-http

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

should-http - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

0

History.md

@@ -0,0 +0,0 @@ 0.0.3 / 2015-05-21

8

http.js

@@ -61,7 +61,7 @@ /*!

*
* res.should.be.json;
* res.should.be.json();
*/
Assertion.add('json', function() {
this.have.header('content-type').match(/application\/json/i);
}, true);
});

@@ -77,8 +77,8 @@ /**

*
* res.should.be.json;
* res.should.be.html();
*/
Assertion.add('html', function() {
this.have.header('content-type').match(/text\/html/i);
}, true);
});
};
{
"name": "should-http",
"version": "0.0.3",
"version": "0.0.4",
"description": "Http requests, response assertions for should.js",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -25,3 +25,3 @@ var should = require('should');

req.should.be.json;
req.should.be.json();

@@ -34,3 +34,3 @@ req = {

req.should.be.json;
req.should.be.json();

@@ -43,5 +43,5 @@ req = {

req.should.not.be.json;
req.should.not.be.json();
({}).should.not.be.json;
({}).should.not.be.json();
});

@@ -81,2 +81,2 @@

})
});
});
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