@burger-editor/frozen-patty 4.0.0-alpha.30 → 4.0.0-alpha.32
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/dist/get-values.js +2 -1
- package/package.json +3 -3
package/dist/get-values.js
CHANGED
|
@@ -127,7 +127,8 @@ function getAttribute(el, keyAttr, attr, typeConvert) {
|
|
|
127
127
|
// For shorthand notation, get value from data-field-* attribute
|
|
128
128
|
const dataAttr = ['data', attr, kebabCase(keyAttr)].join('-');
|
|
129
129
|
if (el.hasAttribute(dataAttr)) {
|
|
130
|
-
|
|
130
|
+
const value = el.getAttribute(dataAttr);
|
|
131
|
+
return typeConvert ? convert(value) : value;
|
|
131
132
|
}
|
|
132
133
|
value = el.getAttribute(keyAttr) ?? null;
|
|
133
134
|
if ((value === '' || value == null) &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burger-editor/frozen-patty",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.32",
|
|
4
4
|
"description": "Pure HTML to JSON converter that does not use a template engine.",
|
|
5
5
|
"author": "D-ZERO",
|
|
6
6
|
"license": "(MIT OR Apache-2.0)",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"clean": "tsc --build --clean"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@burger-editor/utils": "4.0.0-alpha.
|
|
44
|
+
"@burger-editor/utils": "4.0.0-alpha.32"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "65279bc623c0c33e5c7da6d71c2def6cc7cd584b"
|
|
47
47
|
}
|