dnode-object
Advanced tools
+4
-3
@@ -9,3 +9,4 @@ function DnodeObject() {} | ||
| if (typeof object[prop] === 'function' && this.include(object, prop, options)) { | ||
| api[prop] = this.wrapFunction(object, prop); | ||
| // console.log('DnodeObject include', prop); /* debug */ | ||
| api[prop] = this.wrapFunction(object, prop, options); | ||
| } | ||
@@ -21,4 +22,4 @@ } | ||
| } | ||
| if (options != null) { | ||
| if (options.exclude && options.exclude.indexOf(prop)) { | ||
| if (options) { | ||
| if (options.exclude && options.exclude.indexOf(prop) !== -1 ) { | ||
| return false; | ||
@@ -25,0 +26,0 @@ } |
+1
-1
| { | ||
| "name": "dnode-object", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "Wrap the methods of an object in an api object that you can use with dnode", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1830
4.1%45
2.27%