@kud/gh-ink 0.16.3 → 0.16.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/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -853,7 +853,9 @@ var sortItems = (items) => [...items].sort((a, b) => {
|
|
|
853
853
|
const pd = repoPriority(a.repo) - repoPriority(b.repo);
|
|
854
854
|
if (pd !== 0) return pd;
|
|
855
855
|
const rd = a.repo.localeCompare(b.repo);
|
|
856
|
-
|
|
856
|
+
if (rd !== 0) return rd;
|
|
857
|
+
const dd = Number(a.health === "draft") - Number(b.health === "draft");
|
|
858
|
+
return dd !== 0 ? dd : b.ts - a.ts;
|
|
857
859
|
});
|
|
858
860
|
var sortByRecency = (items) => [...items].sort((a, b) => b.ts - a.ts);
|
|
859
861
|
var insertRepoHeaders = (items) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/gh-ink",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.4",
|
|
4
4
|
"description": "Ink components for rendering GitHub PR review comments and health — controlled, presentation-only, built on @kud/ink-ui and fed by @kud/gh.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|