Socket
Socket
Sign inDemoInstall

keyv

Package Overview
Dependencies
0
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

2

package.json
{
"name": "keyv",
"version": "0.1.2",
"version": "0.1.3",
"description": "Simple key/value store with support for multiple backends",

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

@@ -12,3 +12,3 @@ 'use strict';

return Promise.resolve(store.get(key)).then(data => {
if (!data) {
if (data === undefined) {
return undefined;

@@ -15,0 +15,0 @@ }

@@ -44,2 +44,8 @@ /* eslint-disable ava/no-ignored-test-files */

test.serial('.get(key) with falsey key resolves to value', async t => {
const keyv = new Keyv({ store });
await keyv.set('foo', false);
t.is(await keyv.get('foo'), false);
});
test.serial('.delete(key) returns a Promise', t => {

@@ -46,0 +52,0 @@ const keyv = new Keyv({ store });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc