Comparing version 8.8.0 to 8.8.1
@@ -254,3 +254,3 @@ "use strict"; | ||
let projectVersion = 1; | ||
const fileVersions = new Map(); | ||
const fileVersions = new Map(rootFileNames.map(fileName => [fileName, 0])); | ||
const getCustomTransformers = () => { | ||
@@ -266,6 +266,6 @@ if (typeof transformers === 'function') { | ||
getProjectVersion: () => String(projectVersion), | ||
getScriptFileNames: () => Array.from(fileContents.keys()), | ||
getScriptFileNames: () => Array.from(fileVersions.keys()), | ||
getScriptVersion: (fileName) => { | ||
const version = fileVersions.get(fileName); | ||
return version === undefined ? '' : version.toString(); | ||
return version ? version.toString() : ''; | ||
}, | ||
@@ -272,0 +272,0 @@ getScriptSnapshot(fileName) { |
{ | ||
"name": "ts-node", | ||
"version": "8.8.0", | ||
"version": "8.8.1", | ||
"description": "TypeScript execution environment and REPL for node.js, with source map support", | ||
@@ -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
245932