@kipicore/dbcore 1.1.307 → 1.1.309

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.
@@ -20,6 +20,8 @@ module.exports = {
20
20
  actions: new Set(),
21
21
  };
22
22
  for (const module of allModules) {
23
+ module.name = module.name.trim();
24
+ module.code = module.code.trim();
23
25
  if (!module.name || !module.code) {
24
26
  console.error(`Invalid module detected:`, module.name);
25
27
  continue;
@@ -47,6 +49,8 @@ module.exports = {
47
49
  }
48
50
  const features = Array.isArray(module.features) ? module.features : [];
49
51
  for (const feature of features) {
52
+ feature.name = feature.name.trim();
53
+ feature.code = feature.code.trim();
50
54
  if (!feature.name || !feature.code) {
51
55
  console.error(`Invalid feature detected in module ${module.name}:`, feature.name);
52
56
  continue;
@@ -75,6 +79,8 @@ module.exports = {
75
79
  }
76
80
  const actions = Array.isArray(feature.actions) ? feature.actions : [];
77
81
  for (const action of actions) {
82
+ action.name = action.name.trim();
83
+ action.code = action.code.trim();
78
84
  if (!action.name || !action.code) {
79
85
  console.error(`Invalid action in feature ${feature.name}:`, action);
80
86
  continue;
@@ -18,12 +18,12 @@ const ReportManagementModule = {
18
18
  // },
19
19
  {
20
20
  name: 'Report',
21
- code: ' REPORT.REPORT',
21
+ code: 'REPORT.REPORT',
22
22
  appType: [appTypeEnum.SCHOOL_APP],
23
23
  actions: [
24
- { name: 'Fee Report', code: ' REPORT.REPORT.FEE', appType: [appTypeEnum.SCHOOL_APP] },
25
- { name: 'Student Report', code: ' REPORT.REPORT.STUDENT', appType: [appTypeEnum.SCHOOL_APP] },
26
- { name: 'Attendance Report', code: ' REPORT.REPORT.ATTENDANCE', appType: [appTypeEnum.SCHOOL_APP] },
24
+ { name: 'Fee Report', code: 'REPORT.REPORT.FEE', appType: [appTypeEnum.SCHOOL_APP] },
25
+ { name: 'Student Report', code: 'REPORT.REPORT.STUDENT', appType: [appTypeEnum.SCHOOL_APP] },
26
+ { name: 'Attendance Report', code: 'REPORT.REPORT.ATTENDANCE', appType: [appTypeEnum.SCHOOL_APP] },
27
27
  ],
28
28
  },
29
29
  // {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.307",
3
+ "version": "1.1.309",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",