mcwhittemore / dyno-item-size

A simple node utility to calculate the size of a item as DynamoDB does.
14 stars 4 forks source link

Undefined values cause errors to be thrown #10

Open BizzlePop34 opened 5 years ago

BizzlePop34 commented 5 years ago

Right now a JS object can have properties with undefined values. The Dynamo DB client will accept properties with this value and simply drop them before saving. Currently, this module will throw an error if any property has this value. For consistency, it would make sense to simply ignore these properties when calculating size. I would be happy to make a pull request to for this change.