New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

artillery-core

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

artillery-core - npm Package Compare versions

Comparing version 1.5.6 to 1.6.0-0

5

lib/engine_http.js

@@ -122,2 +122,7 @@ /* This Source Code Form is subject to the terms of the Mozilla Public

if (params.afterResponse) {
let processFunc = config.processor[params.afterResponse];
processFunc(null, res, context, ee);
}
if (params.capture || params.match) {

@@ -124,0 +129,0 @@ let parser;

4

lib/runner.js

@@ -237,2 +237,6 @@ /* This Source Code Form is subject to the terms of the Mozilla Public

scenarioEvents = new EventEmitter();
scenarioEvents.on('customStat', function(stat) {
intermediate.addCustomStat(stat.stat, stat.value);
aggregate.addCustomStat(stat.stat, stat.value);
});
scenarioEvents.on('started', function() {

@@ -239,0 +243,0 @@ pendingScenarios++;

@@ -127,5 +127,25 @@ /* This Source Code Form is subject to the terms of the Mozilla Public

result.customStats = {};
L.each(this._customStats, function(ns, name) {
result.customStats[name] = {
min: round(L.min(ns), 1),
max: round(L.max(ns), 1),
median: round(sl.median(ns), 1),
p95: round(sl.percentile(ns, 0.95), 1),
p99: round(sl.percentile(ns, 0.99), 1)
};
});
return result;
};
Stats.prototype.addCustomStat = function(name, n) {
if (!this._customStats[name]) {
this._customStats[name] = [];
}
this._customStats[name].push(n);
return this;
};
Stats.prototype.reset = function() {

@@ -142,2 +162,3 @@ this._entries = [];

this._matches = 0;
this._customStats = {};
return this;

@@ -144,0 +165,0 @@ };

2

package.json
{
"name": "artillery-core",
"version": "1.5.6",
"version": "1.6.0-0",
"description": "core load-generating functionality of Artillery",

@@ -5,0 +5,0 @@ "main": "index.js",

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