@tellescope/validation 1.237.5 → 1.238.0

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.
@@ -1269,16 +1269,16 @@ export var fieldsValidator = {
1269
1269
  throw new Error("key ".concat(k, " is greater than 256 characters"));
1270
1270
  var val = fields[k];
1271
1271
  if (typeof val === 'string') {
1272
- if (val.length > 512)
1273
- fields[k] = val.substring(0, 512);
1272
+ if (val.length > 2000)
1273
+ fields[k] = val.substring(0, 2000);
1274
1274
  continue;
1275
1275
  }
1276
1276
  else if (typeof val === 'number' || val === null || typeof val === 'boolean') {
1277
1277
  continue; // nothing to restrict on number type yet
1278
1278
  }
1279
1279
  else if (typeof val === 'object') {
1280
- if (JSON.stringify(val).length > 10000)
1281
- throw new Error("object value for key ".concat(k, " exceeds the maximum length of 10000 characters in string representation"));
1280
+ if (JSON.stringify(val).length > 25000)
1281
+ throw new Error("object value for key ".concat(k, " exceeds the maximum length of 25000 characters in string representation"));
1282
1282
  // previous restricted structure for fields object
1283
1283
  // try {
1284
1284
  // if (val.type && typeof val.type === 'string') { // form responses can be stored as custom fields (form responses is simple array)