@datadog/libdatadog
Advanced tools
Comparing version
11
load.js
@@ -55,6 +55,11 @@ 'use strict' | ||
function findFolder (root) { | ||
const folders = readdirSync(path.join(root, 'prebuilds')) | ||
try { | ||
const prebuilds = path.join(root, 'prebuilds') | ||
const folders = readdirSync(prebuilds) | ||
return folders.find(f => f === `${PLATFORM}${LIBC}-${ARCH}`) | ||
|| folders.find(f => f === `${PLATFORM}-${ARCH}`) | ||
return folders.find(f => f === `${PLATFORM}${LIBC}-${ARCH}`) | ||
|| folders.find(f => f === `${PLATFORM}-${ARCH}`) | ||
} catch (e) { | ||
return null | ||
} | ||
} | ||
@@ -61,0 +66,0 @@ |
{ | ||
"name": "@datadog/libdatadog", | ||
"version": "0.1.4", | ||
"version": "0.1.6", | ||
"description": "Node.js binding for libdatadog", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
19706472
43.67%57
9.62%