You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

masm-couchdb

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

masm-couchdb - npm Package Compare versions

Comparing version

to
0.0.3

main.js~

11

main.js

@@ -0,1 +1,2 @@

var _ = require("underscore");

@@ -22,6 +23,12 @@ module.exports = function(cdb, changesDBName) {

// (Error -> undefined) * (JSON -> undefined) -> undefined
function changesListener(errorProc, process, since, changesDepleted) {
function changesListener(errorProc, process, since, changesDepleted, changesOptions) {
changesOptions = _.extend({
feed: "continuous",
heartbeat: 55000,
since: since,
include_docs: true
}, changesOptions)
var handling = false;
var changes = [];
var req = cdb.get("/" + encodeURIComponent(changesDBName) + "/_changes", {feed: "continuous", heartbeat: 55000, since: since, include_docs: true}, function(res) {
var req = cdb.get("/" + encodeURIComponent(changesDBName) + "/_changes", changesOptions, function(res) {
if (res.statusCode < 200 || res.statusCode > 299 ) {

@@ -28,0 +35,0 @@ errorProc(new Error("Failed access to database!"));

3

package.json
{
"author" : "Marco Monteiro <marco@textovirtual.com>",
"dependencies" : {
"underscore": "1.x"
},
"main" : "main.js",
"name" : "masm-couchdb",
"version" : "0.0.2"
"version" : "0.0.3"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.