Socket
Socket
Sign inDemoInstall

loadtest

Package Overview
Dependencies
29
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.2 to 5.0.3

4

lib/loadtest.js

@@ -143,7 +143,7 @@ 'use strict';

if (this.options.indexParam) {
this.options.url = url.replaceAll(this.options.indexParam, index);
this.options.url = url.replace(new RegExp(this.options.indexParam, 'g'), index);
if(this.options.body) {
let strBody = JSON.stringify(this.options.body);
strBody = strBody.replaceAll(this.options.indexParam, index);
strBody = strBody.replace(new RegExp(this.options.indexParam, 'g'), index);
this.options.body = JSON.parse(strBody);

@@ -150,0 +150,0 @@ }

@@ -133,3 +133,3 @@ 'use strict';

let message;
let message={some:"message"};

@@ -136,0 +136,0 @@ if (this.generateMessage) {

{
"name": "loadtest",
"version": "5.0.2",
"version": "5.0.3",
"description": "Run load tests for your web application. Mostly ab-compatible interface, with an option to force requests per second. Includes an API for automated load testing.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/alexfernandez/loadtest",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc