Socket
Socket
Sign inDemoInstall

ts-node

Package Overview
Dependencies
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-node - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

29

dist/index.js

@@ -16,2 +16,3 @@ "use strict";

var make_error_1 = require('make-error');
var tsconfig_1 = require('tsconfig');
var pkg = require('../package.json');

@@ -176,25 +177,3 @@ var oldHandlers = {};

function readConfig(options, cwd, ts) {
var project;
if (options.project == null) {
var path = ts.findConfigFile(cwd, options.fileExists);
project = path ? path_1.resolve(path) : undefined;
}
else if (typeof options.project === 'string') {
var path = path_1.resolve(options.project);
if (options.fileExists(path)) {
project = path;
}
else {
project = path_1.join(path, 'tsconfig.json');
}
}
var result = project ? ts.readConfigFile(project, options.getFile) : {
config: {
files: [],
compilerOptions: {}
}
};
if (result.error) {
throw new TSError([formatDiagnostic(result.error, cwd, ts)]);
}
var result = tsconfig_1.loadSync(cwd, options.project);
result.config.compilerOptions = extend({

@@ -213,7 +192,7 @@ target: 'es5',

delete result.config.compilerOptions.outFile;
var basePath = project ? path_1.dirname(project) : cwd;
var basePath = result.path ? path_1.dirname(result.path) : cwd;
if (typeof ts.parseConfigFile === 'function') {
return ts.parseConfigFile(result.config, ts.sys, basePath);
}
return ts.parseJsonConfigFileContent(result.config, ts.sys, basePath, null, project);
return ts.parseJsonConfigFileContent(result.config, ts.sys, basePath, null, result.path);
}

@@ -220,0 +199,0 @@ function readThrough(cachedir, options, project, compile) {

7

package.json
{
"name": "ts-node",
"version": "1.1.0",
"version": "1.2.0",
"preferGlobal": true,

@@ -54,4 +54,4 @@ "description": "TypeScript execution environment and REPL for node",

"semver": "^5.1.0",
"tslint": "^3.10.2",
"tslint-config-standard": "^1.0.0",
"tslint": "^3.13.0",
"tslint-config-standard": "^1.3.0",
"typescript": "^1.8.10",

@@ -68,4 +68,5 @@ "typings": "^1.0.4"

"source-map-support": "^0.4.0",
"tsconfig": "^5.0.2",
"xtend": "^4.0.0"
}
}

Sorry, the diff of this file is not supported yet

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