frontend-hamroun 1.2.24 → 1.2.26

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/README.md CHANGED
@@ -17,6 +17,9 @@ A lightweight JavaScript framework with Virtual DOM and hooks implementation ins
17
17
 
18
18
 
19
19
 
20
+
21
+
22
+
20
23
  ```bash
21
24
  npm install frontend-hamroun
22
25
  ```
package/dist/index.d.ts CHANGED
@@ -8,5 +8,10 @@ export type { Context } from './context';
8
8
  export type { VNode } from './types';
9
9
  export type { Server, ServerConfig, User, DbConfig, MiddlewareFunction } from './server-types';
10
10
  export declare const server: {
11
- getServer(): Promise<any>;
11
+ getServer(): Promise<typeof import("./server/index.js")>;
12
12
  };
13
+ export { Database } from './server/database.js';
14
+ export { AuthService } from './server/auth.js';
15
+ export { ApiRouter } from './server/api-router.js';
16
+ export { requestLogger, errorHandler, notFoundHandler, rateLimit } from './server/middleware.js';
17
+ export { Server as serverModule } from './server/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frontend-hamroun",
3
- "version": "1.2.24",
3
+ "version": "1.2.26",
4
4
  "description": "A lightweight full-stack JavaScript framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -0,0 +1,11 @@
1
+ export const get = (req, res) => {
2
+ res.json({
3
+ message: 'Hello from the API!',
4
+ time: new Date().toISOString(),
5
+ features: [
6
+ 'Server-side rendering',
7
+ 'API integration',
8
+ 'No build step required'
9
+ ]
10
+ });
11
+ };
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Frontend Hamroun App</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.tsx"></script>
12
+ </body>
13
+ </html>