whole_func_string: 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;
          }
      });
  }
func_code_string: 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;
          }
      });
  }
func_documentation_string: Update package.json of the package with its new version and new versions of all dependencies
  
  @param deps
  @param packages
  @param version