angular-three 1.9.6 → 1.9.8
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.
|
@@ -2779,22 +2779,27 @@ function createRunInContext() {
|
|
|
2779
2779
|
let tryFromNodeInjector = false;
|
|
2780
2780
|
envInjector.get = (...args) => {
|
|
2781
2781
|
try {
|
|
2782
|
+
const originalFlags = args[2];
|
|
2783
|
+
if (originalFlags === 0) {
|
|
2784
|
+
args[2] = 8;
|
|
2785
|
+
}
|
|
2786
|
+
const fromEnvInjector = originalGet(...args);
|
|
2787
|
+
if (fromEnvInjector)
|
|
2788
|
+
return fromEnvInjector;
|
|
2789
|
+
if (fromEnvInjector === null && ((args[1] !== undefined && args[1] === null) || originalFlags === 0))
|
|
2790
|
+
return fromEnvInjector;
|
|
2791
|
+
args[2] = originalFlags;
|
|
2782
2792
|
if (!tryFromNodeInjector) {
|
|
2783
2793
|
tryFromNodeInjector = true;
|
|
2784
2794
|
const fromNodeInjector = nodeInjector.get(...args);
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
return fromNodeInjector;
|
|
2788
|
-
}
|
|
2795
|
+
tryFromNodeInjector = false;
|
|
2796
|
+
return fromNodeInjector;
|
|
2789
2797
|
}
|
|
2790
|
-
return
|
|
2798
|
+
return null;
|
|
2791
2799
|
}
|
|
2792
2800
|
catch (e) {
|
|
2793
2801
|
return originalGet(...args);
|
|
2794
2802
|
}
|
|
2795
|
-
finally {
|
|
2796
|
-
tryFromNodeInjector = false;
|
|
2797
|
-
}
|
|
2798
2803
|
};
|
|
2799
2804
|
return envInjector.runInContext(cb);
|
|
2800
2805
|
};
|