Comparing version 0.1.8 to 0.1.9
"use strict"; | ||
const { load, currentTarget } = require("@neon-rs/load"); | ||
const { familySync, GLIBC } = require("detect-libc"); | ||
@@ -10,2 +11,8 @@ // Static requires for bundlers. | ||
let target = currentTarget(); | ||
if (target == "linux-x64-musl" && familySync() == GLIBC) { | ||
target = "linux-x64-gnu"; | ||
} | ||
const { | ||
@@ -27,3 +34,3 @@ databaseOpen, | ||
rowsNext, | ||
} = load(__dirname) || require(`@libsql/${currentTarget()}`); | ||
} = load(__dirname) || require(`@libsql/${target}`); | ||
@@ -30,0 +37,0 @@ const SqliteError = require("./sqlite-error"); |
{ | ||
"name": "libsql", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "", | ||
@@ -60,9 +60,10 @@ "os": [ | ||
"dependencies": { | ||
"@neon-rs/load": "^0.0.4" | ||
"@neon-rs/load": "^0.0.4", | ||
"detect-libc": "2.0.2" | ||
}, | ||
"optionalDependencies": { | ||
"@libsql/darwin-arm64": "0.1.8", | ||
"@libsql/linux-x64-gnu": "0.1.8", | ||
"@libsql/linux-x64-musl": "0.1.8" | ||
"@libsql/darwin-arm64": "0.1.9", | ||
"@libsql/linux-x64-gnu": "0.1.9", | ||
"@libsql/linux-x64-musl": "0.1.9" | ||
} | ||
} |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
28755
719
5
+ Addeddetect-libc@2.0.2
+ Added@libsql/darwin-arm64@0.1.9(transitive)
+ Added@libsql/linux-x64-gnu@0.1.9(transitive)
+ Added@libsql/linux-x64-musl@0.1.9(transitive)
+ Addeddetect-libc@2.0.2(transitive)
- Removed@libsql/darwin-arm64@0.1.8(transitive)
- Removed@libsql/linux-x64-gnu@0.1.8(transitive)
- Removed@libsql/linux-x64-musl@0.1.8(transitive)