Use 0 instead of a string for missing packages

This commit is contained in:
Michael Jackson
2018-09-04 07:39:45 -07:00
parent 29b7725597
commit 311a1ffa7e

View File

@ -1,7 +1,7 @@
const cache = require("./cache");
const fetchNpmPackageInfo = require("./fetchNpmPackageInfo");
const notFound = "PackageNotFound";
const notFound = 0;
function getNpmPackageInfo(packageName) {
return new Promise((resolve, reject) => {