moost 0.3.34 → 0.3.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -696,6 +696,7 @@ class Moost {
|
|
|
696
696
|
const meta = getMoostMate();
|
|
697
697
|
const thisMeta = meta.read(this);
|
|
698
698
|
const provide = { ...thisMeta?.provide, ...this.provide };
|
|
699
|
+
const replace = { ...thisMeta?.replace, ...this.replace };
|
|
699
700
|
for (const _controller of this.unregisteredControllers) {
|
|
700
701
|
let newPrefix;
|
|
701
702
|
let controller = _controller;
|
|
@@ -703,7 +704,7 @@ class Moost {
|
|
|
703
704
|
newPrefix = _controller[0];
|
|
704
705
|
controller = _controller[1];
|
|
705
706
|
}
|
|
706
|
-
await this.bindController(controller, provide,
|
|
707
|
+
await this.bindController(controller, provide, replace, this.options?.globalPrefix || '', newPrefix);
|
|
707
708
|
}
|
|
708
709
|
this.unregisteredControllers = [];
|
|
709
710
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -697,6 +697,7 @@ class Moost {
|
|
|
697
697
|
const meta = getMoostMate();
|
|
698
698
|
const thisMeta = meta.read(this);
|
|
699
699
|
const provide = { ...thisMeta?.provide, ...this.provide };
|
|
700
|
+
const replace = { ...thisMeta?.replace, ...this.replace };
|
|
700
701
|
for (const _controller of this.unregisteredControllers) {
|
|
701
702
|
let newPrefix;
|
|
702
703
|
let controller = _controller;
|
|
@@ -704,7 +705,7 @@ class Moost {
|
|
|
704
705
|
newPrefix = _controller[0];
|
|
705
706
|
controller = _controller[1];
|
|
706
707
|
}
|
|
707
|
-
await this.bindController(controller, provide,
|
|
708
|
+
await this.bindController(controller, provide, replace, this.options?.globalPrefix || '', newPrefix);
|
|
708
709
|
}
|
|
709
710
|
this.unregisteredControllers = [];
|
|
710
711
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moost",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.35",
|
|
4
4
|
"description": "moost",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"prostojs"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@prostojs/infact": "^0.2.
|
|
34
|
+
"@prostojs/infact": "^0.2.1",
|
|
35
35
|
"@prostojs/mate": "^0.3.2",
|
|
36
36
|
"@prostojs/logger": "^0.4.0",
|
|
37
37
|
"@wooksjs/event-core": "^0.4.34",
|