Socket
Socket
Sign inDemoInstall

keccak

Package Overview
Dependencies
7
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.3 to 3.0.4

12

bindings.js

@@ -1,1 +0,11 @@

module.exports = require('./lib/api')(require('node-gyp-build')(__dirname))
const nativeAddon = require('node-gyp-build')(__dirname)
if (typeof nativeAddon !== 'function') {
// Some new runtimes (bun) don't support N-API
// but the build step incorrectly succeeds.
// The value should be a function, but in bun it returns
// an empty object {} so we use typeof to check that
// it is a function and throw otherwise.
// This throw will cause "keccak" import to fallback to JS.
throw new Error('Native add-on failed to load')
}
module.exports = require('./lib/api')(nativeAddon)

2

package.json
{
"name": "keccak",
"version": "3.0.3",
"version": "3.0.4",
"description": "Keccak sponge function family",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc