Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-tsb

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-tsb - npm Package Compare versions

Comparing version 1.8.1 to 1.8.2

28

lib/builder.js

@@ -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.",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc