Comparing version 1.0.10 to 1.1.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73372