New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

backbone-pouch-collection

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-pouch-collection - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

index.js

@@ -18,3 +18,3 @@ 'use strict';

var opts = this.opts || {}
opts = typeof opts == 'function' ? opts() : opts
opts = typeof opts == 'function' ? opts.call(this) : opts

@@ -21,0 +21,0 @@ _.defaults(options.couch || (options.couch = {}), opts.params, {

{
"name": "backbone-pouch-collection",
"version": "0.3.0",
"version": "0.3.1",
"description": "Backbone Collections with PouchDB as the data source",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,4 +8,4 @@ var assert = require('assert')

this.plan = function plan (cnt, cb) {
return function () {
if (--cnt === 0) cb()
return function (err) {
if (--cnt === 0) cb(err)
}

@@ -83,6 +83,10 @@ }

var Child = PouchBase.extend({
viewName: 'app/byType',
opts: function () {
return {
view: 'app/byType',
params: { include_docs: true }
view: this.viewName,
params: {
key: 'foo',
include_docs: true
}
}

@@ -99,3 +103,2 @@ }

assert(opts.couch, 'should have couch options')
assert.equal(opts.couch.limit, 2)
assert(opts.couch.include_docs, 'should have specified params')

@@ -106,7 +109,9 @@ assert(promise)

var promise = child.sync('read', child, {
couch: { limit: 2 },
success: function (res) { cb() },
error: function (err) { console.error(err) }
child.on('sync', function (coll, res, opts) {
coll.off('sync')
assert.strictEqual(coll.length, 3)
cb()
})
var promise = child.fetch()
assert(promise)

@@ -113,0 +118,0 @@

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