@angular/core 11.2.13 → 11.2.14

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v11.2.13
2
+ * @license Angular v11.2.14
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -7722,11 +7722,25 @@
7722
7722
  var toCall = destroyHooks[i + 1];
7723
7723
  if (Array.isArray(toCall)) {
7724
7724
  for (var j = 0; j < toCall.length; j += 2) {
7725
- toCall[j + 1].call(context[toCall[j]]);
7725
+ var callContext = context[toCall[j]];
7726
+ var hook = toCall[j + 1];
7727
+ profiler(4 /* LifecycleHookStart */, callContext, hook);
7728
+ try {
7729
+ hook.call(callContext);
7730
+ }
7731
+ finally {
7732
+ profiler(5 /* LifecycleHookEnd */, callContext, hook);
7733
+ }
7726
7734
  }
7727
7735
  }
7728
7736
  else {
7729
- toCall.call(context);
7737
+ profiler(4 /* LifecycleHookStart */, context, toCall);
7738
+ try {
7739
+ toCall.call(context);
7740
+ }
7741
+ finally {
7742
+ profiler(5 /* LifecycleHookEnd */, context, toCall);
7743
+ }
7730
7744
  }
7731
7745
  }
7732
7746
  }
@@ -22009,7 +22023,7 @@
22009
22023
  /**
22010
22024
  * @publicApi
22011
22025
  */
22012
- var VERSION = new Version('11.2.13');
22026
+ var VERSION = new Version('11.2.14');
22013
22027
 
22014
22028
  /**
22015
22029
  * @license
@@ -27852,11 +27866,11 @@
27852
27866
  * NgModule the component belongs to. We keep the list of compiled components here so that the
27853
27867
  * TestBed can reset it later.
27854
27868
  */
27855
- var ownerNgModule = new Map();
27856
- var verifiedNgModule = new Map();
27869
+ var ownerNgModule = new WeakMap();
27870
+ var verifiedNgModule = new WeakMap();
27857
27871
  function resetCompiledComponents() {
27858
- ownerNgModule = new Map();
27859
- verifiedNgModule = new Map();
27872
+ ownerNgModule = new WeakMap();
27873
+ verifiedNgModule = new WeakMap();
27860
27874
  moduleQueue.length = 0;
27861
27875
  }
27862
27876
  /**
@@ -33982,6 +33996,7 @@
33982
33996
  exports.ɵRender3ComponentFactory = ComponentFactory$1;
33983
33997
  exports.ɵRender3ComponentRef = ComponentRef$1;
33984
33998
  exports.ɵRender3NgModuleRef = NgModuleRef$1;
33999
+ exports.ɵRuntimeError = RuntimeError;
33985
34000
  exports.ɵSWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__ = SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__;
33986
34001
  exports.ɵSWITCH_COMPILE_COMPONENT__POST_R3__ = SWITCH_COMPILE_COMPONENT__POST_R3__;
33987
34002
  exports.ɵSWITCH_COMPILE_DIRECTIVE__POST_R3__ = SWITCH_COMPILE_DIRECTIVE__POST_R3__;