function dependenciesVersion (lockFileContentOne, lockFileContentTwo, modulesToValidate) {
  var allDependenciesOne = alldeps(lockFileContentOne);
  var allDependenciesTwo = alldeps(lockFileContentTwo);

  return modulesToValidate.reduce(function (depWithDiffVer, mod) {
    var verDepFromOne = Object.keys(allDependenciesOne[mod])[0];
    var verDepFromTwo = Object.keys(allDependenciesTwo[mod])[0];

    if (verDepFromOne !== verDepFromTwo) {
      depWithDiffVer.push(mod);
    }

    return depWithDiffVer;
  }, []);
}
Checks if the version of a package-lock file matches with the version of another lock file.
It is necessary to pass the modules to validate.

It will return the modules where the version differs.