Comparing version 1.8.1 to 1.8.2
@@ -27,6 +27,2 @@ 'use strict'; | ||
host.getCompilationSettings().declaration = true; | ||
if (!host.getCompilationSettings().noLib) { | ||
var defaultLib = host.getDefaultLibFileName(); | ||
host.addScriptSnapshot(defaultLib, new DefaultLibScriptSnapshot(defaultLib)); | ||
} | ||
function _log(topic, message) { | ||
@@ -303,5 +299,5 @@ if (config.verbose) { | ||
function map(key, map, defaultValue) { | ||
key = key.toLowerCase(); | ||
if (map.hasOwnProperty(key)) { | ||
return map[key]; | ||
var s = String(key).toLowerCase(); | ||
if (map.hasOwnProperty(s)) { | ||
return map[s]; | ||
} | ||
@@ -311,3 +307,3 @@ return defaultValue; | ||
// language version | ||
config['target'] = map(String(config['target']), { | ||
config['target'] = map(config['target'], { | ||
es3: 0 /* ES3 */, | ||
@@ -320,3 +316,3 @@ es5: 1 /* ES5 */, | ||
// module generation | ||
config['module'] = map(String(config['module']), { | ||
config['module'] = map(config['module'], { | ||
commonjs: 1 /* CommonJS */, | ||
@@ -330,3 +326,3 @@ amd: 2 /* AMD */, | ||
// jsx handling | ||
config['jsx'] = map(String(config['jsx']), { | ||
config['jsx'] = map(config['jsx'], { | ||
preserve: 1 /* Preserve */, | ||
@@ -356,9 +352,2 @@ react: 2 /* React */ | ||
})(); | ||
var DefaultLibScriptSnapshot = (function (_super) { | ||
__extends(DefaultLibScriptSnapshot, _super); | ||
function DefaultLibScriptSnapshot(defaultLib) { | ||
_super.call(this, fs_1.readFileSync(defaultLib).toString(), fs_1.statSync(defaultLib).mtime); | ||
} | ||
return DefaultLibScriptSnapshot; | ||
})(ScriptSnapshot); | ||
var VinylScriptSnapshot = (function (_super) { | ||
@@ -379,5 +368,2 @@ __extends(VinylScriptSnapshot, _super); | ||
this._snapshots = Object.create(null); | ||
this._defaultLib = normalize(path.join(__dirname, 'typescript', settings.target === 2 /* ES6 */ | ||
? 'lib.es6.d.ts' | ||
: 'lib.d.ts')); | ||
this._dependencies = new utils.graph.Graph(function (s) { return s; }); | ||
@@ -468,3 +454,3 @@ this._dependenciesRecomputeList = []; | ||
LanguageServiceHost.prototype.getDefaultLibFileName = function () { | ||
return this._defaultLib; | ||
return; | ||
}; | ||
@@ -471,0 +457,0 @@ // ---- dependency management |
{ | ||
"name": "gulp-tsb", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"author": "Johannes Rieken <johannes.rieken@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "A gulp plugin for very fast TypeScript compilation.", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
34039
734