@reshotdev/screenshot 0.0.1-beta.21 → 0.0.1-beta.22
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
package/src/commands/publish.js
CHANGED
|
@@ -1569,6 +1569,12 @@ async function publishCommand(options = {}) {
|
|
|
1569
1569
|
// Validate storage configuration
|
|
1570
1570
|
const validation = validateStorageConfig(storageConfig);
|
|
1571
1571
|
|
|
1572
|
+
// Print informational notices (e.g. "using platform mode") as gray info, not
|
|
1573
|
+
// alarming ⚠ warnings (audit run-15 F4).
|
|
1574
|
+
for (const note of validation.info || []) {
|
|
1575
|
+
console.log(chalk.gray(` ℹ ${note}`));
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1572
1578
|
// Print warnings
|
|
1573
1579
|
for (const warning of validation.warnings) {
|
|
1574
1580
|
console.log(chalk.yellow(` ⚠ ${warning}`));
|
|
@@ -32,7 +32,14 @@ function validateStorageConfig(config) {
|
|
|
32
32
|
const warnings = [];
|
|
33
33
|
|
|
34
34
|
if (!config || !config.type) {
|
|
35
|
-
|
|
35
|
+
// Platform mode is the default/happy path (Reshot-hosted R2), not a
|
|
36
|
+
// misconfiguration — surface it as info, not a ⚠ warning (audit run-15 F4).
|
|
37
|
+
return {
|
|
38
|
+
valid: true,
|
|
39
|
+
errors: [],
|
|
40
|
+
warnings: [],
|
|
41
|
+
info: ["Using Reshot-hosted storage (platform mode)."],
|
|
42
|
+
};
|
|
36
43
|
}
|
|
37
44
|
|
|
38
45
|
switch (config.type) {
|