neo.mjs 4.0.70 → 4.0.71

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": "neo.mjs",
3
- "version": "4.0.70",
3
+ "version": "4.0.71",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -247,14 +247,14 @@ class RecordFactory extends Base {
247
247
  }
248
248
 
249
249
  if (Object.hasOwn(field, 'maxLength')) {
250
- if (value?.toString() > maxLength) {
250
+ if (value?.toString().length > maxLength) {
251
251
  console.warn(`Setting record field: ${fieldName} value: ${value} conflicts with maxLength: ${maxLength}`);
252
252
  return oldValue;
253
253
  }
254
254
  }
255
255
 
256
256
  if (Object.hasOwn(field, 'minLength')) {
257
- if (value?.toString() < minLength) {
257
+ if (value?.toString().length < minLength) {
258
258
  console.warn(`Setting record field: ${fieldName} value: ${value} conflicts with minLength: ${minLength}`);
259
259
  return oldValue;
260
260
  }