@@ -12,7 +12,7 @@ namespace ts {
12
12
13
13
const emptyArray : any [ ] = [ ] ;
14
14
15
- export const version = "1.8.5 " ;
15
+ export const version = "1.8.7 " ;
16
16
17
17
export function findConfigFile ( searchPath : string , fileExists : ( fileName : string ) => boolean ) : string {
18
18
let fileName = "tsconfig.json" ;
@@ -77,7 +77,7 @@ namespace ts {
77
77
78
78
/**
79
79
* @param {boolean } onlyRecordFailures - if true then function won't try to actually load files but instead record all attempts as failures. This flag is necessary
80
- * in cases when we know upfront that all load attempts will fail (because containing folder does not exists) however we still need to record all failed lookup locations.
80
+ * in cases when we know upfront that all load attempts will fail (because containing folder does not exists) however we still need to record all failed lookup locations.
81
81
*/
82
82
function loadNodeModuleFromFile ( extensions : string [ ] , candidate : string , failedLookupLocation : string [ ] , onlyRecordFailures : boolean , host : ModuleResolutionHost ) : string {
83
83
return forEach ( extensions , tryLoad ) ;
@@ -106,7 +106,7 @@ namespace ts {
106
106
jsonContent = jsonText ? < { typings ?: string } > JSON . parse ( jsonText ) : { typings : undefined } ;
107
107
}
108
108
catch ( e ) {
109
- // gracefully handle if readFile fails or returns not JSON
109
+ // gracefully handle if readFile fails or returns not JSON
110
110
jsonContent = { typings : undefined } ;
111
111
}
112
112
@@ -181,7 +181,7 @@ namespace ts {
181
181
searchName = normalizePath ( combinePaths ( searchPath , moduleName ) ) ;
182
182
referencedSourceFile = forEach ( supportedExtensions , extension => {
183
183
if ( extension === ".tsx" && ! compilerOptions . jsx ) {
184
- // resolve .tsx files only if jsx support is enabled
184
+ // resolve .tsx files only if jsx support is enabled
185
185
// 'logical not' handles both undefined and None cases
186
186
return undefined ;
187
187
}
@@ -382,7 +382,7 @@ namespace ts {
382
382
383
383
const filesByName = createFileMap < SourceFile > ( ) ;
384
384
// stores 'filename -> file association' ignoring case
385
- // used to track cases when two file names differ only in casing
385
+ // used to track cases when two file names differ only in casing
386
386
const filesByNameIgnoreCase = host . useCaseSensitiveFileNames ( ) ? createFileMap < SourceFile > ( fileName => fileName . toLowerCase ( ) ) : undefined ;
387
387
388
388
if ( oldProgram ) {
@@ -980,7 +980,7 @@ namespace ts {
980
980
}
981
981
982
982
// TypeScript 1.0 spec (April 2014): 12.1.6
983
- // An ExternalImportDeclaration in an AmbientExternalModuleDeclaration may reference other external modules
983
+ // An ExternalImportDeclaration in an AmbientExternalModuleDeclaration may reference other external modules
984
984
// only through top - level external module names. Relative external module names are not permitted.
985
985
if ( ! inAmbientModule || ! isExternalModuleNameRelative ( ( < LiteralExpression > moduleNameExpr ) . text ) ) {
986
986
( imports || ( imports = [ ] ) ) . push ( < LiteralExpression > moduleNameExpr ) ;
@@ -998,7 +998,7 @@ namespace ts {
998
998
( moduleAugmentations || ( moduleAugmentations = [ ] ) ) . push ( moduleName ) ;
999
999
}
1000
1000
else if ( ! inAmbientModule ) {
1001
- // An AmbientExternalModuleDeclaration declares an external module.
1001
+ // An AmbientExternalModuleDeclaration declares an external module.
1002
1002
// This type of declaration is permitted only in the global module.
1003
1003
// The StringLiteral must specify a top - level external module name.
1004
1004
// Relative external module names are not permitted
0 commit comments