attrs-in-props 2.11.446 → 2.11.455
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/index.js +4 -4
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1057,11 +1057,11 @@ export const filterAttributesByTagName = (tag, props) => {
|
|
|
1057
1057
|
return filteredObject
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
|
-
export const
|
|
1060
|
+
export const executeAttr = (elem, element) => {
|
|
1061
1061
|
const attrObj = {}
|
|
1062
|
-
if (
|
|
1063
|
-
for (const attrProp in
|
|
1064
|
-
attrObj[attrProp] =
|
|
1062
|
+
if (elem.attr) {
|
|
1063
|
+
for (const attrProp in elem.attr) {
|
|
1064
|
+
attrObj[attrProp] = elem.attr[attrProp](element, element.state, element.context)
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
return attrObj
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "attrs-in-props",
|
|
3
3
|
"description": "Utilize props as attributes",
|
|
4
4
|
"author": "symbo.ls",
|
|
5
|
-
"version": "2.11.
|
|
5
|
+
"version": "2.11.455",
|
|
6
6
|
"repository": "https://github.com/symbo-ls/smbls",
|
|
7
7
|
"main": "index.js",
|
|
8
|
-
"gitHead": "
|
|
8
|
+
"gitHead": "2ec12ac36ba08a2d424a3806dba7ccb6f7bddfba",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@domql/utils": "^2.5.0"
|
|
11
11
|
}
|