@zyrab/domo 1.0.1 → 1.0.3
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 +8 -1
- package/package.json +2 -2
- package/src/core/Router.js +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,13 @@ It simplifies native APIs with a chainable, intuitive interface.
|
|
|
8
8
|
Originally built for personal use, it's growing into a lightweight UI toolkit with a router, planned components, and scoped styles.
|
|
9
9
|
No dependencies. No build step. Just clean, direct DOM manipulation.
|
|
10
10
|
|
|
11
|
+
### Size
|
|
12
|
+
|
|
13
|
+
- Minified: 5120 bytes
|
|
14
|
+
- Gzipped: 2054 bytes
|
|
15
|
+
|
|
16
|
+
Domo is highly optimized for performance, ensuring fast load times even in constrained environments.
|
|
17
|
+
|
|
11
18
|
---
|
|
12
19
|
|
|
13
20
|
## Features
|
|
@@ -35,7 +42,7 @@ npm install @zyrab/domo
|
|
|
35
42
|
## Usage
|
|
36
43
|
|
|
37
44
|
```js
|
|
38
|
-
import Domo from " @zyrab/domo";
|
|
45
|
+
import { Domo } from " @zyrab/domo";
|
|
39
46
|
|
|
40
47
|
const btn = Domo("button")
|
|
41
48
|
.id("submit-btn")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zyrab/domo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Minimalist DOM builder and chaining-friendly micro-framework with router support.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/zyrab/domo.git"
|
|
16
|
+
"url": "git+https://github.com/zyrab/domo.git"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
19
19
|
"dom",
|
package/src/core/Router.js
CHANGED
|
@@ -40,7 +40,7 @@ async function render({ component, meta }, params) {
|
|
|
40
40
|
}
|
|
41
41
|
} catch (error) {
|
|
42
42
|
console.error("Rendering error:", error);
|
|
43
|
-
const fallback = _routes["*"]?.component?.({ error:
|
|
43
|
+
const fallback = _routes["*"]?.component?.({ error: error.message });
|
|
44
44
|
if (fallback) {
|
|
45
45
|
_root.replaceChildren();
|
|
46
46
|
_root.appendChild(fallback);
|