pull/310/head
Frostebite 2021-12-30 21:30:38 +00:00
parent 3102287676
commit 2c85ced586
3 changed files with 12 additions and 25 deletions

10
dist/index.js vendored
View File

@ -2581,14 +2581,8 @@ class TaskParameterSerializer {
static readInput(array) {
const input = Object.getOwnPropertyNames(__1.Input);
for (const element of input) {
if (typeof __1.Input[element] !== 'function' &&
array.filter((x) => x.name === element).length === 0) {
array.push(
//{
// name: element,
// value: `${Input[element]}`,
//},
{
if (typeof __1.Input[element] !== 'function' && array.filter((x) => x.name === element || x.n).length === 0) {
array.push({
name: element,
value: `${__1.Input[element]}`,
});

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -39,11 +39,10 @@ export class TaskParameterSerializer {
private static readBuildParameters(array: any[]) {
const keys = Object.keys(CloudRunnerState.buildParams);
for (const element of keys) {
if (array.filter((x) => x.name === element).length === 0)
array.push({
name: element,
value: CloudRunnerState.buildParams[element],
});
array.push({
name: element,
value: CloudRunnerState.buildParams[element],
});
}
array.push(
{ name: 'buildParameters', value: JSON.stringify(CloudRunnerState.buildParams) },
@ -58,17 +57,11 @@ export class TaskParameterSerializer {
private static readInput(array: any[]) {
const input = Object.getOwnPropertyNames(Input);
for (const element of input) {
if (typeof Input[element] !== 'function') {
array.push(
//{
// name: element,
// value: `${Input[element]}`,
//},
{
name: element,
value: `${Input[element]}`,
},
);
if (typeof Input[element] !== 'function' && array.filter((x) => x.name === element).length === 0) {
array.push({
name: element,
value: `${Input[element]}`,
});
}
}
return array;