Comparing version 1.4.2 to 1.4.3
@@ -140,2 +140,3 @@ "use strict"; | ||
function evalAndExit(code, isPrinted) { | ||
; | ||
global.__filename = EVAL_FILENAME; | ||
@@ -142,0 +143,0 @@ global.__dirname = cwd; |
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
var arg = opts[i]; | ||
var flag = arg.split('=')[0]; | ||
var flag = arg.split('=', 1)[0]; | ||
switch (flag) { | ||
@@ -16,8 +16,2 @@ case '-d': | ||
break; | ||
case 'debug': | ||
case '--debug': | ||
case '--debug-brk': | ||
args.unshift(arg); | ||
opts.splice(i, 1); | ||
break; | ||
case '-gc': | ||
@@ -28,2 +22,6 @@ case '--expose-gc': | ||
break; | ||
case 'debug': | ||
case '--debug': | ||
case '--debug-brk': | ||
case '--inspect': | ||
case '--gc-global': | ||
@@ -30,0 +28,0 @@ case '--es_staging': |
@@ -22,11 +22,11 @@ "use strict"; | ||
fileExists: fileExists, | ||
cache: yn(process.env.TS_NODE_CACHE), | ||
cacheDirectory: process.env.TS_NODE_CACHE_DIRECTORY, | ||
disableWarnings: yn(process.env.TS_NODE_DISABLE_WARNINGS), | ||
compiler: process.env.TS_NODE_COMPILER, | ||
compilerOptions: parse(process.env.TS_NODE_COMPILER_OPTIONS), | ||
project: process.env.TS_NODE_PROJECT, | ||
ignore: split(process.env.TS_NODE_IGNORE), | ||
ignoreWarnings: split(process.env.TS_NODE_IGNORE_WARNINGS), | ||
fast: yn(process.env.TS_NODE_FAST) | ||
cache: yn(process.env['TS_NODE_CACHE']), | ||
cacheDirectory: process.env['TS_NODE_CACHE_DIRECTORY'], | ||
disableWarnings: yn(process.env['TS_NODE_DISABLE_WARNINGS']), | ||
compiler: process.env['TS_NODE_COMPILER'], | ||
compilerOptions: parse(process.env['TS_NODE_COMPILER_OPTIONS']), | ||
project: process.env['TS_NODE_PROJECT'], | ||
ignore: split(process.env['TS_NODE_IGNORE']), | ||
ignoreWarnings: split(process.env['TS_NODE_IGNORE_WARNINGS']), | ||
fast: yn(process.env['TS_NODE_FAST']) | ||
}; | ||
@@ -94,3 +94,3 @@ function split(value) { | ||
function getExtension(fileName) { | ||
if (compilerOptions.jsx === 'preserve' && path_1.extname(fileName) === '.tsx') { | ||
if (config.options.jsx === ts.JsxEmit.Preserve && path_1.extname(fileName) === '.tsx') { | ||
return '.jsx'; | ||
@@ -97,0 +97,0 @@ } |
{ | ||
"name": "ts-node", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"preferGlobal": true, | ||
@@ -5,0 +5,0 @@ "description": "TypeScript execution environment and REPL for node", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 9 instances 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 9 instances in 1 package
113209
913