@contrast/distringuish-prebuilt
Advanced tools
Comparing version 1.9.0 to 2.0.0
const semver = require('semver'); | ||
const version = process.version.split('.')[0].substring(1); | ||
const platform = process.platform; | ||
let distringuish; | ||
try { | ||
distringuish = require('./build/Release/distringuish.node'); | ||
} catch { | ||
if (semver.lt(process.version, '12.0.0')) { | ||
distringuish = require(`${__dirname}/${process.platform}-10/distringuish.node`); | ||
} else { | ||
distringuish = require(`${__dirname}/${process.platform}-12/distringuish.node`); | ||
} | ||
distringuish = require(`${__dirname}/${platform}-${version}/distringuish.node`); | ||
} | ||
@@ -12,0 +11,0 @@ |
{ | ||
"name": "@contrast/distringuish-prebuilt", | ||
"version": "1.9.0", | ||
"version": "2.0.0", | ||
"description": "Contrast Security", | ||
@@ -10,2 +10,3 @@ "main": "index.js", | ||
"scripts": { | ||
"release": "node scripts/make-release.js", | ||
"test": "mocha test/test.js" | ||
@@ -18,2 +19,14 @@ }, | ||
}, | ||
"files": [ | ||
"index.js", | ||
"win32-10/**", | ||
"win32-12/**", | ||
"win32-14/**", | ||
"linux-10/**", | ||
"linux-12/**", | ||
"linux-14/**", | ||
"darwin-10/**", | ||
"darwin-12/**", | ||
"darwin-14/**" | ||
], | ||
"devDependencies": { | ||
@@ -23,4 +36,5 @@ "chai": "^4.2.0", | ||
"nan": "^2.14.0", | ||
"node-gyp": "^4.0.0" | ||
"node-gyp": "^4.0.0", | ||
"yargs-interactive": "^3.0.0" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1341249
11
2
5
33
7