npq 3.12.1 → 3.13.0
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.
|
@@ -32,7 +32,7 @@ class Marshall extends BaseMarshall {
|
|
|
32
32
|
|
|
33
33
|
if (dateDiff < thresholdMs) {
|
|
34
34
|
throw new Error(
|
|
35
|
-
`Detected a newly published package
|
|
35
|
+
`Detected a newly published package: created < ${PACKAGE_AGE_THRESHOLD} days. Act carefully`
|
|
36
36
|
)
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -60,7 +60,7 @@ class Marshall extends BaseMarshall {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
if (versionDateDiff >= unmaintainedThresholdMs) {
|
|
63
|
-
throw new Warning(`Detected an old package
|
|
63
|
+
throw new Warning(`Detected an old package: created ${timeAgoNumber} ${timeAgoText} ago`)
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -23,13 +23,13 @@ class Marshall extends BaseMarshall {
|
|
|
23
23
|
return this.packageRepoUtils.getDownloadInfo(pkg.packageName).then((downloadCount) => {
|
|
24
24
|
if (downloadCount < DOWNLOAD_COUNT_THRESHOLD) {
|
|
25
25
|
throw new Error(
|
|
26
|
-
`Detected a low download-count package
|
|
26
|
+
`Detected a low download-count package: downloads last month < ${DOWNLOAD_COUNT_THRESHOLD}`
|
|
27
27
|
)
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
if (downloadCount < DOWNLOAD_COUNT_UPPER_THRESHOLD) {
|
|
31
31
|
throw new Warning(
|
|
32
|
-
`Detected a
|
|
32
|
+
`Detected a relatively low download-count package: ${downloadCount} downloads last month`
|
|
33
33
|
)
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -51,7 +51,7 @@ class Marshall extends BaseMarshall {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
throw new Error(
|
|
54
|
-
`Detected a recently published version
|
|
54
|
+
`Detected a recently published version: published ${timeAgoNumber} ${timeAgoText} ago. Consider waiting for community review.`
|
|
55
55
|
)
|
|
56
56
|
}
|
|
57
57
|
|