Skip to content

Commit

Permalink
Fix reading blob from db after heap8 growth (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvail committed Mar 20, 2024
1 parent a7394ed commit 586266b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GEOS_VERSION = 3.12.1
PROJ_VERSION = 9.3.1
RTTOPO_VERSION = 1.1.0

ZLIB_VERSION = 1.3
ZLIB_VERSION = 1.3.1
XML2_VERSION = 2.9.12
ICONV_VERSION = 1.17

Expand Down
Binary file modified dist/index.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/spl-node.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/spl-web.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spl.js",
"version": "0.1.0",
"version": "0.1.1",
"description": "SpatiaLite and friends - sqlite, geos, proj, rttopo - for node and browser.",
"main": "dist/index.js",
"type": "module",
Expand Down
3 changes: 1 addition & 2 deletions src/spl.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const spl = function (wasmBinary=null, options = {}) {
getValue,
setValue,
stackAlloc,
HEAP8,
stringToUTF8,
UTF8ToString,
lengthBytesUTF8,
Expand Down Expand Up @@ -424,7 +423,7 @@ const spl = function (wasmBinary=null, options = {}) {
if (splOptions.autoGeoJSON && isGaia(ptr, size)) {
val = toGeoJSON(ptr, size, splOptions.autoGeoJSON.precision, splOptions.autoGeoJSON.options);
} else {
val = HEAP8.buffer.slice(ptr, ptr + size);
val = _emspl.HEAP8.buffer.slice(ptr, ptr + size);
}
break;
default:
Expand Down

0 comments on commit 586266b

Please sign in to comment.