code: function updateDeps(deps, packages, version) {
      const lib = {};
      _.each(packages, pkg => {
          lib[pkg.name] = version;
      });
  
      _.each(deps, (v, dep) => {
          if (dep in lib) {
              deps[dep] = "^" + version;
          }
      });
  }
docs: Update package.json of the package with its new version and new versions of all dependencies
  
  @param deps
  @param packages
  @param version