semantic-version/lib/providers/ReleaseInformation.js
Paul Hatcherian 31f4e3fdf0 Rewrite/refactor for v5, migrate to TypeScript (MAJOR)
Set Jest config file in package script

Include module path

Include tests in project folders

Remove index module exports

Hardcode configuration parameters

Move parameter binding into main run function

Use alias imports

Run test sequentially

Remove cleanup (async conflict)

Revert Jest option

Increase test timeout to 15 seconds
2022-04-03 20:28:28 -04:00

26 lines
1 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReleaseInformation = void 0;
// Finds the hash of the last commit
class ReleaseInformation {
/**
* Creates a new instance
* @param major - the major version number
* @param minor - the minor version number
* @param patch - the patch version number
* @param hash - the hash of commit of the last release
* @param currentMajor - the major version number from the current commit
* @param currentMinor - the minor version number from the current commit
* @param currentPatch - the patch version number from the current commit
*/
constructor(major, minor, patch, hash, currentMajor, currentMinor, currentPatch) {
this.major = major;
this.minor = minor;
this.patch = patch;
this.hash = hash;
this.currentMajor = currentMajor;
this.currentMinor = currentMinor;
this.currentPatch = currentPatch;
}
}
exports.ReleaseInformation = ReleaseInformation;