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 2.0.0 to 2.0.1

2

package.json
{
"name": "sax-wasm",
"version": "2.0.0",
"version": "2.0.1",
"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",

@@ -10,3 +10,3 @@ # SAX (Simple API for XML) for WebAssembly

Sax Wasm is a sax style parser for XML, HTML, JSX anf Angular Templates written in [Rust](https://www.rust-lang.org/en-US/), compiled for
Sax Wasm is a sax style parser for XML, HTML, JSX and Angular Templates written in [Rust](https://www.rust-lang.org/en-US/), compiled for
WebAssembly with the sole motivation to bring **faster than native speeds** to XML and JSX parsing for node and the web.

@@ -121,2 +121,3 @@ Inspired by [sax js](https://github.com/isaacs/sax-js) and rebuilt with Rust for WebAssembly, sax-wasm brings optimizations

1. JSX is supported including JSX fragments. Things like `<foo bar={this.bar()}></bar>` and `<><foo/><bar/></>` will parse as expected.
1. Angular 2+ templates are supported. Things like <button type="submit" [disabled]=disabled *ngIf=boolean (click)="clickHandler(event)"></button> will parse as expected.
1. No attempt is made to validate the document. sax-wasm reports what it sees. If you need strict mode or document validation, it may

@@ -144,12 +145,12 @@ be recreated by applying rules to the events that are reported by the parser.

|----------------------------------|--------------|------------------------------------------------|
|SaxEventType.Text |0b000000000001|text: [Text](src/js/saxWasm.ts#L95) |
|SaxEventType.ProcessingInstruction|0b000000000010|procInst: [Text](src/js/saxWasm.ts#L95) |
|SaxEventType.SGMLDeclaration |0b000000000100|sgmlDecl: [Text](src/js/saxWasm.ts#L95) |
|SaxEventType.Doctype |0b000000001000|doctype: [Text](src/js/saxWasm.ts#L95) |
|SaxEventType.Comment |0b000000010000|comment: [Text](src/js/saxWasm.ts#L95) |
|SaxEventType.OpenTagStart |0b000000100000|tag: [Tag](src/js/saxWasm.ts#L135) |
|SaxEventType.Attribute |0b000001000000|attribute: [Attribute](src/js/saxWasm.ts#L55) |
|SaxEventType.OpenTag |0b000010000000|tag: [Tag](src/js/saxWasm.ts#L135) |
|SaxEventType.CloseTag |0b000100000000|tag: [Tag](src/js/saxWasm.ts#L135) |
|SaxEventType.CDATA |0b001000000000|start: [Position](src/js/saxWasm.ts#L45) |
|SaxEventType.Text |0b000000000001|text: [Text](src/js/saxWasm.ts#L106) |
|SaxEventType.ProcessingInstruction|0b000000000010|procInst: [Text](src/js/saxWasm.ts#L106) |
|SaxEventType.SGMLDeclaration |0b000000000100|sgmlDecl: [Text](src/js/saxWasm.ts#L106) |
|SaxEventType.Doctype |0b000000001000|doctype: [Text](src/js/saxWasm.ts#L106) |
|SaxEventType.Comment |0b000000010000|comment: [Text](src/js/saxWasm.ts#L106) |
|SaxEventType.OpenTagStart |0b000000100000|tag: [Tag](src/js/saxWasm.ts#L133) |
|SaxEventType.Attribute |0b000001000000|attribute: [Attribute](src/js/saxWasm.ts#L49) |
|SaxEventType.OpenTag |0b000010000000|tag: [Tag](src/js/saxWasm.ts#L133) |
|SaxEventType.CloseTag |0b000100000000|tag: [Tag](src/js/saxWasm.ts#L133) |
|SaxEventType.CDATA |0b001000000000|start: [Position](src/js/saxWasm.ts#L39) |

@@ -156,0 +157,0 @@ ## Speeding things up on large documents

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