Skip to content

Commit

Permalink
Merge pull request #13 from jo/feat/update-dependencies
Browse files Browse the repository at this point in the history
feat: update dependencies
  • Loading branch information
jo authored Feb 28, 2021
2 parents e92b8e4 + 27ace60 commit cc78bb9
Show file tree
Hide file tree
Showing 5 changed files with 15,576 additions and 18,734 deletions.
8 changes: 4 additions & 4 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env node

var secure = require('./')
const secure = require('./')

var args = process.argv.slice(2)
const args = process.argv.slice(2)
if (!args.length) {
console.log('Usage: \ncouchdb-secure URL [SOURCE]')
process.exit()
}

var url = args[0]
var source = args[1] || process.cwd()
const url = args[0]
const source = args[1] || process.cwd()

secure(url, source, function (error, response) {
if (error) return console.error(error)
Expand Down
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
var nanoOption = require('nano-option')
var compile = require('couchdb-compile')
var ensure = require('couchdb-ensure')
const nanoOption = require('nano-option')
const compile = require('couchdb-compile')
const ensure = require('couchdb-ensure')

module.exports = function configure (url, source, callback) {
var db = nanoOption(url)
var couch = nanoOption(db.config.url)
const db = nanoOption(url)
const couch = nanoOption(db.config.url)

compile(source, { index: true }, function (error, secObj) {
if (error) return callback(error)
Expand Down
Loading

0 comments on commit cc78bb9

Please sign in to comment.