attrs-in-props 2.11.453 → 2.11.469

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 +4 -4
  2. 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 exetuteAttrPerComponent = (component, element) => {
1060
+ export const executeAttr = (elem, element) => {
1061
1061
  const attrObj = {}
1062
- if (component.attr) {
1063
- for (const attrProp in component.attr) {
1064
- attrObj[attrProp] = component.attr[attrProp](element)
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.453",
5
+ "version": "2.11.469",
6
6
  "repository": "https://github.com/symbo-ls/smbls",
7
7
  "main": "index.js",
8
- "gitHead": "8e5458a957b9d2c75944023e2c31bab157034314",
8
+ "gitHead": "711b668d5e97cf07bdc3ecec069a89c4eddee826",
9
9
  "dependencies": {
10
10
  "@domql/utils": "^2.5.0"
11
11
  }