@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.
|
|
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
|
|
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
|
|
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: [],
|
package/oclif.manifest.json
CHANGED