perfect-payload 1.1.1 → 1.1.2

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 +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -480,7 +480,7 @@ export function perfectPayloadV1(
480
480
  break;
481
481
  }
482
482
 
483
- if (rowErrors.length == 0)
483
+ if (attrExist && rowErrors.length == 0)
484
484
  validatedPayload[attributeName] = attributeValue;
485
485
  }
486
486
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perfect-payload",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "description": "rich json validator",
6
6
  "main": "index.js",