hoa 0.1.0 → 0.1.1
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/CHANGELOG.md +7 -2
- package/README.md +12 -1
- package/dist/cjs/application.js +3 -0
- package/dist/esm/application.js +3 -0
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://hoa-js.com">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/hoa-js/hoa/master/logo.png" width="400" height="400" alt="Hoa"/>
|
|
4
|
+
</a>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
[](https://npmjs.org/package/hoa)
|
|
8
|
+
[](https://github.com/hoa-js/hoa/actions)
|
|
9
|
+
[](https://app.codecov.io/gh/hoa-js/hoa/tree/master)
|
|
10
|
+
[](https://bundlephobia.com/result?p=hoa)
|
|
11
|
+
[](https://github.com/hoa-js/hoa/blob/master/package.json)
|
|
12
|
+
[](https://github.com/hoa-js/hoa/blob/master/LICENSE)
|
|
2
13
|
|
|
3
14
|
Hoa is a minimal Web framework inspired by [Koa](https://github.com/koajs/koa) and [Hono](https://github.com/honojs/hono), built entirely on Web Standards. It runs seamlessly on any modern JavaScript runtime: Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, AWS Lambda, Lambda@Edge, and Node.js.
|
|
4
15
|
|
package/dist/cjs/application.js
CHANGED
|
@@ -152,6 +152,9 @@ class Application {
|
|
|
152
152
|
if (err.status === 404 || err.expose) return;
|
|
153
153
|
if (this.silent) return;
|
|
154
154
|
const msg = err.stack || err.toString();
|
|
155
|
+
console.error(`
|
|
156
|
+
${msg.replace(/^/gm, " ")}
|
|
157
|
+
`);
|
|
155
158
|
}
|
|
156
159
|
/**
|
|
157
160
|
* ESM/CJS interop helper for default exports.
|
package/dist/esm/application.js
CHANGED
|
@@ -114,6 +114,9 @@ class Application {
|
|
|
114
114
|
if (err.status === 404 || err.expose) return;
|
|
115
115
|
if (this.silent) return;
|
|
116
116
|
const msg = err.stack || err.toString();
|
|
117
|
+
console.error(`
|
|
118
|
+
${msg.replace(/^/gm, " ")}
|
|
119
|
+
`);
|
|
117
120
|
}
|
|
118
121
|
/**
|
|
119
122
|
* ESM/CJS interop helper for default exports.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hoa",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A minimal web framework built on Web Standards",
|
|
5
5
|
"main": "./dist/cjs/application.js",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"CHANGELOG.md"
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
|
-
"lint": "eslint",
|
|
23
|
+
"lint": "eslint .",
|
|
24
24
|
"docs:dev": "vitepress dev",
|
|
25
25
|
"docs:build": "vitepress build",
|
|
26
26
|
"docs:preview": "vitepress preview",
|
|
@@ -51,10 +51,12 @@
|
|
|
51
51
|
"lambda"
|
|
52
52
|
],
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"
|
|
54
|
+
"@commitlint/cli": "20.1.0",
|
|
55
|
+
"@commitlint/config-conventional": "20.0.0",
|
|
56
|
+
"eslint": "9.37.0",
|
|
55
57
|
"globals": "16.4.0",
|
|
56
58
|
"husky": "9.1.7",
|
|
57
|
-
"jest": "30.
|
|
59
|
+
"jest": "30.2.0",
|
|
58
60
|
"neostandard": "0.12.2",
|
|
59
61
|
"tsup": "8.5.0",
|
|
60
62
|
"vitepress": "1.6.4"
|