@coherent.js/fastify 1.0.0-beta.2 → 1.0.0-beta.3

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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coherent.js/fastify",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "Fastify adapter for Coherent.js",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "fastify": ">=4.0.0 < 6.0.0",
31
- "@coherent.js/core": "1.0.0-beta.2"
31
+ "@coherent.js/core": "1.0.0-beta.3"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"