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

[bugfix] Fix humanize api #5477

Merged
merged 1 commit into from Apr 30, 2020
Merged

[bugfix] Fix humanize api #5477

merged 1 commit into from Apr 30, 2020

Conversation

ichernev
Copy link
Contributor

@ichernev ichernev commented Apr 30, 2020

Humanize API was changed in PR 4296 to support an options argument which
contained both suffix and thresholds. No other moment API contains such
an options object. So this change just splits suffix and thresholds into
two different arguments, allowing for arbitrary order.

Humanize API was changed in PR 4296 to support an options argument which
contained both suffix and thresholds. No other moment API contains such
an options object. So this change just splits suffix and thresholds into
two different arguments, allowing for arbitrary order.
Copy link

@nlevman nlevman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After your changes I got "export 'duration' (imported as 'moment') was not found in 'moment'"

@@ -79,33 +79,27 @@ export function getSetRelativeTimeThreshold(threshold, limit) {
return true;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After your changes I got "export 'duration' (imported as 'moment') was not found in 'moment'"

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

Successfully merging this pull request may close these issues.

None yet

2 participants