moost 0.5.6 → 0.5.7
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 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -116,8 +116,8 @@ function getNewMoostInfact() {
|
|
|
116
116
|
case 'new-instance': {
|
|
117
117
|
const scope = getMoostMate().read(targetClass)?.injectable || 'SINGLETON';
|
|
118
118
|
if (loggingOptions.newInstance === false ||
|
|
119
|
-
loggingOptions.newInstance === scope ||
|
|
120
|
-
|
|
119
|
+
!(loggingOptions.newInstance === scope ||
|
|
120
|
+
(loggingOptions.newInstance === 'SINGLETON' && scope === true))) {
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
123
|
break;
|
package/dist/index.mjs
CHANGED
|
@@ -118,8 +118,8 @@ function getNewMoostInfact() {
|
|
|
118
118
|
case 'new-instance': {
|
|
119
119
|
const scope = getMoostMate().read(targetClass)?.injectable || 'SINGLETON';
|
|
120
120
|
if (loggingOptions.newInstance === false ||
|
|
121
|
-
loggingOptions.newInstance === scope ||
|
|
122
|
-
|
|
121
|
+
!(loggingOptions.newInstance === scope ||
|
|
122
|
+
(loggingOptions.newInstance === 'SINGLETON' && scope === true))) {
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
125
|
break;
|