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

level-hooks

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

level-hooks - npm Package Compare versions

Comparing version 4.1.4 to 4.1.5

test/error.js

10

index.js

@@ -75,3 +75,3 @@

function callHooks (isBatch, b, opts, cb) {
try {
b.forEach(function hook(e, i) {

@@ -93,2 +93,6 @@ prehooks.forEach(function (h) {

ch.key = prefix + ch.key
if(h.test(String(ch.key))) {
//this usually means a stack overflow.
throw new Error('prehook cannot insert into own range')
}
b.push(ch)

@@ -114,3 +118,5 @@ hook(ch, b.length - 1)

})
} catch (err) {
return (cb || opts)(err)
}
b = b.filter(function (e) {

@@ -117,0 +123,0 @@ return e && e.type //filter out empty items

2

package.json
{
"name": "level-hooks",
"description": "pre/post hooks for leveldb",
"version": "4.1.4",
"version": "4.1.5",
"homepage": "https://github.com/dominictarr/level-hooks",

@@ -6,0 +6,0 @@ "repository": {

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