npq 3.23.0 → 3.23.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.
|
@@ -30,10 +30,14 @@ class Marshall extends BaseMarshall {
|
|
|
30
30
|
|
|
31
31
|
async validate(pkg) {
|
|
32
32
|
const data = await this.packageRepoUtils.getPackageInfo(pkg.packageName)
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
const packageVersion = await this.resolvePackageVersion(
|
|
34
|
+
pkg.packageName,
|
|
35
|
+
pkg.packageVersion || 'latest',
|
|
36
|
+
data
|
|
37
|
+
)
|
|
38
|
+
const versionData = packageVersion && data.versions && data.versions[packageVersion]
|
|
35
39
|
|
|
36
|
-
const maintainersAccounts =
|
|
40
|
+
const maintainersAccounts = versionData && versionData.maintainers
|
|
37
41
|
|
|
38
42
|
if (!Array.isArray(maintainersAccounts) || maintainersAccounts.length === 0) {
|
|
39
43
|
throw new NotEvaluated('no maintainers information available for the package')
|