Skip to content

Commit

Permalink
More lightweight dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
MichielDeMey committed Feb 4, 2016
1 parent f90b902 commit 4861bbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var jwt = require('jsonwebtoken');
var UnauthorizedError = require('./errors/UnauthorizedError');
var unless = require('express-unless');
var async = require('async');
var _ = require('lodash');
var set = require('lodash.set');

var DEFAULT_REVOKED_FUNCTION = function(_, __, cb) { return cb(null, false); }

Expand Down Expand Up @@ -118,7 +118,7 @@ module.exports = function(options) {

], function (err, result){
if (err) { return next(err); }
_.set(req, _requestProperty, result);
set(req, _requestProperty, result);
next();
});
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"async": "^0.9.0",
"express-unless": "^0.3.0",
"jsonwebtoken": "^5.0.0",
"lodash": "~3.10.1"
"lodash.set": "^4.0.0"
},
"devDependencies": {
"mocha": "1.x.x"
Expand Down

0 comments on commit 4861bbb

Please sign in to comment.