Permalink
Browse files

remove core-util-is dep

  • Loading branch information...
1 parent 14d7091 commit c248fbc8df28a9b115a88a379950bc01ab8586ea @feross committed Jan 29, 2014
Showing with 4 additions and 8 deletions.
  1. +2 −4 index.js
  2. +2 −4 package.json
View
6 index.js
@@ -1,5 +1,3 @@
-var is = require('core-util-is') // added in Node 0.12
-
/**
* Instrument an object or class so that anytime a method is invoked, it gets
* logged to the console.
@@ -8,7 +6,7 @@ var is = require('core-util-is') // added in Node 0.12
*/
module.exports = function (constructor) {
Object.keys(constructor).forEach(function (methodName) {
- if (!is.isFunction(constructor[methodName])) {
+ if (typeof constructor[methodName] !== 'function') {
return
}
@@ -25,7 +23,7 @@ module.exports = function (constructor) {
Object.keys(proto).forEach(function (methodName) {
var propDesc = Object.getOwnPropertyDescriptor(proto, methodName)
if (!propDesc.configurable || ('get' in propDesc) || ('set' in propDesc) ||
- !is.isFunction(proto[methodName])) {
+ typeof proto[methodName] !== 'function') {
return
}
View
6 package.json
@@ -3,11 +3,9 @@
"version": "0.1.2",
"description": "Instrument an object or class so that anytime one of its method is invoked it gets logged to the console.",
"main": "index.js",
- "dependencies": {
- "core-util-is": "*"
- },
+ "dependencies": {},
"devDependencies": {
- "tape": "*"
+ "tape": "2.x"
},
"scripts": {
"test": "tape test/*.js"

0 comments on commit c248fbc

Please sign in to comment.