From 7756a3b740668254d502ce8c274dc32ed5695bef Mon Sep 17 00:00:00 2001 From: adrien2p Date: Sun, 23 Jan 2022 13:16:42 +0100 Subject: [PATCH] Feat() log should not mention craftshop --- docs/README.md | 21 +++++++++++++ docs/classes/medusa.Medusa.md | 22 +++++++------- ...nt_emitter.Internals.MedusaEventEmitter.md | 14 ++++----- docs/classes/medusa_loader.MedusaLoader.md | 8 ++--- ...e_repository.MedusaMiddlewareRepository.md | 6 ++-- docs/classes/medusa_utils.Utils.md | 12 ++++---- docs/interfaces/types.MedusaEntityStatic.md | 6 ++-- .../types.MedusaEntitySubscriberStatic.md | 2 +- .../types.MedusaMiddlewareInstance.md | 2 +- .../types.MedusaMiddlewareStatic.md | 8 ++--- .../types.MedusaRepositoryStatic.md | 6 ++-- docs/interfaces/types.MedusaServiceStatic.md | 10 +++---- docs/interfaces/types.Type.md | 2 +- docs/modules/index.md | 2 +- docs/modules/loaders_api_loader.md | 2 +- docs/modules/loaders_database_loader.md | 2 +- docs/modules/loaders_entities_loader.md | 4 +-- docs/modules/loaders_middlewares_loader.md | 2 +- docs/modules/loaders_repository_loader.md | 4 +-- docs/modules/loaders_routes_loader.md | 4 +-- docs/modules/loaders_services_loader.md | 4 +-- docs/modules/medusa.Internals.md | 4 +-- .../modules/medusa_event_emitter.Internals.md | 4 +-- docs/modules/medusa_event_emitter.md | 2 +- docs/modules/medusa_loader.Internals.md | 2 +- docs/modules/medusa_middleware_repository.md | 2 +- docs/modules/medusa_scanner.Internals.md | 2 +- docs/modules/medusa_scanner.md | 2 +- docs/modules/types.md | 30 +++++++++---------- src/loaders/services.loader.ts | 2 +- src/medusa-utils.ts | 2 +- 31 files changed, 108 insertions(+), 87 deletions(-) diff --git a/docs/README.md b/docs/README.md index 94d87d3e..1a4f85cf 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,5 +1,26 @@ medusa-extender / [Exports](modules.md) + +
+

+ Medusa +

+

Extend medusa to fit your needs

+ + + Awesome + + npm version +
+ +# Getting started + +Installation + +```bash +npm i medusa-extender +``` + # Introduction This packages exports the necessary bits and pieces to extend [medusajs](https://github.com/medusajs/medusa) diff --git a/docs/classes/medusa.Medusa.md b/docs/classes/medusa.Medusa.md index a1ff8d44..b3898822 100644 --- a/docs/classes/medusa.Medusa.md +++ b/docs/classes/medusa.Medusa.md @@ -43,7 +43,7 @@ Register steps that must be executed before/after medusa is load. #### Defined in -[medusa.ts:30](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa.ts#L30) +[medusa.ts:30](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L30) ## Properties @@ -53,7 +53,7 @@ Register steps that must be executed before/after medusa is load. #### Defined in -[medusa.ts:24](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa.ts#L24) +[medusa.ts:24](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L24) ___ @@ -63,7 +63,7 @@ ___ #### Defined in -[medusa.ts:23](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa.ts#L23) +[medusa.ts:23](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L23) ___ @@ -73,7 +73,7 @@ ___ #### Defined in -[medusa.ts:20](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa.ts#L20) +[medusa.ts:20](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L20) ___ @@ -83,7 +83,7 @@ ___ #### Defined in -[medusa.ts:21](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa.ts#L21) +[medusa.ts:21](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L21) ___ @@ -93,7 +93,7 @@ ___ #### Defined in -[medusa.ts:22](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa.ts#L22) +[medusa.ts:22](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L22) ## Methods @@ -115,7 +115,7 @@ Register middlewares to be apply before/after auth middleware. #### Defined in -[medusa.ts:39](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa.ts#L39) +[medusa.ts:39](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L39) ___ @@ -131,7 +131,7 @@ Launch all the steps before/after medusa according to the `stepOptions`. #### Defined in -[medusa.ts:76](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa.ts#L76) +[medusa.ts:76](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L76) ___ @@ -153,7 +153,7 @@ Register a step that must be executed after medusa is loaded. #### Defined in -[medusa.ts:67](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa.ts#L67) +[medusa.ts:67](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L67) ___ @@ -175,7 +175,7 @@ Register a step that must be executed before medusa is loaded. #### Defined in -[medusa.ts:57](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa.ts#L57) +[medusa.ts:57](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L57) ___ @@ -197,4 +197,4 @@ Promise #### Defined in -[medusa.ts:99](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa.ts#L99) +[medusa.ts:99](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa.ts#L99) diff --git a/docs/classes/medusa_event_emitter.Internals.MedusaEventEmitter.md b/docs/classes/medusa_event_emitter.Internals.MedusaEventEmitter.md index e3952104..42ff4e66 100644 --- a/docs/classes/medusa_event_emitter.Internals.MedusaEventEmitter.md +++ b/docs/classes/medusa_event_emitter.Internals.MedusaEventEmitter.md @@ -41,7 +41,7 @@ EventEmitter.constructor #### Defined in -[medusa-event-emitter.ts:20](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-event-emitter.ts#L20) +[medusa-event-emitter.ts:20](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L20) ## Properties @@ -51,7 +51,7 @@ EventEmitter.constructor #### Defined in -[medusa-event-emitter.ts:18](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-event-emitter.ts#L18) +[medusa-event-emitter.ts:18](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L18) ## Methods @@ -74,7 +74,7 @@ Emit an asynchrone event entity based and wait for the result. #### Defined in -[medusa-event-emitter.ts:71](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-event-emitter.ts#L71) +[medusa-event-emitter.ts:69](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L69) ___ @@ -96,7 +96,7 @@ Register a new event handler. | :------ | :------ | :------ | | `eventName` | `string` \| `symbol` | The name of the event that has to be triggered | | `propertyName` | `string` | The name of the class property that will handle the event | -| `metatype` | [`Metatype`](../modules/types.md#metatype)<`T`\> | The object that contains the property above | +| `metatype` | [`MedusaServiceStatic`](../interfaces/types.MedusaServiceStatic.md)<`T`\> | The object that contains the property above | #### Returns @@ -104,7 +104,7 @@ Register a new event handler. #### Defined in -[medusa-event-emitter.ts:30](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-event-emitter.ts#L30) +[medusa-event-emitter.ts:30](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L30) ___ @@ -126,7 +126,7 @@ Apply all event handlers hold by the `listenerDescriptor`. #### Defined in -[medusa-event-emitter.ts:42](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-event-emitter.ts#L42) +[medusa-event-emitter.ts:42](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L42) ___ @@ -140,4 +140,4 @@ ___ #### Defined in -[medusa-event-emitter.ts:59](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-event-emitter.ts#L59) +[medusa-event-emitter.ts:57](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L57) diff --git a/docs/classes/medusa_loader.MedusaLoader.md b/docs/classes/medusa_loader.MedusaLoader.md index 736cf9af..fbcc6687 100644 --- a/docs/classes/medusa_loader.MedusaLoader.md +++ b/docs/classes/medusa_loader.MedusaLoader.md @@ -46,7 +46,7 @@ internal container and database connection. #### Defined in -[medusa-loader.ts:68](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-loader.ts#L68) +[medusa-loader.ts:68](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-loader.ts#L68) ___ @@ -68,7 +68,7 @@ Register all listeners before the plugins are loaded to be sure that the scope m #### Defined in -[medusa-loader.ts:104](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-loader.ts#L104) +[medusa-loader.ts:104](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-loader.ts#L104) ___ @@ -89,7 +89,7 @@ ___ #### Defined in -[medusa-loader.ts:149](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-loader.ts#L149) +[medusa-loader.ts:149](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-loader.ts#L149) ___ @@ -110,4 +110,4 @@ ___ #### Defined in -[medusa-loader.ts:134](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-loader.ts#L134) +[medusa-loader.ts:134](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-loader.ts#L134) diff --git a/docs/classes/medusa_middleware_repository.MedusaMiddlewareRepository.md b/docs/classes/medusa_middleware_repository.MedusaMiddlewareRepository.md index 18efc142..bdb39d7c 100644 --- a/docs/classes/medusa_middleware_repository.MedusaMiddlewareRepository.md +++ b/docs/classes/medusa_middleware_repository.MedusaMiddlewareRepository.md @@ -51,7 +51,7 @@ Map< #### Defined in -[medusa-middleware.repository.ts:14](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-middleware.repository.ts#L14) +[medusa-middleware.repository.ts:14](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-middleware.repository.ts#L14) ## Methods @@ -73,7 +73,7 @@ Register a new middleware that must applied after auth. #### Defined in -[medusa-middleware.repository.ts:36](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-middleware.repository.ts#L36) +[medusa-middleware.repository.ts:36](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-middleware.repository.ts#L36) ___ @@ -95,4 +95,4 @@ Register a new middleware that must applied before auth. #### Defined in -[medusa-middleware.repository.ts:24](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-middleware.repository.ts#L24) +[medusa-middleware.repository.ts:24](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-middleware.repository.ts#L24) diff --git a/docs/classes/medusa_utils.Utils.md b/docs/classes/medusa_utils.Utils.md index b1f761de..2402168b 100644 --- a/docs/classes/medusa_utils.Utils.md +++ b/docs/classes/medusa_utils.Utils.md @@ -56,7 +56,7 @@ Attach a new subscriber to a specific entities. #### Defined in -[medusa-utils.ts:38](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-utils.ts#L38) +[medusa-utils.ts:38](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L38) ___ @@ -78,7 +78,7 @@ Log all the routes from the express instance. #### Defined in -[medusa-utils.ts:59](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-utils.ts#L59) +[medusa-utils.ts:59](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L59) ___ @@ -101,7 +101,7 @@ Prepare the log to be shown to be consistent everywhere. #### Defined in -[medusa-utils.ts:68](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-utils.ts#L68) +[medusa-utils.ts:68](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L68) ___ @@ -122,7 +122,7 @@ ___ #### Defined in -[medusa-utils.ts:81](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-utils.ts#L81) +[medusa-utils.ts:81](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L81) ___ @@ -153,7 +153,7 @@ Since it is not possible to use multiple extend, you can use that utilities to a #### Defined in -[medusa-utils.ts:17](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-utils.ts#L17) +[medusa-utils.ts:17](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L17) ___ @@ -173,4 +173,4 @@ ___ #### Defined in -[medusa-utils.ts:101](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-utils.ts#L101) +[medusa-utils.ts:101](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-utils.ts#L101) diff --git a/docs/interfaces/types.MedusaEntityStatic.md b/docs/interfaces/types.MedusaEntityStatic.md index 24dcf31e..5315f8fc 100644 --- a/docs/interfaces/types.MedusaEntityStatic.md +++ b/docs/interfaces/types.MedusaEntityStatic.md @@ -32,7 +32,7 @@ Describe a custom entity constructor. #### Defined in -[types.ts:148](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L148) +[types.ts:148](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L148) ## Properties @@ -42,7 +42,7 @@ Describe a custom entity constructor. #### Defined in -[types.ts:146](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L146) +[types.ts:146](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L146) ___ @@ -52,4 +52,4 @@ ___ #### Defined in -[types.ts:145](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L145) +[types.ts:145](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L145) diff --git a/docs/interfaces/types.MedusaEntitySubscriberStatic.md b/docs/interfaces/types.MedusaEntitySubscriberStatic.md index 8356ca90..afa50bc5 100644 --- a/docs/interfaces/types.MedusaEntitySubscriberStatic.md +++ b/docs/interfaces/types.MedusaEntitySubscriberStatic.md @@ -27,4 +27,4 @@ Describe a custom subscriber constructor. #### Defined in -[types.ts:195](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L195) +[types.ts:195](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L195) diff --git a/docs/interfaces/types.MedusaMiddlewareInstance.md b/docs/interfaces/types.MedusaMiddlewareInstance.md index 7d721442..17f80749 100644 --- a/docs/interfaces/types.MedusaMiddlewareInstance.md +++ b/docs/interfaces/types.MedusaMiddlewareInstance.md @@ -45,4 +45,4 @@ Describe a custom middleware instance. #### Defined in -[types.ts:81](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L81) +[types.ts:81](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L81) diff --git a/docs/interfaces/types.MedusaMiddlewareStatic.md b/docs/interfaces/types.MedusaMiddlewareStatic.md index 36ee4256..8f856817 100644 --- a/docs/interfaces/types.MedusaMiddlewareStatic.md +++ b/docs/interfaces/types.MedusaMiddlewareStatic.md @@ -27,7 +27,7 @@ Describe a custom middleware constructor. #### Defined in -[types.ts:95](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L95) +[types.ts:95](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L95) ## Properties @@ -37,7 +37,7 @@ Describe a custom middleware constructor. #### Defined in -[types.ts:92](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L92) +[types.ts:92](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L92) ___ @@ -47,7 +47,7 @@ ___ #### Defined in -[types.ts:91](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L91) +[types.ts:91](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L91) ___ @@ -57,4 +57,4 @@ ___ #### Defined in -[types.ts:93](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L93) +[types.ts:93](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L93) diff --git a/docs/interfaces/types.MedusaRepositoryStatic.md b/docs/interfaces/types.MedusaRepositoryStatic.md index 5dcf4dc7..b4266030 100644 --- a/docs/interfaces/types.MedusaRepositoryStatic.md +++ b/docs/interfaces/types.MedusaRepositoryStatic.md @@ -32,7 +32,7 @@ Describe a custom entity repository constructor. #### Defined in -[types.ts:173](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L173) +[types.ts:173](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L173) ## Properties @@ -42,7 +42,7 @@ Describe a custom entity repository constructor. #### Defined in -[types.ts:171](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L171) +[types.ts:171](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L171) ___ @@ -52,4 +52,4 @@ ___ #### Defined in -[types.ts:170](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L170) +[types.ts:170](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L170) diff --git a/docs/interfaces/types.MedusaServiceStatic.md b/docs/interfaces/types.MedusaServiceStatic.md index 81b4484f..b3494edc 100644 --- a/docs/interfaces/types.MedusaServiceStatic.md +++ b/docs/interfaces/types.MedusaServiceStatic.md @@ -40,7 +40,7 @@ Describe a custom service constructor. #### Defined in -[types.ts:123](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L123) +[types.ts:123](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L123) ## Properties @@ -50,7 +50,7 @@ Describe a custom service constructor. #### Defined in -[types.ts:115](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L115) +[types.ts:115](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L115) ___ @@ -60,7 +60,7 @@ ___ #### Defined in -[types.ts:114](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L114) +[types.ts:114](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L114) ___ @@ -72,7 +72,7 @@ Only required if there is no overriddenType #### Defined in -[types.ts:121](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L121) +[types.ts:121](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L121) ___ @@ -82,4 +82,4 @@ ___ #### Defined in -[types.ts:116](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L116) +[types.ts:116](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L116) diff --git a/docs/interfaces/types.Type.md b/docs/interfaces/types.Type.md index deb641f7..c9ff325e 100644 --- a/docs/interfaces/types.Type.md +++ b/docs/interfaces/types.Type.md @@ -40,4 +40,4 @@ Function.constructor #### Defined in -[types.ts:5](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L5) +[types.ts:5](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L5) diff --git a/docs/modules/index.md b/docs/modules/index.md index 44a6de3a..6329e22f 100644 --- a/docs/modules/index.md +++ b/docs/modules/index.md @@ -222,4 +222,4 @@ Re-exports [medusaEventEmitter](medusa_event_emitter.md#medusaeventemitter) #### Defined in -[index.ts:6](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/index.ts#L6) +[index.ts:6](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/index.ts#L6) diff --git a/docs/modules/loaders_api_loader.md b/docs/modules/loaders_api_loader.md index 1994964a..027df14e 100644 --- a/docs/modules/loaders_api_loader.md +++ b/docs/modules/loaders_api_loader.md @@ -29,4 +29,4 @@ Decorate the original api loader to apply our custom middleware first. #### Defined in -[loaders/api.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/loaders/api.loader.ts#L10) +[loaders/api.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/api.loader.ts#L10) diff --git a/docs/modules/loaders_database_loader.md b/docs/modules/loaders_database_loader.md index 55e24fd8..19d34cd1 100644 --- a/docs/modules/loaders_database_loader.md +++ b/docs/modules/loaders_database_loader.md @@ -30,4 +30,4 @@ decorate the original database loader to register our custom entities and reposi #### Defined in -[loaders/database.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/loaders/database.loader.ts#L11) +[loaders/database.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/database.loader.ts#L11) diff --git a/docs/modules/loaders_entities_loader.md b/docs/modules/loaders_entities_loader.md index 490ceb63..3261b8aa 100644 --- a/docs/modules/loaders_entities_loader.md +++ b/docs/modules/loaders_entities_loader.md @@ -28,7 +28,7 @@ #### Defined in -[loaders/entities.loader.ts:14](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/loaders/entities.loader.ts#L14) +[loaders/entities.loader.ts:14](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/entities.loader.ts#L14) ___ @@ -51,4 +51,4 @@ Load custom entities that must override the existing entities from the rootDir. #### Defined in -[loaders/entities.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/loaders/entities.loader.ts#L10) +[loaders/entities.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/entities.loader.ts#L10) diff --git a/docs/modules/loaders_middlewares_loader.md b/docs/modules/loaders_middlewares_loader.md index 121ae148..fe6608d3 100644 --- a/docs/modules/loaders_middlewares_loader.md +++ b/docs/modules/loaders_middlewares_loader.md @@ -30,4 +30,4 @@ Register custom middlewares into the middlewareRegistery. #### Defined in -[loaders/middlewares.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/loaders/middlewares.loader.ts#L13) +[loaders/middlewares.loader.ts:13](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/middlewares.loader.ts#L13) diff --git a/docs/modules/loaders_repository_loader.md b/docs/modules/loaders_repository_loader.md index aab7d33c..be784710 100644 --- a/docs/modules/loaders_repository_loader.md +++ b/docs/modules/loaders_repository_loader.md @@ -30,7 +30,7 @@ Load custom repositories that must override the existing repositories from the r #### Defined in -[loaders/repository.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/loaders/repository.loader.ts#L10) +[loaders/repository.loader.ts:10](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/repository.loader.ts#L10) ___ @@ -54,4 +54,4 @@ Load custom repositories that must be added to the existing container from the r #### Defined in -[loaders/repository.loader.ts:20](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/loaders/repository.loader.ts#L20) +[loaders/repository.loader.ts:20](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/repository.loader.ts#L20) diff --git a/docs/modules/loaders_routes_loader.md b/docs/modules/loaders_routes_loader.md index 4d15af2f..5fbc2ba3 100644 --- a/docs/modules/loaders_routes_loader.md +++ b/docs/modules/loaders_routes_loader.md @@ -28,7 +28,7 @@ #### Defined in -[loaders/routes.loader.ts:4](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/loaders/routes.loader.ts#L4) +[loaders/routes.loader.ts:4](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/routes.loader.ts#L4) ___ @@ -49,4 +49,4 @@ ___ #### Defined in -[loaders/routes.loader.ts:14](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/loaders/routes.loader.ts#L14) +[loaders/routes.loader.ts:14](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/routes.loader.ts#L14) diff --git a/docs/modules/loaders_services_loader.md b/docs/modules/loaders_services_loader.md index d2fe9e70..c10ee138 100644 --- a/docs/modules/loaders_services_loader.md +++ b/docs/modules/loaders_services_loader.md @@ -22,7 +22,7 @@ Load custom services from the rootDir. | Name | Type | Description | | :------ | :------ | :------ | | `services` | [`MedusaServiceStatic`](../interfaces/types.MedusaServiceStatic.md)<`unknown`\>[] | Any custom service that implements MedusaService | -| `container` | `AwilixContainer`<`any`\> | The container to register the custom service under craftshop or override existing one | +| `container` | `AwilixContainer`<`any`\> | The container to register the custom service under custom-medusa-extender or override existing one | #### Returns @@ -30,4 +30,4 @@ Load custom services from the rootDir. #### Defined in -[loaders/services.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/loaders/services.loader.ts#L11) +[loaders/services.loader.ts:11](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/loaders/services.loader.ts#L11) diff --git a/docs/modules/medusa.Internals.md b/docs/modules/medusa.Internals.md index ae6d6e0c..8f86ed6f 100644 --- a/docs/modules/medusa.Internals.md +++ b/docs/modules/medusa.Internals.md @@ -35,7 +35,7 @@ Step type of type function that take in express instance and return Promise | +| `metatype` | [`MedusaServiceStatic`](../interfaces/types.MedusaServiceStatic.md)<`T`\> | | `propertyName` | `string` | #### Defined in -[medusa-event-emitter.ts:8](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-event-emitter.ts#L8) +[medusa-event-emitter.ts:8](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L8) diff --git a/docs/modules/medusa_event_emitter.md b/docs/modules/medusa_event_emitter.md index 11029e25..8341ecc4 100644 --- a/docs/modules/medusa_event_emitter.md +++ b/docs/modules/medusa_event_emitter.md @@ -23,4 +23,4 @@ Export the instance of the event emmiter. #### Defined in -[medusa-event-emitter.ts:93](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-event-emitter.ts#L93) +[medusa-event-emitter.ts:91](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-event-emitter.ts#L91) diff --git a/docs/modules/medusa_loader.Internals.md b/docs/modules/medusa_loader.Internals.md index 174fac11..3e00a815 100644 --- a/docs/modules/medusa_loader.Internals.md +++ b/docs/modules/medusa_loader.Internals.md @@ -29,4 +29,4 @@ Return type used for [startMedusaEngine](../classes/medusa_loader.MedusaLoader.m #### Defined in -[medusa-loader.ts:36](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-loader.ts#L36) +[medusa-loader.ts:36](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-loader.ts#L36) diff --git a/docs/modules/medusa_middleware_repository.md b/docs/modules/medusa_middleware_repository.md index 40b629e4..d7cbdcc2 100644 --- a/docs/modules/medusa_middleware_repository.md +++ b/docs/modules/medusa_middleware_repository.md @@ -23,4 +23,4 @@ Export the instance of [MedusaMiddlewareRepository](../classes/medusa_middleware #### Defined in -[medusa-middleware.repository.ts:49](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-middleware.repository.ts#L49) +[medusa-middleware.repository.ts:49](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-middleware.repository.ts#L49) diff --git a/docs/modules/medusa_scanner.Internals.md b/docs/modules/medusa_scanner.Internals.md index d33a8565..5419160a 100644 --- a/docs/modules/medusa_scanner.Internals.md +++ b/docs/modules/medusa_scanner.Internals.md @@ -24,4 +24,4 @@ #### Defined in -[medusa-scanner.ts:4](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-scanner.ts#L4) +[medusa-scanner.ts:4](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-scanner.ts#L4) diff --git a/docs/modules/medusa_scanner.md b/docs/modules/medusa_scanner.md index 45a50b78..41736a7c 100644 --- a/docs/modules/medusa_scanner.md +++ b/docs/modules/medusa_scanner.md @@ -43,4 +43,4 @@ member from this file. #### Defined in -[medusa-scanner.ts:15](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/medusa-scanner.ts#L15) +[medusa-scanner.ts:15](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/medusa-scanner.ts#L15) diff --git a/docs/modules/types.md b/docs/modules/types.md index 22523aca..a98ccea2 100644 --- a/docs/modules/types.md +++ b/docs/modules/types.md @@ -63,7 +63,7 @@ #### Defined in -[types.ts:8](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L8) +[types.ts:8](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L8) ___ @@ -75,7 +75,7 @@ Describe the expected request from a middleware [MedusaMiddleware](types.md#medu #### Defined in -[types.ts:60](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L60) +[types.ts:60](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L60) ___ @@ -94,7 +94,7 @@ Any custom medusa entity must implement MedusaService. #### Defined in -[types.ts:154](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L154) +[types.ts:154](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L154) ___ @@ -112,7 +112,7 @@ Any custom medusa subscriber must implement MedusaEntitySubscriber. #### Defined in -[types.ts:201](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L201) +[types.ts:201](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L201) ___ @@ -130,7 +130,7 @@ Any custom medusa middleware must implement MedusaMiddleware. #### Defined in -[types.ts:101](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L101) +[types.ts:101](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L101) ___ @@ -149,7 +149,7 @@ Any custom medusa entity repository must implement MedusaService. #### Defined in -[types.ts:179](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L179) +[types.ts:179](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L179) ___ @@ -168,7 +168,7 @@ Medusa request extended. #### Defined in -[types.ts:53](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L53) +[types.ts:53](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L53) ___ @@ -189,7 +189,7 @@ Describe a custom router handler. #### Defined in -[types.ts:215](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L215) +[types.ts:215](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L215) ___ @@ -199,7 +199,7 @@ ___ #### Defined in -[types.ts:67](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L67) +[types.ts:67](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L67) ___ @@ -218,7 +218,7 @@ Describe all the available options for the Route [MedusaMiddleware](types.md#med #### Defined in -[types.ts:71](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L71) +[types.ts:71](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L71) ___ @@ -237,7 +237,7 @@ Any custom medusa service must implement MedusaService. #### Defined in -[types.ts:129](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L129) +[types.ts:129](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L129) ___ @@ -253,7 +253,7 @@ ___ #### Defined in -[types.ts:11](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L11) +[types.ts:11](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L11) ___ @@ -269,7 +269,7 @@ ___ #### Defined in -[types.ts:13](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L13) +[types.ts:13](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L13) ## Variables @@ -288,7 +288,7 @@ Event types that can be emitted from an entity subscriber. #### Defined in -[types.ts:207](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L207) +[types.ts:207](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L207) ___ @@ -334,4 +334,4 @@ Hold the name of the medusa services registered into the container for later on #### Defined in -[types.ts:18](https://github.com/adrien2p/medusa-extender/blob/2b98a6d/src/types.ts#L18) +[types.ts:18](https://github.com/adrien2p/medusa-extender/blob/7afa3be/src/types.ts#L18) diff --git a/src/loaders/services.loader.ts b/src/loaders/services.loader.ts index f25252ad..2f7709a9 100644 --- a/src/loaders/services.loader.ts +++ b/src/loaders/services.loader.ts @@ -6,7 +6,7 @@ import { Utils } from '../medusa-utils'; * @internal * Load custom services from the rootDir. * @param services Any custom service that implements MedusaService - * @param container The container to register the custom service under craftshop or override existing one + * @param container The container to register the custom service under custom-medusa-extender or override existing one */ export function servicesLoader(services: MedusaServiceStatic[], container: AwilixContainer): void { for (const service of services) { diff --git a/src/medusa-utils.ts b/src/medusa-utils.ts index 9a6f516c..35a75c79 100644 --- a/src/medusa-utils.ts +++ b/src/medusa-utils.ts @@ -67,7 +67,7 @@ export class Utils { */ static prepareLog(context: string, description: string): string { const date = new Date().toLocaleString('en-US', { hour12: true }); - return `${chalk.blue(`[Craftshop] -`)} ${date} ${chalk.yellow(`[${context}]`)} ${chalk.blue( + return `${chalk.blue(`[Server] -`)} ${date} ${chalk.yellow(`[${context}]`)} ${chalk.blue( description )}`; }