New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sax-wasm

Package Overview
Dependencies
Maintainers
1
Versions
45
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.3 to 1.0.4

35

lib/saxWasm.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Options {
}
Options.Trim = 0b1;
Options.Normalize = 0b10;
Options.Lowercase = 0b100;
Options.XmlNS = 0b1000;
Options.StrictEntities = 0b10000;
Options.Strict = 0b100000;
Options.NoScript = 0b1000000;
exports.Options = Options;
class SaxEventType {

@@ -40,27 +30,2 @@ }

exports.SaxEventType = SaxEventType;
class SaxErrorType {
}
SaxErrorType.UnclosedRootTag = 1;
SaxErrorType.XmlPrefixBinding = 2;
SaxErrorType.XmlnsPrefixBinding = 3;
SaxErrorType.UnboundNSPrefix = 4;
SaxErrorType.EmptyCloseTag = 5;
SaxErrorType.UnexpectedCloseTag = 6;
SaxErrorType.UnmatchedCloseTag = 7;
SaxErrorType.InvalidCharacterEntity = 8;
SaxErrorType.NonWhitespaceBeforeFirstTag = 9;
SaxErrorType.TextDataOutsideRootNode = 10;
SaxErrorType.UnencodedLessThan = 11;
SaxErrorType.MisplacedDoctype = 12;
SaxErrorType.MalformedComment = 13;
SaxErrorType.InvalidCharInTagName = 14;
SaxErrorType.MisplacedForwardSlash = 15;
SaxErrorType.InvalidAttributeName = 16;
SaxErrorType.AttributeWithoutValue = 17;
SaxErrorType.UnquotedAttributeValue = 18;
SaxErrorType.AttributesNotSeparated = 19;
SaxErrorType.InvalidClosingTagName = 20;
SaxErrorType.InvalidCharsInCloseTag = 21;
SaxErrorType.InvalidCharInEntityName = 22;
exports.SaxErrorType = SaxErrorType;
const jsonFlag = SaxEventType.Attribute |

@@ -67,0 +32,0 @@ SaxEventType.OpenTag |

4

package.json
{
"name": "sax-wasm",
"version": "1.0.3",
"version": "1.0.4",
"description": "An extremely fast JSX, HTML and XML parser written in Rust compiled to WebAssembly for Node and the Web",

@@ -11,3 +11,3 @@ "main": "index.js",

"test": "jest",
"build:wasm": "rustc ./src/main.rs -C lto -O --target wasm32-unknown-unknown --out-dir ./lib && cd ./lib && wasm-gc main.wasm sax-wasm.wasm",
"build:wasm": "rustc ./src/main.rs -C lto -O --target wasm32-unknown-unknown -o ./lib/sax-wasm.wasm",
"build": "tsc && npm run build:wasm"

@@ -14,0 +14,0 @@ },

@@ -121,7 +121,7 @@ # SAX (Simple API for XML) for Web Assembly

1. Install rust:
Install rust:
```bash
curl https://sh.rustup.rs -sSf | sh
```
2. Install the nightly compiler and switch to it
Install the nightly compiler and switch to it
```bash

@@ -131,5 +131,3 @@ rustup install nightly

```
3. Follow the instructions for installing [wasm-gc](https://github.com/alexcrichton/wasm-gc)
4. Install [node with npm](https://nodejs.org/en/) then run the following command from the project root.
Install [node with npm](https://nodejs.org/en/) then run the following command from the project root.
```bash

@@ -136,0 +134,0 @@ npm install

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