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.0.0-1 to 2.0.0-2

22

index.js

@@ -18,3 +18,3 @@ /* This Source Code Form is subject to the terms of the Mozilla Public

function ExpectationsPlugin(script, events) {
if(!global.artillery && !global.artillery.log) {
if(!global.artillery || !global.artillery.log) {
console.error('artillery-plugin-expect requires Artillery v2');

@@ -47,3 +47,2 @@ return;

scenario.afterScenario = [].concat(scenario.afterScenario || []);
scenario.afterScenario.push('expectationsPluginMaybeFlushDatadog');
});

@@ -53,3 +52,2 @@

script.config.processor.expectationsPluginOnError = expectationsPluginOnError;
script.config.processor.expectationsPluginMaybeFlushDatadog = expectationsPluginMaybeFlushDatadog;

@@ -150,20 +148,2 @@ script.config.processor.expectationsPluginSetExpectOptions = function(

function expectationsPluginMaybeFlushDatadog(userContext, events, done) {
if (
userContext.expectationsPlugin &&
userContext.expectationsPlugin.datadog
) {
userContext.expectationsPlugin.datadog.flush(
() => {
return done();
},
() => {
return done();
}
);
} else {
return done();
}
}
function maybeParseBody(res) {

@@ -170,0 +150,0 @@ let body;

2

package.json
{
"name": "artillery-plugin-expect",
"version": "2.0.0-1",
"version": "2.0.0-2",
"description": "Expectations and assertions for HTTP",

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