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

level-sublevel

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

level-sublevel - npm Package Compare versions

Comparing version 6.1.6 to 6.1.7

test/errors.js

2

codec.js
//define the key ordering for level-sublevelq
var join = '\x01', separate = '\x00'
//var join = '\x01', separate = '\x00'
var join = '#', separate = '!'

@@ -6,0 +6,0 @@

{
"name": "level-sublevel",
"description": "partition levelup databases",
"version": "6.1.6",
"version": "6.1.7",
"homepage": "https://github.com/dominictarr/level-sublevel",

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

var EventEmitter = require('events').EventEmitter
var addpre = require('./range').addPrefix
var errors = require('levelup/lib/errors')
function isFunction (f) {

@@ -94,5 +96,9 @@ return 'function' === typeof f

emitter.get = function (key, opts, cb) {
if('function' === typeof opts)
if('function' === typeof opts)
cb = opts, opts = {}
nut.get(key, prefix, mergeOpts(opts), cb)
nut.get(key, prefix, mergeOpts(opts), function (err, value) {
if(err) cb(err)
else if(value) cb(null, value)
else cb(new errors.NotFoundError())
})
}

@@ -99,0 +105,0 @@

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