barejs 0.1.13 → 0.1.15

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.
@@ -1,6 +1,6 @@
1
1
  export { BareJS } from './bare';
2
2
  export type { BarePlugin } from './bare';
3
- export type { Middleware, Handler, Next, WSHandlers } from './context';
3
+ export type { Middleware, Handler, Next, WSHandlers, Context } from './context';
4
4
  export { typebox, native, zod } from './validators';
5
5
  export { logger } from './logger';
6
6
  export { cors } from './cors';
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "barejs",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "author": "xarhang",
5
5
  "description": "High-performance JIT-specialized web framework for Bun",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
8
+ "types": "./dist/types/index.d.ts",
9
9
  "type": "module",
10
10
  "exports": {
11
11
  ".": {
12
12
  "import": "./dist/index.js",
13
- "types": "./dist/index.d.ts"
13
+ "types": "./dist/types/index.d.ts"
14
14
  }
15
15
  },
16
16
  "sideEffects": false,
package/src/context.ts CHANGED
@@ -8,7 +8,7 @@ export type Middleware = (
8
8
  params: Record<string, string>,
9
9
  next: Next
10
10
  ) => any;
11
- // All comments in English
11
+
12
12
  export type Next = () => any;
13
13
 
14
14
  /**
package/src/index.ts CHANGED
@@ -9,7 +9,8 @@ export type {
9
9
  Middleware,
10
10
  Handler,
11
11
  Next,
12
- WSHandlers
12
+ WSHandlers ,
13
+ Context
13
14
  } from './context';
14
15
 
15
16
  // Validation Middlewares