Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "percy", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "a persistence layer", | ||
@@ -5,0 +5,0 @@ "main": "percy.js", |
15
percy.js
@@ -149,4 +149,16 @@ var kgo = require('kgo'), | ||
function getView(viewName, callback){ | ||
var percy = this; | ||
this.connector(function(error, bucket){ | ||
if(error){ | ||
return callback(error); | ||
} | ||
callback(null, bucket.view(percy.designName, viewName)); | ||
}); | ||
} | ||
function Percy(entityType, connector, validator){ | ||
this.entityType = entityType | ||
this.entityType = entityType; | ||
this.designName = entityType; | ||
this.connector = connector; | ||
@@ -164,3 +176,4 @@ this.validator = validator; | ||
Percy.prototype.createKey = createKey; | ||
Percy.prototype.getView = getView; | ||
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
10032
309