parent
138ca5a246
commit
ef85336719
|
@ -157,7 +157,7 @@
|
||||||
"ts-node": "^3.3.0",
|
"ts-node": "^3.3.0",
|
||||||
"tslib": "^1.9.0",
|
"tslib": "^1.9.0",
|
||||||
"tslint": "~5.9.1",
|
"tslint": "~5.9.1",
|
||||||
"typescript": "~3.3.3333",
|
"typescript": "~3.4.2",
|
||||||
"uglify-js": "^3.0.15",
|
"uglify-js": "^3.0.15",
|
||||||
"unist-util-filter": "^0.2.1",
|
"unist-util-filter": "^0.2.1",
|
||||||
"unist-util-source": "^1.0.1",
|
"unist-util-source": "^1.0.1",
|
||||||
|
|
|
@ -28,6 +28,7 @@ export class ReportingErrorHandler extends ErrorHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
private reportError(error: string | Error) {
|
private reportError(error: string | Error) {
|
||||||
|
if (this.window.onerror) {
|
||||||
if (typeof error === 'string') {
|
if (typeof error === 'string') {
|
||||||
this.window.onerror(error);
|
this.window.onerror(error);
|
||||||
} else {
|
} else {
|
||||||
|
@ -35,3 +36,4 @@ export class ReportingErrorHandler extends ErrorHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -190,7 +190,9 @@ createViewNodes@???`);
|
||||||
// reset the ga queue
|
// reset the ga queue
|
||||||
(window as any).ga.q.length = 0;
|
(window as any).ga.q.length = 0;
|
||||||
// post the error to the handler
|
// post the error to the handler
|
||||||
|
if (window.onerror) {
|
||||||
window.onerror(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
|
window.onerror(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
|
||||||
|
}
|
||||||
}, message, url, line, column, error);
|
}, message, url, line, column, error);
|
||||||
const gaCalls = await page.ga();
|
const gaCalls = await page.ga();
|
||||||
const exceptionCall = gaCalls.find(call => call[0] === 'send' && call[1] === 'exception');
|
const exceptionCall = gaCalls.find(call => call[0] === 'send' && call[1] === 'exception');
|
||||||
|
|
|
@ -10576,10 +10576,10 @@ typescript@^2.4.1:
|
||||||
version "2.6.2"
|
version "2.6.2"
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.2.tgz#3c5b6fd7f6de0914269027f03c0946758f7673a4"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.6.2.tgz#3c5b6fd7f6de0914269027f03c0946758f7673a4"
|
||||||
|
|
||||||
typescript@^3.2.2, typescript@~3.3.3333:
|
typescript@^3.2.2, typescript@~3.4.2:
|
||||||
version "3.3.3333"
|
version "3.4.2"
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.3333.tgz#171b2c5af66c59e9431199117a3bcadc66fdcfd6"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.2.tgz#9ed4e6475d906f589200193be056f5913caed481"
|
||||||
integrity sha512-JjSKsAfuHBE/fB2oZ8NxtRTk5iGcg6hkYXMnZ3Wc+b2RSqejEqTaem11mHASMnFilHrax3sLK0GDzcJrekZYLw==
|
integrity sha512-Og2Vn6Mk7JAuWA1hQdDQN/Ekm/SchX80VzLhjKN9ETYrIepBFAd8PkOdOTK2nKt0FCkmMZKBJvQ1dV1gIxPu/A==
|
||||||
|
|
||||||
uglify-js@^3.0.15, uglify-js@^3.1.4:
|
uglify-js@^3.0.15, uglify-js@^3.1.4:
|
||||||
version "3.4.9"
|
version "3.4.9"
|
||||||
|
|
|
@ -30,7 +30,7 @@ function testBazel() {
|
||||||
yarn
|
yarn
|
||||||
# Force more recent TS version until new Angular CLI projects also use it.
|
# Force more recent TS version until new Angular CLI projects also use it.
|
||||||
# --ignore-scripts is necessary because there is a postinstall script that uses ngc.
|
# --ignore-scripts is necessary because there is a postinstall script that uses ngc.
|
||||||
yarn add typescript@3.3.3333 --dev --ignore-scripts
|
yarn add typescript@3.4.2 --dev --ignore-scripts
|
||||||
installLocalPackages
|
installLocalPackages
|
||||||
yarn webdriver-manager update --gecko=false --standalone=false ${CI_CHROMEDRIVER_VERSION_ARG:---versions.chrome 2.45}
|
yarn webdriver-manager update --gecko=false --standalone=false ${CI_CHROMEDRIVER_VERSION_ARG:---versions.chrome 2.45}
|
||||||
ng generate component widget --style=css
|
ng generate component widget --style=css
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
"@types/jasmine": "2.8.8",
|
"@types/jasmine": "2.8.8",
|
||||||
"@types/source-map": "0.5.1",
|
"@types/source-map": "0.5.1",
|
||||||
"protractor": "5.1.2",
|
"protractor": "5.1.2",
|
||||||
"typescript": "3.3.3333"
|
"typescript": "3.4.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "ngc -p ./angular-metadata.tsconfig.json",
|
"postinstall": "ngc -p ./angular-metadata.tsconfig.json",
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm run clean && npm run ngc && npm run rollup && npm run rollup:lazy && npm run es5 && npm run es5:lazy",
|
"build": "npm run clean && npm run ngc && npm run rollup && npm run rollup:lazy && npm run es5 && npm run es5:lazy",
|
||||||
"clean": "rm -rf dist",
|
"clean": "rm -rf dist",
|
||||||
"es5": "tsc --target es5 --skipLibCheck --allowJs dist/bundle.es2015.js --out dist/bundle.js",
|
"//es5-note": "`--typeRoots ./dummy_folder_name/@types` is a workaround for https://github.com/Microsoft/TypeScript/issues/30845",
|
||||||
|
"es5": "tsc --target es5 --skipLibCheck --allowJs dist/bundle.es2015.js --out dist/bundle.js --typeRoots ./dummy_folder_name/@types",
|
||||||
"es5:lazy": "tsc --target es5 --skipLibCheck --allowJs dist/lazy.bundle.es2015.js --out dist/lazy.bundle.js",
|
"es5:lazy": "tsc --target es5 --skipLibCheck --allowJs dist/lazy.bundle.es2015.js --out dist/lazy.bundle.js",
|
||||||
"ngc": "ngc -p tsconfig.json",
|
"ngc": "ngc -p tsconfig.json",
|
||||||
"rollup": "rollup -f iife -c rollup.config.js -o dist/bundle.es2015.js",
|
"rollup": "rollup -f iife -c rollup.config.js -o dist/bundle.es2015.js",
|
||||||
|
|
|
@ -21,7 +21,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": "3.3.x",
|
"typescript": "3.4.2",
|
||||||
"zone.js": "file:../../node_modules/zone.js"
|
"zone.js": "file:../../node_modules/zone.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
|
@ -99,7 +99,7 @@
|
||||||
"tsickle": "0.34.3",
|
"tsickle": "0.34.3",
|
||||||
"tslib": "^1.9.0",
|
"tslib": "^1.9.0",
|
||||||
"tslint": "5.7.0",
|
"tslint": "5.7.0",
|
||||||
"typescript": "~3.3.3333",
|
"typescript": "~3.4.2",
|
||||||
"xhr2": "0.1.4",
|
"xhr2": "0.1.4",
|
||||||
"yargs": "9.0.1",
|
"yargs": "9.0.1",
|
||||||
"zone.js": "^0.9.0"
|
"zone.js": "^0.9.0"
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/compiler-cli": "0.0.0-PLACEHOLDER",
|
"@angular/compiler-cli": "0.0.0-PLACEHOLDER",
|
||||||
"@bazel/typescript": "0.27.10",
|
"@bazel/typescript": "0.27.10",
|
||||||
"typescript": ">=3.3.3333 <3.4"
|
"typescript": ">=3.4 <3.5"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -91,7 +91,7 @@ export abstract class Renderer {
|
||||||
const renderedFiles: FileInfo[] = [];
|
const renderedFiles: FileInfo[] = [];
|
||||||
|
|
||||||
// Transform the source files.
|
// Transform the source files.
|
||||||
this.bundle.src.program.getSourceFiles().map(sourceFile => {
|
this.bundle.src.program.getSourceFiles().forEach(sourceFile => {
|
||||||
const compiledFile = decorationAnalyses.get(sourceFile);
|
const compiledFile = decorationAnalyses.get(sourceFile);
|
||||||
const switchMarkerAnalysis = switchMarkerAnalyses.get(sourceFile);
|
const switchMarkerAnalysis = switchMarkerAnalyses.get(sourceFile);
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/compiler": "0.0.0-PLACEHOLDER",
|
"@angular/compiler": "0.0.0-PLACEHOLDER",
|
||||||
"typescript": ">=3.3.3333 <3.4"
|
"typescript": ">=3.4 <3.5"
|
||||||
},
|
},
|
||||||
"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.3.3333';
|
const MIN_TS_VERSION = '3.4.0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.4.0';
|
const MAX_TS_VERSION = '3.5.0';
|
||||||
|
|
||||||
class AngularCompilerProgram implements Program {
|
class AngularCompilerProgram implements Program {
|
||||||
private rootNames: string[];
|
private rootNames: string[];
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"test": "test"
|
"test": "test"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "~3.2.2"
|
"typescript": "~3.4.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chalk": "^2.3.1",
|
"chalk": "^2.3.1",
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
"chai": "^4.1.2",
|
"chai": "^4.1.2",
|
||||||
"jasmine": "^3.1.0",
|
"jasmine": "^3.1.0",
|
||||||
"source-map-support": "^0.5.9",
|
"source-map-support": "^0.5.9",
|
||||||
"typescript": "~3.3.3333"
|
"typescript": "~3.4.2"
|
||||||
},
|
},
|
||||||
"repository": {},
|
"repository": {},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -10640,10 +10640,10 @@ typescript@~3.1.6:
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.6.tgz#b6543a83cfc8c2befb3f4c8fba6896f5b0c9be68"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.6.tgz#b6543a83cfc8c2befb3f4c8fba6896f5b0c9be68"
|
||||||
integrity sha512-tDMYfVtvpb96msS1lDX9MEdHrW4yOuZ4Kdc4Him9oU796XldPYF/t2+uKoX0BBa0hXXwDlqYQbXY5Rzjzc5hBA==
|
integrity sha512-tDMYfVtvpb96msS1lDX9MEdHrW4yOuZ4Kdc4Him9oU796XldPYF/t2+uKoX0BBa0hXXwDlqYQbXY5Rzjzc5hBA==
|
||||||
|
|
||||||
typescript@~3.3.3333:
|
typescript@~3.4.2:
|
||||||
version "3.3.3333"
|
version "3.4.2"
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.3333.tgz#171b2c5af66c59e9431199117a3bcadc66fdcfd6"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.2.tgz#9ed4e6475d906f589200193be056f5913caed481"
|
||||||
integrity sha512-JjSKsAfuHBE/fB2oZ8NxtRTk5iGcg6hkYXMnZ3Wc+b2RSqejEqTaem11mHASMnFilHrax3sLK0GDzcJrekZYLw==
|
integrity sha512-Og2Vn6Mk7JAuWA1hQdDQN/Ekm/SchX80VzLhjKN9ETYrIepBFAd8PkOdOTK2nKt0FCkmMZKBJvQ1dV1gIxPu/A==
|
||||||
|
|
||||||
uglify-js@1.2.6, uglify-js@~1.2.5:
|
uglify-js@1.2.6, uglify-js@~1.2.5:
|
||||||
version "1.2.6"
|
version "1.2.6"
|
||||||
|
|
Loading…
Reference in New Issue