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

async/customAlphabet - ensure browser version returns Promise #229

Merged
merged 1 commit into from Jul 27, 2020
Merged

async/customAlphabet - ensure browser version returns Promise #229

merged 1 commit into from Jul 27, 2020

Conversation

LoneRifle
Copy link
Contributor

To ensure consistency in the functions exported by async/browser.index
and to not catch out users expecting a Thenable returned by functions
claimed to be async, ensure that the final value returned by
customAlphabet() is a Promise resolving to the value, not the value
itself

Fixes #228

To ensure consistency in the functions exported by async/browser.index
and to not catch out users expecting a Thenable returned by functions
claimed to be async, ensure that the final value returned by 
`customAlphabet()` is a Promise resolving to the value, not the value
itself
@ai
Copy link
Owner

ai commented Jul 27, 2020

Thanks. Released in 3.1.11.

@LoneRifle LoneRifle deleted the patch-1 branch July 28, 2020 01:46
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.

customAlphabet in nanoid/async/index.browser is not actually async
2 participants