diff --git a/lib/router/index.js b/lib/router/index.js index 75c9e9cc7..643321dd8 100644 --- a/lib/router/index.js +++ b/lib/router/index.js @@ -5,7 +5,7 @@ var Readable = require('stream').Readable; var QS = require('querystring'); var _ = require('@sailshq/lodash'); -var router = require('router'); +var router = require('@sailshq/router'); var flaverr = require('flaverr'); var sortRouteAddresses = require('sort-route-addresses'); var buildReq = require('./req'); diff --git a/package.json b/package.json index ec4bf1afd..3499ccf97 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ }, "dependencies": { "@sailshq/lodash": "^3.10.6", + "@sailshq/router": "^1.3.9", "async": "2.6.4", "captains-log": "^2.0.5", "chalk": "2.3.0", @@ -37,7 +38,7 @@ "cookie-signature": "1.1.0", "csurf": "1.10.0", "ejs": "3.1.10", - "express": "4.19.2", + "express": "4.21.0", "express-session": "1.17.0", "flaverr": "^1.10.0", "glob": "7.1.2", @@ -56,14 +57,13 @@ "pluralize": "1.2.1", "prompt": "1.2.1", "rc": "1.2.8", - "router": "1.3.2", "rttc": "^10.0.0-0", "sails-generate": "^2.0.11", "sails-stringfile": "^0.3.3", "semver": "7.5.2", "serve-favicon": "2.4.5", - "serve-static": "1.13.1", - "skipper": "^0.9.4", + "serve-static": "1.16.2", + "skipper": "^0.9.5", "sort-route-addresses": "^0.0.4", "uid-safe": "2.1.5", "vary": "1.1.2", diff --git a/test/integration/middleware.static.test.js b/test/integration/middleware.static.test.js index bd3e25daf..6a9157789 100644 --- a/test/integration/middleware.static.test.js +++ b/test/integration/middleware.static.test.js @@ -91,7 +91,7 @@ describe('middleware :: ', function() { }, function(err, response, body) { assert.equal(test_file.toString('utf-8'), body); - assert.equal(response.headers['content-type'], 'application/font-woff'); + assert.equal(response.headers['content-type'], 'font/woff'); return done(); } );