@coherent.js/koa 1.0.0-beta.2 → 1.0.0-beta.5

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.
@@ -36,9 +36,9 @@ export function coherentKoaMiddleware(options = {}) {
36
36
  ctx.type = 'text/html';
37
37
  ctx.body = finalHtml;
38
38
  }
39
- catch (error) {
40
- console.error('Coherent.js rendering error:', error);
41
- throw error;
39
+ catch (_error) {
40
+ console._error('Coherent.js rendering _error:', _error);
41
+ throw _error;
42
42
  }
43
43
  }
44
44
  };
@@ -89,9 +89,9 @@ export function createCoherentKoaHandler(componentFactory, options = {}) {
89
89
  ctx.type = 'text/html';
90
90
  ctx.body = finalHtml;
91
91
  }
92
- catch (error) {
93
- console.error('Coherent.js handler error:', error);
94
- throw error;
92
+ catch (_error) {
93
+ console._error('Coherent.js handler _error:', _error);
94
+ throw _error;
95
95
  }
96
96
  };
97
97
  }
@@ -127,8 +127,8 @@ export async function createKoaIntegration(options = {}) {
127
127
  return app;
128
128
  };
129
129
  }
130
- catch (error) {
131
- throw error;
130
+ catch (_error) {
131
+ throw _error;
132
132
  }
133
133
  }
134
134
  // Export all utilities
package/dist/koa/index.js CHANGED
@@ -8,7 +8,7 @@
8
8
  * npm install koa
9
9
  *
10
10
  * Usage:
11
- * import { createKoaIntegration } from '@coherent.js/core/koa';
11
+ * import { createKoaIntegration } from '@coherentjs/core/koa';
12
12
  */
13
13
  export { coherentKoaMiddleware, createCoherentKoaHandler, setupCoherentKoa, createKoaIntegration } from './coherent-koa.js';
14
14
  export { default } from './coherent-koa.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coherent.js/koa",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "Koa adapter for Coherent.js",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -28,11 +28,12 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "koa": ">=2.13.0 < 4.0.0",
31
- "@coherent.js/core": "1.0.0-beta.2"
31
+ "@coherent.js/core": "1.0.0-beta.5"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
+ "sideEffects": false,
36
37
  "scripts": {
37
38
  "build": "node build.mjs",
38
39
  "clean": "rm -rf dist/",