moost 0.3.32 → 0.3.33
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 +4 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -824,6 +824,10 @@ class Moost {
|
|
|
824
824
|
this.provide = { ...this.provide, ...provide };
|
|
825
825
|
return this;
|
|
826
826
|
}
|
|
827
|
+
setReplaceRegistry(replace) {
|
|
828
|
+
this.replace = { ...this.replace, ...replace };
|
|
829
|
+
return this;
|
|
830
|
+
}
|
|
827
831
|
registerControllers(...controllers) {
|
|
828
832
|
this.unregisteredControllers.push(...controllers);
|
|
829
833
|
return this;
|
package/dist/index.d.ts
CHANGED
|
@@ -480,11 +480,17 @@ declare class Moost {
|
|
|
480
480
|
getGlobalInterceptorHandler(): Promise<InterceptorHandler>;
|
|
481
481
|
applyGlobalInterceptors(...items: Array<TInterceptorData['handler'] | TInterceptorData>): this;
|
|
482
482
|
/**
|
|
483
|
-
* Register new
|
|
483
|
+
* Register new entries to provide as dependency injections
|
|
484
484
|
* @param provide - Provide Registry (use createProvideRegistry from '\@prostojs/infact')
|
|
485
485
|
* @returns
|
|
486
486
|
*/
|
|
487
487
|
setProvideRegistry(provide: TProvideRegistry): this;
|
|
488
|
+
/**
|
|
489
|
+
* Register replace classes to provide as dependency injections
|
|
490
|
+
* @param replace - Replace Registry (use createReplaceRegistry from '\@prostojs/infact')
|
|
491
|
+
* @returns
|
|
492
|
+
*/
|
|
493
|
+
setReplaceRegistry(replace: TReplaceRegistry): this;
|
|
488
494
|
/**
|
|
489
495
|
* Register controllers (similar to @ImportController decorator)
|
|
490
496
|
* @param controllers - list of target controllers (instances)
|
package/dist/index.mjs
CHANGED
|
@@ -825,6 +825,10 @@ class Moost {
|
|
|
825
825
|
this.provide = { ...this.provide, ...provide };
|
|
826
826
|
return this;
|
|
827
827
|
}
|
|
828
|
+
setReplaceRegistry(replace) {
|
|
829
|
+
this.replace = { ...this.replace, ...replace };
|
|
830
|
+
return this;
|
|
831
|
+
}
|
|
828
832
|
registerControllers(...controllers) {
|
|
829
833
|
this.unregisteredControllers.push(...controllers);
|
|
830
834
|
return this;
|