New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

htmlparser2-without-node-native

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlparser2-without-node-native - npm Package Compare versions

Comparing version 3.9.0 to 3.9.2

6

lib/FeedHandler.js
var index = require("./index.js"),
DomHandler = index.DomHandler,
DomUtils = index.DomUtils;
DomUtils = index.DomUtils;

@@ -37,4 +37,4 @@ //TODO: make this a streamable handler

var feed = {},
feedRoot = getOneElement(isValidFeed, this.dom),
tmp, childs;
feedRoot = getOneElement(isValidFeed, this.dom),
tmp, childs;

@@ -41,0 +41,0 @@ if(feedRoot){

@@ -1,2 +0,2 @@

var Tokenizer = require("./Tokenizer.js");
var Tokenizer;

@@ -114,4 +114,7 @@ /*

!this._options.xmlMode;
if(!!this._options.Tokenizer) {
if(this._options.Tokenizer) {
Tokenizer = this._options.Tokenizer;
} else {
Tokenizer = require("./Tokenizer.js");
}

@@ -118,0 +121,0 @@ this._tokenizer = new Tokenizer(this._options, this);

@@ -601,4 +601,4 @@ module.exports = Tokenizer;

this._buffer = "";
this._bufferOffset += this._index;
this._index = 0;
this._bufferOffset += this._index;
} else if(this._running){

@@ -610,9 +610,9 @@ if(this._state === TEXT){

this._buffer = "";
this._bufferOffset += this._index;
this._index = 0;
this._bufferOffset += this._index;
} else if(this._sectionStart === this._index){
//the section just started
this._buffer = "";
this._bufferOffset += this._index;
this._index = 0;
this._bufferOffset += this._index;
} else {

@@ -619,0 +619,0 @@ //remove everything unnecessary

module.exports = Stream;
var Parser = require("./Parser.js"),
WritableStream = require("stream").Writable || require("readable-stream").Writable;
WritableStream = require("stream").Writable || require("readable-stream").Writable,
StringDecoder = require("string_decoder").StringDecoder,
Buffer = require("buffer").Buffer;
function Stream(cbs, options){
var parser = this._parser = new Parser(cbs, options);
var decoder = this._decoder = new StringDecoder();

@@ -12,3 +15,3 @@ WritableStream.call(this, {decodeStrings: false});

this.once("finish", function(){
parser.end();
parser.end(decoder.end());
});

@@ -20,4 +23,5 @@ }

WritableStream.prototype._write = function(chunk, encoding, cb){
if(chunk instanceof Buffer) chunk = this._decoder.write(chunk);
this._parser.write(chunk);
cb();
};
{
"name": "htmlparser2-without-node-native",
"description": "htmlparser2 build that excludes node native modules so that you can use it in platforms like React Native.",
"version": "3.9.0",
"version": "3.9.2",
"author": "Felix Boehm <me@feedic.com>",

@@ -35,3 +35,3 @@ "keywords": [

"test": "mocha && npm run lint",
"lint": "jshint lib test && jscs lib test"
"lint": "eslint lib test"
},

@@ -49,7 +49,6 @@ "dependencies": {

"coveralls": "^2.11.4",
"istanbul": "^0.3.18",
"jscs": "^2.1.0",
"jshint": "^2.8.0",
"istanbul": "^0.4.3",
"mocha": "^2.2.5",
"mocha-lcov-reporter": "^0.0.2"
"eslint": "^2.12.0",
"mocha-lcov-reporter": "^1.2.0"
},

@@ -59,22 +58,3 @@ "browser": {

},
"license": "MIT",
"jshintConfig": {
"eqeqeq": true,
"freeze": true,
"latedef": "nofunc",
"noarg": true,
"nonbsp": true,
"quotmark": "double",
"undef": true,
"unused": true,
"trailing": true,
"eqnull": true,
"proto": true,
"smarttabs": true,
"node": true,
"globals": {
"describe": true,
"it": true
}
}
"license": "MIT"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc