Socket
Socket
Sign inDemoInstall

@angular/core

Package Overview
Dependencies
Maintainers
1
Versions
839
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/core - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

4

bundles/core-testing.umd.js
/**
* @license Angular v2.4.1
* @license Angular v2.4.2
* (c) 2010-2016 Google, Inc. https://angular.io/

@@ -765,3 +765,3 @@ * License: MIT

if (e.compType) {
throw new Error(("This test module uses the component " + stringify(e.compType) + " which is using a \"templateUrl\", but they were never compiled. ") +
throw new Error(("This test module uses the component " + stringify(e.compType) + " which is using a \"templateUrl\" or \"styleUrls\", but they were never compiled. ") +
"Please call \"TestBed.compileComponents\" before your test.");

@@ -768,0 +768,0 @@ }

{
"name": "@angular/core",
"version": "2.4.1",
"version": "2.4.2",
"description": "Angular - the core framework",

@@ -5,0 +5,0 @@ "main": "bundles/core.umd.js",

import { IterableDiffers, KeyValueDiffers } from './change_detection/change_detection';
export declare function _iterableDiffersFactory(): IterableDiffers;
export declare function _keyValueDiffersFactory(): KeyValueDiffers;
export declare function _localeFactory(locale?: string): string;
/**

@@ -5,0 +6,0 @@ * This module includes the providers of @angular/core that are needed

@@ -13,2 +13,3 @@ /**

import { IterableDiffers, KeyValueDiffers, defaultIterableDiffers, defaultKeyValueDiffers } from './change_detection/change_detection';
import { Inject, Optional, SkipSelf } from './di/metadata';
import { LOCALE_ID } from './i18n/tokens';

@@ -31,2 +32,9 @@ import { Compiler } from './linker/compiler';

/**
* @param {?=} locale
* @return {?}
*/
export function _localeFactory(locale) {
return locale || 'en-US';
}
/**
* This module includes the providers of @angular/core that are needed

@@ -51,3 +59,7 @@ * to bootstrap components via `ApplicationRef`.

{ provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory },
{ provide: LOCALE_ID, useValue: 'en-US' },
{
provide: LOCALE_ID,
useFactory: _localeFactory,
deps: [[new Inject(LOCALE_ID), new Optional(), new SkipSelf()]]
},
]

@@ -54,0 +66,0 @@ },] },

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"_iterableDiffersFactory":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"defaultIterableDiffers"}},"_keyValueDiffersFactory":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"defaultKeyValueDiffers"}},"ApplicationModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./metadata","name":"NgModule"},"arguments":[{"providers":[{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef_"},{"provide":{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef"},"useExisting":{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef_"}},{"__symbolic":"reference","module":"./application_init","name":"ApplicationInitStatus"},{"__symbolic":"reference","module":"./linker/compiler","name":"Compiler"},{"__symbolic":"reference","module":"./application_tokens","name":"APP_ID_RANDOM_PROVIDER"},{"__symbolic":"reference","module":"./linker/view_utils","name":"ViewUtils"},{"__symbolic":"reference","module":"./animation/animation_queue","name":"AnimationQueue"},{"provide":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"IterableDiffers"},"useFactory":{"__symbolic":"reference","name":"_iterableDiffersFactory"}},{"provide":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"KeyValueDiffers"},"useFactory":{"__symbolic":"reference","name":"_keyValueDiffersFactory"}},{"provide":{"__symbolic":"reference","module":"./i18n/tokens","name":"LOCALE_ID"},"useValue":"en-US"}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"_iterableDiffersFactory":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"defaultIterableDiffers"}},"_keyValueDiffersFactory":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"defaultKeyValueDiffers"}},"ApplicationModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./metadata","name":"NgModule"},"arguments":[{"providers":[{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef_"},{"provide":{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef"},"useExisting":{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef_"}},{"__symbolic":"reference","module":"./application_init","name":"ApplicationInitStatus"},{"__symbolic":"reference","module":"./linker/compiler","name":"Compiler"},{"__symbolic":"reference","module":"./application_tokens","name":"APP_ID_RANDOM_PROVIDER"},{"__symbolic":"reference","module":"./linker/view_utils","name":"ViewUtils"},{"__symbolic":"reference","module":"./animation/animation_queue","name":"AnimationQueue"},{"provide":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"IterableDiffers"},"useFactory":{"__symbolic":"reference","name":"_iterableDiffersFactory"}},{"provide":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"KeyValueDiffers"},"useFactory":{"__symbolic":"reference","name":"_keyValueDiffersFactory"}},{"provide":{"__symbolic":"reference","module":"./i18n/tokens","name":"LOCALE_ID"},"useValue":"en-US"}]}]}]}}}]
[{"__symbolic":"module","version":3,"metadata":{"_iterableDiffersFactory":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"defaultIterableDiffers"}},"_keyValueDiffersFactory":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"defaultKeyValueDiffers"}},"_localeFactory":{"__symbolic":"function","parameters":["locale"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"locale"},"right":"en-US"}},"ApplicationModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./metadata","name":"NgModule"},"arguments":[{"providers":[{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef_"},{"provide":{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef"},"useExisting":{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef_"}},{"__symbolic":"reference","module":"./application_init","name":"ApplicationInitStatus"},{"__symbolic":"reference","module":"./linker/compiler","name":"Compiler"},{"__symbolic":"reference","module":"./application_tokens","name":"APP_ID_RANDOM_PROVIDER"},{"__symbolic":"reference","module":"./linker/view_utils","name":"ViewUtils"},{"__symbolic":"reference","module":"./animation/animation_queue","name":"AnimationQueue"},{"provide":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"IterableDiffers"},"useFactory":{"__symbolic":"reference","name":"_iterableDiffersFactory"}},{"provide":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"KeyValueDiffers"},"useFactory":{"__symbolic":"reference","name":"_keyValueDiffersFactory"}},{"provide":{"__symbolic":"reference","module":"./i18n/tokens","name":"LOCALE_ID"},"useFactory":{"__symbolic":"reference","name":"_localeFactory"},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di/metadata","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"./i18n/tokens","name":"LOCALE_ID"}]},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di/metadata","name":"Optional"}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di/metadata","name":"SkipSelf"}}]]}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"_iterableDiffersFactory":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"defaultIterableDiffers"}},"_keyValueDiffersFactory":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"defaultKeyValueDiffers"}},"_localeFactory":{"__symbolic":"function","parameters":["locale"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"locale"},"right":"en-US"}},"ApplicationModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./metadata","name":"NgModule"},"arguments":[{"providers":[{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef_"},{"provide":{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef"},"useExisting":{"__symbolic":"reference","module":"./application_ref","name":"ApplicationRef_"}},{"__symbolic":"reference","module":"./application_init","name":"ApplicationInitStatus"},{"__symbolic":"reference","module":"./linker/compiler","name":"Compiler"},{"__symbolic":"reference","module":"./application_tokens","name":"APP_ID_RANDOM_PROVIDER"},{"__symbolic":"reference","module":"./linker/view_utils","name":"ViewUtils"},{"__symbolic":"reference","module":"./animation/animation_queue","name":"AnimationQueue"},{"provide":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"IterableDiffers"},"useFactory":{"__symbolic":"reference","name":"_iterableDiffersFactory"}},{"provide":{"__symbolic":"reference","module":"./change_detection/change_detection","name":"KeyValueDiffers"},"useFactory":{"__symbolic":"reference","name":"_keyValueDiffersFactory"}},{"provide":{"__symbolic":"reference","module":"./i18n/tokens","name":"LOCALE_ID"},"useFactory":{"__symbolic":"reference","name":"_localeFactory"},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di/metadata","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"./i18n/tokens","name":"LOCALE_ID"}]},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di/metadata","name":"Optional"}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./di/metadata","name":"SkipSelf"}}]]}]}]}]}}}]

@@ -595,3 +595,3 @@ /**

if (isDevMode()) {
this._console.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.");
this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode.");
}

@@ -598,0 +598,0 @@ return compRef;

@@ -42,3 +42,3 @@ /**

import { isPromise } from './util/lang';
export declare var __core_private__: {
export declare const __core_private__: {
isDefaultChangeDetectionStrategy: typeof constants.isDefaultChangeDetectionStrategy;

@@ -45,0 +45,0 @@ ChangeDetectorStatus: typeof constants.ChangeDetectorStatus;

@@ -209,3 +209,29 @@ /**

/**
* @docsNotRequired
* @whatItDoes Configures a content query.
*
* @howToUse
*
* {@example core/di/ts/contentChild/content_child_howto.ts region='HowTo'}
*
* @description
*
* You can use ContentChild to get the first element or the directive matching the selector from
* the content DOM. If the content DOM changes, and a new child matches the selector,
* the property will be updated.
*
* Content queries are set before the `ngAfterContentInit` callback is called.
*
* **Metadata Properties**:
*
* * **selector** - the directive type or the name used for querying.
* * **read** - read a different token from the queried element.
*
* Let's look at an example:
*
* {@example core/di/ts/contentChild/content_child_example.ts region='Component'}
*
* **npm package**: `@angular/core`
*
* @stable
* @Annotation
*/

@@ -228,27 +254,4 @@ (selector: Type<any> | Function | string, {read}?: {

/**
* @whatItDoes Configures a content query.
* ContentChild decorator and metadata.
*
* @howToUse
*
* {@example core/di/ts/contentChild/content_child_howto.ts region='HowTo'}
*
* @description
*
* You can use ContentChild to get the first element or the directive matching the selector from the
* content DOM. If the content DOM changes, and a new child matches the selector,
* the property will be updated.
*
* Content queries are set before the `ngAfterContentInit` callback is called.
*
* **Metadata Properties**:
*
* * **selector** - the directive type or the name used for querying.
* * **read** - read a different token from the queried element.
*
* Let's look at an example:
*
* {@example core/di/ts/contentChild/content_child_example.ts region='Component'}
*
* **npm package**: `@angular/core`
*
* @stable

@@ -267,4 +270,31 @@ * @Annotation

/**
* @docsNotRequired
*/ (selector: Type<any> | Function | string, {read}?: {
* @whatItDoes Configures a view query.
*
* @howToUse
*
* {@example core/di/ts/viewChildren/view_children_howto.ts region='HowTo'}
*
* @description
*
* You can use ViewChildren to get the {@link QueryList} of elements or directives from the
* view DOM. Any time a child element is added, removed, or moved, the query list will be updated,
* and the changes observable of the query list will emit a new value.
*
* View queries are set before the `ngAfterViewInit` callback is called.
*
* **Metadata Properties**:
*
* * **selector** - the directive type or the name used for querying.
* * **read** - read a different token from the queried elements.
*
* Let's look at an example:
*
* {@example core/di/ts/viewChildren/view_children_example.ts region='Component'}
*
* **npm package**: `@angular/core`
*
* @stable
* @Annotation
*/
(selector: Type<any> | Function | string, {read}?: {
read?: any;

@@ -283,27 +313,4 @@ }): any;

/**
* @whatItDoes Configures a view query.
* ViewChildren decorator and metadata.
*
* @howToUse
*
* {@example core/di/ts/viewChildren/view_children_howto.ts region='HowTo'}
*
* @description
*
* You can use ViewChildren to get the {@link QueryList} of elements or directives from the
* view DOM. Any time a child element is added, removed, or moved, the query list will be updated,
* and the changes observable of the query list will emit a new value.
*
* View queries are set before the `ngAfterViewInit` callback is called.
*
* **Metadata Properties**:
*
* * **selector** - the directive type or the name used for querying.
* * **read** - read a different token from the queried elements.
*
* Let's look at an example:
*
* {@example core/di/ts/viewChildren/view_children_example.ts region='Component'}
*
* **npm package**: `@angular/core`
*
* @stable

@@ -310,0 +317,0 @@ * @Annotation

@@ -80,27 +80,4 @@ /**

/**
* @whatItDoes Configures a content query.
* ContentChild decorator and metadata.
*
* @howToUse
*
* {@example core/di/ts/contentChild/content_child_howto.ts region='HowTo'}
*
* @description
*
* You can use ContentChild to get the first element or the directive matching the selector from the
* content DOM. If the content DOM changes, and a new child matches the selector,
* the property will be updated.
*
* Content queries are set before the `ngAfterContentInit` callback is called.
*
* **Metadata Properties**:
*
* * **selector** - the directive type or the name used for querying.
* * **read** - read a different token from the queried element.
*
* Let's look at an example:
*
* {@example core/di/ts/contentChild/content_child_example.ts region='Component'}
*
* **npm package**: `@angular/core`
*
* @stable

@@ -118,27 +95,4 @@ * @Annotation

/**
* @whatItDoes Configures a view query.
* ViewChildren decorator and metadata.
*
* @howToUse
*
* {@example core/di/ts/viewChildren/view_children_howto.ts region='HowTo'}
*
* @description
*
* You can use ViewChildren to get the {@link QueryList} of elements or directives from the
* view DOM. Any time a child element is added, removed, or moved, the query list will be updated,
* and the changes observable of the query list will emit a new value.
*
* View queries are set before the `ngAfterViewInit` callback is called.
*
* **Metadata Properties**:
*
* * **selector** - the directive type or the name used for querying.
* * **read** - read a different token from the queried elements.
*
* Let's look at an example:
*
* {@example core/di/ts/viewChildren/view_children_example.ts region='Component'}
*
* **npm package**: `@angular/core`
*
* @stable

@@ -145,0 +99,0 @@ * @Annotation

@@ -44,3 +44,3 @@ /**

*/
export declare var wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn;
export declare const wtfCreateScope: (signature: string, flags?: any) => WtfScopeFn;
/**

@@ -55,3 +55,3 @@ * Used to mark end of Scope.

*/
export declare var wtfLeave: <T>(scope: any, returnValue?: T) => T;
export declare const wtfLeave: <T>(scope: any, returnValue?: T) => T;
/**

@@ -70,3 +70,3 @@ * Used to mark Async start. Async are similar to scope but they don't have to be strictly nested.

*/
export declare var wtfStartTimeRange: (rangeType: string, action: string) => any;
export declare const wtfStartTimeRange: (rangeType: string, action: string) => any;
/**

@@ -78,2 +78,2 @@ * Ends a async time range operation.

*/
export declare var wtfEndTimeRange: (range: any) => void;
export declare const wtfEndTimeRange: (range: any) => void;

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"wtfEnabled":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./wtf_impl","name":"detectWTF"}},"wtfCreateScope":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"createScope"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":53,"character":31}},"wtfLeave":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"leave"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":65,"character":25}},"wtfStartTimeRange":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"startTimeRange"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":81,"character":34}},"wtfEndTimeRange":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"endTimeRange"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":89,"character":79}}},"exports":[{"from":"./wtf_impl","export":["WtfScopeFn"]}]},{"__symbolic":"module","version":1,"metadata":{"wtfEnabled":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./wtf_impl","name":"detectWTF"}},"wtfCreateScope":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"createScope"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":53,"character":31}},"wtfLeave":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"leave"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":65,"character":25}},"wtfStartTimeRange":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"startTimeRange"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":81,"character":34}},"wtfEndTimeRange":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"endTimeRange"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":89,"character":79}}},"exports":[{"from":"./wtf_impl","export":["WtfScopeFn"]}]}]
[{"__symbolic":"module","version":3,"metadata":{"wtfEnabled":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./wtf_impl","name":"detectWTF"}},"wtfCreateScope":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"createScope"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":53,"character":31}},"wtfLeave":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"leave"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":65,"character":25}},"wtfStartTimeRange":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"startTimeRange"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":81,"character":34}},"wtfEndTimeRange":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"endTimeRange"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":89,"character":81}}},"exports":[{"from":"./wtf_impl","export":["WtfScopeFn"]}]},{"__symbolic":"module","version":1,"metadata":{"wtfEnabled":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./wtf_impl","name":"detectWTF"}},"wtfCreateScope":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"createScope"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":53,"character":31}},"wtfLeave":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"leave"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":65,"character":25}},"wtfStartTimeRange":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"startTimeRange"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":81,"character":34}},"wtfEndTimeRange":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"wtfEnabled"},"thenExpression":{"__symbolic":"reference","module":"./wtf_impl","name":"endTimeRange"},"elseExpression":{"__symbolic":"error","message":"Function call not supported","line":89,"character":81}}},"exports":[{"from":"./wtf_impl","export":["WtfScopeFn"]}]}]

@@ -9,3 +9,3 @@ /**

import { global, isPresent, stringify } from '../facade/lang';
import { Type } from '../type';
import { Type, isType } from '../type';
/**

@@ -122,3 +122,6 @@ * Attention: This regex has to hold even if the code is minified!

// to stay in sync with the static reflector.
var /** @type {?} */ parentCtor = Object.getPrototypeOf(type.prototype).constructor;
if (!isType(type)) {
return [];
}
var /** @type {?} */ parentCtor = getParentCtor(type);
var /** @type {?} */ parameters = this._ownParameters(type, parentCtor);

@@ -158,3 +161,6 @@ if (!parameters && parentCtor !== Object) {

ReflectionCapabilities.prototype.annotations = function (typeOrFunc) {
var /** @type {?} */ parentCtor = Object.getPrototypeOf(typeOrFunc.prototype).constructor;
if (!isType(typeOrFunc)) {
return [];
}
var /** @type {?} */ parentCtor = getParentCtor(typeOrFunc);
var /** @type {?} */ ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];

@@ -199,3 +205,6 @@ var /** @type {?} */ parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];

ReflectionCapabilities.prototype.propMetadata = function (typeOrFunc) {
var /** @type {?} */ parentCtor = Object.getPrototypeOf(typeOrFunc.prototype).constructor;
if (!isType(typeOrFunc)) {
return {};
}
var /** @type {?} */ parentCtor = getParentCtor(typeOrFunc);
var /** @type {?} */ propMetadata = {};

@@ -295,2 +304,13 @@ if (parentCtor !== Object) {

}
/**
* @param {?} ctor
* @return {?}
*/
function getParentCtor(ctor) {
var /** @type {?} */ parentProto = Object.getPrototypeOf(ctor.prototype);
var /** @type {?} */ parentCtor = parentProto ? parentProto.constructor : null;
// Note: We always use `Object` as the null value
// to simplify checking later on.
return parentCtor || Object;
}
//# sourceMappingURL=reflection_capabilities.js.map

@@ -19,4 +19,5 @@ /**

export declare const Type: FunctionConstructor;
export declare function isType(v: any): v is Type<any>;
export interface Type<T> extends Function {
new (...args: any[]): T;
}

@@ -19,2 +19,9 @@ /**

export var /** @type {?} */ Type = Function;
/**
* @param {?} v
* @return {?}
*/
export function isType(v) {
return typeof v === 'function';
}
//# sourceMappingURL=type.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"Type":{"__symbolic":"reference","name":"Function"}}},{"__symbolic":"module","version":1,"metadata":{"Type":{"__symbolic":"reference","name":"Function"}}}]
[{"__symbolic":"module","version":3,"metadata":{"Type":{"__symbolic":"reference","name":"Function"},"isType":{"__symbolic":"function","parameters":["v"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":21,"character":9},"right":"function"}}}},{"__symbolic":"module","version":1,"metadata":{"Type":{"__symbolic":"reference","name":"Function"},"isType":{"__symbolic":"function","parameters":["v"],"value":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"error","message":"Expression form not supported","line":21,"character":9},"right":"function"}}}}]

@@ -44,3 +44,3 @@ /**

*/
export var /** @type {?} */ VERSION = new Version('2.4.1');
export var /** @type {?} */ VERSION = new Version('2.4.2');
//# sourceMappingURL=version.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"Version":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]}},"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Version"},"arguments":["2.4.1"]}}},{"__symbolic":"module","version":1,"metadata":{"Version":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]}},"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Version"},"arguments":["2.4.1"]}}}]
[{"__symbolic":"module","version":3,"metadata":{"Version":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]}},"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Version"},"arguments":["2.4.2"]}}},{"__symbolic":"module","version":1,"metadata":{"Version":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"}]}]}},"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"Version"},"arguments":["2.4.2"]}}}]

@@ -10,3 +10,3 @@ /**

import * as test_compiler from './test_compiler';
export declare var __core_private_testing__: {
export declare const __core_private_testing__: {
TestingCompiler: typeof test_compiler.TestingCompiler;

@@ -13,0 +13,0 @@ _TestingCompiler?: test_compiler.TestingCompiler;

@@ -225,3 +225,3 @@ /**

if (e.compType) {
throw new Error(("This test module uses the component " + stringify(e.compType) + " which is using a \"templateUrl\", but they were never compiled. ") +
throw new Error(("This test module uses the component " + stringify(e.compType) + " which is using a \"templateUrl\" or \"styleUrls\", but they were never compiled. ") +
"Please call \"TestBed.compileComponents\" before your test.");

@@ -228,0 +228,0 @@ }

@@ -1,1 +0,1 @@

export declare var __core_private_testing_placeholder__: string;
export declare const __core_private_testing_placeholder__: string;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc