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

@artilleryio/int-core

Package Overview
Dependencies
Maintainers
2
Versions
367
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@artilleryio/int-core - npm Package Compare versions

Comparing version 2.11.0 to 2.12.0-c3be075

24

lib/engine_http.js

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

const decompressResponse = require('decompress-response');
const fs = require('fs');
const path = require('path');

@@ -399,2 +401,3 @@ const { promisify } = require('node:util');

if (params.formData) {
let fileUpload;
const f = new FormData();

@@ -404,4 +407,12 @@ requestParams.body = _.reduce(

function (acc, v, k) {
// acc[k] = template(v, context);
acc.append(k, template(v, context));
let V = template(v, context);
if (V && _.isPlainObject(V) && V.fromFile) {
const absPath = path.resolve(
path.dirname(context.vars.$scenarioFile),
V.fromFile
);
fileUpload = absPath;
V = fs.createReadStream(absPath);
}
acc.append(k, V);
return acc;

@@ -411,2 +422,11 @@ },

);
if (params.setContentLengthHeader && fileUpload) {
try {
requestParams.headers = requestParams.headers || {};
requestParams.headers['content-length'] =
fs.statSync(fileUpload).size;
} catch (err) {
debug(`stat() on ${fileUpload} failed with ${err}`);
}
}
}

@@ -413,0 +433,0 @@

4

lib/runner.js

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

}
if (script._scriptPath) {
INITIAL_CONTEXT.vars.$scenarioFile = script._scriptPath;
}
let result = INITIAL_CONTEXT;

@@ -474,0 +476,0 @@

{
"name": "@artilleryio/int-core",
"version": "2.11.0",
"version": "2.12.0-c3be075",
"main": "./index.js",
"license": "MPL-2.0",
"dependencies": {
"@artilleryio/int-commons": "2.7.0",
"@artilleryio/int-commons": "2.8.0-c3be075",
"@artilleryio/sketches-js": "^2.1.1",

@@ -9,0 +9,0 @@ "agentkeepalive": "^4.1.0",

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