@kaynooo/cli-pkg 0.17.3 → 0.17.4
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/cli.js +2 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2856,6 +2856,8 @@ function analyze(input) {
|
|
|
2856
2856
|
report.warnings.push(`${registry} gives no publish date for ${version}, its age cannot be checked${isBlocking ? " and it is refused" : ""}`);
|
|
2857
2857
|
} else if (age < minAgeDays && report.fixes.length > 0) {
|
|
2858
2858
|
report.warnings.push(`${version} was published ${daysAgo(age)} ago, under ${minAgeDays} days, but it fixes ${report.fixes.map((each) => `${each.ghsa ?? each.id} (${each.severity})`).join(", ")} that ${report.safe?.version} has, so its age does not hold it back`);
|
|
2859
|
+
} else if (age < minAgeDays && registry !== PUBLIC_HOST) {
|
|
2860
|
+
report.warnings.push(`${version} was published ${daysAgo(age)} ago, under ${minAgeDays} days, not held back on ${registry}`);
|
|
2859
2861
|
} else if (age < minAgeDays) {
|
|
2860
2862
|
report.blocked = true;
|
|
2861
2863
|
report.warnings.push(`${version} was published ${daysAgo(age)} ago, under ${minAgeDays} days${report.safe === undefined ? ", and no older stable version exists" : `, use ${spec.name}@${report.safe.version}`}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaynooo/cli-pkg",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.17.
|
|
4
|
+
"version": "0.17.4",
|
|
5
5
|
"description": "pkg: check an npm package before it is added, for a guessed name, a version under two weeks old and install scripts.",
|
|
6
6
|
"author": "Kaynooo <contact@kaynooo.fr>",
|
|
7
7
|
"license": "MIT",
|