Comparing version 0.3.4 to 0.3.5
@@ -42,3 +42,3 @@ "use strict"; | ||
rowsNext, | ||
} = load(__dirname) || require(`@libsql/${target}`); | ||
} = require(`@libsql/${target}`); | ||
@@ -68,3 +68,4 @@ const SqliteError = require("./sqlite-error"); | ||
const encryptionKey = opts?.encryptionKey ?? ""; | ||
this.db = databaseOpenWithRpcSync(path, opts.syncUrl, authToken, encryptionCipher, encryptionKey); | ||
const syncPeriod = opts?.syncPeriod ?? 0.0; | ||
this.db = databaseOpenWithRpcSync(path, opts.syncUrl, authToken, encryptionCipher, encryptionKey, syncPeriod); | ||
} else { | ||
@@ -71,0 +72,0 @@ const authToken = opts?.authToken ?? ""; |
{ | ||
"name": "libsql", | ||
"version": "0.3.4", | ||
"description": "", | ||
"version": "0.3.5", | ||
"description": "A better-sqlite3 compatible API for libSQL that supports Bun, Deno, and Node", | ||
"os": [ | ||
@@ -69,10 +69,10 @@ "darwin", | ||
"optionalDependencies": { | ||
"@libsql/darwin-arm64": "0.3.4", | ||
"@libsql/linux-arm64-gnu": "0.3.4", | ||
"@libsql/linux-arm64-musl": "0.3.4", | ||
"@libsql/darwin-x64": "0.3.4", | ||
"@libsql/win32-x64-msvc": "0.3.4", | ||
"@libsql/linux-x64-gnu": "0.3.4", | ||
"@libsql/linux-x64-musl": "0.3.4" | ||
"@libsql/darwin-arm64": "0.3.5", | ||
"@libsql/linux-arm64-gnu": "0.3.5", | ||
"@libsql/linux-arm64-musl": "0.3.5", | ||
"@libsql/darwin-x64": "0.3.5", | ||
"@libsql/win32-x64-msvc": "0.3.5", | ||
"@libsql/linux-x64-gnu": "0.3.5", | ||
"@libsql/linux-x64-musl": "0.3.5" | ||
} | ||
} |
@@ -29,3 +29,3 @@ "use strict"; | ||
rowsNext, | ||
} = load(__dirname) || require(`@libsql/${currentTarget()}`); | ||
} = require(`@libsql/${currentTarget()}`); | ||
@@ -32,0 +32,0 @@ /** |
@@ -8,3 +8,3 @@ # libSQL API for JavaScript/TypeScript | ||
**Please note you are currently encouraged to use the [libSQL SDK](https://github.com/libsql/libsql-client-ts) as it is more mature at this point and also supports serverless applications that only can use `fetch()`.** | ||
*Please note that if there is also the [libSQL SDK](https://github.com/libsql/libsql-client-ts), which is useful if you don't need `better-sqlite3` compatibility or use libSQL in environments like serverless functions that require `fetch()`-based database access protocol.* | ||
@@ -11,0 +11,0 @@ ## Features |
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
30063
741