Skip to content

Commit

Permalink
chore(package): updated dependencies
Browse files Browse the repository at this point in the history
fix: loopback error handler was renamed to strong-error-handler and required different configuration since 3.0.0
update: bunyan-syslog was removed due to problems on Windows which fixes #11

Signed-off-by: Sebastian Haas <[email protected]>
  • Loading branch information
sebastianhaas committed Mar 3, 2017
1 parent 40018a0 commit 2e984c5
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 38 deletions.
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,29 @@
"async": "^2.0.1",
"bunyan": "^1.8.1",
"bunyan-request": "^1.2.0",
"bunyan-syslog": "github:mcavage/node-bunyan-syslog#9bdb9eb62a763c7d30e032a619138032d5ff8771",
"compression": "^1.0.3",
"cors": "^2.5.2",
"compression": "^1.6.2",
"cors": "^2.8.1",
"csv-parse": "^1.1.7",
"gaussian": "^1.1.0",
"google-material-color": "^1.2.6",
"helmet": "^3.0.0",
"loopback": "^3.2.1",
"loopback-boot": "^2.6.5",
"loopback-component-explorer": "^4.0.0",
"loopback-connector-postgresql": "^2.4.1",
"loopback": "^3.4.0",
"loopback-boot": "^2.23.0",
"loopback-component-explorer": "^4.1.1",
"loopback-connector-postgresql": "^2.7.0",
"loopback-datasource-juggler": "^3.2.0",
"lunr": "^1.0.0",
"moment": "^2.14.1",
"node-schedule": "^1.2.0",
"node-uuid": "^1.4.7",
"schedulejs": "^0.6.3",
"serve-favicon": "^2.0.1",
"serve-favicon": "^2.4.1",
"socket.io": "1.7.3"
},
"devDependencies": {
"jscs": "^3.0.4",
"jshint": "^2.5.6",
"nsp": "^2.1.0"
"nsp": "^2.6.2"
},
"repository": {
"type": "git",
Expand All @@ -49,7 +48,7 @@
"url": "https://github.com/sebastianhaas/medical-appointment-scheduling-server.git/issues"
},
"engines": {
"node": ">= 5.8.0",
"npm": ">= 3.9.5"
"node": "^6.10.0",
"npm": "^3.10.10"
}
}
8 changes: 2 additions & 6 deletions server/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"host": "0.0.0.0",
"port": 3000,
"remoting": {
"context": {
"enableHttpContext": false
},
"context": false,
"rest": {
"normalizeHttpPath": false,
"xml": false
Expand All @@ -19,9 +17,7 @@
"limit": "100kb"
},
"cors": false,
"errorHandler": {
"disableStackTrace": false
}
"handleErrors": false
},
"legacyExplorer": false,
"clientAutoAppointmentAcceptEndpoint": "http://localhost:8080/appointment/accept/",
Expand Down
8 changes: 3 additions & 5 deletions server/middleware.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,16 @@
"session": {},
"auth": {},
"parse": {},
"routes": {
"routes:before": {
"loopback#rest": {
"paths": [
"${restApiRoot}"
]
"paths": [ "${restApiRoot}" ]
}
},
"files": {},
"final": {
"loopback#urlNotFound": {}
},
"final:after": {
"loopback#errorHandler": {}
"strong-error-handler": {}
}
}
2 changes: 1 addition & 1 deletion server/middleware.production.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"final:after": {
"loopback#errorHandler": {
"strong-error-handler": {
"params": {
"includeStack": false
}
Expand Down
20 changes: 5 additions & 15 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,18 @@ var loopback = require('loopback');
var boot = require('loopback-boot');
var bunyan = require('bunyan');
var bunyanRequest = require('bunyan-request');
var bunyanSyslog = require('bunyan-syslog');

var app = module.exports = loopback();

// Set up logging
var logger = bunyan.createLogger({
name: 'medical-appointment-scheduling-server',
streams: [
{
level: 'debug',
type: 'raw',
stream: bunyanSyslog.createBunyanStream({
type: 'udp',
facility: bunyanSyslog.local0,
host: '127.0.0.1',
port: 11111
})
},
{
level: 'debug',
stream: process.stdout
}]
{
level: 'debug',
stream: process.stdout
}
]
});
var requestLogger = bunyanRequest({
logger: logger,
Expand Down

0 comments on commit 2e984c5

Please sign in to comment.