@tellescope/validation 1.237.5 → 1.237.6

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.
@@ -1311,16 +1311,16 @@ exports.fieldsValidator = {
1311
1311
  throw new Error("key ".concat(k, " is greater than 256 characters"));
1312
1312
  var val = fields[k];
1313
1313
  if (typeof val === 'string') {
1314
- if (val.length > 512)
1315
- fields[k] = val.substring(0, 512);
1314
+ if (val.length > 2000)
1315
+ fields[k] = val.substring(0, 2000);
1316
1316
  continue;
1317
1317
  }
1318
1318
  else if (typeof val === 'number' || val === null || typeof val === 'boolean') {
1319
1319
  continue; // nothing to restrict on number type yet
1320
1320
  }
1321
1321
  else if (typeof val === 'object') {
1322
- if (JSON.stringify(val).length > 10000)
1323
- throw new Error("object value for key ".concat(k, " exceeds the maximum length of 10000 characters in string representation"));
1322
+ if (JSON.stringify(val).length > 25000)
1323
+ throw new Error("object value for key ".concat(k, " exceeds the maximum length of 25000 characters in string representation"));
1324
1324
  // previous restricted structure for fields object
1325
1325
  // try {
1326
1326
  // if (val.type && typeof val.type === 'string') { // form responses can be stored as custom fields (form responses is simple array)