fix: fix increment

This commit is contained in:
marcin 2023-03-29 15:19:00 +01:00
parent ad90df1fce
commit 35fc660a00
No known key found for this signature in database
GPG key ID: 524860A885021BCB
7 changed files with 18 additions and 18 deletions

View file

@ -3,6 +3,6 @@ repos:
rev: v1.1.1 rev: v1.1.1
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
exclude: ^version.json exclude: ^dist/*

View file

@ -21,4 +21,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[v6.0.0]: https://github.com/3h4x/semantic-version/compare/v5.0.3...v6.0.0 [v6.0.0]: https://github.com/3h4x/semantic-version/compare/v5.0.3...v6.0.0
[v6.0.1]: https://github.com/t3rn/semantic-version/compare/v6.0.0...v6.0.1 [v6.0.1]: https://github.com/t3rn/semantic-version/compare/v6.0.0...v6.0.1

24
dist/index.js vendored
View file

@ -912,7 +912,7 @@ class DefaultVersionClassifier {
const currentIncremement = versionsMatch ? increment : 0; const currentIncremement = versionsMatch ? increment : 0;
return new VersionClassification_1.VersionClassification(VersionType_1.VersionType.None, currentIncremement, false, lastRelease.currentMajor, lastRelease.currentMinor, lastRelease.currentPatch); return new VersionClassification_1.VersionClassification(VersionType_1.VersionType.None, currentIncremement, false, lastRelease.currentMajor, lastRelease.currentMinor, lastRelease.currentPatch);
} }
return new VersionClassification_1.VersionClassification(type, increment, changed, major, minor, patch); return new VersionClassification_1.VersionClassification(type, type !== VersionType_1.VersionType.None ? 0 : increment, changed, major, minor, patch);
}); });
} }
} }
@ -1632,8 +1632,8 @@ class OidcClient {
const res = yield httpclient const res = yield httpclient
.getJson(id_token_url) .getJson(id_token_url)
.catch(error => { .catch(error => {
throw new Error(`Failed to get ID Token. \n throw new Error(`Failed to get ID Token. \n
Error Code : ${error.statusCode}\n Error Code : ${error.statusCode}\n
Error Message: ${error.result.message}`); Error Message: ${error.result.message}`);
}); });
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
@ -5147,7 +5147,7 @@ module.exports = require("util");
/************************************************************************/ /************************************************************************/
/******/ // The module cache /******/ // The module cache
/******/ var __webpack_module_cache__ = {}; /******/ var __webpack_module_cache__ = {};
/******/ /******/
/******/ // The require function /******/ // The require function
/******/ function __nccwpck_require__(moduleId) { /******/ function __nccwpck_require__(moduleId) {
/******/ // Check if module is in cache /******/ // Check if module is in cache
@ -5161,7 +5161,7 @@ module.exports = require("util");
/******/ // no module.loaded needed /******/ // no module.loaded needed
/******/ exports: {} /******/ exports: {}
/******/ }; /******/ };
/******/ /******/
/******/ // Execute the module function /******/ // Execute the module function
/******/ var threw = true; /******/ var threw = true;
/******/ try { /******/ try {
@ -5170,24 +5170,24 @@ module.exports = require("util");
/******/ } finally { /******/ } finally {
/******/ if(threw) delete __webpack_module_cache__[moduleId]; /******/ if(threw) delete __webpack_module_cache__[moduleId];
/******/ } /******/ }
/******/ /******/
/******/ // Return the exports of the module /******/ // Return the exports of the module
/******/ return module.exports; /******/ return module.exports;
/******/ } /******/ }
/******/ /******/
/************************************************************************/ /************************************************************************/
/******/ /* webpack/runtime/compat */ /******/ /* webpack/runtime/compat */
/******/ /******/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
/******/ /******/
/************************************************************************/ /************************************************************************/
/******/ /******/
/******/ // startup /******/ // startup
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ // This entry module is referenced by other modules so it can't be inlined /******/ // This entry module is referenced by other modules so it can't be inlined
/******/ var __webpack_exports__ = __nccwpck_require__(3109); /******/ var __webpack_exports__ = __nccwpck_require__(3109);
/******/ module.exports = __webpack_exports__; /******/ module.exports = __webpack_exports__;
/******/ /******/
/******/ })() /******/ })()
; ;
//# sourceMappingURL=index.js.map //# sourceMappingURL=index.js.map

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -97,7 +97,7 @@ class DefaultVersionClassifier {
const currentIncremement = versionsMatch ? increment : 0; const currentIncremement = versionsMatch ? increment : 0;
return new VersionClassification_1.VersionClassification(VersionType_1.VersionType.None, currentIncremement, false, lastRelease.currentMajor, lastRelease.currentMinor, lastRelease.currentPatch); return new VersionClassification_1.VersionClassification(VersionType_1.VersionType.None, currentIncremement, false, lastRelease.currentMajor, lastRelease.currentMinor, lastRelease.currentPatch);
} }
return new VersionClassification_1.VersionClassification(type, increment, changed, major, minor, patch); return new VersionClassification_1.VersionClassification(type, type !== VersionType_1.VersionType.None ? 0 : increment, changed, major, minor, patch);
}); });
} }
} }

View file

@ -110,6 +110,6 @@ export class DefaultVersionClassifier implements VersionClassifier {
} }
return new VersionClassification(type, increment, changed, major, minor, patch); return new VersionClassification(type, type !== VersionType.None ? 0 : increment, changed, major, minor, patch);
} }
} }