hoa 0.3.1 → 0.3.2

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.3.2 / 2025-11-09
2
+
3
+ - fix: export statusTextMapping + statusRedirectMapping + statusEmptyMapping
4
+
1
5
  ## v0.3.1 / 2025-11-08
2
6
 
3
7
  - fix: app.onerror print original error
package/dist/cjs/hoa.js CHANGED
@@ -33,11 +33,15 @@ __export(hoa_exports, {
33
33
  HoaResponse: () => import_response.default,
34
34
  HttpError: () => import_http_error.default,
35
35
  compose: () => import_compose.default,
36
- default: () => Hoa
36
+ default: () => Hoa,
37
+ statusEmptyMapping: () => import_utils.statusEmptyMapping,
38
+ statusRedirectMapping: () => import_utils.statusRedirectMapping,
39
+ statusTextMapping: () => import_utils.statusTextMapping
37
40
  });
38
41
  module.exports = __toCommonJS(hoa_exports);
39
42
  var import_compose = __toESM(require("./lib/compose.js"), 1);
40
43
  var import_http_error = __toESM(require("./lib/http-error.js"), 1);
44
+ var import_utils = require("./lib/utils.js");
41
45
  var import_context = __toESM(require("./context.js"), 1);
42
46
  var import_request = __toESM(require("./request.js"), 1);
43
47
  var import_response = __toESM(require("./response.js"), 1);
@@ -181,5 +185,8 @@ class Hoa {
181
185
  HoaRequest,
182
186
  HoaResponse,
183
187
  HttpError,
184
- compose
188
+ compose,
189
+ statusEmptyMapping,
190
+ statusRedirectMapping,
191
+ statusTextMapping
185
192
  });
package/dist/esm/hoa.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import compose from "./lib/compose.js";
2
2
  import HttpError from "./lib/http-error.js";
3
+ import { statusTextMapping, statusRedirectMapping, statusEmptyMapping } from "./lib/utils.js";
3
4
  import HoaContext from "./context.js";
4
5
  import HoaRequest from "./request.js";
5
6
  import HoaResponse from "./response.js";
@@ -143,5 +144,8 @@ export {
143
144
  HoaResponse,
144
145
  HttpError,
145
146
  compose,
146
- Hoa as default
147
+ Hoa as default,
148
+ statusEmptyMapping,
149
+ statusRedirectMapping,
150
+ statusTextMapping
147
151
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hoa",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "A minimal web framework built on Web Standards",
5
5
  "main": "./dist/cjs/hoa.js",
6
6
  "type": "module",