Socket
Socket
Sign inDemoInstall

node-abi

Package Overview
Dependencies
Maintainers
2
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-abi - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

index.js
function getAbi (target, runtime) {
if (target) target = target.replace(/^v/, '')
if (runtime === 'electron') {

@@ -3,0 +5,0 @@ if (/^1\.5\./.test(target)) return '51'

2

package.json
{
"name": "node-abi",
"version": "1.0.1",
"version": "1.0.2",
"description": "Get the Node ABI for a given target and runtime",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -42,1 +42,6 @@ var test = require('tape')

})
test('getAbi supports leading v', function (t) {
t.equal(getAbi('v7.2.0'), '51')
t.end()
})
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