Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bindings

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bindings - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

13

bindings.js

@@ -11,3 +11,3 @@

, exists = fs.existsSync || path.existsSync
, arrow = process.platform == 'win32' ? '\u2192' : '\u21B3'
, arrow = process.platform == 'win32' ? '-' : '\u21B3'
, defaults = {

@@ -139,3 +139,4 @@ compiled: 'compiled'

// Got to the top
throw new Error('Could not find module root given file: ' + file)
throw new Error('Could not find module root given file: "' + file
+ '". Do you have a `package.json` file? ')
}

@@ -155,11 +156,5 @@ // Try the parent dir next

function parseVersion (str) {
var regexp = /^(\d+)\.(\d+)/
str = String(str)
if (str[0] === 'v') {
str = str.substring(1)
}
var m = str.match(regexp)
var m = String(str).match(/(\d+)\.(\d+)/)
return m ? m[0] : null
}
exports.parseVersion = parseVersion
{ "name": "bindings"
, "description": "Helper module for loading your native module's bindings in a cross-platform way"
, "keywords": [ "native", "addon", "bindings", "gyp" ]
, "version": "0.2.2"
, "version": "0.2.3"
, "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)"

@@ -6,0 +6,0 @@ , "repository": { "type": "git", "url": "git://github.com/TooTallNate/node-bindings.git" }

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