@angular/compiler
Advanced tools
Comparing version 2.0.1 to 2.1.0-beta.0
/** | ||
* @license Angular v2.0.1 | ||
* @license Angular v2.1.0-beta.0 | ||
* (c) 2010-2016 Google, Inc. https://angular.io/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
{ | ||
"name": "@angular/compiler", | ||
"version": "2.0.1", | ||
"version": "2.1.0-beta.0", | ||
"description": "Angular - the compiler library", | ||
@@ -11,3 +11,3 @@ "main": "bundles/compiler.umd.js", | ||
"peerDependencies": { | ||
"@angular/core": "2.0.1" | ||
"@angular/core": "2.1.0-beta.0" | ||
}, | ||
@@ -14,0 +14,0 @@ "repository": { |
@@ -82,2 +82,16 @@ /** | ||
}; | ||
// Temporary workaround to support strictNullCheck enabled consumers of ngc emit. | ||
// In SNC mode, [] have the type never[], so we cast here to any[]. | ||
// TODO: narrow the cast to a more explicit type, or use a pattern that does not | ||
// start with [].concat. see https://github.com/angular/angular/pull/11846 | ||
_TsEmitterVisitor.prototype.visitLiteralArrayExpr = function (ast, ctx) { | ||
if (ast.entries.length === 0) { | ||
ctx.print('('); | ||
} | ||
var result = _super.prototype.visitLiteralArrayExpr.call(this, ast, ctx); | ||
if (ast.entries.length === 0) { | ||
ctx.print(' as any)'); | ||
} | ||
return result; | ||
}; | ||
_TsEmitterVisitor.prototype.visitExternalExpr = function (ast, ctx) { | ||
@@ -84,0 +98,0 @@ this._visitIdentifier(ast.value, ast.typeParams, ctx); |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3995324
44047
3