@h3ravel/http 0.1.1 → 0.2.0
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 +13 -0
- package/package.json +4 -4
- package/src/Resources/JsonResource.ts +1 -1
- package/tsconfig.json +1 -1
- package/vite.config.ts +0 -9
package/CHANGELOG.md
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/http",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "HTTP kernel, middleware pipeline, request/response classes for H3ravel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"srvx": "^0.8.2",
|
|
13
12
|
"h3": "^2.0.0-beta.1",
|
|
14
|
-
"
|
|
15
|
-
"@h3ravel/
|
|
13
|
+
"srvx": "^0.8.2",
|
|
14
|
+
"@h3ravel/core": "0.2.0",
|
|
15
|
+
"@h3ravel/support": "0.2.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"typescript": "^5.4.0"
|
|
@@ -59,7 +59,7 @@ export class JsonResource<R extends Resource = any> {
|
|
|
59
59
|
* @param res The response instance
|
|
60
60
|
* @param rsc The data to send to the client
|
|
61
61
|
*/
|
|
62
|
-
constructor(
|
|
62
|
+
constructor(protected event: H3Event, rsc: R) {
|
|
63
63
|
this.request = event.req;
|
|
64
64
|
this.response = event.res;
|
|
65
65
|
this.resource = rsc;
|
package/tsconfig.json
CHANGED