@node9/proxy 1.21.2 → 1.21.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/scan-ink.mjs +3 -4
- package/package.json +1 -1
package/dist/scan-ink.mjs
CHANGED
|
@@ -164,10 +164,9 @@ function relativeDate(timestamp, now = /* @__PURE__ */ new Date()) {
|
|
|
164
164
|
// src/cli/render/ink/panels/LeaksPanel.tsx
|
|
165
165
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
166
166
|
var ROW_LIMIT = 4;
|
|
167
|
-
function LeaksPanel({ summary, width }) {
|
|
167
|
+
function LeaksPanel({ summary, width, now = /* @__PURE__ */ new Date() }) {
|
|
168
168
|
const leaks = summary.leaks;
|
|
169
169
|
if (leaks.length === 0) return null;
|
|
170
|
-
const now = /* @__PURE__ */ new Date();
|
|
171
170
|
return /* @__PURE__ */ jsxs5(Box5, { borderStyle: "round", borderColor: "red", paddingX: 1, flexDirection: "column", width, children: [
|
|
172
171
|
/* @__PURE__ */ jsx5(Text5, { bold: true, color: "red", children: "CREDENTIAL LEAKS" }),
|
|
173
172
|
leaks.slice(0, ROW_LIMIT).map((leak, i) => /* @__PURE__ */ jsxs5(Box5, { children: [
|
|
@@ -1599,7 +1598,7 @@ function renderWidth() {
|
|
|
1599
1598
|
const term = process.stdout.columns ?? MAX_WIDTH;
|
|
1600
1599
|
return Math.min(term, MAX_WIDTH);
|
|
1601
1600
|
}
|
|
1602
|
-
function StaticScorecard({ input, rangeLabel }) {
|
|
1601
|
+
function StaticScorecard({ input, rangeLabel, now }) {
|
|
1603
1602
|
const { summary, blockedCount } = input;
|
|
1604
1603
|
const width = renderWidth();
|
|
1605
1604
|
const halfWidth = Math.floor((width - 1) / 2);
|
|
@@ -1625,7 +1624,7 @@ function StaticScorecard({ input, rangeLabel }) {
|
|
|
1625
1624
|
hasCritical ? /* @__PURE__ */ jsxs11(Fragment2, { children: [
|
|
1626
1625
|
/* @__PURE__ */ jsx11(SeverityBand, { label: criticalLabel, width }),
|
|
1627
1626
|
/* @__PURE__ */ jsxs11(Box11, { flexDirection: "row", gap: 1, children: [
|
|
1628
|
-
/* @__PURE__ */ jsx11(LeaksPanel, { summary, width: halfWidth }),
|
|
1627
|
+
/* @__PURE__ */ jsx11(LeaksPanel, { summary, width: halfWidth, now }),
|
|
1629
1628
|
/* @__PURE__ */ jsx11(BlockedPanel, { summary, width: halfWidth })
|
|
1630
1629
|
] })
|
|
1631
1630
|
] }) : null,
|