npm-pkg-lint 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -17824,7 +17824,10 @@ async function* getDeepDependencies(pkg, dependency) {
17824
17824
  }
17825
17825
  async function verifyDependency(dependency, minDeclared, declaredConstraint) {
17826
17826
  var _a;
17827
- const pkgData = await npmInfo(dependency);
17827
+ const pkgData = await npmInfo(dependency, { ignoreUnpublished: true });
17828
+ if (!pkgData) {
17829
+ return null;
17830
+ }
17828
17831
  const constraint = (_a = pkgData.engines) == null ? void 0 : _a.node;
17829
17832
  if (!constraint) {
17830
17833
  return null;