Socket
Socket
Sign inDemoInstall

@angular/core

Package Overview
Dependencies
Maintainers
1
Versions
843
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 5.0.0-beta.3 to 5.0.0-beta.4

2

@angular/core/testing.es5.js
import * as tslib_1 from "tslib";
/**
* @license Angular v5.0.0-beta.3
* @license Angular v5.0.0-beta.4
* (c) 2010-2017 Google, Inc. https://angular.io/

@@ -5,0 +5,0 @@ * License: MIT

/**
* @license Angular v5.0.0-beta.3
* @license Angular v5.0.0-beta.4
* (c) 2010-2017 Google, Inc. https://angular.io/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v5.0.0-beta.3
* @license Angular v5.0.0-beta.4
* (c) 2010-2017 Google, Inc. https://angular.io/

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

/**
* @license Angular v5.0.0-beta.3
* @license Angular v5.0.0-beta.4
* (c) 2010-2017 Google, Inc. https://angular.io/

@@ -42,0 +42,0 @@ * License: MIT

/**
* @license Angular v5.0.0-beta.3
* @license Angular v5.0.0-beta.4
* (c) 2010-2017 Google, Inc. https://angular.io/

@@ -4,0 +4,0 @@ * License: MIT

{
"name": "@angular/core",
"version": "5.0.0-beta.3",
"version": "5.0.0-beta.4",
"description": "Angular - the core framework",

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

@@ -30,3 +30,3 @@ /**

* setInterval(() => {
* this.numberOfTicks ++
* this.numberOfTicks++;
* // the following is required, otherwise the view will not be updated

@@ -80,7 +80,7 @@ * this.ref.markForCheck();

* template: `
* <li *ngFor="let d of dataProvider.data">Data {{d}}</lig>
* <li *ngFor="let d of dataProvider.data">Data {{d}}</li>
* `,
* })
* class GiantList {
* constructor(private ref: ChangeDetectorRef, private dataProvider:DataProvider) {
* constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {
* ref.detach();

@@ -166,9 +166,10 @@ * setInterval(() => {

* class LiveData {
* constructor(private ref: ChangeDetectorRef, private dataProvider:DataProvider) {}
* constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {}
*
* set live(value) {
* if (value)
* if (value) {
* this.ref.reattach();
* else
* } else {
* this.ref.detach();
* }
* }

@@ -175,0 +176,0 @@ * }

@@ -42,3 +42,2 @@ import { IterableChangeRecord, IterableChanges, IterableDiffer, IterableDifferFactory, NgIterable, TrackByFunction } from './iterable_differs';

private _addToRemovals(record);
toString(): string;
}

@@ -54,3 +53,2 @@ /**

constructor(item: V, trackById: any);
toString(): string;
}

@@ -15,3 +15,3 @@ /**

export * from './version';
export { Class, ClassDefinition, TypeDecorator } from './util/decorators';
export { TypeDecorator } from './util/decorators';
export * from './di';

@@ -18,0 +18,0 @@ export { createPlatform, assertPlatform, destroyPlatform, getPlatform, PlatformRef, ApplicationRef, enableProdMode, isDevMode, createPlatformFactory, NgProbeToken } from './application_ref';

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

export declare class ReflectiveInjector_ implements ReflectiveInjector {
private static INJECTOR_KEY;
keyIds: number[];

@@ -256,0 +257,0 @@ objs: any[];

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

enableLegacyTemplate?: boolean;
preserveWhitespaces?: boolean;
};

@@ -87,0 +88,0 @@ /**

@@ -72,14 +72,2 @@ /**

*
* ### Example as ES5 DSL
*
* ```
* var MyComponent = ng
* .Component({...})
* .Class({
* constructor: [new ng.Attribute('title'), function(title) {
* ...
* }]
* })
* ```
*
* ### Example as ES5 annotation

@@ -86,0 +74,0 @@ *

@@ -656,2 +656,11 @@ /**

entryComponents?: Array<Type<any> | any[]>;
/**
* If preserveWhitespaces is set to `false` potentially superfluous blank characters (space, tab,
* new line) will be removed from compiled templates. This can greatly reduce generated code size
* as well as speed up components' creation. The whitespace removal algorithm will drop all
* the blank text nodes and collapse series of whitespaces to just one space.
* Those transformations can potentially influence layout of the generated markup so
* the `preserveWhitespaces` should be used with care.
*/
preserveWhitespaces?: boolean;
}

@@ -658,0 +667,0 @@ /**

@@ -14,4 +14,13 @@ /**

hasLifecycleHook(type: any, lcProperty: string): boolean;
/**
* Return a list of annotations/types for constructor parameters
*/
parameters(type: Type<any>): any[][];
/**
* Return a list of annotations declared on the class
*/
annotations(type: Type<any>): any[];
/**
* Return a object literal which describes the annotations on Class fields/properties.
*/
propMetadata(typeOrFunc: Type<any>): {

@@ -18,0 +27,0 @@ [key: string]: any[];

@@ -10,29 +10,2 @@ /**

/**
* Declares the interface to be used with {@link Class}.
*
* @stable
*/
export declare type ClassDefinition = {
/**
* Optional argument for specifying the superclass.
*/
extends?: Type<any>;
/**
* Required constructor function for a class.
*
* The function may be optionally wrapped in an `Array`, in which case additional parameter
* annotations may be specified.
* The number of arguments and the number of parameter annotations must match.
*
* See {@link Class} for example of usage.
*/
constructor: Function | any[];
} & {
/**
* Other methods on the class. Note that values should have type 'Function' but TS requires
* all properties to have a narrower type than the index signature.
*/
[x: string]: Type<any> | Function | any[];
};
/**
* An interface implemented by all Angular type decorators, which allows them to be used as ES7

@@ -42,10 +15,2 @@ * decorators as well as

*
* DSL syntax:
*
* ```
* var MyClass = ng
* .Component({...})
* .Class({...});
* ```
*
* ES7 syntax:

@@ -65,100 +30,9 @@ *

(target: Object, propertyKey?: string | symbol, parameterIndex?: number): void;
/**
* Storage for the accumulated annotations so far used by the DSL syntax.
*
* Used by {@link Class} to annotate the generated class.
*/
annotations: any[];
/**
* Generate a class from the definition and annotate it with {@link TypeDecorator#annotations}.
*/
Class(obj: ClassDefinition): Type<any>;
}
export declare const ANNOTATIONS = "__annotations__";
export declare const PARAMETERS = "__paramaters__";
export declare const PROP_METADATA = "__prop__metadata__";
/**
* Provides a way for expressing ES6 classes with parameter annotations in ES5.
*
* ## Basic Example
*
* ```
* var Greeter = ng.Class({
* constructor: function(name) {
* this.name = name;
* },
*
* greet: function() {
* alert('Hello ' + this.name + '!');
* }
* });
* ```
*
* is equivalent to ES6:
*
* ```
* class Greeter {
* constructor(name) {
* this.name = name;
* }
*
* greet() {
* alert('Hello ' + this.name + '!');
* }
* }
* ```
*
* or equivalent to ES5:
*
* ```
* var Greeter = function (name) {
* this.name = name;
* }
*
* Greeter.prototype.greet = function () {
* alert('Hello ' + this.name + '!');
* }
* ```
*
* ### Example with parameter annotations
*
* ```
* var MyService = ng.Class({
* constructor: [String, [new Optional(), Service], function(name, myService) {
* ...
* }]
* });
* ```
*
* is equivalent to ES6:
*
* ```
* class MyService {
* constructor(name: string, @Optional() myService: Service) {
* ...
* }
* }
* ```
*
* ### Example with inheritance
*
* ```
* var Shape = ng.Class({
* constructor: (color) {
* this.color = color;
* }
* });
*
* var Square = ng.Class({
* extends: Shape,
* constructor: function(color, size) {
* Shape.call(this, color);
* this.size = size;
* }
* });
* ```
* @suppress {globalThis}
* @stable
*/
export declare function Class(clsDef: ClassDefinition): Type<any>;
/**
* @suppress {globalThis}
*/
export declare function makeDecorator(name: string, props?: (...args: any[]) => any, parentClass?: any, chainFn?: (fn: Function) => void): {

@@ -165,0 +39,0 @@ new (...args: any[]): any;

/**
* @license Angular v5.0.0-beta.3
* @license Angular v5.0.0-beta.4
* (c) 2010-2017 Google, Inc. https://angular.io/

@@ -4,0 +4,0 @@ * License: MIT

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 too big to display

Sorry, the diff of this file is not supported yet

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 too big to display

Sorry, the diff of this file is not supported yet

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

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