Comparing version 0.1.4 to 1.0.0
{ | ||
"name": "percy", | ||
"version": "0.1.4", | ||
"version": "1.0.0", | ||
"description": "a persistence layer", | ||
@@ -5,0 +5,0 @@ "main": "percy.js", |
27
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; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
11445
336
0