@angular/core 10.0.1 → 10.0.5
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/bundles/core-testing.umd.js +320 -271
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +11 -25
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +834 -1043
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +132 -286
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +193 -183
- package/core.metadata.json +1 -1
- package/esm2015/core.js +11 -10
- package/esm2015/src/application_init.js +9 -5
- package/esm2015/src/application_tokens.js +16 -12
- package/esm2015/src/change_detection/change_detector_ref.js +6 -3
- package/esm2015/src/change_detection/constants.js +3 -1
- package/esm2015/src/core_render3_private_export.js +2 -2
- package/esm2015/src/di/injectable.js +1 -1
- package/esm2015/src/di/metadata.js +2 -2
- package/esm2015/src/interface/type.js +2 -2
- package/esm2015/src/linker/ng_module_factory.js +3 -5
- package/esm2015/src/linker/view_ref.js +3 -6
- package/esm2015/src/metadata/directives.js +1 -1
- package/esm2015/src/metadata/ng_module.js +1 -1
- package/esm2015/src/render3/definition.js +3 -11
- package/esm2015/src/render3/di.js +13 -5
- package/esm2015/src/render3/di_setup.js +5 -5
- package/esm2015/src/render3/features/inherit_definition_feature.js +1 -11
- package/esm2015/src/render3/features/ng_onchanges_feature.js +32 -22
- package/esm2015/src/render3/hooks.js +27 -23
- package/esm2015/src/render3/i18n.js +3 -3
- package/esm2015/src/render3/index.js +3 -3
- package/esm2015/src/render3/instructions/element.js +4 -4
- package/esm2015/src/render3/instructions/host_property.js +3 -3
- package/esm2015/src/render3/instructions/listener.js +3 -3
- package/esm2015/src/render3/instructions/shared.js +15 -26
- package/esm2015/src/render3/interfaces/definition.js +1 -1
- package/esm2015/src/render3/interfaces/node.js +1 -1
- package/esm2015/src/render3/jit/environment.js +3 -3
- package/esm2015/src/render3/util/discovery_utils.js +2 -2
- package/esm2015/src/render3/view_ref.js +3 -3
- package/esm2015/src/sanitization/html_sanitizer.js +3 -3
- package/esm2015/src/sanitization/inert_body.js +39 -82
- package/esm2015/src/util/ng_dev_mode.js +2 -2
- package/esm2015/src/version.js +1 -1
- package/esm2015/testing/src/fake_async_fallback.js +5 -1
- package/fesm2015/core.js +266 -309
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +5 -1
- package/fesm2015/testing.js.map +1 -1
- package/package.json +1 -1
- package/src/r3_symbols.d.ts +15 -17
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
- package/esm2015/src/util/WrappedValue.js +0 -48
package/fesm2015/testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v10.0.
|
|
2
|
+
* @license Angular v10.0.5
|
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -365,6 +365,9 @@ let _fakeAsyncTestZoneSpec = null;
|
|
|
365
365
|
* @publicApi
|
|
366
366
|
*/
|
|
367
367
|
function resetFakeAsyncZoneFallback() {
|
|
368
|
+
if (_fakeAsyncTestZoneSpec) {
|
|
369
|
+
_fakeAsyncTestZoneSpec.unlockDatePatch();
|
|
370
|
+
}
|
|
368
371
|
_fakeAsyncTestZoneSpec = null;
|
|
369
372
|
// in node.js testing we may not have ProxyZoneSpec in which case there is nothing to reset.
|
|
370
373
|
ProxyZoneSpec && ProxyZoneSpec.assertPresent().resetDelegate();
|
|
@@ -407,6 +410,7 @@ function fakeAsyncFallback(fn) {
|
|
|
407
410
|
let res;
|
|
408
411
|
const lastProxyZoneSpec = proxyZoneSpec.getDelegate();
|
|
409
412
|
proxyZoneSpec.setDelegate(_fakeAsyncTestZoneSpec);
|
|
413
|
+
_fakeAsyncTestZoneSpec.lockDatePatch();
|
|
410
414
|
try {
|
|
411
415
|
res = fn.apply(this, args);
|
|
412
416
|
flushMicrotasksFallback();
|