@burger-editor/frozen-patty 4.0.0-alpha.31 → 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.
@@ -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
- return el.getAttribute(dataAttr) ?? '';
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.31",
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.31"
44
+ "@burger-editor/utils": "4.0.0-alpha.32"
45
45
  },
46
- "gitHead": "eddeb2d87f068920d0e4bec26406afaa7ea86471"
46
+ "gitHead": "65279bc623c0c33e5c7da6d71c2def6cc7cd584b"
47
47
  }