vatts 1.1.4-alpha.3 → 1.1.4-alpha.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.
@@ -4,7 +4,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const Image = ({ src, width, height, quality = 75, priority = false, className, style, alt = "", ...props }) => {
5
5
  console.log("Imagem: ", src);
6
6
  // Se a imagem for Base64 (pequena) ou externa (http), não otimizamos via backend local
7
- const isOptimizable = src && !src.startsWith('data:') && !src.startsWith('http');
7
+ const isOptimizable = src && src.startsWith && !src.startsWith('data:') && !src.startsWith('http');
8
8
  let optimizedSrc = src;
9
9
  if (isOptimizable) {
10
10
  const params = new URLSearchParams();
package/dist/renderer.js CHANGED
@@ -234,6 +234,8 @@ async function renderAsStream({ req, res, route, params, allRoutes }) {
234
234
  const { generateMetadata } = route;
235
235
  const isProduction = !req.hwebDev;
236
236
  const hotReloadManager = req.hotReloadManager;
237
+ // SILENCIAR CONSOLE: Inicia o silêncio para evitar logs de renderização
238
+ silenceConsole();
237
239
  try {
238
240
  // 1. Verificar Build - Se não tiver scripts, retorna tela de Loading
239
241
  const assets = getBuildAssets(req);
@@ -262,6 +264,7 @@ async function renderAsStream({ req, res, route, params, allRoutes }) {
262
264
  // Usamos console.error original aqui, pois erro de layout é crítico
263
265
  restoreConsole();
264
266
  console.error("Error loading layout component for SSR:", e);
267
+ silenceConsole(); // Volta a silenciar
265
268
  }
266
269
  }
267
270
  // 3. Preparar Metadata
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vatts",
3
- "version": "1.1.4-alpha.3",
3
+ "version": "1.1.4-alpha.4",
4
4
  "description": "Vatts.js is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "itsmuzin",