baraqex 1.0.57 → 1.0.58
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/package.json
CHANGED
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baraqex",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.58",
|
|
4
4
|
"description": "A powerful server-side framework built on Frontend Hamroun",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
|
+
"browser": "./dist/browser.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
7
9
|
"types": "./dist/index.d.ts",
|
|
8
10
|
"exports": {
|
|
9
11
|
".": {
|
|
12
|
+
"browser": "./dist/browser.js",
|
|
13
|
+
"node": "./dist/index.js",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.js",
|
|
10
16
|
"types": "./dist/index.d.ts",
|
|
11
|
-
"
|
|
17
|
+
"default": "./dist/browser.js"
|
|
12
18
|
},
|
|
13
19
|
"./browser": {
|
|
20
|
+
"import": "./dist/browser.js",
|
|
21
|
+
"require": "./dist/browser.js",
|
|
14
22
|
"types": "./dist/browser.d.ts",
|
|
15
|
-
"
|
|
23
|
+
"default": "./dist/browser.js"
|
|
16
24
|
},
|
|
17
25
|
"./server": {
|
|
18
|
-
"
|
|
19
|
-
"import": "./dist/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"types": "./dist/wasm.d.ts",
|
|
23
|
-
"import": "./dist/wasm.js"
|
|
26
|
+
"node": "./dist/index.js",
|
|
27
|
+
"import": "./dist/index.js",
|
|
28
|
+
"require": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts"
|
|
24
30
|
}
|
|
25
31
|
},
|
|
26
32
|
"files": [
|
|
@@ -1,28 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
3
|
-
"
|
|
4
|
-
"
|
|
2
|
+
"name": "baraqex-basic-app",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Basic Baraqex application with Tailwind CSS",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "src/main.tsx",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"dev": "vite",
|
|
8
|
-
"build": "
|
|
9
|
+
"build": "vite build",
|
|
9
10
|
"preview": "vite preview",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"baraqex": "^1.0.52"
|
|
11
|
+
"css:build": "tailwindcss -i src/main.css -o dist/main.css --minify",
|
|
12
|
+
"css:watch": "tailwindcss -i src/main.css -o dist/main.css --watch",
|
|
13
|
+
"serve": "vite preview"
|
|
15
14
|
},
|
|
15
|
+
"keywords": ["baraqex", "frontend-hamroun", "tailwind", "typescript"],
|
|
16
|
+
"author": "Baraqex Team",
|
|
17
|
+
"license": "MIT",
|
|
16
18
|
"devDependencies": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"autoprefixer": "^10.4.
|
|
20
|
-
"
|
|
21
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
22
|
-
"eslint-plugin-react-refresh": "^0.4.3",
|
|
23
|
-
"postcss": "^8.4.27",
|
|
24
|
-
"tailwindcss": "^3.3.3",
|
|
19
|
+
"vite": "^5.0.0",
|
|
20
|
+
"tailwindcss": "^3.3.0",
|
|
21
|
+
"autoprefixer": "^10.4.0",
|
|
22
|
+
"postcss": "^8.4.0",
|
|
25
23
|
"typescript": "^5.0.0",
|
|
26
|
-
"
|
|
24
|
+
"@types/node": "^20.0.0"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"baraqex": "latest",
|
|
28
|
+
"crypto-browserify": "^3.12.0",
|
|
29
|
+
"path-browserify": "^1.0.1",
|
|
30
|
+
"buffer": "^6.0.3",
|
|
31
|
+
"stream-browserify": "^3.0.0",
|
|
32
|
+
"util": "^0.12.5",
|
|
33
|
+
"events": "^3.3.0",
|
|
34
|
+
"querystring-es3": "^0.2.1"
|
|
27
35
|
}
|
|
28
36
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// Import from the browser-specific entry point to avoid server dependencies
|
|
2
|
+
import { jsx, render, useState, useEffect, useMemo, useRef, useErrorBoundary, createContext, useContext } from 'baraqex/browser';
|
|
2
3
|
import './main.css';
|
|
3
4
|
|
|
4
5
|
// JSX type declarations
|
|
@@ -43,9 +43,7 @@ export default defineConfig({
|
|
|
43
43
|
],
|
|
44
44
|
// Force include browser-safe modules
|
|
45
45
|
include: [
|
|
46
|
-
'frontend-hamroun'
|
|
47
|
-
'crypto-browserify',
|
|
48
|
-
'path-browserify'
|
|
46
|
+
'frontend-hamroun'
|
|
49
47
|
]
|
|
50
48
|
},
|
|
51
49
|
build: {
|
|
@@ -85,6 +83,12 @@ export default defineConfig({
|
|
|
85
83
|
// Provide browser-safe alternatives for Node.js modules
|
|
86
84
|
'crypto': 'crypto-browserify',
|
|
87
85
|
'path': 'path-browserify',
|
|
86
|
+
'buffer': 'buffer',
|
|
87
|
+
'stream': 'stream-browserify',
|
|
88
|
+
'util': 'util',
|
|
89
|
+
'events': 'events',
|
|
90
|
+
'querystring': 'querystring-es3',
|
|
91
|
+
// Block server modules completely
|
|
88
92
|
'fs': false,
|
|
89
93
|
'http': false,
|
|
90
94
|
'https': false,
|
|
@@ -92,11 +96,6 @@ export default defineConfig({
|
|
|
92
96
|
'fs/promises': false,
|
|
93
97
|
'child_process': false,
|
|
94
98
|
'os': false,
|
|
95
|
-
'stream': false,
|
|
96
|
-
'util': false,
|
|
97
|
-
'events': false,
|
|
98
|
-
'buffer': false,
|
|
99
|
-
'querystring': false,
|
|
100
99
|
'net': false,
|
|
101
100
|
'tls': false,
|
|
102
101
|
'zlib': false,
|