@africode/core 5.0.1 → 5.0.2
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/COMPONENT_SCHEMA.json +103 -69
- package/components/base.d.ts +1 -1
- package/components/base.js +71 -21
- package/core/a2ui-schema-manager.js +9 -2
- package/core/a2ui.js +131 -43
- package/core/actions.js +27 -0
- package/core/bun-runtime.js +207 -724
- package/core/compliance.js +6 -5
- package/core/config.js +7 -5
- package/core/enhanced-hmr.js +16 -14
- package/core/file-router.js +42 -282
- package/core/hmr.js +8 -7
- package/core/html.d.ts +15 -101
- package/core/html.js +53 -129
- package/core/lipa-namba-journey.js +74 -12
- package/core/logging.js +14 -0
- package/core/middleware.js +82 -0
- package/core/nida-cig-middleware.js +13 -8
- package/core/plugins/index.js +345 -312
- package/core/request-identity.js +44 -0
- package/core/sdk.js +22 -0
- package/core/session-store.js +68 -0
- package/core/state.js +34 -0
- package/core/websocket.js +22 -20
- package/dist/africode.js +108 -112
- package/dist/africode.js.map +6 -6
- package/dist/build-info.json +3 -3
- package/dist/components.js +351 -351
- package/dist/components.js.map +6 -6
- package/package.json +3 -3
- package/scripts/generate-component-schema.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@africode/core",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Bun-native full-stack framework with generative AI, fintech compliance, and real-time performance - built for Tanzanian digital economy",
|
|
5
5
|
"module": "src/index.ts",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"./components/*": "./components/*"
|
|
15
15
|
},
|
|
16
16
|
"bin": {
|
|
17
|
-
"africode": "./bin/
|
|
18
|
-
"create-africode": "./bin/
|
|
17
|
+
"africode": "./bin/africode.js",
|
|
18
|
+
"create-africode": "./bin/create-africode.js"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"dev": "bun run bin/africode.js dev",
|
|
@@ -14,7 +14,7 @@ const OUTPUT_FILE = 'COMPONENT_SCHEMA.json';
|
|
|
14
14
|
|
|
15
15
|
function parseComponentFile(filePath) {
|
|
16
16
|
const content = readFileSync(filePath, 'utf8');
|
|
17
|
-
const fileName = filePath.split(
|
|
17
|
+
const fileName = filePath.split(/[/\\]/).pop().replace('.js', '');
|
|
18
18
|
|
|
19
19
|
// Extract class name
|
|
20
20
|
const classMatch = content.match(/export class (\w+)/);
|