@ilokesto/utilinent 0.0.16 → 0.0.17

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.
@@ -15,4 +15,8 @@ const renderForTag = (tag) => ({ when, children, fallback = null, ...props }) =>
15
15
  const content = typeof children === "function" ? children(when) : children;
16
16
  return createElement(tag, props, content);
17
17
  };
18
- export const Show = Object.assign(BaseShow, Object.fromEntries(htmlTags.map(tag => [tag, renderForTag(tag)])));
18
+ const tagEntries = htmlTags.reduce((acc, tag) => {
19
+ acc[tag] = renderForTag(tag);
20
+ return acc;
21
+ }, {});
22
+ export const Show = Object.assign(BaseShow, tagEntries);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilokesto/utilinent",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ilokesto/utilinent.git"