@coherent.js/koa 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.
- package/dist/koa/coherent-koa.js +8 -8
- package/dist/koa/index.js +1 -1
- package/package.json +2 -2
package/dist/koa/coherent-koa.js
CHANGED
|
@@ -36,9 +36,9 @@ export function coherentKoaMiddleware(options = {}) {
|
|
|
36
36
|
ctx.type = 'text/html';
|
|
37
37
|
ctx.body = finalHtml;
|
|
38
38
|
}
|
|
39
|
-
catch (
|
|
40
|
-
console.
|
|
41
|
-
throw
|
|
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 (
|
|
93
|
-
console.
|
|
94
|
-
throw
|
|
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 (
|
|
131
|
-
throw
|
|
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 '@
|
|
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.
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"description": "Koa 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
|
"koa": ">=2.13.0 < 4.0.0",
|
|
31
|
-
"@coherent.js/core": "1.0.0-beta.
|
|
31
|
+
"@coherent.js/core": "1.0.0-beta.3"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|