Remove debug statement
This commit is contained in:
parent
d2f318f53f
commit
f297ba2217
|
@ -13,7 +13,6 @@
|
|||
"countries-list": "^1.3.2",
|
||||
"csso": "^3.1.1",
|
||||
"date-fns": "^1.28.1",
|
||||
"debug": "^2.6.8",
|
||||
"etag": "^1.8.0",
|
||||
"express": "^4.15.2",
|
||||
"gunzip-maybe": "^1.4.0",
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
require('isomorphic-fetch')
|
||||
const debug = require('debug')
|
||||
const gunzip = require('gunzip-maybe')
|
||||
const mkdirp = require('mkdirp')
|
||||
const tar = require('tar-fs')
|
||||
const RegistryCache = require('./RegistryCache')
|
||||
|
||||
const log = debug('express-unpkg')
|
||||
|
||||
const getPackageInfoFromRegistry = (registryURL, packageName) => {
|
||||
let encodedPackageName
|
||||
if (packageName.charAt(0) === '@') {
|
||||
|
@ -36,8 +33,6 @@ const getPackageInfo = (registryURL, packageName, callback) => {
|
|||
} else if (value) {
|
||||
callback(null, value === PackageNotFound ? null : value)
|
||||
} else {
|
||||
log('Registry cache miss for package %s', packageName)
|
||||
|
||||
getPackageInfoFromRegistry(registryURL, packageName).then(value => {
|
||||
if (value == null) {
|
||||
// Keep 404s in the cache for 5 minutes. This prevents us
|
||||
|
|
Loading…
Reference in New Issue