@thi.ng/hdom 9.4.104 → 9.4.106

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.
Files changed (2) hide show
  1. package/normalize.js +19 -1
  2. package/package.json +8 -8
package/normalize.js CHANGED
@@ -35,7 +35,25 @@ const normalizeTree = (opts, tree) => __normalizeTree(
35
35
  opts.keys !== false,
36
36
  opts.span !== false
37
37
  );
38
- const __normalizeTree = (tree, opts, ctx, path, keys, span) => tree == null ? void 0 : isArray(tree) ? __normalizeArray(tree, opts, ctx, path, keys, span) : typeof tree === "function" ? __normalizeTree(tree(ctx), opts, ctx, path, keys, span) : typeof tree.toHiccup === "function" ? __normalizeTree(tree.toHiccup(opts.ctx), opts, ctx, path, keys, span) : typeof tree.deref === "function" ? __normalizeTree(tree.deref(), opts, ctx, path, keys, span) : span ? ["span", keys ? { key: path.join("-") } : {}, tree.toString()] : tree.toString();
38
+ const __normalizeTree = (tree, opts, ctx, path, keys, span) => tree == null ? void 0 : isArray(tree) ? __normalizeArray(tree, opts, ctx, path, keys, span) : typeof tree === "function" ? __normalizeTree(tree(ctx), opts, ctx, path, keys, span) : typeof tree.toHiccup === "function" ? __normalizeTree(
39
+ tree.toHiccup(opts.ctx),
40
+ opts,
41
+ ctx,
42
+ path,
43
+ keys,
44
+ span
45
+ ) : typeof tree.deref === "function" ? __normalizeTree(
46
+ tree.deref(),
47
+ opts,
48
+ ctx,
49
+ path,
50
+ keys,
51
+ span
52
+ ) : span ? [
53
+ "span",
54
+ keys ? { key: path.join("-") } : {},
55
+ tree.toString()
56
+ ] : tree.toString();
39
57
  const __normalizeArray = (tree, opts, ctx, path, keys, span) => {
40
58
  if (tree.length === 0) return;
41
59
  let norm, nattribs = tree[1], impl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom",
3
- "version": "9.4.104",
3
+ "version": "9.4.106",
4
4
  "description": "Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,17 +43,17 @@
43
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@thi.ng/api": "^8.12.16",
47
- "@thi.ng/checks": "^3.8.6",
48
- "@thi.ng/diff": "^5.1.117",
46
+ "@thi.ng/api": "^8.12.17",
47
+ "@thi.ng/checks": "^3.8.7",
48
+ "@thi.ng/diff": "^5.1.118",
49
49
  "@thi.ng/equiv": "^2.1.106",
50
- "@thi.ng/errors": "^2.6.5",
51
- "@thi.ng/hiccup": "^5.3.40",
50
+ "@thi.ng/errors": "^2.6.6",
51
+ "@thi.ng/hiccup": "^5.4.1",
52
52
  "@thi.ng/logger": "^3.3.0",
53
53
  "@thi.ng/prefixes": "^2.3.67"
54
54
  },
55
55
  "devDependencies": {
56
- "@thi.ng/atom": "^5.3.57",
56
+ "@thi.ng/atom": "^5.3.58",
57
57
  "esbuild": "^0.27.2",
58
58
  "typedoc": "^0.28.16",
59
59
  "typescript": "^5.9.3"
@@ -134,5 +134,5 @@
134
134
  "status": "completed",
135
135
  "year": 2015
136
136
  },
137
- "gitHead": "7a21075f27ba00b28a6eb77e70918a4c7f4e6e68\n"
137
+ "gitHead": "d46ec975b426bb2ceb137cab734395c97436d59b\n"
138
138
  }