Remove debug statement

This commit is contained in:
MICHAEL JACKSON 2017-05-25 11:39:18 -07:00
parent d2f318f53f
commit f297ba2217
2 changed files with 0 additions and 6 deletions

View File

@ -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",

View File

@ -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