From 0931e9da835e4995adc417c2ff9a99121880628e Mon Sep 17 00:00:00 2001 From: Loay Date: Wed, 19 Oct 2016 12:01:05 -0400 Subject: [PATCH] Upgrade loopback to 3.0.0 --- lib/storage-handler.js | 1 - package.json | 2 +- test/upload-download.test.js | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/storage-handler.js b/lib/storage-handler.js index 6b2df48..fe9628c 100644 --- a/lib/storage-handler.js +++ b/lib/storage-handler.js @@ -278,4 +278,3 @@ exports.download = function(provider, req, res, container, file, cb) { } } }; - diff --git a/package.json b/package.json index c7875ca..50ee093 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "eslint": "^2.13.1", "eslint-config-loopback": "^4.0.0", "express": "^4.11.0", - "loopback": "^2.10.0", + "loopback": "^3.0.0", "mkdirp": "^0.5.0", "mocha": "^2.1.0", "supertest": "^0.15.0" diff --git a/test/upload-download.test.js b/test/upload-download.test.js index 883311f..164a3e7 100644 --- a/test/upload-download.test.js +++ b/test/upload-download.test.js @@ -11,6 +11,9 @@ var assert = require('assert'); var app = loopback(); var path = require('path'); +// configure errorHandler to show full error message +app.set('remoting', {errorHandler: {debug: true, log: false}}); + // expose a rest api app.use(loopback.rest());