Socket
Socket
Sign inDemoInstall

keyv

Package Overview
Dependencies
0
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 0.2.0

3

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

@@ -36,2 +36,3 @@ "main": "src/index.js",

"eslint-config-xo-lukechilds": "^1.0.0",
"keyv-api-tests": "*",
"nyc": "^10.3.2",

@@ -38,0 +39,0 @@ "xo": "^0.19.0"

@@ -41,4 +41,9 @@ 'use strict';

}
clear() {
const store = this.opts.store;
return Promise.resolve(store.clear());
}
}
module.exports = Keyv;
import test from 'ava';
import delay from 'delay';
import keyvApiTests from 'keyv-api-tests';
import Keyv from '../';
import testStore from './helpers/test-store';
const store = new Map();
keyvApiTests(test, Keyv, store);
test('Keyv is a class', t => {

@@ -65,4 +68,1 @@ t.is(typeof Keyv, 'function');

});
const store = new Map();
testStore(store);
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc