Refactor parameter serialization into TaskParameterSerializer

pull/310/head
Frostebite 2021-12-23 18:36:30 +00:00
parent bede18971a
commit 19a80caf31
3 changed files with 13 additions and 9 deletions

10
dist/index.js vendored
View File

@ -2393,10 +2393,12 @@ class TaskParameterSerializer {
array.push({ name: 'buildParameters', value: JSON.stringify(cloud_runner_state_1.CloudRunnerState.buildParams) }); array.push({ name: 'buildParameters', value: JSON.stringify(cloud_runner_state_1.CloudRunnerState.buildParams) });
const input = Object.getOwnPropertyNames(__1.Input); const input = Object.getOwnPropertyNames(__1.Input);
for (const element of input) { for (const element of input) {
array.push({ if (typeof __1.Input[element] !== 'function') {
name: element, array.push({
value: `${__1.Input[element]}`, name: element,
}); value: `${__1.Input[element]}`,
});
}
} }
return array; return array;
} }

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -73,10 +73,12 @@ export class TaskParameterSerializer {
array.push({ name: 'buildParameters', value: JSON.stringify(CloudRunnerState.buildParams) }); array.push({ name: 'buildParameters', value: JSON.stringify(CloudRunnerState.buildParams) });
const input = Object.getOwnPropertyNames(Input); const input = Object.getOwnPropertyNames(Input);
for (const element of input) { for (const element of input) {
array.push({ if (typeof Input[element] !== 'function') {
name: element, array.push({
value: `${Input[element]}`, name: element,
}); value: `${Input[element]}`,
});
}
} }
return array; return array;
} }