@livestore/wa-sqlite 1.0.1-dev.11 → 1.0.1-dev.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sqlite-api.js +4 -4
- package/src/types/index.d.ts +0 -1
package/package.json
CHANGED
package/src/sqlite-api.js
CHANGED
|
@@ -252,12 +252,12 @@ export function Factory(Module) {
|
|
|
252
252
|
sqlite3.serialize = (function() {
|
|
253
253
|
const fname = 'sqlite3_serialize';
|
|
254
254
|
const f = Module.cwrap(fname, ...decl('nsnn:n'));
|
|
255
|
-
return function(db, schema,
|
|
255
|
+
return function(db, schema, flags) {
|
|
256
256
|
verifyDatabase(db);
|
|
257
|
-
|
|
257
|
+
const piSize = tmpPtr[0];
|
|
258
258
|
const address = f(db, schema, piSize, flags);
|
|
259
|
-
const
|
|
260
|
-
|
|
259
|
+
const size = Module.getValue(piSize, '*');
|
|
260
|
+
const result = Module.HEAPU8.subarray(address, address + size);
|
|
261
261
|
return result;
|
|
262
262
|
};
|
|
263
263
|
})();
|