apache / couchdb-nano

Nano: The official Apache CouchDB library for Node.js
https://www.npmjs.com/package/nano
Apache License 2.0
651 stars 165 forks source link

to avoid circular references #275

Closed glynnbird closed 3 years ago

glynnbird commented 3 years ago

Overview

When logging is enabled, nano would use JavaScript's clone operation so that it could scrub authentication credentials without actually deleting the originals. Instead, as suggested by issue #274 we just make a selective copy of certain attributes which avoids the possibility of a circular reference

Testing recommendations

See issue #274

GitHub issue number

Fixes issue #274

Checklist