diff options
Diffstat (limited to 'together/node_modules/semver/functions/compare-build.js')
-rw-r--r-- | together/node_modules/semver/functions/compare-build.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/together/node_modules/semver/functions/compare-build.js b/together/node_modules/semver/functions/compare-build.js new file mode 100644 index 0000000..9eb881b --- /dev/null +++ b/together/node_modules/semver/functions/compare-build.js @@ -0,0 +1,7 @@ +const SemVer = require('../classes/semver') +const compareBuild = (a, b, loose) => { + const versionA = new SemVer(a, loose) + const versionB = new SemVer(b, loose) + return versionA.compare(versionB) || versionA.compareBuild(versionB) +} +module.exports = compareBuild |