@kumori/aurora-backend-handler 1.0.2 → 1.0.4
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/helpers/revision-helper.ts +17 -17
- package/package.json +1 -1
|
@@ -581,7 +581,7 @@ export const processDeployment = (
|
|
|
581
581
|
Object.entries(rolesDefinition).forEach(
|
|
582
582
|
([roleName, roleData]: [string, any]) => {
|
|
583
583
|
const fileSystemParameters = extractParametersFromFilesystem(
|
|
584
|
-
roleData.artifact.description?.mapping
|
|
584
|
+
roleData.artifact.description?.code?.[roleName]?.mapping?.filesystem || [],
|
|
585
585
|
allServiceParameters,
|
|
586
586
|
);
|
|
587
587
|
allServiceParameters.push(...fileSystemParameters);
|
|
@@ -708,25 +708,25 @@ export const extractParametersFromFilesystem = (
|
|
|
708
708
|
currentParameters: { [key: string]: string }[],
|
|
709
709
|
): { [key: string]: string }[] => {
|
|
710
710
|
const parameters: { [key: string]: string }[] = [];
|
|
711
|
-
filesystem.forEach((
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
currentParameters.splice(currentParameters.indexOf(existingParam), 1);
|
|
725
|
-
}
|
|
711
|
+
Object.entries(filesystem).forEach(([key, value]: [string, any]) => {
|
|
712
|
+
if (value.data) {
|
|
713
|
+
const existingParam = currentParameters.find(
|
|
714
|
+
(param) => param.value === value.data.value,
|
|
715
|
+
);
|
|
716
|
+
parameters.push({
|
|
717
|
+
name: existingParam?.name || key,
|
|
718
|
+
path: value.path,
|
|
719
|
+
value: value.data.value,
|
|
720
|
+
type: "file",
|
|
721
|
+
});
|
|
722
|
+
if (existingParam) {
|
|
723
|
+
currentParameters.splice(currentParameters.indexOf(existingParam), 1);
|
|
726
724
|
}
|
|
727
|
-
}
|
|
725
|
+
}
|
|
726
|
+
|
|
728
727
|
});
|
|
729
728
|
|
|
729
|
+
|
|
730
730
|
return parameters;
|
|
731
731
|
};
|
|
732
732
|
export const extractResources = (resourceConfig: any): Resource[] => {
|