Introduction
Introduction Statistics Contact Development Disclaimer Help
bumping version - seedlinux - Torrent indexing tool opensource torrents with sh…
Log
Files
Refs
README
---
commit 00413fe035e7c2970a574b46f818282724ca62c4
parent 101c3811bd6468dba0c444f4a59f380ca8544f52
Author: Jay Scott <[email protected]>
Date: Sat, 1 Jul 2017 11:45:20 +0100
bumping version
Diffstat:
M app.js | 5 +----
M package-lock.json | 2 +-
M package.json | 4 ++--
3 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/app.js b/app.js
@@ -38,16 +38,13 @@ app.use('/', index);
app.use('/torrent/', torrent);
app.use(function(req, res, next) {
- var err = new Error('Not Found');
- err.status = 404;
- next(err);
+ res.status(404).render('error');
});
app.use(function(err, req, res, next) {
res.locals.message = err.message;
res.locals.error = req.app.get('env') === 'development' ? err : {};
-
res.status(err.status || 500);
res.render('error');
});
diff --git a/package-lock.json b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "seedlinux",
- "version": "0.0.1",
+ "version": "0.0.2",
"lockfileVersion": 1,
"dependencies": {
"accepts": {
diff --git a/package.json b/package.json
@@ -1,6 +1,6 @@
{
"name": "seedlinux",
- "version": "0.0.1",
+ "version": "0.0.2",
"private": true,
"scripts": {
"lint": "eslint **/*.js",
@@ -13,7 +13,7 @@
"cookie-parser": "~1.4.3",
"debug": "~2.6.3",
"express": "~4.15.2",
- "mongoose": "^4.10.8",
+ "mongoose": "4.10.8",
"morgan": "~1.8.1",
"parse-torrent": "^5.8.3",
"pug": "~2.0.0-beta11",
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.