@intuned/runtime-dev 1.0.6-cli-auth.0.1.2-test → 1.0.6-cli-auth.0.1.3-test
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.
|
@@ -359,6 +359,7 @@ async function mapToIDEParams(tree) {
|
|
|
359
359
|
if (!tree["parameters"] || (0, _utils2._isFileNode)(tree["parameters"])) {
|
|
360
360
|
return;
|
|
361
361
|
}
|
|
362
|
+
const apiParametersMap = {};
|
|
362
363
|
const cliParameters = Object.keys(tree["parameters"].directory);
|
|
363
364
|
const ____testParameters = {
|
|
364
365
|
directory: {}
|
|
@@ -381,14 +382,23 @@ async function mapToIDEParams(tree) {
|
|
|
381
382
|
...parameterValue
|
|
382
383
|
} = parameterPayload;
|
|
383
384
|
const testParameter = {
|
|
384
|
-
name: parameterKey,
|
|
385
|
+
name: parameterKey.replace(".json", ""),
|
|
385
386
|
lastUsed: false,
|
|
386
387
|
id: (0, _uuid.v4)(),
|
|
387
388
|
value: parameterValue
|
|
388
389
|
};
|
|
390
|
+
if (!apiParametersMap[api]) {
|
|
391
|
+
apiParametersMap[api] = [];
|
|
392
|
+
}
|
|
393
|
+
apiParametersMap[api].push(testParameter);
|
|
394
|
+
}
|
|
395
|
+
for (const api in apiParametersMap) {
|
|
396
|
+
if (apiParametersMap[api].length > 0) {
|
|
397
|
+
apiParametersMap[api][apiParametersMap[api].length - 1].lastUsed = true;
|
|
398
|
+
}
|
|
389
399
|
____testParameters.directory[`${api}.json`] = {
|
|
390
400
|
file: {
|
|
391
|
-
contents: JSON.stringify(
|
|
401
|
+
contents: JSON.stringify(apiParametersMap[api], null, 2)
|
|
392
402
|
}
|
|
393
403
|
};
|
|
394
404
|
}
|