Comparing version 0.4.0-pre.10 to 0.4.0
@@ -76,3 +76,4 @@ "use strict"; | ||
const syncPeriod = opts?.syncPeriod ?? 0.0; | ||
this.db = databaseOpenWithRpcSync(path, opts.syncUrl, authToken, encryptionCipher, encryptionKey, syncPeriod); | ||
const readYourWrites = opts?.readYourWrites ?? true; | ||
this.db = databaseOpenWithRpcSync(path, opts.syncUrl, authToken, encryptionCipher, encryptionKey, syncPeriod, readYourWrites); | ||
} else { | ||
@@ -100,3 +101,3 @@ const authToken = opts?.authToken ?? ""; | ||
sync() { | ||
databaseSyncSync.call(this.db); | ||
return databaseSyncSync.call(this.db); | ||
} | ||
@@ -103,0 +104,0 @@ |
{ | ||
"name": "libsql", | ||
"version": "0.4.0-pre.10", | ||
"version": "0.4.0", | ||
"description": "A better-sqlite3 compatible API for libSQL that supports Bun, Deno, and Node", | ||
@@ -73,13 +73,13 @@ "os": [ | ||
"detect-libc": "2.0.2", | ||
"libsql": "^0.3.15" | ||
"libsql": "^0.3.19" | ||
}, | ||
"optionalDependencies": { | ||
"@libsql/darwin-arm64": "0.4.0-pre.10", | ||
"@libsql/darwin-x64": "0.4.0-pre.10", | ||
"@libsql/linux-arm64-gnu": "0.4.0-pre.10", | ||
"@libsql/linux-arm64-musl": "0.4.0-pre.10", | ||
"@libsql/linux-x64-gnu": "0.4.0-pre.10", | ||
"@libsql/linux-x64-musl": "0.4.0-pre.10", | ||
"@libsql/win32-x64-msvc": "0.4.0-pre.10" | ||
"@libsql/darwin-arm64": "0.4.0", | ||
"@libsql/darwin-x64": "0.4.0", | ||
"@libsql/linux-arm64-gnu": "0.4.0", | ||
"@libsql/linux-arm64-musl": "0.4.0", | ||
"@libsql/linux-x64-gnu": "0.4.0", | ||
"@libsql/linux-x64-musl": "0.4.0", | ||
"@libsql/win32-x64-msvc": "0.4.0" | ||
} | ||
} |
@@ -103,3 +103,3 @@ "use strict"; | ||
sync() { | ||
databaseSyncAsync.call(this.db); | ||
return databaseSyncAsync.call(this.db); | ||
} | ||
@@ -106,0 +106,0 @@ |
@@ -18,3 +18,3 @@ export = Database; | ||
open: boolean; | ||
sync(): void; | ||
sync(): any; | ||
/** | ||
@@ -21,0 +21,0 @@ * Prepares a SQL statement for execution. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38776
893
+ Added@libsql/darwin-arm64@0.4.0(transitive)
+ Added@libsql/darwin-x64@0.4.0(transitive)
+ Added@libsql/linux-arm64-gnu@0.4.0(transitive)
+ Added@libsql/linux-arm64-musl@0.4.0(transitive)
+ Added@libsql/linux-x64-gnu@0.4.0(transitive)
+ Added@libsql/linux-x64-musl@0.4.0(transitive)
+ Added@libsql/win32-x64-msvc@0.4.0(transitive)
- Removed@libsql/darwin-arm64@0.4.0-pre.10(transitive)
- Removed@libsql/darwin-x64@0.4.0-pre.10(transitive)
- Removed@libsql/linux-arm64-gnu@0.4.0-pre.10(transitive)
- Removed@libsql/linux-arm64-musl@0.4.0-pre.10(transitive)
- Removed@libsql/linux-x64-gnu@0.4.0-pre.10(transitive)
- Removed@libsql/linux-x64-musl@0.4.0-pre.10(transitive)
- Removed@libsql/win32-x64-msvc@0.4.0-pre.10(transitive)
Updatedlibsql@^0.3.19