@freshworks/shiftleft-tools 1.1.13 → 1.1.14
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@freshworks/shiftleft-tools",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"description": "CLI for managing Cursor rules/skills and Postman test infrastructure across Java Spring Boot and Node.js/Express projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -400,11 +400,17 @@ fi
|
|
|
400
400
|
# links to a stale consolidated report whose per-collection detail files have
|
|
401
401
|
# already been cleaned up. Only fall back to the newest existing one if this
|
|
402
402
|
# run produced no consolidated JSON to render.
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
403
|
+
# The Postman runner self-timestamps its artifacts, so the consolidated JSON's
|
|
404
|
+
# timestamp differs from this orchestrator's $TIMESTAMP. Derive the HTML name
|
|
405
|
+
# from the actual consolidated JSON (resolved above) rather than $TIMESTAMP.
|
|
406
|
+
POSTMAN_CONSOLIDATED_HTML=""
|
|
407
|
+
if [ -n "$CONSOLIDATED_JSON" ] && [ -f "$CONSOLIDATED_JSON" ]; then
|
|
408
|
+
CONSOLIDATED_TS=$(basename "$CONSOLIDATED_JSON" .json | sed "s/^consolidated-${POSTMAN_ENV}-//")
|
|
409
|
+
POSTMAN_CONSOLIDATED_HTML="$REPORTS_DIR/consolidated-${POSTMAN_ENV}-${CONSOLIDATED_TS}.html"
|
|
410
|
+
if [ ! -f "$POSTMAN_CONSOLIDATED_HTML" ]; then
|
|
411
|
+
echo -e "${YELLOW}Generating consolidated HTML report...${NC}"
|
|
412
|
+
"$SCRIPT_DIR/report-generators/generate-consolidated-report.sh" "$POSTMAN_ENV" "$CONSOLIDATED_TS" "$REPORTS_DIR" "$POSTMAN_PASSED" "$POSTMAN_FAILED" 0 >/dev/null 2>&1 || true
|
|
413
|
+
fi
|
|
408
414
|
fi
|
|
409
415
|
if [ ! -f "$POSTMAN_CONSOLIDATED_HTML" ]; then
|
|
410
416
|
POSTMAN_CONSOLIDATED_HTML=$(ls -t "$REPORTS_DIR"/consolidated-*.html 2>/dev/null | head -1 || true)
|
|
@@ -276,10 +276,16 @@ if [ "$SKIP_REPORT" = false ]; then
|
|
|
276
276
|
# combined report never links to a stale consolidated whose per-collection
|
|
277
277
|
# detail files have been cleaned up. Fall back to the newest only if this run
|
|
278
278
|
# produced no consolidated JSON to render.
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
279
|
+
# The Postman runner self-timestamps, so the consolidated JSON's timestamp
|
|
280
|
+
# differs from this orchestrator's $TIMESTAMP. Derive the HTML name from the
|
|
281
|
+
# actual consolidated JSON rather than $TIMESTAMP.
|
|
282
|
+
POSTMAN_CONSOLIDATED_HTML=""
|
|
283
|
+
if [ -n "$CONSOLIDATED_JSON" ] && [ -f "$CONSOLIDATED_JSON" ]; then
|
|
284
|
+
CONSOLIDATED_TS=$(basename "$CONSOLIDATED_JSON" .json | sed "s/^consolidated-${POSTMAN_ENV}-//")
|
|
285
|
+
POSTMAN_CONSOLIDATED_HTML="$REPORTS_DIR/consolidated-${POSTMAN_ENV}-${CONSOLIDATED_TS}.html"
|
|
286
|
+
if [ ! -f "$POSTMAN_CONSOLIDATED_HTML" ]; then
|
|
287
|
+
"$SCRIPT_DIR/report-generators/generate-consolidated-report.sh" "$POSTMAN_ENV" "$CONSOLIDATED_TS" "$REPORTS_DIR" "$POSTMAN_PASSED" "$POSTMAN_FAILED" 0 >/dev/null 2>&1 || true
|
|
288
|
+
fi
|
|
283
289
|
fi
|
|
284
290
|
if [ ! -f "$POSTMAN_CONSOLIDATED_HTML" ]; then
|
|
285
291
|
POSTMAN_CONSOLIDATED_HTML=$(ls -t "$REPORTS_DIR"/consolidated-*.html 2>/dev/null | head -1 || true)
|