Socket
Socket
Sign inDemoInstall

htmljs-parser

Package Overview
Dependencies
0
Maintainers
5
Versions
109
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1245
11Next

5.0.3

Diff

Changelog

Source

5.0.3

Patch Changes

dylanpiercey
published 5.0.2 •

Changelog

Source

5.0.2

Patch Changes

  • #119 28fde07 Thanks @DylanPiercey! - Support JS line comments inside the open tag (previously just block comments could be used).
  • #119 28fde07 Thanks @DylanPiercey! - Support JS style comments in HTML bodies (previously allowed in parsed text and concise mode).
dylanpiercey
published 5.0.1 •

Changelog

Source

5.0.1

Patch Changes

  • #117 8bd3c40 Thanks @DylanPiercey! - Fix issue with onCloseTagStart not called for text mode tags (eg style, script, textarea & html-comment).
dylanpiercey
published 5.0.0 •

Changelog

Source

5.0.0

Major Changes

  • #114 14f3499 Thanks @DylanPiercey! - Rename onTagName to onOpenTagName. Add a new onOpenTagStart event (before onOpenTagName). Split the onCloseTag event into three new events: onClosetTagStart, onCloseTagName & onCloseTagEnd).
dylanpiercey
published 4.0.0 •

Changelog

Source

4.0.0

Major Changes

  • #112 2ad4628 Thanks @DylanPiercey! - Switch character position offsets for newlines to be to similar to vscode. Previously the newline was counted as the first character of the line, now it is the last character of the previous line.
dylanpiercey
published 3.3.6 •

Changelog

Source

3.3.6

Patch Changes

dylanpiercey
published 3.3.5 •

Changelog

Source

3.3.5

Patch Changes

  • #108 8a988f4 Thanks @DylanPiercey! - Fix issue where parser would sometimes not consume enough characters and cause a bracket mismatch
dylanpiercey
published 3.3.4 •

Changelog

Source

3.3.4

Patch Changes

  • #103 a4e3635 Thanks @DylanPiercey! - Fixes issue where expressions could consume an extra character when windows line endings used.
  • #103 1f2c9b0 Thanks @DylanPiercey! - When parsing unenclosed expressions we look backwards for unary operators preceded by a word break. This caused a false positive when a member expression was found with the operator name, eg input.new. Now we ensure that these operators are not in a member expression like this.
  • #103 469b4bc Thanks @DylanPiercey! - Improves consistency with v2 of the parser by allowing expressions to span multiple lines if the line is ended with the continuation. This change also allows html attributes and grouped concise attributes to span multiple lines with a new line before or after the continuation.
dylanpiercey
published 3.3.3 •

Changelog

Source

3.3.3

Patch Changes

dylanpiercey
published 3.3.2 •

Changelog

Source

3.3.2

Patch Changes

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc