ts-node
Advanced tools
Comparing version 8.6.1 to 8.6.2
@@ -5,3 +5,3 @@ "use strict"; | ||
const sourceMapSupport = require("source-map-support"); | ||
const yn = require("yn"); | ||
const ynModule = require("yn"); | ||
const make_error_1 = require("make-error"); | ||
@@ -18,2 +18,10 @@ const util = require("util"); | ||
/** | ||
* Wrapper around yn module that returns `undefined` instead of `null`. | ||
* This is implemented by yn v4, but we're staying on v3 to avoid v4's node 10 requirement. | ||
*/ | ||
function yn(value) { | ||
var _a; | ||
return _a = ynModule(value), (_a !== null && _a !== void 0 ? _a : undefined); | ||
} | ||
/** | ||
* Debugging `ts-node`. | ||
@@ -20,0 +28,0 @@ */ |
@@ -269,5 +269,3 @@ "use strict"; | ||
child_process_1.exec(`${BIN_EXEC} tests/tsconfig-options/log-options.js`, { | ||
env: { | ||
TS_NODE_COMPILER_OPTIONS: '{"typeRoots": ["env-typeroots"]}' | ||
} | ||
env: Object.assign(Object.assign({}, process.env), { TS_NODE_COMPILER_OPTIONS: '{"typeRoots": ["env-typeroots"]}' }) | ||
}, function (err, stdout) { | ||
@@ -274,0 +272,0 @@ chai_1.expect(err).to.equal(null); |
{ | ||
"name": "ts-node", | ||
"version": "8.6.1", | ||
"version": "8.6.2", | ||
"description": "TypeScript execution environment and REPL for node.js, with source map support", | ||
@@ -86,4 +86,4 @@ "main": "dist/index.js", | ||
"source-map-support": "^0.5.6", | ||
"yn": "^4.0.0" | ||
"yn": "3.1.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 18 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
240082
2629
34