perfect-payload 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -499,7 +499,7 @@ export function perfectPayloadV1(
499
499
  };
500
500
  }
501
501
 
502
- const { errors = [] } = dataValidatorV1(
502
+ const { errors = [] } = perfectPayloadV1(
503
503
  attributeValue,
504
504
  objectAttrRules
505
505
  );
@@ -523,7 +523,7 @@ export function perfectPayloadV1(
523
523
  if (Object.keys(data).includes(attr)) {
524
524
  newData = { ...newData, [attr]: data?.[attr] };
525
525
  }
526
- const { errors = [] } = dataValidatorV1(newData, {
526
+ const { errors = [] } = perfectPayloadV1(newData, {
527
527
  [attr]: newRule,
528
528
  });
529
529
  rowErrors = [...rowErrors, ...errors];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perfect-payload",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "description": "JSON Data Validation",
6
6
  "main": "index.js",