@contrail/cli 3.7.0-alpha.1c66a91 → 3.7.0-alpha.3c9e156

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/README.md CHANGED
@@ -17,7 +17,7 @@ $ npm install -g @contrail/cli
17
17
  $ contrail COMMAND
18
18
  running command...
19
19
  $ contrail (--version)
20
- @contrail/cli/3.7.0-alpha.1c66a91 linux-x64 node-v24.22.2
20
+ @contrail/cli/3.7.0-alpha.3c9e156 linux-x64 node-v24.22.3
21
21
  $ contrail --help [COMMAND]
22
22
  USAGE
23
23
  $ contrail COMMAND
@@ -46,7 +46,7 @@ function appVersionValidator(appDeclaration) {
46
46
  errors.push(exports.ERROR_MESSAGES.invalidVersionField);
47
47
  return { errors, warnings };
48
48
  }
49
- if (semver_1.default.valid(appDeclaration.version) !== appDeclaration.version.split('+')[0]) {
49
+ if (semver_1.default.valid(appDeclaration.version) !== appDeclaration.version) {
50
50
  errors.push(exports.ERROR_MESSAGES.invalidAppVersion);
51
51
  }
52
52
  return { errors, warnings };
@@ -40,17 +40,10 @@ describe('appVersionValidator', () => {
40
40
  const validationResult = (0, app_config_validators_1.appVersionValidator)(appDeclaration);
41
41
  expect(validationResult).toEqual(validResult);
42
42
  });
43
- it('should not return an error if app version has build metadata', () => {
43
+ it('should return an error if app version has build metadata', () => {
44
44
  const appDeclaration = {
45
45
  version: '1.4.0+build123',
46
46
  };
47
- const validationResult = (0, app_config_validators_1.appVersionValidator)(appDeclaration);
48
- expect(validationResult).toEqual(validResult);
49
- });
50
- it('should return an error if app version has a leading v', () => {
51
- const appDeclaration = {
52
- version: 'v1.4.0',
53
- };
54
47
  const expectedError = {
55
48
  errors: [app_config_validators_1.ERROR_MESSAGES.invalidAppVersion],
56
49
  warnings: [],
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.7.0-alpha.1c66a91",
2
+ "version": "3.7.0-alpha.3c9e156",
3
3
  "commands": {
4
4
  "login": {
5
5
  "id": "login",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "3.7.0-alpha.1c66a91",
3
+ "version": "3.7.0-alpha.3c9e156",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",