@sap-ux/project-input-validator 0.6.79 → 0.6.81

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.
@@ -62,15 +62,14 @@ function validateProjectName(value, destinationPath, isCustomerBase, isCfEnv) {
62
62
  if (/[A-Z]/.test(value)) {
63
63
  return (0, i18n_1.t)('adp.projectNameUppercaseError');
64
64
  }
65
+ const nameResult = isCustomerBase ? validateProjectNameExternal(value) : validateProjectNameInternal(value);
66
+ if (typeof nameResult === 'string') {
67
+ return nameResult;
68
+ }
65
69
  if (isCfEnv) {
66
70
  return validateDuplicateProjectName(value, destinationPath);
67
71
  }
68
- if (!isCustomerBase) {
69
- return validateProjectNameInternal(value);
70
- }
71
- else {
72
- return validateProjectNameExternal(value);
73
- }
72
+ return true;
74
73
  }
75
74
  /**
76
75
  * Validates that project name is valid for CUSTOMER_BASE layer.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/project-input-validator",
3
- "version": "0.6.79",
3
+ "version": "0.6.81",
4
4
  "description": "Library to validate Fiori project input formats",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "i18next": "25.10.10",
18
18
  "validate-npm-package-name": "7.0.2",
19
- "@sap-ux/project-access": "1.36.1"
19
+ "@sap-ux/project-access": "1.36.2"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/validate-npm-package-name": "4.0.2",