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

loadmill

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadmill - npm Package Compare versions

Comparing version 0.0.16-dev to 0.0.17-dev

12

lib/loadmill.js

@@ -13,3 +13,13 @@ "use strict";

.parse(process.argv);
var wait = program.wait, token = program.token, loadTest = program.loadTest, _a = program.args, file = _a[0], parameters = _a.slice(1);
var wait = program.wait, token = program.token, loadTest = program.loadTest, _a = program.args, file = _a[0], rawParams = _a.slice(1);
var parameters = {};
rawParams.forEach(function (pair) {
var pivot = pair.indexOf('=');
if (pivot <= 0) {
console.error("Invalid parameter assignment:", pair);
program.help();
}
var name = pair.slice(0, pivot);
parameters[name] = pair.slice(pivot + 1, pair.length);
});
console.log("Input:", {

@@ -16,0 +26,0 @@ file: file,

2

package.json
{
"name": "loadmill",
"version": "0.0.16-dev",
"version": "0.0.17-dev",
"description": "A node.js module for running load tests and functional tests on loadmill.com",

@@ -5,0 +5,0 @@ "keywords": [

@@ -19,5 +19,18 @@ import * as program from 'commander';

loadTest,
args: [file, ...parameters]
args: [file, ...rawParams]
} = program;
const parameters: {[key: string]: string} = {};
rawParams.forEach(pair => {
const pivot = pair.indexOf('=');
if (pivot <= 0) {
console.error("Invalid parameter assignment:", pair);
program.help();
}
const name = pair.slice(0, pivot);
parameters[name] = pair.slice(pivot + 1, pair.length);
});
console.log("Input:", {

@@ -24,0 +37,0 @@ file,

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