add lodash.isempty

This commit is contained in:
spalger
2017-02-13 13:23:51 -07:00
parent 4d6b5f6e13
commit 6c70facc65
2 changed files with 8 additions and 3 deletions

View File

@ -8,7 +8,11 @@
"main": "src/elasticsearch.js", "main": "src/elasticsearch.js",
"homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html", "homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html",
"version": "13.0.0-alpha1", "version": "13.0.0-alpha1",
"keywords" : ["elasticsearch", "mapping", "REST"], "keywords": [
"elasticsearch",
"mapping",
"REST"
],
"browser": { "browser": {
"./src/lib/connectors/index.js": "./src/lib/connectors/browser_index.js", "./src/lib/connectors/index.js": "./src/lib/connectors/browser_index.js",
"./src/lib/loggers/index.js": "./src/lib/loggers/browser_index.js", "./src/lib/loggers/index.js": "./src/lib/loggers/browser_index.js",
@ -91,7 +95,8 @@
"agentkeepalive": "^2.2.0", "agentkeepalive": "^2.2.0",
"chalk": "^1.0.0", "chalk": "^1.0.0",
"lodash-node": "~2.4", "lodash-node": "~2.4",
"lodash.get": "^4.4.2" "lodash.get": "^4.4.2",
"lodash.isempty": "^4.4.0"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -1,4 +1,4 @@
var isEmpty = require('lodash').isEmpty; var isEmpty = require('lodash.isempty');
module.exports = function (hosts) { module.exports = function (hosts) {
if (isEmpty(hosts)) return false; if (isEmpty(hosts)) return false;