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 lastVersionData =
34
- data.versions && data['dist-tags'] && data.versions[data['dist-tags'].latest]
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 = lastVersionData && lastVersionData.maintainers
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')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npq",
3
- "version": "3.23.0",
3
+ "version": "3.23.1",
4
4
  "description": "marshall your npm/npm package installs with high quality and class 🎖",
5
5
  "bin": {
6
6
  "npq": "./bin/npq.js",