@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 +1 -1
- package/src/sqlite-api.js +2 -2
- package/src/types/index.d.ts +6 -2
package/package.json
CHANGED
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
|
|
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
|
|
package/src/types/index.d.ts
CHANGED
|
@@ -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
|
|
902
|
-
export type
|
|
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;
|