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

sax-wasm

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sax-wasm - npm Package Compare versions

Comparing version 1.0.10 to 1.1.0

2

package.json
{
"name": "sax-wasm",
"version": "1.0.10",
"version": "1.1.0",
"repository": "https://github.com/justinwilaby/sax-wasm",

@@ -5,0 +5,0 @@ "description": "An extremely fast JSX, HTML and XML parser written in Rust compiled to WebAssembly for Node and the Web",

@@ -33,3 +33,3 @@ # SAX (Simple API for XML) for Web Assembly

// Instantiate
const parser = new SAXParser(0, SaxEventType.Attribute | SaxEventType.OpenTag);
const parser = new SAXParser(SaxEventType.Attribute | SaxEventType.OpenTag);
parser.eventHandler = (event, data) => {

@@ -60,3 +60,3 @@ if (event === SaxEventType.Attribute ) {

const saxWasmbuffer = await saxWasmResponse.arrayBuffer();
const parser = new SAXParser(0, SaxEventType.Attribute | SaxEventType.OpenTag);
const parser = new SAXParser(SaxEventType.Attribute | SaxEventType.OpenTag);

@@ -110,16 +110,16 @@ // Instantiate and prepare the wasm for parsing

|Event |Argument |
|----------------------------------|--------------------|
|SaxEventType.Text |text: string |
|SaxEventType.ProcessingInstruction|procInst: string |
|SaxEventType.SGMLDeclaration |sgmlDecl: string |
|SaxEventType.Doctype |doctype: string |
|SaxEventType.Comment |comment: string |
|SaxEventType.OpenTagStart |tag: Tag |
|SaxEventType.Attribute |attribute: Attribute|
|SaxEventType.OpenTag |tag: Tag |
|SaxEventType.CloseTag |tag: Tag |
|SaxEventType.OpenCDATA |start: Position |
|SaxEventType.CDATA |cdata: string |
|SaxEventType.CloseCDATA |end: Position |
|Event |Mask |Argument |
|----------------------------------|--------------|--------------------|
|SaxEventType.Text |0b1 |text: string |
|SaxEventType.ProcessingInstruction|0b10 |procInst: string |
|SaxEventType.SGMLDeclaration |0b100 |sgmlDecl: string |
|SaxEventType.Doctype |0b1000 |doctype: string |
|SaxEventType.Comment |0b10000 |comment: string |
|SaxEventType.OpenTagStart |0b100000 |tag: Tag |
|SaxEventType.Attribute |0b1000000 |attribute: Attribute|
|SaxEventType.OpenTag |0b10000000 |tag: Tag |
|SaxEventType.CloseTag |0b100000000 |tag: Tag |
|SaxEventType.OpenCDATA |0b1000000000 |start: Position |
|SaxEventType.CDATA |0b10000000000 |cdata: string |
|SaxEventType.CloseCDATA |0b100000000000|end: Position |

@@ -126,0 +126,0 @@ ## SAXParser.js

Sorry, the diff of this file is not supported yet

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