viberadar 0.3.218 → 0.3.220

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.
@@ -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,CA83G1G"}
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,CAi4G1G"}
@@ -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, executionMode, vusEnvName, durationEnvName } = JSON.parse(body);
5137
+ const { name, script, vus, duration, baseUrl, dataDir, resultDir, accountsJson, accounts, 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' }));
@@ -5157,6 +5157,9 @@ a{color:var(--blue)}
5157
5157
  durationEnvName: sanitizeLoadEnvName(durationEnvName, 'LOAD_DURATION'),
5158
5158
  dataDir: resolveLoadLocalPath(dataDir),
5159
5159
  resultDir: resolveLoadLocalPath(resultDir),
5160
+ accountsJson: typeof accountsJson === 'string' && accountsJson.trim()
5161
+ ? accountsJson.trim()
5162
+ : (accounts !== undefined ? JSON.stringify(accounts) : undefined),
5160
5163
  };
5161
5164
  // overwrite if same name exists
5162
5165
  const existing = fs.readdirSync(scriptsDir).find(f => {