@livestore/wa-sqlite 1.0.1-dev.26 → 1.0.1-dev.28

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livestore/wa-sqlite",
3
- "version": "1.0.1-dev.26",
3
+ "version": "1.0.1-dev.28",
4
4
  "type": "module",
5
5
  "main": "src/sqlite-api.js",
6
6
  "types": "src/types/index.d.ts",
package/src/sqlite-api.js CHANGED
@@ -940,9 +940,9 @@ export function Factory(Module) {
940
940
 
941
941
  sqlite3.vfs_register = function(vfs, makeDefault) {
942
942
  if (registeredVfs.has(vfs.name)) return
943
- const result = Module.vfs_register(vfs.name, makeDefault);
943
+ const result = Module.vfs_register(vfs, makeDefault);
944
944
  const res = check('sqlite3_vfs_register', result);
945
- registeredVfs.add(vfs);
945
+ registeredVfs.add(vfs.name);
946
946
  return res
947
947
  };
948
948
 
@@ -897,11 +897,15 @@ interface SQLiteAPI {
897
897
  vfs_registered: Set<string>;
898
898
  }
899
899
 
900
+ type SQLiteAPI_ = SQLiteAPI;
901
+ type SQLiteVFS_ = SQLiteVFS
902
+
900
903
  declare module '@livestore/wa-sqlite' {
901
- export type SQLiteAPI_ = SQLiteAPI;
902
- export type SQLiteVFS_ = SQLiteVFS;
904
+ export type SQLiteVFS = SQLiteVFS_;
905
+ export type SQLiteAPI = SQLiteAPI_
903
906
  }
904
907
 
908
+
905
909
  /** @ignore */
906
910
  declare module '@livestore/wa-sqlite/src/sqlite-constants.js' {
907
911
  export const SQLITE_OK: 0;