Use 0 instead of a string for missing packages
This commit is contained in:
parent
29b7725597
commit
311a1ffa7e
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue