mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
update wisp client and server
This commit is contained in:
parent
a6f190fcda
commit
0d7369c77a
6 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
||||||
# Libcurl.js Changelog:
|
# Libcurl.js Changelog:
|
||||||
|
|
||||||
|
## v0.5.3 (3/9/24):
|
||||||
|
- Update Wisp client and server, which improves error handling
|
||||||
|
- Expose the wisp-client-js version in the API
|
||||||
|
|
||||||
## v0.5.2 (3/10/24):
|
## v0.5.2 (3/10/24):
|
||||||
- Fix a bug with error handling
|
- Fix a bug with error handling
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,9 @@ rm $MODULE_FILE
|
||||||
#add version number and copyright notice
|
#add version number and copyright notice
|
||||||
VERSION=$(cat package.json | jq -r '.version')
|
VERSION=$(cat package.json | jq -r '.version')
|
||||||
sed -i "s/__library_version__/$VERSION/" $OUT_FILE
|
sed -i "s/__library_version__/$VERSION/" $OUT_FILE
|
||||||
|
WISP_VERSION=$(cat $WISP_CLIENT/package.json | jq -r '.version')
|
||||||
|
sed -i "s/__wisp_version__/$WISP_VERSION/" $OUT_FILE
|
||||||
|
|
||||||
|
|
||||||
#add extra libraries
|
#add extra libraries
|
||||||
sed -i "/__extra_libraries__/r $JAVSCRIPT_DIR/copyright.js" $OUT_FILE
|
sed -i "/__extra_libraries__/r $JAVSCRIPT_DIR/copyright.js" $OUT_FILE
|
||||||
|
|
|
@ -32,6 +32,7 @@ var wasm_ready = false;
|
||||||
var version_dict = null;
|
var version_dict = null;
|
||||||
var api = null;
|
var api = null;
|
||||||
const libcurl_version = "__library_version__";
|
const libcurl_version = "__library_version__";
|
||||||
|
const wisp_version = "__wisp_version__";
|
||||||
|
|
||||||
function check_loaded(check_websocket) {
|
function check_loaded(check_websocket) {
|
||||||
if (!wasm_ready) {
|
if (!wasm_ready) {
|
||||||
|
@ -258,6 +259,7 @@ function get_version() {
|
||||||
_free(version_ptr);
|
_free(version_ptr);
|
||||||
version_dict = JSON.parse(version_str);
|
version_dict = JSON.parse(version_str);
|
||||||
version_dict.lib = libcurl_version;
|
version_dict.lib = libcurl_version;
|
||||||
|
version_dict.wisp = wisp_version;
|
||||||
return version_dict;
|
return version_dict;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "libcurl.js",
|
"name": "libcurl.js",
|
||||||
"version": "0.5.2",
|
"version": "0.5.3",
|
||||||
"description": "An experimental port of libcurl to WebAssembly for use in the browser.",
|
"description": "An experimental port of libcurl to WebAssembly for use in the browser.",
|
||||||
"main": "libcurl.mjs",
|
"main": "libcurl.mjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 8f9098c9bad047c080fe57c1831c1b2a361f7131
|
Subproject commit f63a01d33b850f6f45a059d1f6db3c45cbe47b1e
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2fc9e2b1337ac2a0b15d5da5fabf051a4db31cc7
|
Subproject commit b18670f742ec2ff8efaee6074c36dfb568f20ba2
|
Loading…
Add table
Add a link
Reference in a new issue