Skip to content

Commit

Permalink
Update npm dependency references
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Cheung committed Jun 3, 2015
1 parent 3f54b0d commit 1160f1d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 23 deletions.
2 changes: 1 addition & 1 deletion lib/swagger-express/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
50 changes: 28 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
{
"name": "swagger-express",
"description": "Document your express rest api by jsDoc or yaml.",
"version": "1.0.4",
"author": "fliptoo <[email protected]>, sposmen <[email protected]>",
"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"
}
}

0 comments on commit 1160f1d

Please sign in to comment.