From ad3f4d3e45051f4f2a275c84ea74178cd9c53929 Mon Sep 17 00:00:00 2001 From: lorenzofox3 Date: Fri, 23 Feb 2024 15:30:16 +0100 Subject: [PATCH] refacto(core): do not expose getAttributes function --- packages/core/src/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/component.js b/packages/core/src/component.js index 00e3bc3..4d13e59 100644 --- a/packages/core/src/component.js +++ b/packages/core/src/component.js @@ -67,7 +67,7 @@ export const component = (renderLoop, opts = defaultOptions) => { }; }; -export const getAttributes = (el) => +const getAttributes = (el) => Object.fromEntries( el.getAttributeNames().map((name) => [name, el.getAttribute(name)]), );