Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

agoge-pouchdb-plugins

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agoge-pouchdb-plugins - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

22

agoge-pouchdb-plugins.js

@@ -35,7 +35,8 @@ var CryptoJS = require('crypto-js');

exports.tolist = async function(ddoc, view, include_docs) {
var options = {};
exports.tolist = async function(ddoc, view, options) {
var options = options || {};
var view = view || ddoc;
options["include_docs"] = include_docs;
if ( options["include_docs"] !== false)
options["include_docs"] = true;

@@ -53,6 +54,8 @@ var queryResults = await this.query(ddoc + '/' + view, options);

exports.scalar = async function(ddoc, view) {
var options = {};
exports.scalar = async function(ddoc, view, options) {
var options = options || {};
options["include_docs"] = true;
if ( options["include_docs"] !== false)
options["include_docs"] = true;
options["limit"] = 1;

@@ -79,2 +82,4 @@

};
options.include_docs = include_docs;

@@ -84,3 +89,2 @@ if (type) options.key.push(type);

if (value) options.key.push(value);

@@ -109,5 +113,5 @@ await this.upsert({

if (all)
return await this.tolist('find', 'find', include_docs);
return await this.tolist('find', 'find', options);
else
return await this.scalar('find', 'find');
return await this.scalar('find', 'find', options);

@@ -114,0 +118,0 @@ }

{
"name": "agoge-pouchdb-plugins",
"version": "1.0.5",
"version": "1.0.6",
"description": "My personal plugin functions to pouchdb-couchdb",

@@ -5,0 +5,0 @@ "main": "agoge-pouchdb-plugins.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc