Use 0 instead of a string for missing packages
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
const cache = require("./cache");
|
const cache = require("./cache");
|
||||||
const fetchNpmPackageInfo = require("./fetchNpmPackageInfo");
|
const fetchNpmPackageInfo = require("./fetchNpmPackageInfo");
|
||||||
|
|
||||||
const notFound = "PackageNotFound";
|
const notFound = 0;
|
||||||
|
|
||||||
function getNpmPackageInfo(packageName) {
|
function getNpmPackageInfo(packageName) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
Reference in New Issue
Block a user