New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@contrast/distringuish-prebuilt

Package Overview
Dependencies
Maintainers
15
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/distringuish-prebuilt - npm Package Compare versions

Comparing version 1.8.1 to 1.8.2

darwin-10/distringuish.node

13

index.js
const semver = require('semver');
let distringuish;
if (semver.lt(process.version, '12.0.0')) {
distringuish = require(`${__dirname}/${process.platform}.node`);
} else {
distringuish = require(`${__dirname}/${process.platform}-12.node`);
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`);
}
}
module.exports.externalize = (str) => {

@@ -11,0 +14,0 @@ if(typeof str === 'string')

{
"name": "@contrast/distringuish-prebuilt",
"version": "1.8.1",
"version": "1.8.2",
"description": "Contrast Security",

@@ -10,3 +10,3 @@ "main": "index.js",

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "mocha test/test.js"
},

@@ -17,3 +17,9 @@ "author": "Contrast Security",

"semver": "^6.3.0"
},
"devDependencies": {
"mocha": "^5.2.0",
"chai": "^4.2.0",
"node-gyp": "^4.0.0",
"nan": "^2.10.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc