agoge-pouchdb-plugins
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -143,4 +143,19 @@ var CryptoJS = require('crypto-js'); | ||
} | ||
this.all = this.take; | ||
this.page = async function(pageNo, pageSize) { | ||
pageNo = pageNo || 1; | ||
pageSize = pageSize || 100; | ||
await plugin.upsert(whereMapReduce); | ||
this.all = this.take; | ||
if ( pageNo > 1 ) { | ||
options.skip = pageSize * ( pageNo - 1 ); | ||
} | ||
options.limit = pageSize; | ||
return await plugin.tolist('where', 'where', options); | ||
} | ||
} | ||
@@ -147,0 +162,0 @@ } |
{ | ||
"name": "agoge-pouchdb-plugins", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "My personal plugin functions to pouchdb-couchdb", | ||
@@ -5,0 +5,0 @@ "main": "agoge-pouchdb-plugins.js", |
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
6009
195