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