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

prebuildify

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prebuildify - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

10

bin.js

@@ -26,2 +26,8 @@ #!/usr/bin/env node

// Should be the default once napi is stable
if (argv.napi) {
targets = [abi.supportedTargets.filter(onlyNode).pop()]
if (targets[0].target === '9.0.0') targets[0].target = '9.6.1'
}
argv.targets = targets

@@ -36,1 +42,5 @@ argv.cwd = argv.cwd || argv._[0] || '.'

})
function onlyNode (t) {
return t.runtime === 'node'
}

3

index.js

@@ -63,3 +63,4 @@ var proc = require('child_process')

var name = next.runtime + '-' + abi.getAbi(next.target, next.runtime) + '.node'
var v = opts.napi ? 'napi' : abi.getAbi(next.target, next.runtime)
var name = next.runtime + '-' + v + '.node'
var dest = path.join(opts.builds, name)

@@ -66,0 +67,0 @@

{
"name": "prebuildify",
"version": "2.5.0",
"version": "2.6.0",
"description": "Create and package prebuilds for native modules",

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

@@ -22,2 +22,9 @@ # prebuildify

If your module is using the new node core N-API, then you can prebuild using the `--napi` flag
``` sh
# prebuild for n-api
prebuildify --napi
```
Then only remaining thing you need to do now is make your module use a prebuild if one exists

@@ -24,0 +31,0 @@ for the platform/runtime you are using.

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