baraqex 1.0.65 → 1.0.67

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,6 +1,6 @@
1
1
  {
2
2
  "name": "baraqex",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "description": "A powerful full-stack framework for modern web development",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -8,7 +8,7 @@
8
8
  "name": "finall",
9
9
  "version": "0.0.0",
10
10
  "dependencies": {
11
- "baraqex": "^1.0.60",
11
+ "baraqex": "^1.0.65",
12
12
  "frontend-hamroun": "^1.2.35",
13
13
  "fs": "^0.0.1-security",
14
14
  "path": "^0.12.7"
@@ -1345,19 +1345,31 @@
1345
1345
  "license": "MIT"
1346
1346
  },
1347
1347
  "node_modules/baraqex": {
1348
- "version": "1.0.60",
1349
- "resolved": "https://registry.npmjs.org/baraqex/-/baraqex-1.0.60.tgz",
1350
- "integrity": "sha512-gg89cMcaQK/Fj/GvXxU1RXHuuNEQ/wLZJfh6d5YExa0WQS7HzK6z/x/JJymU0anOO/DgLsszo+8lrgJFkkWU7Q==",
1348
+ "version": "1.0.66",
1349
+ "resolved": "https://registry.npmjs.org/baraqex/-/baraqex-1.0.66.tgz",
1350
+ "integrity": "sha512-hB/u6UjVqJMsYstKeLuRHxSPZQ42LiTnIgvu+2f5HqLFlv36BzwUG1Gk1oYmsCuGcxmHdqRkofSR+n06Z0BugA==",
1351
1351
  "license": "MIT",
1352
1352
  "dependencies": {
1353
- "frontend-hamroun": "^1.2.35"
1353
+ "chokidar": "^4.0.3",
1354
+ "frontend-hamroun": "^1.2.35",
1355
+ "open": "^10.1.2",
1356
+ "ws": "^8.18.2"
1354
1357
  },
1355
1358
  "bin": {
1356
1359
  "baraqex": "bin/baraqex.js"
1357
1360
  },
1361
+ "optionalDependencies": {
1362
+ "bcryptjs": "^2.4.3",
1363
+ "cors": "^2.8.5",
1364
+ "express": "^4.18.0",
1365
+ "jsonwebtoken": "^9.0.0",
1366
+ "mongodb": "^6.0.0",
1367
+ "mysql2": "^3.6.0",
1368
+ "pg": "^8.11.0"
1369
+ },
1358
1370
  "peerDependencies": {
1359
- "cors": ">=2.8.0",
1360
- "express": ">=4.18.0"
1371
+ "cors": "^2.8.5",
1372
+ "express": "^4.18.0"
1361
1373
  },
1362
1374
  "peerDependenciesMeta": {
1363
1375
  "bcryptjs": {
@@ -1383,6 +1395,139 @@
1383
1395
  }
1384
1396
  }
1385
1397
  },
1398
+ "node_modules/baraqex/node_modules/@types/whatwg-url": {
1399
+ "version": "11.0.5",
1400
+ "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz",
1401
+ "integrity": "sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==",
1402
+ "license": "MIT",
1403
+ "optional": true,
1404
+ "dependencies": {
1405
+ "@types/webidl-conversions": "*"
1406
+ }
1407
+ },
1408
+ "node_modules/baraqex/node_modules/bson": {
1409
+ "version": "6.10.4",
1410
+ "resolved": "https://registry.npmjs.org/bson/-/bson-6.10.4.tgz",
1411
+ "integrity": "sha512-WIsKqkSC0ABoBJuT1LEX+2HEvNmNKKgnTAyd0fL8qzK4SH2i9NXg+t08YtdZp/V9IZ33cxe3iV4yM0qg8lMQng==",
1412
+ "license": "Apache-2.0",
1413
+ "optional": true,
1414
+ "engines": {
1415
+ "node": ">=16.20.1"
1416
+ }
1417
+ },
1418
+ "node_modules/baraqex/node_modules/chokidar": {
1419
+ "version": "4.0.3",
1420
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",
1421
+ "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
1422
+ "license": "MIT",
1423
+ "dependencies": {
1424
+ "readdirp": "^4.0.1"
1425
+ },
1426
+ "engines": {
1427
+ "node": ">= 14.16.0"
1428
+ },
1429
+ "funding": {
1430
+ "url": "https://paulmillr.com/funding/"
1431
+ }
1432
+ },
1433
+ "node_modules/baraqex/node_modules/mongodb": {
1434
+ "version": "6.17.0",
1435
+ "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.17.0.tgz",
1436
+ "integrity": "sha512-neerUzg/8U26cgruLysKEjJvoNSXhyID3RvzvdcpsIi2COYM3FS3o9nlH7fxFtefTb942dX3W9i37oPfCVj4wA==",
1437
+ "license": "Apache-2.0",
1438
+ "optional": true,
1439
+ "dependencies": {
1440
+ "@mongodb-js/saslprep": "^1.1.9",
1441
+ "bson": "^6.10.4",
1442
+ "mongodb-connection-string-url": "^3.0.0"
1443
+ },
1444
+ "engines": {
1445
+ "node": ">=16.20.1"
1446
+ },
1447
+ "peerDependencies": {
1448
+ "@aws-sdk/credential-providers": "^3.188.0",
1449
+ "@mongodb-js/zstd": "^1.1.0 || ^2.0.0",
1450
+ "gcp-metadata": "^5.2.0",
1451
+ "kerberos": "^2.0.1",
1452
+ "mongodb-client-encryption": ">=6.0.0 <7",
1453
+ "snappy": "^7.2.2",
1454
+ "socks": "^2.7.1"
1455
+ },
1456
+ "peerDependenciesMeta": {
1457
+ "@aws-sdk/credential-providers": {
1458
+ "optional": true
1459
+ },
1460
+ "@mongodb-js/zstd": {
1461
+ "optional": true
1462
+ },
1463
+ "gcp-metadata": {
1464
+ "optional": true
1465
+ },
1466
+ "kerberos": {
1467
+ "optional": true
1468
+ },
1469
+ "mongodb-client-encryption": {
1470
+ "optional": true
1471
+ },
1472
+ "snappy": {
1473
+ "optional": true
1474
+ },
1475
+ "socks": {
1476
+ "optional": true
1477
+ }
1478
+ }
1479
+ },
1480
+ "node_modules/baraqex/node_modules/mongodb-connection-string-url": {
1481
+ "version": "3.0.2",
1482
+ "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.2.tgz",
1483
+ "integrity": "sha512-rMO7CGo/9BFwyZABcKAWL8UJwH/Kc2x0g72uhDWzG48URRax5TCIcJ7Rc3RZqffZzO/Gwff/jyKwCU9TN8gehA==",
1484
+ "license": "Apache-2.0",
1485
+ "optional": true,
1486
+ "dependencies": {
1487
+ "@types/whatwg-url": "^11.0.2",
1488
+ "whatwg-url": "^14.1.0 || ^13.0.0"
1489
+ }
1490
+ },
1491
+ "node_modules/baraqex/node_modules/readdirp": {
1492
+ "version": "4.1.2",
1493
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
1494
+ "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",
1495
+ "license": "MIT",
1496
+ "engines": {
1497
+ "node": ">= 14.18.0"
1498
+ },
1499
+ "funding": {
1500
+ "type": "individual",
1501
+ "url": "https://paulmillr.com/funding/"
1502
+ }
1503
+ },
1504
+ "node_modules/baraqex/node_modules/tr46": {
1505
+ "version": "5.1.1",
1506
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.1.1.tgz",
1507
+ "integrity": "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==",
1508
+ "license": "MIT",
1509
+ "optional": true,
1510
+ "dependencies": {
1511
+ "punycode": "^2.3.1"
1512
+ },
1513
+ "engines": {
1514
+ "node": ">=18"
1515
+ }
1516
+ },
1517
+ "node_modules/baraqex/node_modules/whatwg-url": {
1518
+ "version": "14.2.0",
1519
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz",
1520
+ "integrity": "sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==",
1521
+ "license": "MIT",
1522
+ "optional": true,
1523
+ "dependencies": {
1524
+ "tr46": "^5.1.0",
1525
+ "webidl-conversions": "^7.0.0"
1526
+ },
1527
+ "engines": {
1528
+ "node": ">=18"
1529
+ }
1530
+ },
1386
1531
  "node_modules/base64-js": {
1387
1532
  "version": "1.5.1",
1388
1533
  "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
@@ -1625,6 +1770,21 @@
1625
1770
  "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
1626
1771
  "license": "BSD-3-Clause"
1627
1772
  },
1773
+ "node_modules/bundle-name": {
1774
+ "version": "4.1.0",
1775
+ "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz",
1776
+ "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==",
1777
+ "license": "MIT",
1778
+ "dependencies": {
1779
+ "run-applescript": "^7.0.0"
1780
+ },
1781
+ "engines": {
1782
+ "node": ">=18"
1783
+ },
1784
+ "funding": {
1785
+ "url": "https://github.com/sponsors/sindresorhus"
1786
+ }
1787
+ },
1628
1788
  "node_modules/bytes": {
1629
1789
  "version": "3.1.2",
1630
1790
  "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
@@ -2112,6 +2272,34 @@
2112
2272
  "dev": true,
2113
2273
  "license": "MIT"
2114
2274
  },
2275
+ "node_modules/default-browser": {
2276
+ "version": "5.2.1",
2277
+ "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.2.1.tgz",
2278
+ "integrity": "sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==",
2279
+ "license": "MIT",
2280
+ "dependencies": {
2281
+ "bundle-name": "^4.1.0",
2282
+ "default-browser-id": "^5.0.0"
2283
+ },
2284
+ "engines": {
2285
+ "node": ">=18"
2286
+ },
2287
+ "funding": {
2288
+ "url": "https://github.com/sponsors/sindresorhus"
2289
+ }
2290
+ },
2291
+ "node_modules/default-browser-id": {
2292
+ "version": "5.0.0",
2293
+ "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.0.tgz",
2294
+ "integrity": "sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==",
2295
+ "license": "MIT",
2296
+ "engines": {
2297
+ "node": ">=18"
2298
+ },
2299
+ "funding": {
2300
+ "url": "https://github.com/sponsors/sindresorhus"
2301
+ }
2302
+ },
2115
2303
  "node_modules/defaults": {
2116
2304
  "version": "1.0.4",
2117
2305
  "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",
@@ -2133,6 +2321,18 @@
2133
2321
  "node": ">=10"
2134
2322
  }
2135
2323
  },
2324
+ "node_modules/define-lazy-prop": {
2325
+ "version": "3.0.0",
2326
+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz",
2327
+ "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==",
2328
+ "license": "MIT",
2329
+ "engines": {
2330
+ "node": ">=12"
2331
+ },
2332
+ "funding": {
2333
+ "url": "https://github.com/sponsors/sindresorhus"
2334
+ }
2335
+ },
2136
2336
  "node_modules/denque": {
2137
2337
  "version": "2.1.0",
2138
2338
  "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz",
@@ -3726,6 +3926,21 @@
3726
3926
  "url": "https://github.com/sponsors/ljharb"
3727
3927
  }
3728
3928
  },
3929
+ "node_modules/is-docker": {
3930
+ "version": "3.0.0",
3931
+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",
3932
+ "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",
3933
+ "license": "MIT",
3934
+ "bin": {
3935
+ "is-docker": "cli.js"
3936
+ },
3937
+ "engines": {
3938
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
3939
+ },
3940
+ "funding": {
3941
+ "url": "https://github.com/sponsors/sindresorhus"
3942
+ }
3943
+ },
3729
3944
  "node_modules/is-extglob": {
3730
3945
  "version": "2.1.1",
3731
3946
  "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
@@ -3758,6 +3973,24 @@
3758
3973
  "node": ">=0.10.0"
3759
3974
  }
3760
3975
  },
3976
+ "node_modules/is-inside-container": {
3977
+ "version": "1.0.0",
3978
+ "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz",
3979
+ "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==",
3980
+ "license": "MIT",
3981
+ "dependencies": {
3982
+ "is-docker": "^3.0.0"
3983
+ },
3984
+ "bin": {
3985
+ "is-inside-container": "cli.js"
3986
+ },
3987
+ "engines": {
3988
+ "node": ">=14.16"
3989
+ },
3990
+ "funding": {
3991
+ "url": "https://github.com/sponsors/sindresorhus"
3992
+ }
3993
+ },
3761
3994
  "node_modules/is-installed-globally": {
3762
3995
  "version": "0.4.0",
3763
3996
  "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz",
@@ -3847,6 +4080,21 @@
3847
4080
  "url": "https://github.com/sponsors/sindresorhus"
3848
4081
  }
3849
4082
  },
4083
+ "node_modules/is-wsl": {
4084
+ "version": "3.1.0",
4085
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz",
4086
+ "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==",
4087
+ "license": "MIT",
4088
+ "dependencies": {
4089
+ "is-inside-container": "^1.0.0"
4090
+ },
4091
+ "engines": {
4092
+ "node": ">=16"
4093
+ },
4094
+ "funding": {
4095
+ "url": "https://github.com/sponsors/sindresorhus"
4096
+ }
4097
+ },
3850
4098
  "node_modules/is-yarn-global": {
3851
4099
  "version": "0.4.1",
3852
4100
  "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.4.1.tgz",
@@ -4606,6 +4854,24 @@
4606
4854
  "url": "https://github.com/sponsors/sindresorhus"
4607
4855
  }
4608
4856
  },
4857
+ "node_modules/open": {
4858
+ "version": "10.1.2",
4859
+ "resolved": "https://registry.npmjs.org/open/-/open-10.1.2.tgz",
4860
+ "integrity": "sha512-cxN6aIDPz6rm8hbebcP7vrQNhvRcveZoJU72Y7vskh4oIm+BZwBECnx5nTmrlres1Qapvx27Qo1Auukpf8PKXw==",
4861
+ "license": "MIT",
4862
+ "dependencies": {
4863
+ "default-browser": "^5.2.1",
4864
+ "define-lazy-prop": "^3.0.0",
4865
+ "is-inside-container": "^1.0.0",
4866
+ "is-wsl": "^3.1.0"
4867
+ },
4868
+ "engines": {
4869
+ "node": ">=18"
4870
+ },
4871
+ "funding": {
4872
+ "url": "https://github.com/sponsors/sindresorhus"
4873
+ }
4874
+ },
4609
4875
  "node_modules/optionator": {
4610
4876
  "version": "0.9.4",
4611
4877
  "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
@@ -5479,6 +5745,18 @@
5479
5745
  "fsevents": "~2.3.2"
5480
5746
  }
5481
5747
  },
5748
+ "node_modules/run-applescript": {
5749
+ "version": "7.0.0",
5750
+ "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.0.0.tgz",
5751
+ "integrity": "sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==",
5752
+ "license": "MIT",
5753
+ "engines": {
5754
+ "node": ">=18"
5755
+ },
5756
+ "funding": {
5757
+ "url": "https://github.com/sponsors/sindresorhus"
5758
+ }
5759
+ },
5482
5760
  "node_modules/run-async": {
5483
5761
  "version": "3.0.0",
5484
5762
  "resolved": "https://registry.npmjs.org/run-async/-/run-async-3.0.0.tgz",
@@ -6802,6 +7080,27 @@
6802
7080
  "typedarray-to-buffer": "^3.1.5"
6803
7081
  }
6804
7082
  },
7083
+ "node_modules/ws": {
7084
+ "version": "8.18.2",
7085
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.2.tgz",
7086
+ "integrity": "sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ==",
7087
+ "license": "MIT",
7088
+ "engines": {
7089
+ "node": ">=10.0.0"
7090
+ },
7091
+ "peerDependencies": {
7092
+ "bufferutil": "^4.0.1",
7093
+ "utf-8-validate": ">=5.0.2"
7094
+ },
7095
+ "peerDependenciesMeta": {
7096
+ "bufferutil": {
7097
+ "optional": true
7098
+ },
7099
+ "utf-8-validate": {
7100
+ "optional": true
7101
+ }
7102
+ }
7103
+ },
6805
7104
  "node_modules/xdg-basedir": {
6806
7105
  "version": "5.1.0",
6807
7106
  "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-5.1.0.tgz",
@@ -11,7 +11,7 @@
11
11
  "lint:fix": "eslint src --ext ts,tsx --fix"
12
12
  },
13
13
  "dependencies": {
14
- "baraqex": "^1.0.60",
14
+ "baraqex": "^1.0.65",
15
15
  "frontend-hamroun": "^1.2.35",
16
16
  "fs": "^0.0.1-security",
17
17
  "path": "^0.12.7"
@@ -1,4 +1,4 @@
1
- import { render, useState, useEffect, useMemo, useRef, useErrorBoundary, createContext, useContext } from 'frontend-hamroun';
1
+ import { render, useState, useEffect, useMemo, useRef, useErrorBoundary, createContext, useContext } from 'baraqex';
2
2
  import './main.css';
3
3
 
4
4
  // JSX type declarations
@@ -4,7 +4,7 @@ export default defineConfig({
4
4
  esbuild: {
5
5
  jsxFactory: 'jsx',
6
6
  jsxFragment: 'Fragment',
7
- jsxInject: `import { jsx } from 'frontend-hamroun';`
7
+ jsxInject: `import { jsx } from 'baraqex';`
8
8
  },
9
9
  define: {
10
10
  // Ensure we're in browser mode
@@ -26,7 +26,8 @@ export default defineConfig({
26
26
  ],
27
27
  // Force include browser-safe modules
28
28
  include: [
29
- 'frontend-hamroun'
29
+ 'frontend-hamroun',
30
+ 'baraqex'
30
31
  ]
31
32
  },
32
33
  resolve: {
@@ -8,7 +8,7 @@
8
8
  "name": "ssr-template",
9
9
  "version": "1.0.0",
10
10
  "dependencies": {
11
- "baraqex": "^1.0.64",
11
+ "baraqex": "^1.0.65",
12
12
  "express": "^4.18.0",
13
13
  "frontend-hamroun": "^1.2.35"
14
14
  },
@@ -820,19 +820,31 @@
820
820
  "license": "MIT"
821
821
  },
822
822
  "node_modules/baraqex": {
823
- "version": "1.0.64",
824
- "resolved": "https://registry.npmjs.org/baraqex/-/baraqex-1.0.64.tgz",
825
- "integrity": "sha512-36lcAME0NUUKltHV69Rt/tk2OXWvtRhjIHaAd/MCLd6pw69sGDGxKFF5H8hyRUs9lq0kvUw9sD1rSFHw2YfeRQ==",
823
+ "version": "1.0.65",
824
+ "resolved": "https://registry.npmjs.org/baraqex/-/baraqex-1.0.65.tgz",
825
+ "integrity": "sha512-wysTp7nFku3usNhPMQQCcSUJ9Med12zbVlQGffRx8LwK8UQCPxGY9JONccDAK60XaFfS64MKdHyDDsZP2CyN/Q==",
826
826
  "license": "MIT",
827
827
  "dependencies": {
828
- "frontend-hamroun": "^1.2.35"
828
+ "chokidar": "^4.0.3",
829
+ "frontend-hamroun": "^1.2.35",
830
+ "open": "^10.1.2",
831
+ "ws": "^8.18.2"
829
832
  },
830
833
  "bin": {
831
834
  "baraqex": "bin/baraqex.js"
832
835
  },
836
+ "optionalDependencies": {
837
+ "bcryptjs": "^2.4.3",
838
+ "cors": "^2.8.5",
839
+ "express": "^4.18.0",
840
+ "jsonwebtoken": "^9.0.0",
841
+ "mongodb": "^6.0.0",
842
+ "mysql2": "^3.6.0",
843
+ "pg": "^8.11.0"
844
+ },
833
845
  "peerDependencies": {
834
- "cors": ">=2.8.0",
835
- "express": ">=4.18.0"
846
+ "cors": "^2.8.5",
847
+ "express": "^4.18.0"
836
848
  },
837
849
  "peerDependenciesMeta": {
838
850
  "bcryptjs": {
@@ -858,6 +870,139 @@
858
870
  }
859
871
  }
860
872
  },
873
+ "node_modules/baraqex/node_modules/@types/whatwg-url": {
874
+ "version": "11.0.5",
875
+ "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz",
876
+ "integrity": "sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==",
877
+ "license": "MIT",
878
+ "optional": true,
879
+ "dependencies": {
880
+ "@types/webidl-conversions": "*"
881
+ }
882
+ },
883
+ "node_modules/baraqex/node_modules/bson": {
884
+ "version": "6.10.4",
885
+ "resolved": "https://registry.npmjs.org/bson/-/bson-6.10.4.tgz",
886
+ "integrity": "sha512-WIsKqkSC0ABoBJuT1LEX+2HEvNmNKKgnTAyd0fL8qzK4SH2i9NXg+t08YtdZp/V9IZ33cxe3iV4yM0qg8lMQng==",
887
+ "license": "Apache-2.0",
888
+ "optional": true,
889
+ "engines": {
890
+ "node": ">=16.20.1"
891
+ }
892
+ },
893
+ "node_modules/baraqex/node_modules/chokidar": {
894
+ "version": "4.0.3",
895
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",
896
+ "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
897
+ "license": "MIT",
898
+ "dependencies": {
899
+ "readdirp": "^4.0.1"
900
+ },
901
+ "engines": {
902
+ "node": ">= 14.16.0"
903
+ },
904
+ "funding": {
905
+ "url": "https://paulmillr.com/funding/"
906
+ }
907
+ },
908
+ "node_modules/baraqex/node_modules/mongodb": {
909
+ "version": "6.17.0",
910
+ "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.17.0.tgz",
911
+ "integrity": "sha512-neerUzg/8U26cgruLysKEjJvoNSXhyID3RvzvdcpsIi2COYM3FS3o9nlH7fxFtefTb942dX3W9i37oPfCVj4wA==",
912
+ "license": "Apache-2.0",
913
+ "optional": true,
914
+ "dependencies": {
915
+ "@mongodb-js/saslprep": "^1.1.9",
916
+ "bson": "^6.10.4",
917
+ "mongodb-connection-string-url": "^3.0.0"
918
+ },
919
+ "engines": {
920
+ "node": ">=16.20.1"
921
+ },
922
+ "peerDependencies": {
923
+ "@aws-sdk/credential-providers": "^3.188.0",
924
+ "@mongodb-js/zstd": "^1.1.0 || ^2.0.0",
925
+ "gcp-metadata": "^5.2.0",
926
+ "kerberos": "^2.0.1",
927
+ "mongodb-client-encryption": ">=6.0.0 <7",
928
+ "snappy": "^7.2.2",
929
+ "socks": "^2.7.1"
930
+ },
931
+ "peerDependenciesMeta": {
932
+ "@aws-sdk/credential-providers": {
933
+ "optional": true
934
+ },
935
+ "@mongodb-js/zstd": {
936
+ "optional": true
937
+ },
938
+ "gcp-metadata": {
939
+ "optional": true
940
+ },
941
+ "kerberos": {
942
+ "optional": true
943
+ },
944
+ "mongodb-client-encryption": {
945
+ "optional": true
946
+ },
947
+ "snappy": {
948
+ "optional": true
949
+ },
950
+ "socks": {
951
+ "optional": true
952
+ }
953
+ }
954
+ },
955
+ "node_modules/baraqex/node_modules/mongodb-connection-string-url": {
956
+ "version": "3.0.2",
957
+ "resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.2.tgz",
958
+ "integrity": "sha512-rMO7CGo/9BFwyZABcKAWL8UJwH/Kc2x0g72uhDWzG48URRax5TCIcJ7Rc3RZqffZzO/Gwff/jyKwCU9TN8gehA==",
959
+ "license": "Apache-2.0",
960
+ "optional": true,
961
+ "dependencies": {
962
+ "@types/whatwg-url": "^11.0.2",
963
+ "whatwg-url": "^14.1.0 || ^13.0.0"
964
+ }
965
+ },
966
+ "node_modules/baraqex/node_modules/readdirp": {
967
+ "version": "4.1.2",
968
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
969
+ "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",
970
+ "license": "MIT",
971
+ "engines": {
972
+ "node": ">= 14.18.0"
973
+ },
974
+ "funding": {
975
+ "type": "individual",
976
+ "url": "https://paulmillr.com/funding/"
977
+ }
978
+ },
979
+ "node_modules/baraqex/node_modules/tr46": {
980
+ "version": "5.1.1",
981
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.1.1.tgz",
982
+ "integrity": "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==",
983
+ "license": "MIT",
984
+ "optional": true,
985
+ "dependencies": {
986
+ "punycode": "^2.3.1"
987
+ },
988
+ "engines": {
989
+ "node": ">=18"
990
+ }
991
+ },
992
+ "node_modules/baraqex/node_modules/whatwg-url": {
993
+ "version": "14.2.0",
994
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz",
995
+ "integrity": "sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==",
996
+ "license": "MIT",
997
+ "optional": true,
998
+ "dependencies": {
999
+ "tr46": "^5.1.0",
1000
+ "webidl-conversions": "^7.0.0"
1001
+ },
1002
+ "engines": {
1003
+ "node": ">=18"
1004
+ }
1005
+ },
861
1006
  "node_modules/base64-js": {
862
1007
  "version": "1.5.1",
863
1008
  "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
@@ -1029,6 +1174,21 @@
1029
1174
  "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
1030
1175
  "license": "BSD-3-Clause"
1031
1176
  },
1177
+ "node_modules/bundle-name": {
1178
+ "version": "4.1.0",
1179
+ "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz",
1180
+ "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==",
1181
+ "license": "MIT",
1182
+ "dependencies": {
1183
+ "run-applescript": "^7.0.0"
1184
+ },
1185
+ "engines": {
1186
+ "node": ">=18"
1187
+ },
1188
+ "funding": {
1189
+ "url": "https://github.com/sponsors/sindresorhus"
1190
+ }
1191
+ },
1032
1192
  "node_modules/bytes": {
1033
1193
  "version": "3.1.2",
1034
1194
  "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
@@ -1548,6 +1708,34 @@
1548
1708
  "node": ">=4.0.0"
1549
1709
  }
1550
1710
  },
1711
+ "node_modules/default-browser": {
1712
+ "version": "5.2.1",
1713
+ "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.2.1.tgz",
1714
+ "integrity": "sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==",
1715
+ "license": "MIT",
1716
+ "dependencies": {
1717
+ "bundle-name": "^4.1.0",
1718
+ "default-browser-id": "^5.0.0"
1719
+ },
1720
+ "engines": {
1721
+ "node": ">=18"
1722
+ },
1723
+ "funding": {
1724
+ "url": "https://github.com/sponsors/sindresorhus"
1725
+ }
1726
+ },
1727
+ "node_modules/default-browser-id": {
1728
+ "version": "5.0.0",
1729
+ "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.0.tgz",
1730
+ "integrity": "sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==",
1731
+ "license": "MIT",
1732
+ "engines": {
1733
+ "node": ">=18"
1734
+ },
1735
+ "funding": {
1736
+ "url": "https://github.com/sponsors/sindresorhus"
1737
+ }
1738
+ },
1551
1739
  "node_modules/defaults": {
1552
1740
  "version": "1.0.4",
1553
1741
  "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",
@@ -1569,6 +1757,18 @@
1569
1757
  "node": ">=10"
1570
1758
  }
1571
1759
  },
1760
+ "node_modules/define-lazy-prop": {
1761
+ "version": "3.0.0",
1762
+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz",
1763
+ "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==",
1764
+ "license": "MIT",
1765
+ "engines": {
1766
+ "node": ">=12"
1767
+ },
1768
+ "funding": {
1769
+ "url": "https://github.com/sponsors/sindresorhus"
1770
+ }
1771
+ },
1572
1772
  "node_modules/denque": {
1573
1773
  "version": "2.1.0",
1574
1774
  "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz",
@@ -2617,6 +2817,21 @@
2617
2817
  "is-ci": "bin.js"
2618
2818
  }
2619
2819
  },
2820
+ "node_modules/is-docker": {
2821
+ "version": "3.0.0",
2822
+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",
2823
+ "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",
2824
+ "license": "MIT",
2825
+ "bin": {
2826
+ "is-docker": "cli.js"
2827
+ },
2828
+ "engines": {
2829
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
2830
+ },
2831
+ "funding": {
2832
+ "url": "https://github.com/sponsors/sindresorhus"
2833
+ }
2834
+ },
2620
2835
  "node_modules/is-extglob": {
2621
2836
  "version": "2.1.1",
2622
2837
  "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
@@ -2649,6 +2864,24 @@
2649
2864
  "node": ">=0.10.0"
2650
2865
  }
2651
2866
  },
2867
+ "node_modules/is-inside-container": {
2868
+ "version": "1.0.0",
2869
+ "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz",
2870
+ "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==",
2871
+ "license": "MIT",
2872
+ "dependencies": {
2873
+ "is-docker": "^3.0.0"
2874
+ },
2875
+ "bin": {
2876
+ "is-inside-container": "cli.js"
2877
+ },
2878
+ "engines": {
2879
+ "node": ">=14.16"
2880
+ },
2881
+ "funding": {
2882
+ "url": "https://github.com/sponsors/sindresorhus"
2883
+ }
2884
+ },
2652
2885
  "node_modules/is-installed-globally": {
2653
2886
  "version": "0.4.0",
2654
2887
  "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz",
@@ -2741,6 +2974,21 @@
2741
2974
  "url": "https://github.com/sponsors/sindresorhus"
2742
2975
  }
2743
2976
  },
2977
+ "node_modules/is-wsl": {
2978
+ "version": "3.1.0",
2979
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz",
2980
+ "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==",
2981
+ "license": "MIT",
2982
+ "dependencies": {
2983
+ "is-inside-container": "^1.0.0"
2984
+ },
2985
+ "engines": {
2986
+ "node": ">=16"
2987
+ },
2988
+ "funding": {
2989
+ "url": "https://github.com/sponsors/sindresorhus"
2990
+ }
2991
+ },
2744
2992
  "node_modules/is-yarn-global": {
2745
2993
  "version": "0.4.1",
2746
2994
  "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.4.1.tgz",
@@ -3399,6 +3647,24 @@
3399
3647
  "url": "https://github.com/sponsors/sindresorhus"
3400
3648
  }
3401
3649
  },
3650
+ "node_modules/open": {
3651
+ "version": "10.1.2",
3652
+ "resolved": "https://registry.npmjs.org/open/-/open-10.1.2.tgz",
3653
+ "integrity": "sha512-cxN6aIDPz6rm8hbebcP7vrQNhvRcveZoJU72Y7vskh4oIm+BZwBECnx5nTmrlres1Qapvx27Qo1Auukpf8PKXw==",
3654
+ "license": "MIT",
3655
+ "dependencies": {
3656
+ "default-browser": "^5.2.1",
3657
+ "define-lazy-prop": "^3.0.0",
3658
+ "is-inside-container": "^1.0.0",
3659
+ "is-wsl": "^3.1.0"
3660
+ },
3661
+ "engines": {
3662
+ "node": ">=18"
3663
+ },
3664
+ "funding": {
3665
+ "url": "https://github.com/sponsors/sindresorhus"
3666
+ }
3667
+ },
3402
3668
  "node_modules/ora": {
3403
3669
  "version": "7.0.1",
3404
3670
  "resolved": "https://registry.npmjs.org/ora/-/ora-7.0.1.tgz",
@@ -3962,6 +4228,18 @@
3962
4228
  "url": "https://github.com/sponsors/isaacs"
3963
4229
  }
3964
4230
  },
4231
+ "node_modules/run-applescript": {
4232
+ "version": "7.0.0",
4233
+ "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.0.0.tgz",
4234
+ "integrity": "sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==",
4235
+ "license": "MIT",
4236
+ "engines": {
4237
+ "node": ">=18"
4238
+ },
4239
+ "funding": {
4240
+ "url": "https://github.com/sponsors/sindresorhus"
4241
+ }
4242
+ },
3965
4243
  "node_modules/run-async": {
3966
4244
  "version": "3.0.0",
3967
4245
  "resolved": "https://registry.npmjs.org/run-async/-/run-async-3.0.0.tgz",
@@ -4974,6 +5252,27 @@
4974
5252
  "typedarray-to-buffer": "^3.1.5"
4975
5253
  }
4976
5254
  },
5255
+ "node_modules/ws": {
5256
+ "version": "8.18.2",
5257
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.2.tgz",
5258
+ "integrity": "sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ==",
5259
+ "license": "MIT",
5260
+ "engines": {
5261
+ "node": ">=10.0.0"
5262
+ },
5263
+ "peerDependencies": {
5264
+ "bufferutil": "^4.0.1",
5265
+ "utf-8-validate": ">=5.0.2"
5266
+ },
5267
+ "peerDependenciesMeta": {
5268
+ "bufferutil": {
5269
+ "optional": true
5270
+ },
5271
+ "utf-8-validate": {
5272
+ "optional": true
5273
+ }
5274
+ }
5275
+ },
4977
5276
  "node_modules/xdg-basedir": {
4978
5277
  "version": "5.1.0",
4979
5278
  "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-5.1.0.tgz",
@@ -16,7 +16,7 @@
16
16
  "clean": "rimraf dist"
17
17
  },
18
18
  "dependencies": {
19
- "baraqex": "^1.0.64",
19
+ "baraqex": "^1.0.65",
20
20
  "express": "^4.18.0",
21
21
  "frontend-hamroun": "^1.2.35"
22
22
  },
@@ -1,5 +1,4 @@
1
- import { useState, useEffect, useRef, useMemo } from 'frontend-hamroun';
2
- import { jsx } from 'baraqex';
1
+ import { useState, useEffect, useRef, useMemo } from 'baraqex';
3
2
 
4
3
  // Custom hooks for better code organization
5
4
  function useTimer(initialTime = 0) {
@@ -1,5 +1,4 @@
1
- import { hydrate, render } from 'frontend-hamroun';
2
- import { jsx } from 'baraqex';
1
+ import { hydrate, jsx, render } from 'baraqex';
3
2
  import { App } from './App.js';
4
3
 
5
4
  await hydrate(jsx(App, {}), document.getElementById('root')!);