html-select
Advanced tools
Comparing version 1.2.1 to 1.2.2
var inherits = require('inherits'); | ||
var Readable = require('readable-stream').Readable; | ||
var EventEmitter = require('events').EventEmitter; | ||
var inspect = require('object-inspect'); | ||
@@ -26,1 +27,9 @@ module.exports = Tag; | ||
}; | ||
Tag.prototype.toJSON = function () { | ||
return { name: this.name, attributes: this.attributes }; | ||
}; | ||
Tag.prototype.inspect = function () { | ||
return inspect(this.toJSON()); | ||
}; |
{ | ||
"name": "html-select", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "match a tokenized html stream with css selectors", | ||
@@ -14,3 +14,4 @@ "main": "index.js", | ||
"minimist": "~0.0.8", | ||
"split": "~0.3.0" | ||
"split": "~0.3.0", | ||
"object-inspect": "~0.4.0" | ||
}, | ||
@@ -17,0 +18,0 @@ "devDependencies": { |
52052
920
6
+ Addedobject-inspect@~0.4.0
+ Addedobject-inspect@0.4.0(transitive)