@napi-rs/image
Advanced tools
Comparing version 1.4.1 to 1.4.2
12
index.js
@@ -14,3 +14,4 @@ const { existsSync, readFileSync } = require('fs') | ||
try { | ||
return readFileSync('/usr/bin/ldd', 'utf8').includes('musl') | ||
const lddPath = require('child_process').execSync('which ldd').toString().trim(); | ||
return readFileSync(lddPath, 'utf8').includes('musl') | ||
} catch (e) { | ||
@@ -105,2 +106,11 @@ return true | ||
case 'darwin': | ||
localFileExisted = existsSync(join(__dirname, 'image.darwin-universal.node')) | ||
try { | ||
if (localFileExisted) { | ||
nativeBinding = require('./image.darwin-universal.node') | ||
} else { | ||
nativeBinding = require('@napi-rs/image-darwin-universal') | ||
} | ||
break | ||
} catch {} | ||
switch (arch) { | ||
@@ -107,0 +117,0 @@ case 'x64': |
{ | ||
"name": "@napi-rs/image", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"main": "index.js", | ||
@@ -64,19 +64,19 @@ "types": "index.d.ts", | ||
"devDependencies": { | ||
"@napi-rs/cli": "^2.12.0" | ||
"@napi-rs/cli": "^2.13.2" | ||
}, | ||
"gitHead": "8359de12827f78b32551df5c4bb76f6b2d06b718", | ||
"gitHead": "f04033cfe1195d94882bf108cdf638b9a8c023cf", | ||
"optionalDependencies": { | ||
"@napi-rs/image-win32-x64-msvc": "1.4.1", | ||
"@napi-rs/image-darwin-x64": "1.4.1", | ||
"@napi-rs/image-linux-x64-gnu": "1.4.1", | ||
"@napi-rs/image-darwin-arm64": "1.4.1", | ||
"@napi-rs/image-android-arm64": "1.4.1", | ||
"@napi-rs/image-linux-arm64-gnu": "1.4.1", | ||
"@napi-rs/image-linux-arm64-musl": "1.4.1", | ||
"@napi-rs/image-linux-arm-gnueabihf": "1.4.1", | ||
"@napi-rs/image-linux-x64-musl": "1.4.1", | ||
"@napi-rs/image-freebsd-x64": "1.4.1", | ||
"@napi-rs/image-win32-ia32-msvc": "1.4.1", | ||
"@napi-rs/image-android-arm-eabi": "1.4.1" | ||
"@napi-rs/image-win32-x64-msvc": "1.4.2", | ||
"@napi-rs/image-darwin-x64": "1.4.2", | ||
"@napi-rs/image-linux-x64-gnu": "1.4.2", | ||
"@napi-rs/image-darwin-arm64": "1.4.2", | ||
"@napi-rs/image-android-arm64": "1.4.2", | ||
"@napi-rs/image-linux-arm64-gnu": "1.4.2", | ||
"@napi-rs/image-linux-arm64-musl": "1.4.2", | ||
"@napi-rs/image-linux-arm-gnueabihf": "1.4.2", | ||
"@napi-rs/image-linux-x64-musl": "1.4.2", | ||
"@napi-rs/image-freebsd-x64": "1.4.2", | ||
"@napi-rs/image-win32-ia32-msvc": "1.4.2", | ||
"@napi-rs/image-android-arm-eabi": "1.4.2" | ||
} | ||
} |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
46828
643
1