-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*BREAKING CHANGE* feature(http): request path interceptors (#202)
* create an interface for url comparation and a RegEx implementation of it (IURLCompare) * created a separate file for IHttpInterceptor and moved into /interceptors * move unit test into /interceptors * added interceptor mappings as a new feature and restructured code * fixed http module to configure new mappings correctly * fixed index.ts to export correct interfaces * renamed compare interfaces with matcher and made it more flexible for any type of interceptions * pass instance of matcher interface on constructor * remove HttpInterceptorService from provider since its not needed * validate for empty strings when matching in url-regexp matche * added unit tests for ** and /path** interceptors * updated unit tests with more interceptor cases * added unit tests for url regexp interceptor matcher * added some docblocks * added examples for path interception * fixed docs to use `paths` and as an array * chages for AoT future support in http.module * updated http-interceptor.service unit tests with AoT changes * added Type<IHttpInterceptor> type for interceptor providers in docs and unit tests * updated docs with AoT changes
- Loading branch information
1 parent
1d59af9
commit 7db377e
Showing
13 changed files
with
913 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.