Comparing version 0.3.1 to 0.3.2
@@ -56,2 +56,3 @@ "use strict"; | ||
constructor(path, opts) { | ||
const encryptionCipher = opts?.encryptionCipher ?? "sqlcipher"; | ||
if (opts && opts.syncUrl) { | ||
@@ -66,7 +67,7 @@ var authToken = ""; | ||
const encryptionKey = opts?.encryptionKey ?? ""; | ||
this.db = databaseOpenWithRpcSync(path, opts.syncUrl, authToken, encryptionKey); | ||
this.db = databaseOpenWithRpcSync(path, opts.syncUrl, authToken, encryptionCipher, encryptionKey); | ||
} else { | ||
const authToken = opts?.authToken ?? ""; | ||
const encryptionKey = opts?.encryptionKey ?? ""; | ||
this.db = databaseOpen(path, authToken, encryptionKey); | ||
this.db = databaseOpen(path, authToken, encryptionCipher, encryptionKey); | ||
} | ||
@@ -73,0 +74,0 @@ // TODO: Use a libSQL API for this? |
{ | ||
"name": "libsql", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "", | ||
@@ -69,10 +69,10 @@ "os": [ | ||
"optionalDependencies": { | ||
"@libsql/darwin-arm64": "0.3.1", | ||
"@libsql/linux-arm64-gnu": "0.3.1", | ||
"@libsql/linux-arm64-musl": "0.3.1", | ||
"@libsql/darwin-x64": "0.3.1", | ||
"@libsql/win32-x64-msvc": "0.3.1", | ||
"@libsql/linux-x64-gnu": "0.3.1", | ||
"@libsql/linux-x64-musl": "0.3.1" | ||
"@libsql/darwin-arm64": "0.3.2", | ||
"@libsql/linux-arm64-gnu": "0.3.2", | ||
"@libsql/linux-arm64-musl": "0.3.2", | ||
"@libsql/darwin-x64": "0.3.2", | ||
"@libsql/win32-x64-msvc": "0.3.2", | ||
"@libsql/linux-x64-gnu": "0.3.2", | ||
"@libsql/linux-x64-musl": "0.3.2" | ||
} | ||
} |
29730
732