Skip to content

Commit

Permalink
Feat() log should not mention craftshop
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jan 23, 2022
1 parent 7afa3be commit 7756a3b
Show file tree
Hide file tree
Showing 31 changed files with 108 additions and 87 deletions.
21 changes: 21 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
medusa-extender / [Exports](modules.md)

<!--lint disable awesome-list-item-->
<div align="center">
<p align="center">
<img alt="Medusa" src="https://user-images.githubusercontent.com/7554214/129161578-19b83dc8-fac5-4520-bd48-53cba676edd2.png" width="200" />
</p>
<h1>Extend medusa to fit your needs</h1>

<a href="https://github.com/adrien2p/awesome-medusajs">
<img src="https://awesome.re/badge.svg" alt="Awesome">
</a>
<a href="https://badge.fury.io/js/medusa-extender"><img src="https://badge.fury.io/js/medusa-extender.svg" alt="npm version" height="18"></a>
</div>

# 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)
Expand Down
22 changes: 11 additions & 11 deletions docs/classes/medusa.Medusa.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -197,4 +197,4 @@ Promise<void>

#### 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)
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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)

___

Expand All @@ -96,15 +96,15 @@ 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

`void`

#### 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)

___

Expand All @@ -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)

___

Expand All @@ -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)
8 changes: 4 additions & 4 deletions docs/classes/medusa_loader.MedusaLoader.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Map&lt;

#### 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

Expand All @@ -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)

___

Expand All @@ -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)
12 changes: 6 additions & 6 deletions docs/classes/medusa_utils.Utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand Down Expand Up @@ -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)

___

Expand All @@ -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)
6 changes: 3 additions & 3 deletions docs/interfaces/types.MedusaEntityStatic.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)

___

Expand All @@ -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)
2 changes: 1 addition & 1 deletion docs/interfaces/types.MedusaEntitySubscriberStatic.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion docs/interfaces/types.MedusaMiddlewareInstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
8 changes: 4 additions & 4 deletions docs/interfaces/types.MedusaMiddlewareStatic.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)
6 changes: 3 additions & 3 deletions docs/interfaces/types.MedusaRepositoryStatic.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)

___

Expand All @@ -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)
Loading

0 comments on commit 7756a3b

Please sign in to comment.