botkit-storage-elasticsearch
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "botkit-storage-elasticsearch", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,2 +8,4 @@ 'use strict'; | ||
const noop = function () {}; | ||
module.exports = function (options, meta, onInit) { | ||
@@ -37,2 +39,3 @@ if (meta === undefined) { | ||
function createIndex (index, cb) { | ||
cb = cb || noop; | ||
index = `${index}${_VERSION_POSTFIX}`; | ||
@@ -87,2 +90,4 @@ client.indices.exists({ index }, function (err, res) { | ||
return function (data, callback) { | ||
callback = callback || noop; | ||
const dataStream = highland(data) | ||
@@ -89,0 +94,0 @@ .on('end', () => callback(null, index)) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10493
214