diff options
| author | Marin Ivanov <[email protected]> | 2019-04-26 03:09:23 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2019-04-26 10:49:00 +0300 |
| commit | a9b73cc643471a937eda430b77610579a09c25ce (patch) | |
| tree | 5349d057af6a326e579d1e133e490d5e453cf5eb | |
| parent | c5183ad3d99fd7b0e4208a257da51445c53f69a6 (diff) | |
Bump verstion to 1.0.1
Add acknowledgments to the readme
| -rw-r--r-- | README.md | 5 | ||||
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | src/index.ts | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -21,6 +21,7 @@ - [off](#off) - [emit](#emit) - [Contribute](#contribute) +- [Acknowledments](#acknowledments) - [License](#license) ## Install @@ -123,6 +124,10 @@ If present, `"*"` handlers are invoked after type-matched handlers. If you want to contribute, I would be happy to look in to your PRs. +# Acknowledments + +I would like to thank [Jason Miller](https://jasonformat.com/) (@developit) for developing `mitt`. `nitt` is no more than just `mitt` with a few extras. + ## License [MIT License](https://opensource.org/licenses/MIT) diff --git a/package.json b/package.json index e28990a..f7e377c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nitt", - "version": "1.0.0", + "version": "1.0.1", "author": "Marin Ivanov <[email protected]>", "license": "MIT", "scripts": { diff --git a/src/index.ts b/src/index.ts index aa07055..3608ae1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -51,7 +51,7 @@ export default function nitt(all: EventHandlerMap) { * @returns {Promise<any>} */ when(type: string): Promise<any> { - return new Promise<any>(r => this.once(type, r)); + return new Promise<any>(resolve => this.once(type, resolve)); }, /** |
