ccperm 1.9.6 → 1.9.7
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/interactive.js +1 -3
- package/package.json +1 -1
package/dist/interactive.js
CHANGED
|
@@ -201,12 +201,10 @@ function renderDetail(state, withPerms, results) {
|
|
|
201
201
|
const clean = cleanLabel(item.name);
|
|
202
202
|
if (state.showInfo) {
|
|
203
203
|
const info = (0, explain_js_1.explain)(group.category, item.name);
|
|
204
|
-
const riskColor = info.risk === 'red' ? colors_js_1.RED : info.risk === 'yellow' ? colors_js_1.YELLOW : colors_js_1.GREEN;
|
|
205
|
-
const dot = `${riskColor}●${colors_js_1.NC}`;
|
|
206
204
|
const nameMax = Math.min(35, w - 10);
|
|
207
205
|
const name = clean.length > nameMax ? clean.slice(0, nameMax - 1) + '…' : clean;
|
|
208
206
|
const desc = info.description ? `${colors_js_1.DIM}${info.description}${colors_js_1.NC}` : '';
|
|
209
|
-
navRows.push({ text: ` ${
|
|
207
|
+
navRows.push({ text: ` ${pad(name, nameMax)} ${desc}`, perm: item.name });
|
|
210
208
|
}
|
|
211
209
|
else {
|
|
212
210
|
const maxLen = w - 8;
|