@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.
@@ -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.filesystem || [],
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((file: any) => {
712
- Object.entries(file).forEach(([key, value]: [string, any]) => {
713
- if (value.data) {
714
- const existingParam = currentParameters.find(
715
- (param) => param.value === value.data.value,
716
- );
717
- parameters.push({
718
- name: existingParam?.name || key,
719
- path: value.path,
720
- value: value.data.value,
721
- type: "file",
722
- });
723
- if (existingParam) {
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[] => {
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "ws": "^8.18.2"
24
24
  },
25
25
  "name": "@kumori/aurora-backend-handler",
26
- "version": "1.0.2",
26
+ "version": "1.0.4",
27
27
  "description": "backend handler",
28
28
  "main": "backend-handler.ts",
29
29
  "repository": {