Comparing version 6.0.3 to 6.0.4
@@ -324,5 +324,5 @@ "use strict"; | ||
if (!noProject) { | ||
configFileName = project ? path_1.resolve(cwd, project) : ts.findConfigFile(cwd, fileExists); | ||
configFileName = project ? path_1.resolve(cwd, project) : ts.findConfigFile(normalizeSlashes(cwd), fileExists); | ||
if (configFileName) { | ||
var result = ts.readConfigFile(configFileName, readFile); | ||
var result = ts.readConfigFile(normalizeSlashes(configFileName), readFile); | ||
if (result.error) { | ||
@@ -378,3 +378,3 @@ throw new TSError([formatDiagnostic(result.error, cwd, ts, 0)]); | ||
function updateOutput(outputText, fileName, sourceMap, getExtension) { | ||
var base64Map = new Buffer(updateSourceMap(sourceMap, fileName), 'utf8').toString('base64'); | ||
var base64Map = Buffer.from(updateSourceMap(sourceMap, fileName), 'utf8').toString('base64'); | ||
var sourceMapContent = "data:application/json;charset=utf-8;base64," + base64Map; | ||
@@ -381,0 +381,0 @@ var sourceMapLength = (path_1.basename(fileName) + ".map").length + (getExtension(fileName).length - path_1.extname(fileName).length); |
{ | ||
"name": "ts-node", | ||
"version": "6.0.3", | ||
"version": "6.0.4", | ||
"description": "TypeScript execution environment and REPL for node", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
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
127533