hildjj / node-cbor

Encode and decode CBOR documents, with both easy mode, streaming mode, and SAX-style evented mode.
MIT License
356 stars 73 forks source link

Fix loss of precision when parsing date strings #145

Closed JesusMcCloud closed 3 years ago

JesusMcCloud commented 3 years ago

Date Strings can represent timestamps with nanosecond-precision, while JS's date class cannot. This PR addresses this issue and returns date strings verbatim

hildjj commented 3 years ago

I think this needs to be a pref in the decoder. I'll take a pass at doing that since I need to fix a few other things this week.

hildjj commented 3 years ago

I'm going to close this in favor of #147. Please discuss in #146.