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

artillery-plugin-expect

Package Overview
Dependencies
Maintainers
2
Versions
368
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

artillery-plugin-expect - npm Package Compare versions

Comparing version 2.3.1-c08c695 to 2.3.1-c6ee732

30

index.js

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

script.config.plugins.expect.reportFailuresAsErrors;
userContext.expectationsPlugin.useOnlyRequestNames =
script.config.plugins.expect.useOnlyRequestNames === true ||
script.config.plugins.expect.useOnlyRequestNames === 'true';

@@ -170,14 +173,21 @@ return done();

if (failedExpectations) {
if (global.artillery) {
global.artillery.suggestedExitCode = 1;
}
if (userContext.expectationsPlugin.reportFailuresAsErrors) {
return done(new Error(`Failed expectations for request ${req.url}`));
} else {
return done();
}
} else {
if (!failedExpectations) {
return done();
}
if (global.artillery) {
global.artillery.suggestedExitCode = 1;
}
if (userContext.expectationsPlugin.reportFailuresAsErrors) {
const filteredRequestName =
userContext.expectationsPlugin.useOnlyRequestNames && req.name
? req.name
: req.url;
return done(
new Error(`Failed expectations for request ${filteredRequestName}`)
);
}
return done();
}

@@ -184,0 +194,0 @@

{
"name": "artillery-plugin-expect",
"version": "2.3.1-c08c695",
"version": "2.3.1-c6ee732",
"description": "Expectations and assertions for HTTP scenarios",

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