attrs-in-props 2.11.315 → 2.11.360

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/index.js +11 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1034,6 +1034,7 @@ export const checkAttributeByTagName = (tag, attribute) => {
1034
1034
  return defaultAttributes.includes(attribute)
1035
1035
  }
1036
1036
  }
1037
+
1037
1038
  export const checkEventFunctions = (key) => {
1038
1039
  if (!isString(key)) return false
1039
1040
  const normalizedKey = key.toLowerCase()
@@ -1055,3 +1056,13 @@ export const filterAttributesByTagName = (tag, props) => {
1055
1056
 
1056
1057
  return filteredObject
1057
1058
  }
1059
+
1060
+ export const exetuteAttrPerComponent = (component, element) => {
1061
+ const attrObj = {}
1062
+ if (component.attr) {
1063
+ for (const attrProp in component.attr) {
1064
+ attrObj[attrProp] = component.attr[attrProp](element)
1065
+ }
1066
+ }
1067
+ return attrObj
1068
+ }
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.315",
5
+ "version": "2.11.360",
6
6
  "repository": "https://github.com/symbo-ls/smbls",
7
7
  "main": "index.js",
8
- "gitHead": "f7e5836ff0fad163a721cd8a823e2da1a7f346ef",
8
+ "gitHead": "87c62e587157ba9c3ef135e31dbc79f165cdaa38",
9
9
  "dependencies": {
10
10
  "@domql/utils": "latest"
11
11
  }