Consolidate npm utils in the same file
This commit is contained in:
		| @ -3,7 +3,7 @@ import semver from 'semver'; | ||||
| import addLeadingSlash from '../utils/addLeadingSlash'; | ||||
| import createPackageURL from '../utils/createPackageURL'; | ||||
| import createSearch from '../utils/createSearch'; | ||||
| import getNpmPackageInfo from '../utils/getNpmPackageInfo'; | ||||
| import { getPackageInfo as getNpmPackageInfo } from '../utils/npm'; | ||||
|  | ||||
| function tagRedirect(req, res) { | ||||
|   const version = req.packageInfo['dist-tags'][req.packageVersion]; | ||||
|  | ||||
| @ -3,7 +3,7 @@ import path from 'path'; | ||||
| import addLeadingSlash from '../utils/addLeadingSlash'; | ||||
| import createPackageURL from '../utils/createPackageURL'; | ||||
| import createSearch from '../utils/createSearch'; | ||||
| import fetchNpmPackage from '../utils/fetchNpmPackage'; | ||||
| import { fetchPackage as fetchNpmPackage } from '../utils/npm'; | ||||
| import getIntegrity from '../utils/getIntegrity'; | ||||
| import getContentType from '../utils/getContentType'; | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user