perf.plugin
Advanced tools
Comparing version 2.6.4 to 2.6.6
14
index.js
@@ -8,3 +8,2 @@ 'use strict'; | ||
const Elasticsearch = require('./elasticsearch'); | ||
const kafka = require('./kafka'); | ||
@@ -18,6 +17,11 @@ class Plugin extends Transform { | ||
this.abortOnError = false; | ||
this.redis = Redis(config); | ||
this.es = Elasticsearch(config); | ||
this.stats = new stats(config); | ||
this.kafka = new kafka(config); | ||
if (config.redis) { | ||
this.redis = Redis(config); | ||
} | ||
if (config.es) { | ||
this.es = Elasticsearch(config); | ||
} | ||
if (config.statsd_url) { | ||
this.stats = new stats(config); | ||
} | ||
} | ||
@@ -24,0 +28,0 @@ |
{ | ||
"name": "perf.plugin", | ||
"version": "2.6.4", | ||
"version": "2.6.6", | ||
"description": "基础插件", | ||
"main": "index.js", | ||
"scripts": {}, | ||
"scripts": { | ||
"test": "ava test/index.spec.js" | ||
}, | ||
"author": "huijian.lu <huijian.lu@ele.me>", | ||
"license": "ISC", | ||
"dependencies": { | ||
"elasticsearch": "^13.3.1", | ||
"ioredis": "^3.1.1", | ||
@@ -14,6 +17,4 @@ "statsd-client": "^0.4.0" | ||
"devDependencies": { | ||
"chai": "3.5.0", | ||
"mocha": "^3.1.2", | ||
"should": "^8.3.2" | ||
"ava": "^0.22.0" | ||
} | ||
} |
@@ -10,2 +10,3 @@ const StatsD = require('statsd-client'); | ||
this.statsd = new StatsD({ host, port: Number(port) }); | ||
console.info(`statsd: Adding connection to ${statsd_url}`); | ||
} | ||
@@ -12,0 +13,0 @@ |
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
111068
1
10
154
3
+ Addedelasticsearch@^13.3.1
+ Addedagentkeepalive@2.2.0(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedelasticsearch@13.3.1(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedlodash@2.4.2(transitive)
+ Addedlodash.get@4.4.2(transitive)
+ Addedlodash.trimend@4.5.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)