npq 3.4.1 → 3.4.3

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.
Binary file
Binary file
@@ -23,8 +23,16 @@ class Marshall extends BaseMarshall {
23
23
  validate(pkg) {
24
24
  let levenshteinDistance = null
25
25
  let similarPackages = []
26
+ let packageFoundInTopPackages = false
26
27
  return new Promise((resolve, reject) => {
27
28
  for (const popularPackageNameInRepository of topPackagesRawJSON) {
29
+ // If the package to be installed is itself found within the Top Packages dataset
30
+ // then we don't report on it
31
+ if (pkg.packageName === popularPackageNameInRepository) {
32
+ packageFoundInTopPackages = true
33
+ return resolve([])
34
+ }
35
+
28
36
  levenshteinDistance = levenshtein.get(pkg.packageName, popularPackageNameInRepository)
29
37
 
30
38
  if (levenshteinDistance > 0 && levenshteinDistance < 3) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npq",
3
- "version": "3.4.1",
3
+ "version": "3.4.3",
4
4
  "description": "marshall your npm/npm package installs with high quality and class 🎖",
5
5
  "bin": {
6
6
  "npq": "./bin/npq.js",