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

flair-doc

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flair-doc - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

3

index.js

@@ -320,2 +320,5 @@ var express = require('express')

}
if (!req.mime) {
req.mime = mime;
}
next();

@@ -322,0 +325,0 @@ } else {

2

package.json
{
"name": "flair-doc",
"version": "0.0.6",
"version": "0.0.7",
"description": "Swagger-compliant REST API documentation generator",

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

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

function(req, res) {
res.send("Yay!");
res.send("Yay! " + req.mime);
}

@@ -634,4 +634,14 @@ );

});
it('should add mime to the request', function(done) {
supertest(app)
.post('/blah')
.set('Content-Type', 'application/vnd.something+json; charset=utf-8')
.expect(200, function(err, res) {
res.text.should.include('application/vnd.something+json');
done(err);
});
});
});
});
});
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