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

percy

Package Overview
Dependencies
Maintainers
2
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

percy - npm Package Compare versions

Comparing version 0.1.4 to 1.0.0

2

package.json
{
"name": "percy",
"version": "0.1.4",
"version": "1.0.0",
"description": "a persistence layer",

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

@@ -22,2 +22,28 @@ var kgo = require('kgo'),

function getMulti(keys, options, callback) {
if(!callback && typeof options === 'function'){
callback = options;
options = {};
}
this.connector(function(error, bucket){
if(error){
return callback(error);
}
bucket.getMulti(keys, options, function(errors, results){
if(errors){
return callback(error);
}
var actualResults = [];
for(var key in results){
actualResults.push(results[key].value);
}
callback(null, actualResults);
});
});
}
function set(key, data, callback) {

@@ -184,3 +210,4 @@ var percy = this,

Percy.prototype.getView = getView;
Percy.prototype.getMulti = getMulti;
module.exports = Percy;
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