Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lite-html-parser

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lite-html-parser - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

13

index.js

@@ -21,8 +21,2 @@ const IN_TAG = 1 << 0

let state = 0
const bitOn = (bit) => { state |= bit }
const bitOff = (bit) => { state = state & ~bit }
const isBitOn = bit => (state & bit) > 0
exports.parse = (xhtml, handlers, options = OPTIONS) => {

@@ -38,5 +32,10 @@ const { opentag, closetag, attribute, text, comment, instruction } = handlers

let rest = ''
let state = 0
let line = 0
let row = 0
const bitOn = (bit) => { state |= bit }
const bitOff = (bit) => { state = state & ~bit }
const isBitOn = bit => (state & bit) > 0
const sayOpentag = () => {

@@ -207,4 +206,2 @@ bitOn(TAG_OPEN)

}
state = 0
}
{
"name": "lite-html-parser",
"version": "0.2.0",
"version": "0.2.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "keywords": [

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