@contrast/agent-lib
Advanced tools
Comparing version 2.2.3 to 2.2.4
10
index.js
@@ -15,7 +15,13 @@ 'use strict'; | ||
} catch(e) { | ||
const first_failure = e; | ||
// account for alpine (uses its own suffix). | ||
if (platform === 'linux') { | ||
const bindingsPath = `${__dirname}${sep}contrast.${platform}-${process.arch}-musl.node`; | ||
module.exports = require(`${bindingsPath}`); | ||
try { | ||
const bindingsPath = `${__dirname}${sep}contrast.${platform}-${process.arch}-musl.node`; | ||
module.exports = require(`${bindingsPath}`); | ||
} catch (e) { | ||
console.log(first_failure); | ||
throw e; | ||
} | ||
} | ||
} |
{ | ||
"name": "@contrast/agent-lib", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
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
24
12554305