From 1160f1d477f9b6febab8d0e3032925b98a0f8408 Mon Sep 17 00:00:00 2001 From: Louis Cheung Date: Wed, 3 Jun 2015 18:56:22 -0400 Subject: [PATCH] Update npm dependency references --- lib/swagger-express/index.js | 2 +- package.json | 50 ++++++++++++++++++++---------------- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/lib/swagger-express/index.js b/lib/swagger-express/index.js index 29456099..ebdfd35a 100644 --- a/lib/swagger-express/index.js +++ b/lib/swagger-express/index.js @@ -278,7 +278,7 @@ exports.init = function (app, opt) { var swaggerURL = new RegExp('^'+ opt.swaggerURL +'(\/.*)?$'); app.get(swaggerURL, function (req, res, next) { - if (req.url === opt.swaggerURL) { // express static barfs on root url w/o trailing slash + if (req.url === opt.swaggerURL) { // Express static barfs on root url w/o trailing slash. res.writeHead(302, { 'Location' : req.url + '/' }); res.end(); return; diff --git a/package.json b/package.json index 3c1b81ba..d9ee9f2d 100644 --- a/package.json +++ b/package.json @@ -1,34 +1,40 @@ { "name": "swagger-express", - "description": "Document your express rest api by jsDoc or yaml.", - "version": "1.0.4", - "author": "fliptoo , sposmen ", - "main": "./index", - "dependencies": { - "async": "~0.2.7", - "coffee-script": "*", - "doctrine": "*", - "express": "3.5.1", - "js-yaml": "~2.1.0", - "underscore": "*" - }, - "devDependencies": { - "jade": "*", - "jshint": "*" - }, + "version": "1.0.0", + "description": "Document your Express REST API with Swagger.", + "main": "index.js", "scripts": { - "test": "jshint --config jshint.cfg $(find . -name *.js | grep -v './node_modules')" + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://github.com/devlouisc/swagger-express.git" }, "keywords": [ "swagger", - "swagger-ui", "express", + "restful", "api", "jsdoc", - "yml", "yaml", - "coffee-script", - "restful" + "coffee-script" ], - "repository": "git://github.com/fliptoo/swagger-express" + "author": "devlouisc", + "license": "MIT", + "bugs": { + "url": "https://github.com/devlouisc/swagger-express/issues" + }, + "homepage": "https://github.com/devlouisc/swagger-express#readme", + "dependencies": { + "async": "^1.2.0", + "coffee-script": "^1.9.3", + "doctrine": "^0.6.4", + "js-yaml": "^3.3.1", + "underscore": "^1.8.3" + }, + "devDependencies": { + "eslint": "^0.22.1", + "express": "^4.12.4", + "jade": "^1.10.0" + } }