You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by gl...@apache.org on 2019/03/18 08:30:15 UTC
[couchdb-nano] branch master updated: Remove lodash.isEmpty from
dependencies (#123)
This is an automated email from the ASF dual-hosted git repository.
glynnbird pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-nano.git
The following commit(s) were added to refs/heads/master by this push:
new bd8e50a Remove lodash.isEmpty from dependencies (#123)
bd8e50a is described below
commit bd8e50a0c6a91049baa60f112221e4b0e1d69033
Author: Angelos Chalaris <ch...@gmail.com>
AuthorDate: Mon Mar 18 10:30:10 2019 +0200
Remove lodash.isEmpty from dependencies (#123)
---
lib/nano.js | 5 ++++-
package.json | 1 -
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/nano.js b/lib/nano.js
index 6fa6784..43bd595 100644
--- a/lib/nano.js
+++ b/lib/nano.js
@@ -17,10 +17,13 @@ const assert = require('assert')
const querystring = require('querystring')
const request = require('request')
const errs = require('errs')
-const isEmpty = require('lodash.isempty')
const follow = require('cloudant-follow')
const logger = require('./logger')
+function isEmpty(val) {
+ return val == null || !(Object.keys(val) || val).length
+}
+
function getCallback (opts, callback) {
if (typeof opts === 'function') {
callback = opts
diff --git a/package.json b/package.json
index 786d31a..48cdaa6 100644
--- a/package.json
+++ b/package.json
@@ -21,7 +21,6 @@
"cloudant-follow": "^0.18.0",
"debug": "^2.2.0",
"errs": "^0.3.2",
- "lodash.isempty": "^4.4.0",
"request": "^2.85.0"
},
"devDependencies": {