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

subleveldown

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

subleveldown - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "subleveldown",
"version": "1.0.4",
"version": "1.0.5",
"description": "sublevels implemented using leveldowns",

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

@@ -5,5 +5,6 @@ var util = require('util')

var concat = function(prefix, key) {
if (typeof key === 'string' && key.length) return prefix+key
if (Buffer.isBuffer(key) && key.length) return Buffer.concat([new Buffer(prefix), key])
var concat = function(prefix, key, len) {
if (!len) len = key.length
if (typeof key === 'string' && len) return prefix+key
if (Buffer.isBuffer(key) && len) return Buffer.concat([new Buffer(prefix), key])
return key

@@ -46,6 +47,6 @@ }

gt: function(x) {
return concat(self.prefix, (x || ''))
return concat(self.prefix, x || '', 1)
},
lt: function(x) {
return concat(self.prefix, (x || '\xff'))
return concat(self.prefix, x || '\xff', 1)
}

@@ -52,0 +53,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