rockdai / sql-bricks

Transparent, Schemaless SQL Generation
http://csnw.github.io/sql-bricks
MIT License
213 stars 25 forks source link

Fix bug in _.clone() reimplementation, closes #135 #136

Closed prust closed 1 year ago

prust commented 1 year ago

This bug was found by @vileoleone and the fix was also suggested by @vileoleone in #135.

It fixes a bug introduced in #112 (affecting only v3.x of sql-bricks). v2.x of sql-bricks uses _.clone() which properly handles both arrays and objects.