Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Commit 40d7ad1

Browse files
committed
fix callable exists
1 parent 252134a commit 40d7ad1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/utils/callable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Callable.prototype.call = function() {
2222
};
2323

2424
Callable.prototype.exists = function() {
25-
return _.has(this.object, this.method);
25+
return _.hasIn(this.object, this.method);
2626
};
2727

2828
module.exports = Callable;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"commander": "^2.9.0",
2222
"inquirer": "^0.11.0",
2323
"liftoff": "^2.2.0",
24-
"lodash": "^3.10.1",
24+
"lodash": "^4.3",
2525
"node-version-compare": "^1.0.1"
2626
},
2727
"devDependencies": {

0 commit comments

Comments
 (0)