moost 0.2.11 → 0.2.12
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
|
@@ -751,11 +751,12 @@ class Moost {
|
|
|
751
751
|
}
|
|
752
752
|
// getInstance - instance factory for resolving SINGLETON and FOR_EVENT instance
|
|
753
753
|
const getInstance = instance ? () => Promise.resolve(instance) : () => __awaiter(this, void 0, void 0, function* () {
|
|
754
|
+
var _c;
|
|
754
755
|
// if (!instance) {
|
|
755
756
|
infact.silent();
|
|
756
757
|
const { restoreCtx } = eventCore.useEventContext();
|
|
757
758
|
const instance = yield infact.get(controller, Object.assign(Object.assign({}, infactOpts), { syncContextFn: restoreCtx }));
|
|
758
|
-
infact.silent(
|
|
759
|
+
infact.silent(!!((_c = this.options) === null || _c === void 0 ? void 0 : _c.silent));
|
|
759
760
|
// }
|
|
760
761
|
return instance;
|
|
761
762
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -749,11 +749,12 @@ class Moost {
|
|
|
749
749
|
}
|
|
750
750
|
// getInstance - instance factory for resolving SINGLETON and FOR_EVENT instance
|
|
751
751
|
const getInstance = instance ? () => Promise.resolve(instance) : () => __awaiter(this, void 0, void 0, function* () {
|
|
752
|
+
var _c;
|
|
752
753
|
// if (!instance) {
|
|
753
754
|
infact.silent();
|
|
754
755
|
const { restoreCtx } = useEventContext();
|
|
755
756
|
const instance = yield infact.get(controller, Object.assign(Object.assign({}, infactOpts), { syncContextFn: restoreCtx }));
|
|
756
|
-
infact.silent(
|
|
757
|
+
infact.silent(!!((_c = this.options) === null || _c === void 0 ? void 0 : _c.silent));
|
|
757
758
|
// }
|
|
758
759
|
return instance;
|
|
759
760
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moost",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "moost",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"prostojs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@prostojs/infact": "^0.1.
|
|
25
|
+
"@prostojs/infact": "^0.1.4",
|
|
26
26
|
"@prostojs/mate": "^0.1.12",
|
|
27
27
|
"@prostojs/valido": "^0.0.2",
|
|
28
28
|
"@wooksjs/event-core": "^0.2.6",
|