ardent-cli 0.0.46 → 0.0.47
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 +15 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2640,6 +2640,13 @@ function allChecksPass(checks) {
|
|
|
2640
2640
|
}
|
|
2641
2641
|
return true;
|
|
2642
2642
|
}
|
|
2643
|
+
function extractWarnings(checks) {
|
|
2644
|
+
const raw = checks["warnings"];
|
|
2645
|
+
if (!Array.isArray(raw)) return [];
|
|
2646
|
+
return raw.filter(
|
|
2647
|
+
(warning) => typeof warning === "string" && warning.length > 0
|
|
2648
|
+
);
|
|
2649
|
+
}
|
|
2643
2650
|
async function preflightAction(type, url, options) {
|
|
2644
2651
|
if (type !== "postgresql") {
|
|
2645
2652
|
console.error(
|
|
@@ -2719,6 +2726,14 @@ async function preflightAction(type, url, options) {
|
|
|
2719
2726
|
for (const line of renderChecks(response.checks)) {
|
|
2720
2727
|
console.log(line);
|
|
2721
2728
|
}
|
|
2729
|
+
const advisories = extractWarnings(response.checks);
|
|
2730
|
+
if (advisories.length > 0) {
|
|
2731
|
+
console.log("");
|
|
2732
|
+
console.log("Advisories (non-blocking):");
|
|
2733
|
+
for (const advisory of advisories) {
|
|
2734
|
+
console.log(` \u26A0 ${advisory}`);
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2722
2737
|
if (response.source_provider) {
|
|
2723
2738
|
console.log("");
|
|
2724
2739
|
console.log(`Detected source provider: ${response.source_provider}`);
|