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

localstorage-down

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localstorage-down - npm Package Compare versions

Comparing version 0.6.6 to 0.6.7

8

lib/index.js
'use strict';
var inherits = require('inherits');
var bufferFrom = require('buffer-from');
var AbstractLevelDOWN = require('abstract-leveldown').AbstractLevelDOWN;

@@ -26,2 +27,3 @@ var AbstractIterator = require('abstract-leveldown').AbstractIterator;

this._exclusiveStart = options.exclusiveStart;
this._keysOnly = options.values === false;
this._limit = options.limit;

@@ -67,2 +69,6 @@ this._count = 0;

self._pos += self._reverse ? -1 : 1;
if (self._keysOnly) {
return callback(null, key);
}
self.db.container.getItem(key, function (err, value) {

@@ -186,3 +192,3 @@ if (err) {

if (options.asBuffer !== false && !Buffer.isBuffer(value)) {
value = new Buffer(value);
value = bufferFrom(value);
}

@@ -189,0 +195,0 @@

4

lib/localstorage.js

@@ -44,3 +44,5 @@ 'use strict';

self.sequentialize(callback, function (callback) {
callback(null, self._keys.slice());
self._store.getKeys(function (err, keys) {
callback(null, keys.slice());
});
});

@@ -47,0 +49,0 @@ };

@@ -15,3 +15,3 @@ {

],
"version": "0.6.6",
"version": "0.6.7",
"main": "lib/index.js",

@@ -21,2 +21,3 @@ "dependencies": {

"argsarray": "0.0.1",
"buffer-from": "^0.1.1",
"d64": "^1.0.0",

@@ -32,6 +33,7 @@ "humble-localstorage": "^1.4.2",

"istanbul-coveralls": "^1.0.3",
"jshint": "^2.5.0",
"jshint": "2.8.0",
"levelup": "^0.18.2",
"tape": "^2.12.3",
"zuul": "3.8.0"
"zuul": "^3.10.1",
"zuul-ngrok": "nolanlawson/zuul-ngrok#patch-1"
},

@@ -47,4 +49,4 @@ "repository": {

"test": "npm run jshint && tape tests/*.js",
"test-saucelabs": "npm run jshint && zuul --ui tape --browser-name $BROWSER_NAME --browser-version $BROWSER_VERSION tests/*.js",
"test-zuul-local": "npm run jshint && zuul --ui tape --local tests/*.js",
"test-browser": "npm run jshint && zuul tests/*.js",
"test-zuul-local": "npm run jshint && zuul --local tests/*.js",
"jshint": "jshint -c .jshintrc lib/*.js tests/*.js",

@@ -51,0 +53,0 @@ "coverage": "istanbul cover ./node_modules/.bin/tape tests/*.js && istanbul check-coverage --lines 50 --function 50 --statements 50 --branches 50",

@@ -96,3 +96,3 @@ # localstorage-down [![Build Status](https://travis-ci.org/No9/localstorage-down.svg)](https://travis-ci.org/No9/localstorage-down) [![Coverage Status](https://coveralls.io/repos/No9/localstorage-down/badge.svg?branch=master&service=github)](https://coveralls.io/github/No9/localstorage-down?branch=master)

BROWSER_NAME=firefox BROWSER_VERSION="38..latest" npm run test-saucelabs
npm run test-browser

@@ -99,0 +99,0 @@ Or to test in Zuul locally:

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