Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with Date objects using non-function form. #36

Closed
dtinth opened this issue Sep 15, 2015 · 2 comments
Closed

Does not work with Date objects using non-function form. #36

dtinth opened this issue Sep 15, 2015 · 2 comments

Comments

@dtinth
Copy link
Contributor

dtinth commented Sep 15, 2015

Example scenario:

var updeep = require('updeep')
var entry = { title: 'Does not work with Date objects using non-function form.' }

Using function form works:

> updeep({ created: () => new Date() }, entry)
{ title: 'Does not work with Date objects using non-function form.',
  created: Tue Sep 15 2015 12:38:37 GMT+0700 (ICT) }

Using non-function form does not work:

> updeep({ created: new Date() }, entry)
{ title: 'Does not work with Date objects using non-function form.',
  created: {} }
@aaronjensen
Copy link
Member

Fixed in 0.10.1, thanks for the report!

@dtinth
Copy link
Contributor Author

dtinth commented Sep 16, 2015

That was quick, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants