Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

perf.plugin

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perf.plugin - npm Package Compare versions

Comparing version 2.6.4 to 2.6.6

test/index.spec.js

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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc