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

couchdb-update-views

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-update-views - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

32

cli.js
#! /usr/bin/env node
var async = require('async')
var validateConfig = require('./lib/validateConfig')
var should = require('should')

@@ -25,17 +26,20 @@ var inspect = require('eyespect').inspector()

}
getDB(config, function (err, db) {
getDocs(docsDir, function (err, files) {
async.forEach(
files,
function(file, cb) {
validateConfig(couch, function (err, reply) {
if (err) { return callback(err) }
getDB(config, function (err, db) {
getDocs(docsDir, function (err, files) {
async.forEach(
files,
function(file, cb) {
var filePath = file.filePath
inspect(filePath, 'updating document at path')
var docPath = '_design/' + file.fileName.replace(/\.js/,'')
var doc = require(filePath)
inspect(docPath, 'docPath')
update(db, docPath, doc, cb)
},
callback
)
var filePath = file.filePath
inspect(filePath, 'updating document at path')
var docPath = '_design/' + file.fileName.replace(/\.js/,'')
var doc = require(filePath)
inspect(docPath, 'docPath')
update(db, docPath, doc, cb)
},
callback
)
})
})

@@ -42,0 +46,0 @@ })

{
"name": "couchdb-update-views",
"version": "1.0.6",
"version": "1.0.7",
"description": "Keep couchdb views up to date",

@@ -5,0 +5,0 @@ "main": "sync.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