diff --git a/README.md b/README.md index 6c5c7c87..b1c83b4c 100644 --- a/README.md +++ b/README.md @@ -332,7 +332,7 @@ webhooks.receive({ id, name, payload }); Returns a promise. Runs all handlers set with [`webhooks.on()`](#webhookson) in parallel and waits for them to finish. If one of the handlers rejects or throws an error, then `webhooks.receive()` rejects. The returned error has an `.errors` property which holds an array of all errors caught from the handlers. If no errors occur, `webhooks.receive()` resolves without passing any value. -The `.receive()` method belongs to the [receiver](receiver/) module which can be used standalone. +The `.receive()` method belongs to the `event-handler` module which can be used [standalone](src/event-handler/). ### webhooks.on() @@ -388,7 +388,7 @@ webhooks.on(eventNames, handler); -The `.on()` method belongs to the [receiver](receiver/) module which can be used standalone. +The `.on()` method belongs to the `event-handler` module which can be used [standalone](src/event-handler/). ### webhooks.removeListener() @@ -442,7 +442,7 @@ webhooks.removeListener(eventNames, handler); -The `.removeListener()` method belongs to the [receiver](receiver/) module which can be used standalone. +The `.removeListener()` method belongs to the `event-handler` module which can be used [standalone](src/event-handler/). ### webhooks.middleware()