"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/core/src/render3/definition.ts" between
angular-11.0.1.tar.gz and angular-11.0.2.tar.gz

About: Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript.

definition.ts  (angular-11.0.1):definition.ts  (angular-11.0.2)
skipping to change at line 17 skipping to change at line 17
*/ */
import {ChangeDetectionStrategy} from '../change_detection/constants'; import {ChangeDetectionStrategy} from '../change_detection/constants';
import {Mutable, Type} from '../interface/type'; import {Mutable, Type} from '../interface/type';
import {NgModuleDef, NgModuleType} from '../metadata/ng_module_def'; import {NgModuleDef, NgModuleType} from '../metadata/ng_module_def';
import {SchemaMetadata} from '../metadata/schema'; import {SchemaMetadata} from '../metadata/schema';
import {ViewEncapsulation} from '../metadata/view'; import {ViewEncapsulation} from '../metadata/view';
import {noSideEffects} from '../util/closure'; import {noSideEffects} from '../util/closure';
import {initNgDevMode} from '../util/ng_dev_mode'; import {initNgDevMode} from '../util/ng_dev_mode';
import {stringify} from '../util/stringify'; import {stringify} from '../util/stringify';
import {EMPTY_ARRAY, EMPTY_OBJ} from './empty'; import {EMPTY_ARRAY, EMPTY_OBJ} from './empty';
import {NG_COMP_DEF, NG_DIR_DEF, NG_FACTORY_DEF, NG_LOC_ID_DEF, NG_MOD_DEF, NG_P import {NG_COMP_DEF, NG_DIR_DEF, NG_LOC_ID_DEF, NG_MOD_DEF, NG_PIPE_DEF} from '.
IPE_DEF} from './fields'; /fields';
import {ComponentDef, ComponentDefFeature, ComponentTemplate, ComponentType, Con import {ComponentDef, ComponentDefFeature, ComponentTemplate, ComponentType, Con
tentQueriesFunction, DirectiveDef, DirectiveDefFeature, DirectiveTypesOrFactory, tentQueriesFunction, DirectiveDef, DirectiveDefFeature, DirectiveTypesOrFactory,
FactoryFn, HostBindingsFunction, PipeDef, PipeType, PipeTypesOrFactory, ViewQue HostBindingsFunction, PipeDef, PipeTypesOrFactory, ViewQueriesFunction} from '.
riesFunction} from './interfaces/definition'; /interfaces/definition';
import {AttributeMarker, TAttributes, TConstantsOrFactory} from './interfaces/no de'; import {AttributeMarker, TAttributes, TConstantsOrFactory} from './interfaces/no de';
import {CssSelectorList, SelectorFlags} from './interfaces/projection'; import {CssSelectorList, SelectorFlags} from './interfaces/projection';
let _renderCompCount = 0; let _renderCompCount = 0;
// While these types are unused here, they are required so that types don't // While these types are unused here, they are required so that types don't
// get resolved lazily. see: https://github.com/Microsoft/web-build-tools/issues /1050 // get resolved lazily. see: https://github.com/Microsoft/web-build-tools/issues /1050
type _web_build_tools_issue_1050_SelectorFlags = SelectorFlags; type _web_build_tools_issue_1050_SelectorFlags = SelectorFlags;
type _web_build_tools_issue_1050_AttributeMarker = AttributeMarker; type _web_build_tools_issue_1050_AttributeMarker = AttributeMarker;
skipping to change at line 748 skipping to change at line 747
} }
export function getDirectiveDef<T>(type: any): DirectiveDef<T>|null { export function getDirectiveDef<T>(type: any): DirectiveDef<T>|null {
return type[NG_DIR_DEF] || null; return type[NG_DIR_DEF] || null;
} }
export function getPipeDef<T>(type: any): PipeDef<T>|null { export function getPipeDef<T>(type: any): PipeDef<T>|null {
return type[NG_PIPE_DEF] || null; return type[NG_PIPE_DEF] || null;
} }
export function getFactoryDef<T>(type: any, throwNotFound: true): FactoryFn<T>;
export function getFactoryDef<T>(type: any): FactoryFn<T>|null;
export function getFactoryDef<T>(type: any, throwNotFound?: boolean): FactoryFn<
T>|null {
const hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);
if (!hasFactoryDef && throwNotFound === true && ngDevMode) {
throw new Error(`Type ${stringify(type)} does not have 'ɵfac' property.`);
}
return hasFactoryDef ? type[NG_FACTORY_DEF] : null;
}
export function getNgModuleDef<T>(type: any, throwNotFound: true): NgModuleDef<T >; export function getNgModuleDef<T>(type: any, throwNotFound: true): NgModuleDef<T >;
export function getNgModuleDef<T>(type: any): NgModuleDef<T>|null; export function getNgModuleDef<T>(type: any): NgModuleDef<T>|null;
export function getNgModuleDef<T>(type: any, throwNotFound?: boolean): NgModuleD ef<T>|null { export function getNgModuleDef<T>(type: any, throwNotFound?: boolean): NgModuleD ef<T>|null {
const ngModuleDef = type[NG_MOD_DEF] || null; const ngModuleDef = type[NG_MOD_DEF] || null;
if (!ngModuleDef && throwNotFound === true) { if (!ngModuleDef && throwNotFound === true) {
throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`); throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`);
} }
return ngModuleDef; return ngModuleDef;
} }
 End of changes. 3 change blocks. 
18 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)