Comparing version 1.1.2 to 1.1.4
{ | ||
"name": "sax-wasm", | ||
"version": "1.1.2", | ||
"version": "1.1.4", | ||
"repository": "https://github.com/justinwilaby/sax-wasm", | ||
@@ -18,3 +18,4 @@ "description": "An extremely fast JSX, HTML and XML parser written in Rust compiled to WebAssembly for Node and the Web", | ||
"build:wasm": "rustc ./src/main.rs -C lto -O --target wasm32-unknown-unknown -o ./lib/sax-wasm.wasm", | ||
"build": "tsc && npm run build:wasm" | ||
"run:wasm-gc": "cd ./lib && wasm-gc sax-wasm.wasm", | ||
"build": "tsc && npm run build:wasm && npm run run:wasm-gc" | ||
}, | ||
@@ -21,0 +22,0 @@ "keywords": [ |
@@ -40,3 +40,3 @@ # SAX (Simple API for XML) for Web Assembly | ||
} | ||
} | ||
}; | ||
@@ -96,3 +96,3 @@ // Instantiate and prepare the wasm for parsing | ||
Streaming is supported with sax-wasm by writing utf-8 encoded text to the parser instance. Writes can occur safely | ||
anywhere except withing the `eventHandler` function or within the `eventTrap` (when extending `SAXParser` class). | ||
anywhere except within the `eventHandler` function or within the `eventTrap` (when extending `SAXParser` class). | ||
Doing so anyway risks overwriting memory still in play. | ||
@@ -175,2 +175,3 @@ | ||
``` | ||
Follow the instructions to install [wasm-gc](https://github.com/alexcrichton/wasm-gc) based on your platform. | ||
The project can now be built using: | ||
@@ -177,0 +178,0 @@ ```bash |
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
179
72450