@angular/core 8.2.0 → 8.2.4
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 +94 -1
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +3 -2
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +427 -60
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +136 -156
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +18 -8
- package/core.metadata.json +1 -1
- package/esm2015/core.externs.js +4 -4
- package/esm2015/index.js +1 -1
- package/esm2015/public_api.js +1 -1
- package/esm2015/src/application_module.js +11 -2
- package/esm2015/src/application_ref.js +9 -5
- package/esm2015/src/core.js +3 -3
- package/esm2015/src/core_private_export.js +2 -1
- package/esm2015/src/core_render3_private_export.js +2 -2
- package/esm2015/src/event_emitter.js +9 -4
- package/esm2015/src/i18n/localization.js +6 -1
- package/esm2015/src/metadata/directives.js +1 -1
- package/esm2015/src/render3/i18n.js +6 -5
- package/esm2015/src/render3/index.js +2 -2
- package/esm2015/src/version.js +1 -1
- package/esm5/src/application_module.js +11 -2
- package/esm5/src/application_ref.js +8 -4
- package/esm5/src/core_private_export.js +2 -1
- package/esm5/src/core_render3_private_export.js +2 -2
- package/esm5/src/event_emitter.js +9 -4
- package/esm5/src/i18n/localization.js +5 -1
- package/esm5/src/metadata/directives.js +1 -1
- package/esm5/src/render3/i18n.js +6 -4
- package/esm5/src/render3/index.js +2 -2
- package/esm5/src/version.js +1 -1
- package/fesm2015/core.js +7363 -69
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +593 -2
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/core.js +327 -58
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +15 -2
- package/fesm5/testing.js.map +1 -1
- package/package.json +1 -1
- package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.js +5 -5
- package/src/r3_symbols.d.ts +1 -1
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
- package/schematics/migrations/injectable-pipe/angular/injectable_pipe_visitor.d.ts +0 -30
- package/schematics/migrations/injectable-pipe/angular/injectable_pipe_visitor.js +0 -68
- package/schematics/migrations/injectable-pipe/index.d.ts +0 -14
- package/schematics/migrations/injectable-pipe/index.js +0 -85
- package/schematics/migrations/injectable-pipe/util.d.ts +0 -19
- package/schematics/migrations/injectable-pipe/util.js +0 -44
package/fesm5/testing.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v8.2.
|
|
2
|
+
* @license Angular v8.2.4
|
|
3
3
|
* (c) 2010-2019 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { getDebugNode, RendererFactory2, InjectionToken, ɵstringify, ɵReflectionCapabilities, Directive, Component, Pipe, NgModule, ɵgetInjectableDef, ɵNG_COMPONENT_DEF, ɵRender3NgModuleRef, LOCALE_ID, ɵDEFAULT_LOCALE_ID, ɵsetLocaleId, ApplicationInitStatus, ɵRender3ComponentFactory, ɵcompileComponent, ɵNG_DIRECTIVE_DEF, ɵcompileDirective, ɵNG_PIPE_DEF, ɵcompilePipe, ɵtransitiveScopesFor, ɵpatchComponentDefWithScope, ɵNG_INJECTOR_DEF, ɵNG_MODULE_DEF, ɵcompileNgModuleDefs, NgZone, Compiler, COMPILER_OPTIONS, ɵNgModuleFactory, ModuleWithComponentFactories, Injector, InjectFlags, ɵresetCompiledComponents, ɵflushModuleScopingQueueAsMuchAsPossible, Injectable, ɵclearOverrides, ɵoverrideComponentView, ɵAPP_ROOT, Optional, SkipSelf, ɵoverrideProvider, ɵivyEnabled } from '@angular/core';
|
|
8
8
|
import { __read, __extends, __spread, __awaiter, __generator, __values, __decorate } from 'tslib';
|
|
9
9
|
import { ResourceLoader } from '@angular/compiler';
|
|
10
10
|
|
|
@@ -731,9 +731,19 @@ function resolveComponentResources(resourceResolver) {
|
|
|
731
731
|
var componentResourceResolutionQueue = new Map();
|
|
732
732
|
// Track when existing ngComponentDef for a Type is waiting on resources.
|
|
733
733
|
var componentDefPendingResolution = new Set();
|
|
734
|
+
function maybeQueueResolutionOfComponentResources(type, metadata) {
|
|
735
|
+
if (componentNeedsResolution(metadata)) {
|
|
736
|
+
componentResourceResolutionQueue.set(type, metadata);
|
|
737
|
+
componentDefPendingResolution.add(type);
|
|
738
|
+
}
|
|
739
|
+
}
|
|
734
740
|
function isComponentDefPendingResolution(type) {
|
|
735
741
|
return componentDefPendingResolution.has(type);
|
|
736
742
|
}
|
|
743
|
+
function componentNeedsResolution(component) {
|
|
744
|
+
return !!((component.templateUrl && !component.hasOwnProperty('template')) ||
|
|
745
|
+
component.styleUrls && component.styleUrls.length);
|
|
746
|
+
}
|
|
737
747
|
function clearResolutionOfComponentResourcesQueue() {
|
|
738
748
|
var old = componentResourceResolutionQueue;
|
|
739
749
|
componentResourceResolutionQueue = new Map();
|
|
@@ -744,6 +754,9 @@ function restoreComponentResolutionQueue(queue) {
|
|
|
744
754
|
queue.forEach(function (_, type) { return componentDefPendingResolution.add(type); });
|
|
745
755
|
componentResourceResolutionQueue = queue;
|
|
746
756
|
}
|
|
757
|
+
function isComponentResourceResolutionQueueEmpty() {
|
|
758
|
+
return componentResourceResolutionQueue.size === 0;
|
|
759
|
+
}
|
|
747
760
|
function unwrapResponse(response) {
|
|
748
761
|
return typeof response == 'string' ? response : response.text();
|
|
749
762
|
}
|