@coherent.js/fastify 1.0.0-beta.5 → 1.0.0-beta.7

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.
@@ -43,11 +43,11 @@ export function coherentFastify(fastify, options, done) {
43
43
  this.header('Content-Type', 'text/html; charset=utf-8');
44
44
  this.send(finalHtml);
45
45
  }
46
- catch (_error) {
47
- console._error('Coherent.js rendering _error:', _error);
46
+ catch (error) {
47
+ console.error('Coherent.js rendering error:', error);
48
48
  this.status(500).send({
49
- _error: 'Internal Server Error',
50
- message: _error.message
49
+ error: 'Internal Server Error',
50
+ message: error.message
51
51
  });
52
52
  }
53
53
  });
@@ -71,9 +71,9 @@ export function coherentFastify(fastify, options, done) {
71
71
  reply.header('Content-Type', 'text/html; charset=utf-8');
72
72
  return finalHtml;
73
73
  }
74
- catch (_error) {
75
- console._error('Coherent.js rendering _error:', _error);
76
- throw _error;
74
+ catch (error) {
75
+ console.error('Coherent.js rendering error:', error);
76
+ throw error;
77
77
  }
78
78
  }
79
79
  // For non-Coherent.js data, return as-is
@@ -113,9 +113,9 @@ export function createCoherentFastifyHandler(componentFactory, options = {}) {
113
113
  reply.header('Content-Type', 'text/html; charset=utf-8');
114
114
  return finalHtml;
115
115
  }
116
- catch (_error) {
117
- console._error('Coherent.js handler _error:', _error);
118
- throw _error;
116
+ catch (error) {
117
+ console.error('Coherent.js handler error:', error);
118
+ throw error;
119
119
  }
120
120
  };
121
121
  }