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

swagger-node-express

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-node-express - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

.travis.yml

3

index.js

@@ -1,2 +0,1 @@

module.exports = require("./Common/node/swagger.js"),
require("./Common/node/paramTypes.js");
module.exports = require("./lib/swagger.js");
{
"name": "swagger-node-express",
"version": "2.0.3",
"version": "2.1.0",
"author": {

@@ -9,3 +9,3 @@ "name": "Tony Tam",

},
"contributors": [
"contributors": [
{

@@ -28,5 +28,2 @@ "name": "Pauh Hill",

"main": "index.js",
"directories": {
"lib": "./Common/node"
},
"engines": {

@@ -36,9 +33,18 @@ "node": ">= 0.8.x"

"dependencies": {
"connect": ">= 1.8.x",
"lodash": "1.3.1"
},
"devDependencies": {
"express": "3.x",
"docco": "0.4.x",
"lodash": "1.3.1",
"cors": "2.1.1"
"cors": "2.1.1",
"mocha": "~1.20.0",
"should": "~4.0.0",
"once": "~1.3.0",
"request": "~2.36.0"
},
"license": "apache 2.0"
"license": "apache 2.0",
"scripts": {
"test": "mocha -r should './test/**/*.js'",
"start": "node sample-application/app.js"
}
}
# Swagger for Express and Node.js
[![Build Status](https://travis-ci.org/wordnik/swagger-node-express.png)](https://travis-ci.org/wordnik/swagger-node-express)
This is a [Swagger](https://github.com/wordnik/swagger-spec) module for the [Express](http://expressjs.com) web application framework for Node.js.

@@ -183,2 +185,14 @@

### Error handling
As of 2.1.0, swagger no longer consumes errors. The preferred way to handle errors
is to use standard express middelware with an arity of 4 I.E.
```javascript
var app = express();
swagger.setAppHandler(app);
app.use(function(err, req, res, next){
//do something with the error.
});
```
### Enabling cors support using cors library

@@ -185,0 +199,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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