viberadar 0.3.220 → 0.3.222
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +2 -1
- package/dist/server/index.js.map +1 -1
- package/dist/ui/dashboard.html +55 -33
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAO7B,OAAO,EAAE,UAAU,EAA4H,MAAM,YAAY,CAAC;AAOlK,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;CACrB;AA0vED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAO7B,OAAO,EAAE,UAAU,EAA4H,MAAM,YAAY,CAAC;AAOlK,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;CACrB;AA0vED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAk4G1G"}
|
package/dist/server/index.js
CHANGED
|
@@ -5134,7 +5134,7 @@ a{color:var(--blue)}
|
|
|
5134
5134
|
req.on('data', (d) => { body += d; });
|
|
5135
5135
|
req.on('end', () => {
|
|
5136
5136
|
try {
|
|
5137
|
-
const { name, script, vus, duration, baseUrl, dataDir, resultDir, accountsJson, accounts, executionMode, vusEnvName, durationEnvName } = JSON.parse(body);
|
|
5137
|
+
const { name, script, vus, duration, baseUrl, dataDir, resultDir, accountsJson, accounts, envVars, executionMode, vusEnvName, durationEnvName } = JSON.parse(body);
|
|
5138
5138
|
if (!name || !script) {
|
|
5139
5139
|
res.writeHead(400, jsonH);
|
|
5140
5140
|
res.end(JSON.stringify({ error: 'name and script required' }));
|
|
@@ -5160,6 +5160,7 @@ a{color:var(--blue)}
|
|
|
5160
5160
|
accountsJson: typeof accountsJson === 'string' && accountsJson.trim()
|
|
5161
5161
|
? accountsJson.trim()
|
|
5162
5162
|
: (accounts !== undefined ? JSON.stringify(accounts) : undefined),
|
|
5163
|
+
envVars: sanitizeLoadEnvVars(envVars),
|
|
5163
5164
|
};
|
|
5164
5165
|
// overwrite if same name exists
|
|
5165
5166
|
const existing = fs.readdirSync(scriptsDir).find(f => {
|