localstorage-down
Advanced tools
Comparing version 0.6.6 to 0.6.7
'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 @@ |
@@ -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: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21670
500
0
7
9
+ Addedbuffer-from@^0.1.1
+ Addedbuffer-from@0.1.2(transitive)