This commit is contained in:
Toshit Chawda 2024-12-11 22:39:02 -08:00
parent 5a7917f292
commit c1cece693a
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
5 changed files with 110 additions and 143 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "epoxy-client"
version = "2.1.15"
version = "2.1.16"
edition = "2021"
[lints]

View file

@ -12,7 +12,7 @@ else
CARGOFLAGS=""
fi
WBG="wasm-bindgen 0.2.95"
WBG="wasm-bindgen 0.2.99"
if [ "$(wasm-bindgen -V)" != "$WBG" ]; then
echo "Incorrect wasm-bindgen version: '$(wasm-bindgen -V)' != '$WBG'"
exit 1

View file

@ -19,6 +19,7 @@ import initEpoxy, { EpoxyClient, EpoxyClientOptions, EpoxyHandlers, info as epox
const wisp_v1 = params.has("v1");
const wisp_udp = params.has("udp_extension");
const disable_certverif = params.has("disable_certverif");
const arraybuffer = params.has("arraybuffer");
console.log(
"%cWASM is significantly slower with DevTools open!",
"color:red;font-size:3rem;font-weight:bold"
@ -332,7 +333,11 @@ import initEpoxy, { EpoxyClient, EpoxyClientOptions, EpoxyHandlers, info as epox
console.time();
let resp = await epoxy_client.fetch(test_url);
console.log(resp, resp.rawHeaders);
log(await resp.arrayBuffer());
if (arraybuffer) {
log(await resp.arrayBuffer());
} else {
log(await resp.text());
}
console.timeEnd();
}
log("done");

View file

@ -1,6 +1,6 @@
{
"name": "@mercuryworkshop/epoxy-tls",
"version": "2.1.15-2",
"version": "2.1.16-1",
"description": "A wasm library for using raw encrypted tls/ssl/tcp/udp/https/websocket streams on the browser",
"scripts": {
"build": "./build.sh"