parent
f455518d80
commit
9993c72335
integration
typings_test_ts27
typings_test_ts28
typings_test_ts31
packages
bazel
compiler-cli
core
elements/src
platform-browser/src
platform-server/src
tools
yarn.lock@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"emitDecoratorMetadata": true,
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"module": "commonjs",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"outDir": "../../dist/typings_test_ts27/",
|
|
||||||
"rootDir": ".",
|
|
||||||
"target": "es5",
|
|
||||||
"lib": [
|
|
||||||
"es5",
|
|
||||||
"dom",
|
|
||||||
"es2015.collection",
|
|
||||||
"es2015.iterable",
|
|
||||||
"es2015.promise"
|
|
||||||
],
|
|
||||||
"types": [],
|
|
||||||
"strictNullChecks": true
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"include-all.ts",
|
|
||||||
"node_modules/@types/jasmine/index.d.ts"
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,49 +0,0 @@
|
|||||||
/**
|
|
||||||
* @license
|
|
||||||
* Copyright Google Inc. All Rights Reserved.
|
|
||||||
*
|
|
||||||
* Use of this source code is governed by an MIT-style license that can be
|
|
||||||
* found in the LICENSE file at https://angular.io/license
|
|
||||||
*/
|
|
||||||
|
|
||||||
import * as compiler from '@angular/compiler';
|
|
||||||
import * as compilerTesting from '@angular/compiler/testing';
|
|
||||||
import * as core from '@angular/core';
|
|
||||||
import * as coreTesting from '@angular/core/testing';
|
|
||||||
import * as elements from '@angular/elements';
|
|
||||||
import * as forms from '@angular/forms';
|
|
||||||
import * as http from '@angular/http';
|
|
||||||
import * as httpTesting from '@angular/http/testing';
|
|
||||||
import * as platformBrowser from '@angular/platform-browser';
|
|
||||||
import * as platformBrowserTesting from '@angular/platform-browser/testing';
|
|
||||||
import * as platformBrowserDynamic from '@angular/platform-browser-dynamic';
|
|
||||||
import * as platformServer from '@angular/platform-server';
|
|
||||||
import * as platformServerTesting from '@angular/platform-server/testing';
|
|
||||||
import * as platformWebworker from '@angular/platform-webworker';
|
|
||||||
import * as platformWebworkerDynamic from '@angular/platform-webworker-dynamic';
|
|
||||||
import * as router from '@angular/router';
|
|
||||||
import * as routerTesting from '@angular/router/testing';
|
|
||||||
import * as serviceWorker from '@angular/service-worker';
|
|
||||||
import * as upgrade from '@angular/upgrade';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
compiler,
|
|
||||||
compilerTesting,
|
|
||||||
core,
|
|
||||||
coreTesting,
|
|
||||||
elements,
|
|
||||||
forms,
|
|
||||||
http,
|
|
||||||
httpTesting,
|
|
||||||
platformBrowser,
|
|
||||||
platformBrowserTesting,
|
|
||||||
platformBrowserDynamic,
|
|
||||||
platformServer,
|
|
||||||
platformServerTesting,
|
|
||||||
platformWebworker,
|
|
||||||
platformWebworkerDynamic,
|
|
||||||
router,
|
|
||||||
routerTesting,
|
|
||||||
serviceWorker,
|
|
||||||
upgrade,
|
|
||||||
};
|
|
@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "angular-integration",
|
|
||||||
"description": "Assert that users with TypeScript 2.8 can type-check an Angular application",
|
|
||||||
"version": "0.0.0",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@angular/animations": "file:../../dist/packages-dist/animations",
|
|
||||||
"@angular/common": "file:../../dist/packages-dist/common",
|
|
||||||
"@angular/compiler": "file:../../dist/packages-dist/compiler",
|
|
||||||
"@angular/compiler-cli": "file:../../dist/packages-dist/compiler-cli",
|
|
||||||
"@angular/core": "file:../../dist/packages-dist/core",
|
|
||||||
"@angular/elements": "file:../../dist/packages-dist/elements",
|
|
||||||
"@angular/forms": "file:../../dist/packages-dist/forms",
|
|
||||||
"@angular/http": "file:../../dist/packages-dist/http",
|
|
||||||
"@angular/platform-browser": "file:../../dist/packages-dist/platform-browser",
|
|
||||||
"@angular/platform-browser-dynamic": "file:../../dist/packages-dist/platform-browser-dynamic",
|
|
||||||
"@angular/platform-server": "file:../../dist/packages-dist/platform-server",
|
|
||||||
"@angular/platform-webworker": "file:../../dist/packages-dist/platform-webworker",
|
|
||||||
"@angular/platform-webworker-dynamic": "file:../../dist/packages-dist/platform-webworker-dynamic",
|
|
||||||
"@angular/router": "file:../../dist/packages-dist/router",
|
|
||||||
"@angular/service-worker": "file:../../dist/packages-dist/service-worker",
|
|
||||||
"@angular/upgrade": "file:../../dist/packages-dist/upgrade",
|
|
||||||
"@types/jasmine": "2.5.41",
|
|
||||||
"rxjs": "file:../../node_modules/rxjs",
|
|
||||||
"typescript": "2.8.x",
|
|
||||||
"zone.js": "file:../../node_modules/zone.js"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"test": "tsc"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "angular-integration",
|
"name": "angular-integration",
|
||||||
"description": "Assert that users with TypeScript 2.7 can type-check an Angular application",
|
"description": "Assert that users with TypeScript 3.0 can type-check an Angular application",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -22,7 +22,7 @@
|
|||||||
"@angular/upgrade": "file:../../dist/packages-dist/upgrade",
|
"@angular/upgrade": "file:../../dist/packages-dist/upgrade",
|
||||||
"@types/jasmine": "2.5.41",
|
"@types/jasmine": "2.5.41",
|
||||||
"rxjs": "file:../../node_modules/rxjs",
|
"rxjs": "file:../../node_modules/rxjs",
|
||||||
"typescript": "2.7.x",
|
"typescript": "3.1.x",
|
||||||
"zone.js": "file:../../node_modules/zone.js"
|
"zone.js": "file:../../node_modules/zone.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
@ -4,7 +4,7 @@
|
|||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"outDir": "../../dist/typings_test_ts28/",
|
"outDir": "../../dist/typings_test_ts30/",
|
||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"lib": [
|
"lib": [
|
@ -127,7 +127,7 @@
|
|||||||
"tslint": "5.7.0",
|
"tslint": "5.7.0",
|
||||||
"tslint-eslint-rules": "4.1.1",
|
"tslint-eslint-rules": "4.1.1",
|
||||||
"tsutils": "2.20.0",
|
"tsutils": "2.20.0",
|
||||||
"typescript": "~3.0.1",
|
"typescript": "~3.1.1",
|
||||||
"uglify-es": "^3.3.9",
|
"uglify-es": "^3.3.9",
|
||||||
"universal-analytics": "0.4.15",
|
"universal-analytics": "0.4.15",
|
||||||
"vlq": "0.2.2",
|
"vlq": "0.2.2",
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/compiler-cli": "0.0.0-PLACEHOLDER",
|
"@angular/compiler-cli": "0.0.0-PLACEHOLDER",
|
||||||
"typescript": ">=3.0.1 <3.1"
|
"typescript": ">=3.1.1 <3.2"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/compiler": "0.0.0-PLACEHOLDER",
|
"@angular/compiler": "0.0.0-PLACEHOLDER",
|
||||||
"typescript": ">=3.0.1 <3.1"
|
"typescript": ">=3.1.1 <3.2"
|
||||||
},
|
},
|
||||||
"engines" : {
|
"engines" : {
|
||||||
"node" : ">=8.0"
|
"node" : ">=8.0"
|
||||||
|
@ -72,14 +72,14 @@ const defaultEmitCallback: TsEmitCallback =
|
|||||||
* Minimum supported TypeScript version
|
* Minimum supported TypeScript version
|
||||||
* ∀ supported typescript version v, v >= MIN_TS_VERSION
|
* ∀ supported typescript version v, v >= MIN_TS_VERSION
|
||||||
*/
|
*/
|
||||||
const MIN_TS_VERSION = '3.0.1';
|
const MIN_TS_VERSION = '3.1.1';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Supremum of supported TypeScript versions
|
* Supremum of supported TypeScript versions
|
||||||
* ∀ supported typescript version v, v < MAX_TS_VERSION
|
* ∀ supported typescript version v, v < MAX_TS_VERSION
|
||||||
* MAX_TS_VERSION is not considered as a supported TypeScript version
|
* MAX_TS_VERSION is not considered as a supported TypeScript version
|
||||||
*/
|
*/
|
||||||
const MAX_TS_VERSION = '3.1.0';
|
const MAX_TS_VERSION = '3.2.0';
|
||||||
|
|
||||||
class AngularCompilerProgram implements Program {
|
class AngularCompilerProgram implements Program {
|
||||||
private rootNames: string[];
|
private rootNames: string[];
|
||||||
|
@ -151,7 +151,7 @@ export class InertBodyHelper {
|
|||||||
el.removeAttribute(attrName);
|
el.removeAttribute(attrName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let childNode = el.firstChild;
|
let childNode = el.firstChild as Node | null;
|
||||||
while (childNode) {
|
while (childNode) {
|
||||||
if (childNode.nodeType === Node.ELEMENT_NODE) this.stripCustomNsAttrs(childNode as Element);
|
if (childNode.nodeType === Node.ELEMENT_NODE) this.stripCustomNsAttrs(childNode as Element);
|
||||||
childNode = childNode.nextSibling;
|
childNode = childNode.nextSibling;
|
||||||
|
@ -116,10 +116,12 @@ function ngBackPatch_node_modules_libB_module_LibAModule() {
|
|||||||
|
|
||||||
export const AppModuleFactory: NgModuleFactory<AppModule>&{patchedDeps: boolean} = {
|
export const AppModuleFactory: NgModuleFactory<AppModule>&{patchedDeps: boolean} = {
|
||||||
moduleType: AppModule,
|
moduleType: AppModule,
|
||||||
patchedDeps: false,
|
patchedDeps: false, create(parentInjector: Injector | null): NgModuleRef<AppModule>{
|
||||||
create(parentInjector: Injector | null): NgModuleRef<AppModule>{
|
if (!this.patchedDeps) {
|
||||||
this.patchedDeps && ngBackPatch_node_modules_libB_module() && (this.patchedDeps = true);
|
ngBackPatch_node_modules_libB_module();
|
||||||
return details_elided;}
|
this.patchedDeps = true;
|
||||||
|
} return details_elided;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
// BEGIN FILE: src/app.ngfactory.ts
|
// BEGIN FILE: src/app.ngfactory.ts
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ export function createCustomElement<P>(
|
|||||||
|
|
||||||
// Listen for events from the strategy and dispatch them as custom events
|
// Listen for events from the strategy and dispatch them as custom events
|
||||||
this.ngElementEventsSubscription = this.ngElementStrategy.events.subscribe(e => {
|
this.ngElementEventsSubscription = this.ngElementStrategy.events.subscribe(e => {
|
||||||
const customEvent = createCustomEvent(this.ownerDocument, e.name, e.value);
|
const customEvent = createCustomEvent(this.ownerDocument !, e.name, e.value);
|
||||||
this.dispatchEvent(customEvent);
|
this.dispatchEvent(customEvent);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -74,8 +74,8 @@ export function createCustomEvent(doc: Document, name: string, detail: any): Cus
|
|||||||
/**
|
/**
|
||||||
* Check whether the input is an `Element`.
|
* Check whether the input is an `Element`.
|
||||||
*/
|
*/
|
||||||
export function isElement(node: Node): node is Element {
|
export function isElement(node: Node | null): node is Element {
|
||||||
return node.nodeType === Node.ELEMENT_NODE;
|
return !!node && node.nodeType === Node.ELEMENT_NODE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -118,7 +118,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
|||||||
get attrToPropMap(): any { return _attrToPropMap; }
|
get attrToPropMap(): any { return _attrToPropMap; }
|
||||||
|
|
||||||
contains(nodeA: any, nodeB: any): boolean { return nodeContains.call(nodeA, nodeB); }
|
contains(nodeA: any, nodeB: any): boolean { return nodeContains.call(nodeA, nodeB); }
|
||||||
querySelector(el: Element, selector: string): any { return el.querySelector(selector); }
|
querySelector(el: HTMLElement, selector: string): any { return el.querySelector(selector); }
|
||||||
querySelectorAll(el: any, selector: string): any[] { return el.querySelectorAll(selector); }
|
querySelectorAll(el: any, selector: string): any[] { return el.querySelectorAll(selector); }
|
||||||
on(el: Node, evt: any, listener: any) { el.addEventListener(evt, listener, false); }
|
on(el: Node, evt: any, listener: any) { el.addEventListener(evt, listener, false); }
|
||||||
onAndCancel(el: Node, evt: any, listener: any): Function {
|
onAndCancel(el: Node, evt: any, listener: any): Function {
|
||||||
@ -276,7 +276,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
|||||||
getAttribute(element: Element, attribute: string): string|null {
|
getAttribute(element: Element, attribute: string): string|null {
|
||||||
return element.getAttribute(attribute);
|
return element.getAttribute(attribute);
|
||||||
}
|
}
|
||||||
getAttributeNS(element: Element, ns: string, name: string): string {
|
getAttributeNS(element: Element, ns: string, name: string): string|null {
|
||||||
return element.getAttributeNS(ns, name);
|
return element.getAttributeNS(ns, name);
|
||||||
}
|
}
|
||||||
setAttribute(element: Element, name: string, value: string) { element.setAttribute(name, value); }
|
setAttribute(element: Element, name: string, value: string) { element.setAttribute(name, value); }
|
||||||
|
@ -119,7 +119,7 @@ export abstract class DomAdapter {
|
|||||||
abstract hasAttribute(element: any, attribute: string): boolean;
|
abstract hasAttribute(element: any, attribute: string): boolean;
|
||||||
abstract hasAttributeNS(element: any, ns: string, attribute: string): boolean;
|
abstract hasAttributeNS(element: any, ns: string, attribute: string): boolean;
|
||||||
abstract getAttribute(element: any, attribute: string): string|null;
|
abstract getAttribute(element: any, attribute: string): string|null;
|
||||||
abstract getAttributeNS(element: any, ns: string, attribute: string): string;
|
abstract getAttributeNS(element: any, ns: string, attribute: string): string|null;
|
||||||
abstract setAttribute(element: any, name: string, value: string): any;
|
abstract setAttribute(element: any, name: string, value: string): any;
|
||||||
abstract setAttributeNS(element: any, ns: string, name: string, value: string): any;
|
abstract setAttributeNS(element: any, ns: string, name: string, value: string): any;
|
||||||
abstract removeAttribute(element: any, attribute: string): any;
|
abstract removeAttribute(element: any, attribute: string): any;
|
||||||
|
@ -135,7 +135,7 @@ export class DominoAdapter extends BrowserDomAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getBaseHref(doc: Document): string {
|
getBaseHref(doc: Document): string {
|
||||||
const base = this.querySelector(doc.documentElement, 'base');
|
const base = this.querySelector(doc.documentElement !, 'base');
|
||||||
let href = '';
|
let href = '';
|
||||||
if (base) {
|
if (base) {
|
||||||
href = this.getHref(base);
|
href = this.getHref(base);
|
||||||
|
4
tools/public_api_guard/common/http.d.ts
vendored
4
tools/public_api_guard/common/http.d.ts
vendored
@ -1497,8 +1497,8 @@ export interface HttpDownloadProgressEvent extends HttpProgressEvent {
|
|||||||
export declare class HttpErrorResponse extends HttpResponseBase implements Error {
|
export declare class HttpErrorResponse extends HttpResponseBase implements Error {
|
||||||
readonly error: any | null;
|
readonly error: any | null;
|
||||||
readonly message: string;
|
readonly message: string;
|
||||||
readonly name: string;
|
readonly name = "HttpErrorResponse";
|
||||||
readonly ok: boolean;
|
readonly ok = false;
|
||||||
constructor(init: {
|
constructor(init: {
|
||||||
error?: any;
|
error?: any;
|
||||||
headers?: HttpHeaders;
|
headers?: HttpHeaders;
|
||||||
|
4
tools/public_api_guard/core/core.d.ts
vendored
4
tools/public_api_guard/core/core.d.ts
vendored
@ -26,7 +26,7 @@ export declare const APP_ID: InjectionToken<string>;
|
|||||||
export declare const APP_INITIALIZER: InjectionToken<(() => void)[]>;
|
export declare const APP_INITIALIZER: InjectionToken<(() => void)[]>;
|
||||||
|
|
||||||
export declare class ApplicationInitStatus {
|
export declare class ApplicationInitStatus {
|
||||||
readonly done: boolean;
|
readonly done = false;
|
||||||
readonly donePromise: Promise<any>;
|
readonly donePromise: Promise<any>;
|
||||||
constructor(appInits: (() => any)[]);
|
constructor(appInits: (() => any)[]);
|
||||||
}
|
}
|
||||||
@ -624,7 +624,7 @@ export declare abstract class Query {
|
|||||||
|
|
||||||
export declare class QueryList<T> {
|
export declare class QueryList<T> {
|
||||||
readonly changes: Observable<any>;
|
readonly changes: Observable<any>;
|
||||||
readonly dirty: boolean;
|
readonly dirty = true;
|
||||||
readonly first: T;
|
readonly first: T;
|
||||||
readonly last: T;
|
readonly last: T;
|
||||||
readonly length: number;
|
readonly length: number;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"test": "test"
|
"test": "test"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "^3.0.1"
|
"typescript": "~3.1.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chalk": "^2.3.1",
|
"chalk": "^2.3.1",
|
||||||
@ -24,7 +24,7 @@
|
|||||||
"@types/node": "^10.9.2",
|
"@types/node": "^10.9.2",
|
||||||
"chai": "^4.1.2",
|
"chai": "^4.1.2",
|
||||||
"jasmine": "^3.1.0",
|
"jasmine": "^3.1.0",
|
||||||
"typescript": "~3.0.1"
|
"typescript": "~3.1.1"
|
||||||
},
|
},
|
||||||
"repository": {},
|
"repository": {},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -165,9 +165,9 @@ type-detect@^4.0.0:
|
|||||||
version "4.0.8"
|
version "4.0.8"
|
||||||
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
|
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
|
||||||
|
|
||||||
typescript@~3.0.1:
|
typescript@~3.1.1:
|
||||||
version "3.0.1"
|
version "3.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.0.1.tgz#43738f29585d3a87575520a4b93ab6026ef11fdb"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.1.tgz#3362ba9dd1e482ebb2355b02dfe8bcd19a2c7c96"
|
||||||
|
|
||||||
wrappy@1:
|
wrappy@1:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
|
@ -7151,9 +7151,9 @@ typedarray@^0.0.6:
|
|||||||
version "2.7.2"
|
version "2.7.2"
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.2.tgz#2d615a1ef4aee4f574425cdff7026edf81919836"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.2.tgz#2d615a1ef4aee4f574425cdff7026edf81919836"
|
||||||
|
|
||||||
typescript@~3.0.1:
|
typescript@~3.1.1:
|
||||||
version "3.0.1"
|
version "3.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/npm/OBG-NPM/typescript/-/typescript-3.0.1.tgz#43738f29585d3a87575520a4b93ab6026ef11fdb"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.1.tgz#3362ba9dd1e482ebb2355b02dfe8bcd19a2c7c96"
|
||||||
|
|
||||||
uglify-es@^3.3.9:
|
uglify-es@^3.3.9:
|
||||||
version "3.3.9"
|
version "3.3.9"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user