Socket
Socket
Sign inDemoInstall

saxen

Package Overview
Dependencies
0
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 2.0.0

8

CHANGELOG.md

@@ -0,1 +1,9 @@

# 2.0.0
* `FEAT`: rename events
* `textNode -> text`
* `startNode -> openTag`
* `endNode -> closeTag`
# 1.1.0

@@ -2,0 +10,0 @@

2

package.json

@@ -16,3 +16,3 @@ {

],
"version": "1.1.0",
"version": "2.0.0",
"main": "./parser.js",

@@ -19,0 +19,0 @@ "bugs": {

@@ -204,5 +204,5 @@ 'use strict';

switch (name) {
case 'startNode': onStartNode = cb; break;
case 'textNode': onTextNode = cb; break;
case 'endNode': onEndNode = cb; break;
case 'openTag': onStartNode = cb; break;
case 'text': onTextNode = cb; break;
case 'closeTag': onEndNode = cb; break;
case 'error': onError = cb; break;

@@ -209,0 +209,0 @@ case 'cdata': onCDATA = cb; break;

@@ -31,3 +31,3 @@ # `/saxen/` parser <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Coat_of_arms_of_Saxony.svg/220px-Coat_of_arms_of_Saxony.svg.png" align="right" />

parser.on('startNode', function(elementName, getAttrs, decodeEntity, isClosing, getContext) {
parser.on('openTag', function(elementName, getAttrs, decodeEntity, selfClosing, getContext) {

@@ -41,3 +41,3 @@ elementName;

parser.on('endNode', function(elementName, decodeEntity, isOpening, getContext) {
parser.on('closeTag', function(elementName, decodeEntity, selfClosing, getContext) {
...

@@ -44,0 +44,0 @@ });

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