couchdb-update-views
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -19,2 +19,8 @@ #! /usr/bin/env node | ||
function sync(callback) { | ||
var couch = config.get('couch') | ||
if (!couch) { | ||
return callback({ | ||
error: 'a "couch" section must be specified in your config file json' | ||
}) | ||
} | ||
getDB(config, function (err, db) { | ||
@@ -21,0 +27,0 @@ getDocs(docsDir, function (err, files) { |
{ | ||
"name": "couchdb-update-views", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Keep couchdb views up to date", | ||
@@ -21,3 +21,3 @@ "main": "sync.js", | ||
], | ||
"bin" : "./cli.js", | ||
"bin": "./cli.js", | ||
"author": "Noah Isaacson", | ||
@@ -32,3 +32,4 @@ "license": "BSD", | ||
"should": "~1.2.2", | ||
"async": "~0.2.5" | ||
"async": "~0.2.5", | ||
"required-keys": "~1.0.4" | ||
}, | ||
@@ -35,0 +36,0 @@ "devDependencies": { |
{ | ||
"couch": { | ||
"host": "http://localhost", | ||
"host": "localhost", | ||
"protocol": "http", | ||
"port": 5984, | ||
@@ -5,0 +6,0 @@ "database": "views_test" |
var ce = require('cloneextend') | ||
var async = require('async') | ||
var inspect = require('eyespect').inspector() | ||
var uuid = require('node-uuid') | ||
var moment = require('moment') | ||
@@ -6,0 +5,0 @@ var should = require('should') |
14189
15
428
7
+ Addedrequired-keys@~1.0.4
+ Addedrequired-keys@1.0.5(transitive)