@nuxodin/item 0.6.15 → 0.6.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxodin/item",
3
- "version": "0.6.15",
3
+ "version": "0.6.16",
4
4
  "description": "Reactive state library",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -52,7 +52,8 @@ export function schemaFromField(row) {
52
52
  prop.maxLength = len;
53
53
  } else if (type in textBytes) {
54
54
  prop.type = "string";
55
- if (type !== "text") prop.maxLength = Math.floor(textBytes[type] / B);
55
+ // also for TEXT: without its bound, a wider declaration would never widen it
56
+ prop.maxLength = Math.floor(textBytes[type] / B);
56
57
  } else if (type === "binary") {
57
58
  prop.type = "string";
58
59
  prop.contentEncoding = "base64";