@arkstack/http 0.10.0 → 0.10.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.
Files changed (2) hide show
  1. package/dist/app.d.ts +41 -2
  2. package/package.json +2 -2
package/dist/app.d.ts CHANGED
@@ -1,7 +1,46 @@
1
- import { ErrorBag } from '.'
1
+ import type { ErrorBag } from '.'
2
+ import type { Session } from '@arkstack/auth'
2
3
 
3
4
  declare module 'clear-router' {
4
5
  interface ClearHttpContext {
5
6
  errors: ErrorBag
6
7
  }
7
- }
8
+ }
9
+
10
+
11
+ declare module 'node:http' {
12
+ interface IncomingMessage {
13
+ rawBody?: Buffer
14
+ session?: Session | undefined;
15
+ }
16
+ }
17
+
18
+ declare module 'clear-router/types/h3' {
19
+ interface HttpRequest {
20
+ rawBody?: Buffer
21
+ session?: Session | undefined;
22
+ }
23
+ }
24
+
25
+ declare module 'clear-router' {
26
+ interface HttpRequests {
27
+ rawBody?: Buffer
28
+ session?: Session | undefined;
29
+ }
30
+ }
31
+
32
+ declare module 'h3' {
33
+ interface H3EventContext {
34
+ rawBody?: Buffer
35
+ session?: Session | undefined;
36
+ }
37
+ }
38
+
39
+ declare global {
40
+ namespace Express {
41
+ interface Request {
42
+ rawBody?: Buffer
43
+ session?: Session | undefined;
44
+ }
45
+ }
46
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/http",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "type": "module",
5
5
  "description": "HTTP module for Arkstack, providing framework-agnostic request and response primitives.",
6
6
  "homepage": "https://arkstack.toneflix.net/guide/http",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "clear-router": "^2.7.7",
32
- "@arkstack/contract": "^0.10.0"
32
+ "@arkstack/contract": "^0.10.1"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "arkormx": "^2.4.1",