agoge-pouchdb-plugins
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -35,7 +35,7 @@ var CryptoJS = require('crypto-js'); | ||
exports.tolist = async function(ddoc, view, options) { | ||
var options = options || {}; | ||
exports.tolist = async function(ddoc, view, include_docs) { | ||
var options = options {}; | ||
var view = view || ddoc; | ||
options["include_docs"] = true; | ||
options["include_docs"] = include_docs; | ||
@@ -53,4 +53,4 @@ var queryResults = await this.query(ddoc + '/' + view, options); | ||
exports.scalar = async function(ddoc, view, options) { | ||
var options = options || {}; | ||
exports.scalar = async function(ddoc, view) { | ||
var options = {}; | ||
@@ -73,3 +73,3 @@ options["include_docs"] = true; | ||
exports.find = async function(type, key, value, all) { | ||
exports.find = async function(type, key, value, all, include_docs) { | ||
var all = all || false; | ||
@@ -108,5 +108,5 @@ | ||
if (all) | ||
return await this.tolist('find', 'find', options); | ||
return await this.tolist('find', 'find', include_docs); | ||
else | ||
return await this.scalar('find', 'find', options); | ||
return await this.scalar('find', 'find'); | ||
@@ -113,0 +113,0 @@ } |
{ | ||
"name": "agoge-pouchdb-plugins", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"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
4830