Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "percy", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "a persistence layer", | ||
@@ -5,0 +5,0 @@ "main": "percy.js", |
16
percy.js
@@ -192,2 +192,17 @@ var kgo = require('kgo'), | ||
function increment(key, options, callback){ | ||
if(typeof options === 'function'){ | ||
callback = options; | ||
options = {initial: 0, offset: 1}; | ||
} | ||
this.connector(function(error, bucket){ | ||
if(error){ | ||
return callback(error); | ||
} | ||
bucket.incr(key, options, callback); | ||
}); | ||
} | ||
function Percy(entityType, connector, validator){ | ||
@@ -211,3 +226,4 @@ this.entityType = entityType; | ||
Percy.prototype.getMulti = getMulti; | ||
Percy.prototype.increment = increment; | ||
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
11811
349