semantic-version/lib/providers/VersionClassification.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

24 lines
950 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VersionClassification = void 0;
/** The result of a version classification */
class VersionClassification {
/**
* Creates a new version classification result instance
* @param type - The type of change the current range represents
* @param increment - The number of commits which have this version, usually zero-based
* @param changed - True if the version has changed, false otherwise
* @param major - The major version number
* @param minor - The minor version number
* @param patch - The patch version number
*/
constructor(type, increment, changed, major, minor, patch) {
this.type = type;
this.increment = increment;
this.changed = changed;
this.major = major;
this.minor = minor;
this.patch = patch;
}
}
exports.VersionClassification = VersionClassification;