@h3ravel/http 0.1.0 → 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 ADDED
@@ -0,0 +1,13 @@
1
+ # @h3ravel/http
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - aea734f: Fix all known bugs and improved interdependecy between packages.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [aea734f]
12
+ - @h3ravel/core@0.2.0
13
+ - @h3ravel/support@0.2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/http",
3
- "version": "0.1.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
- "@h3ravel/core": "0.1.0",
15
- "@h3ravel/support": "0.1.0"
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(private event: H3Event, rsc: R) {
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../tsconfig.json",
2
+ "extends": "../tsconfig/tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "dist"
5
5
  },
package/vite.config.ts DELETED
@@ -1,9 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- export default defineConfig({
4
- entry: ['src/index.ts'],
5
- format: ['esm', 'cjs'],
6
- dts: true,
7
- sourcemap: true,
8
- clean: true
9
- })