@angular/tsc-wrapped
Advanced tools
Comparing version 4.4.4 to 4.4.5
{ | ||
"name": "@angular/tsc-wrapped", | ||
"version": "4.4.4", | ||
"version": "4.4.5", | ||
"description": "Wraps the tsc CLI, allowing extensions.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/angular/angular/blob/master/tools/@angular/tsc-wrapped", |
@@ -240,3 +240,5 @@ "use strict"; | ||
var isExportedIdentifier = function (identifier) { return exportMap.has(identifier.text); }; | ||
var isExported = function (node) { return isExport(node) || isExportedIdentifier(node.name); }; | ||
var isExported = function (node) { | ||
return isExport(node) || isExportedIdentifier(node.name); | ||
}; | ||
var exportedIdentifierName = function (identifier) { | ||
@@ -243,0 +245,0 @@ return exportMap.get(identifier.text) || identifier.text; |
@@ -37,2 +37,3 @@ "use strict"; | ||
*/ | ||
// tslint:disable:semicolon | ||
var DelegatingHost = (function () { | ||
@@ -39,0 +40,0 @@ function DelegatingHost(delegate) { |
@@ -90,3 +90,3 @@ "use strict"; | ||
} | ||
var tsickleCompilerHostOptions = { googmodule: false, untyped: true, convertIndexImportShorthand: true }; | ||
var tsickleCompilerHostOptions = { googmodule: false, untyped: true, convertIndexImportShorthand: false }; | ||
var tsickleHost = { | ||
@@ -93,0 +93,0 @@ shouldSkipTsickleProcessing: function (fileName) { return /\.d\.ts$/.test(fileName); }, |
@@ -43,3 +43,3 @@ "use strict"; | ||
// Expand `export *` and fix index import | ||
expect(out).toContain("export { A, B } from './dep/index'"); | ||
expect(out).toContain("export { A, B } from './dep'"); | ||
// Annotated for Closure compiler | ||
@@ -79,3 +79,3 @@ expect(out).toContain('* @param {?} x'); | ||
// Expand `export *` and fix index import | ||
expect(out).toContain("export { A, B } from './dep/index'"); | ||
expect(out).toContain("export { A, B } from './dep'"); | ||
// Annotated for Closure compiler | ||
@@ -190,3 +190,3 @@ expect(out).toContain('* @param {?} x'); | ||
}); | ||
it('should expand shorthand imports for ES2015 modules', function (done) { | ||
it('should not expand shorthand imports for ES2015 modules', function (done) { | ||
write('tsconfig.json', "{\n \"compilerOptions\": {\n \"experimentalDecorators\": true,\n \"types\": [],\n \"outDir\": \"built\",\n \"declaration\": true,\n \"moduleResolution\": \"node\",\n \"target\": \"es2015\",\n \"module\": \"es2015\"\n },\n \"angularCompilerOptions\": {\n \"annotateForClosureCompiler\": true\n },\n \"files\": [\"test.ts\"]\n }"); | ||
@@ -196,3 +196,3 @@ main_1.main(basePath, { basePath: basePath }) | ||
var fileOutput = readOut('js'); | ||
expect(fileOutput).toContain("export { A, B } from './dep/index'"); | ||
expect(fileOutput).toContain("export { A, B } from './dep'"); | ||
done(); | ||
@@ -202,3 +202,3 @@ }) | ||
}); | ||
it('should expand shorthand imports for ES5 CommonJS modules', function (done) { | ||
it('should not expand shorthand imports for ES5 CommonJS modules', function (done) { | ||
write('tsconfig.json', "{\n \"compilerOptions\": {\n \"experimentalDecorators\": true,\n \"types\": [],\n \"outDir\": \"built\",\n \"declaration\": true,\n \"moduleResolution\": \"node\",\n \"target\": \"es5\",\n \"module\": \"commonjs\"\n },\n \"angularCompilerOptions\": {\n \"annotateForClosureCompiler\": true\n },\n \"files\": [\"test.ts\"]\n }"); | ||
@@ -208,3 +208,3 @@ main_1.main(basePath, { basePath: basePath }) | ||
var fileOutput = readOut('js'); | ||
expect(fileOutput).toContain("var index_1 = require(\"./dep/index\");"); | ||
expect(fileOutput).toContain("var dep_1 = require(\"./dep\");"); | ||
done(); | ||
@@ -211,0 +211,0 @@ }) |
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
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
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
676784
5337