Questionnaire-of-the-Facebo.../node_modules/semver-diff/index.js

14 lines
287 B
JavaScript
Raw Normal View History

2021-03-11 01:43:28 +00:00
'use strict';
const semver = require('semver');
module.exports = (versionA, versionB) => {
versionA = semver.parse(versionA);
versionB = semver.parse(versionB);
if (semver.compareBuild(versionA, versionB) >= 0) {
return;
}
return semver.diff(versionA, versionB) || 'build';
};