=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js-102- // This trick is copied from node's source. ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js:103: err.name = `Error [${ code }]` ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js-104- err.stack ############################################## ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js-117- const ext = path.extname(filename) ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js:118: let msg = `Must use import to load ES Module: ${filename}`; ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js-119- if (parentPath && packageJsonPath) { ############################################## ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js-124- '\nrequire() of ES modules is not supported.\nrequire() of ' + ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js:125: `${filename} ${parentPath ? `from ${parentPath} ` : ''}` + ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js:126: `is an ES module file as it is a ${ext} file whose nearest parent ` + ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js:127: `package.json contains "type": "module" which defines all ${ext} ` + ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js-128- 'files in that package scope as ES modules.\nInstead ' + ############################################## ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js-130- 'import(), or remove "type": "module" from ' + ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js:131: `${packageJsonPath}.\n`; ts-node-9.0.0/dist-raw/node-cjs-loader-utils.js-132- return msg; ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-218- // Note: fs check redundances will be handled by Descriptor cache here. ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:219: if (fileExists(guess = new URL(`./${packageConfig.main}`, ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-220- packageJSONUrl))) { ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-222- } ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:223: if (fileExists(guess = new URL(`./${packageConfig.main}.js`, ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-224- packageJSONUrl))) { ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-226- } ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:227: if (fileExists(guess = new URL(`./${packageConfig.main}.json`, ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-228- packageJSONUrl))) { ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-230- } ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:231: if (fileExists(guess = new URL(`./${packageConfig.main}.node`, ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-232- packageJSONUrl))) { ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-234- } ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:235: if (fileExists(guess = new URL(`./${packageConfig.main}/index.js`, ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-236- packageJSONUrl))) { ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-238- } ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:239: if (fileExists(guess = new URL(`./${packageConfig.main}/index.json`, ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-240- packageJSONUrl))) { ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-242- } ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:243: if (fileExists(guess = new URL(`./${packageConfig.main}/index.node`, ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-244- packageJSONUrl))) { ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-280- const extension = extensions[i]; ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:281: const guess = new URL(`${search.pathname}${extension}`, search); ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-282- if (fileExists(guess)) return guess; ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-297- const extension = replacementExtensions[i]; ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:298: const guess = new URL(`${pathnameWithoutExtension}${extension}`, search); ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-299- if (fileExists(guess)) return guess; ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-313- if (!StringPrototypeEndsWith(resolved.pathname, '/')) { ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:314: file = resolveIndex(new URL(`${resolved.pathname}/`, base)); ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-315- } else { ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-351- } else if (ArrayIsArray(target)) { ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:352: target = `[${target}]`; ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-353- } else { ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:354: target = `${target}`; ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-355- } ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-389- const keyNum = +key; ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:390: if (`${keyNum}` !== key) return false; ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-391- return keyNum >= 0 && keyNum < 0xFFFF_FFFF; ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-706- if (isMain) { ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:707: parentURL = pathToFileURL(`${process.cwd()}/`).href; ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-708- ############################################## ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-731- ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js:732: return { url: `${url}` }; ts-node-9.0.0/dist-raw/node-esm-resolve-implementation.js-733-} ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-173- // Note: fs check redundances will be handled by Descriptor cache here. ts-node-9.0.0/raw/node-esm-resolve-implementation.js:174: if (fileExists(guess = new URL(`./${packageConfig.main}`, ts-node-9.0.0/raw/node-esm-resolve-implementation.js-175- packageJSONUrl))) { ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-177- } ts-node-9.0.0/raw/node-esm-resolve-implementation.js:178: if (fileExists(guess = new URL(`./${packageConfig.main}.js`, ts-node-9.0.0/raw/node-esm-resolve-implementation.js-179- packageJSONUrl))) { ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-181- } ts-node-9.0.0/raw/node-esm-resolve-implementation.js:182: if (fileExists(guess = new URL(`./${packageConfig.main}.json`, ts-node-9.0.0/raw/node-esm-resolve-implementation.js-183- packageJSONUrl))) { ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-185- } ts-node-9.0.0/raw/node-esm-resolve-implementation.js:186: if (fileExists(guess = new URL(`./${packageConfig.main}.node`, ts-node-9.0.0/raw/node-esm-resolve-implementation.js-187- packageJSONUrl))) { ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-189- } ts-node-9.0.0/raw/node-esm-resolve-implementation.js:190: if (fileExists(guess = new URL(`./${packageConfig.main}/index.js`, ts-node-9.0.0/raw/node-esm-resolve-implementation.js-191- packageJSONUrl))) { ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-193- } ts-node-9.0.0/raw/node-esm-resolve-implementation.js:194: if (fileExists(guess = new URL(`./${packageConfig.main}/index.json`, ts-node-9.0.0/raw/node-esm-resolve-implementation.js-195- packageJSONUrl))) { ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-197- } ts-node-9.0.0/raw/node-esm-resolve-implementation.js:198: if (fileExists(guess = new URL(`./${packageConfig.main}/index.node`, ts-node-9.0.0/raw/node-esm-resolve-implementation.js-199- packageJSONUrl))) { ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-226- const extension = extensions[i]; ts-node-9.0.0/raw/node-esm-resolve-implementation.js:227: const guess = new URL(`${search.pathname}${extension}`, search); ts-node-9.0.0/raw/node-esm-resolve-implementation.js-228- if (fileExists(guess)) return guess; ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-241- if (!StringPrototypeEndsWith(resolved.pathname, '/')) { ts-node-9.0.0/raw/node-esm-resolve-implementation.js:242: file = resolveIndex(new URL(`${resolved.pathname}/`, base)); ts-node-9.0.0/raw/node-esm-resolve-implementation.js-243- } else { ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-276- } else if (ArrayIsArray(target)) { ts-node-9.0.0/raw/node-esm-resolve-implementation.js:277: target = `[${target}]`; ts-node-9.0.0/raw/node-esm-resolve-implementation.js-278- } else { ts-node-9.0.0/raw/node-esm-resolve-implementation.js:279: target = `${target}`; ts-node-9.0.0/raw/node-esm-resolve-implementation.js-280- } ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-314- const keyNum = +key; ts-node-9.0.0/raw/node-esm-resolve-implementation.js:315: if (`${keyNum}` !== key) return false; ts-node-9.0.0/raw/node-esm-resolve-implementation.js-316- return keyNum >= 0 && keyNum < 0xFFFF_FFFF; ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-631- if (isMain) { ts-node-9.0.0/raw/node-esm-resolve-implementation.js:632: parentURL = pathToFileURL(`${process.cwd()}/`).href; ts-node-9.0.0/raw/node-esm-resolve-implementation.js-633- ############################################## ts-node-9.0.0/raw/node-esm-resolve-implementation.js-656- ts-node-9.0.0/raw/node-esm-resolve-implementation.js:657: return { url: `${url}` }; ts-node-9.0.0/raw/node-esm-resolve-implementation.js-658-} ############################################## ts-node-9.0.0/scripts/build-pack.js-10-const tempDir = mkdtempSync(join(testDir, 'tmp')) ts-node-9.0.0/scripts/build-pack.js:11:exec(`npm pack "${join(__dirname, '..')}"`, { cwd: tempDir }, (err, stdout) => { ts-node-9.0.0/scripts/build-pack.js-12- if (err) { ############################################## ts-node-9.0.0/src/bin.ts-151- if (version === 1) { ts-node-9.0.0/src/bin.ts:152: console.log(`v${VERSION}`) ts-node-9.0.0/src/bin.ts-153- process.exit(0) ############################################## ts-node-9.0.0/src/bin.ts-204- if (version >= 2) { ts-node-9.0.0/src/bin.ts:205: console.log(`ts-node v${VERSION}`) ts-node-9.0.0/src/bin.ts:206: console.log(`node ${process.version}`) ts-node-9.0.0/src/bin.ts:207: console.log(`compiler v${service.ts.version}`) ts-node-9.0.0/src/bin.ts-208- process.exit(0) ############################################## ts-node-9.0.0/src/bin.ts-354- try { ts-node-9.0.0/src/bin.ts:355: _eval(service, state, `${code}\n`) ts-node-9.0.0/src/bin.ts-356- } catch (err) { ############################################## ts-node-9.0.0/src/bin.ts-428- ts-node-9.0.0/src/bin.ts:429: if (name) repl.outputStream.write(`${name}\n`) ts-node-9.0.0/src/bin.ts:430: if (comment) repl.outputStream.write(`${comment}\n`) ts-node-9.0.0/src/bin.ts-431- repl.displayPrompt() ############################################## ts-node-9.0.0/src/bin.ts-458- if (undoInput.charAt(undoInput.length - 1) === '\n' && /^\s*[\/\[(`-]/.test(input) && !/;\s*$/.test(undoInput)) { ts-node-9.0.0/src/bin.ts:459: state.input = `${state.input.slice(0, -1)};\n` ts-node-9.0.0/src/bin.ts-460- } ############################################## ts-node-9.0.0/src/index.spec.ts-41-describe('ts-node', function () { ts-node-9.0.0/src/index.spec.ts:42: const cmd = `"${BIN_PATH}" --project "${PROJECT}"` ts-node-9.0.0/src/index.spec.ts:43: const cmdNoProject = `"${BIN_PATH}"` ts-node-9.0.0/src/index.spec.ts-44- ############################################## ts-node-9.0.0/src/index.spec.ts-84- it('should execute cli', function (done) { ts-node-9.0.0/src/index.spec.ts:85: exec(`${cmd} tests/hello-world`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-86- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-93- it('shows usage via --help', function (done) { ts-node-9.0.0/src/index.spec.ts:94: exec(`${cmdNoProject} --help`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-95- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-100- it('shows version via -v', function (done) { ts-node-9.0.0/src/index.spec.ts:101: exec(`${cmdNoProject} -v`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-102- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-107- it('shows version of compiler via -vv', function (done) { ts-node-9.0.0/src/index.spec.ts:108: exec(`${cmdNoProject} -vv`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-109- expect(err).to.equal(null) ts-node-9.0.0/src/index.spec.ts-110- expect(stdout.trim()).to.equal( ts-node-9.0.0/src/index.spec.ts:111: `ts-node v${ testsDirRequire('ts-node/package').version }\n` + ts-node-9.0.0/src/index.spec.ts:112: `node ${ process.version }\n` + ts-node-9.0.0/src/index.spec.ts:113: `compiler v${ testsDirRequire('typescript/package').version }` ts-node-9.0.0/src/index.spec.ts-114- ) ############################################## ts-node-9.0.0/src/index.spec.ts-130- it('should execute cli with absolute path', function (done) { ts-node-9.0.0/src/index.spec.ts:131: exec(`${cmd} "${join(TEST_DIR, 'hello-world')}"`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-132- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-139- it('should print scripts', function (done) { ts-node-9.0.0/src/index.spec.ts:140: exec(`${cmd} -pe "import { example } from './tests/complex/index';example()"`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-141- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-148- it('should provide registered information globally', function (done) { ts-node-9.0.0/src/index.spec.ts:149: exec(`${cmd} tests/env`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-150- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-203- exec( ts-node-9.0.0/src/index.spec.ts:204: `${cmd} -e "import * as m from './tests/module';console.log(m.example('test'))"`, ts-node-9.0.0/src/index.spec.ts-205- function (err, stdout) { ############################################## ts-node-9.0.0/src/index.spec.ts-214- it('should import empty files', function (done) { ts-node-9.0.0/src/index.spec.ts:215: exec(`${cmd} -e "import './tests/empty'"`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-216- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-223- it('should throw errors', function (done) { ts-node-9.0.0/src/index.spec.ts:224: exec(`${cmd} -e "import * as m from './tests/module';console.log(m.example(123))"`, function (err) { ts-node-9.0.0/src/index.spec.ts-225- if (err === null) { ############################################## ts-node-9.0.0/src/index.spec.ts-239- exec( ts-node-9.0.0/src/index.spec.ts:240: `${cmd} --ignore-diagnostics 2345 -e "import * as m from './tests/module';console.log(m.example(123))"`, ts-node-9.0.0/src/index.spec.ts-241- function (err) { ############################################## ts-node-9.0.0/src/index.spec.ts-255- it('should work with source maps', function (done) { ts-node-9.0.0/src/index.spec.ts:256: exec(`${cmd} tests/throw`, function (err) { ts-node-9.0.0/src/index.spec.ts-257- if (err === null) { ############################################## ts-node-9.0.0/src/index.spec.ts-261- expect(err.message).to.contain([ ts-node-9.0.0/src/index.spec.ts:262: `${join(__dirname, '../tests/throw.ts')}:100`, ts-node-9.0.0/src/index.spec.ts-263- ' bar () { throw new Error(\'this is a demo\') }', ############################################## ts-node-9.0.0/src/index.spec.ts-272- it('eval should work with source maps', function (done) { ts-node-9.0.0/src/index.spec.ts:273: exec(`${cmd} -pe "import './tests/throw'"`, function (err) { ts-node-9.0.0/src/index.spec.ts-274- if (err === null) { ############################################## ts-node-9.0.0/src/index.spec.ts-278- expect(err.message).to.contain([ ts-node-9.0.0/src/index.spec.ts:279: `${join(__dirname, '../tests/throw.ts')}:100`, ts-node-9.0.0/src/index.spec.ts-280- ' bar () { throw new Error(\'this is a demo\') }', ############################################## ts-node-9.0.0/src/index.spec.ts-288- it('should support transpile only mode', function (done) { ts-node-9.0.0/src/index.spec.ts:289: exec(`${cmd} --transpile-only -pe "x"`, function (err) { ts-node-9.0.0/src/index.spec.ts-290- if (err === null) { ############################################## ts-node-9.0.0/src/index.spec.ts-300- it('should throw error even in transpileOnly mode', function (done) { ts-node-9.0.0/src/index.spec.ts:301: exec(`${cmd} --transpile-only -pe "console."`, function (err) { ts-node-9.0.0/src/index.spec.ts-302- if (err === null) { ############################################## ts-node-9.0.0/src/index.spec.ts-323- it('should pipe into `ts-node`', function (done) { ts-node-9.0.0/src/index.spec.ts:324: const cp = exec(`${cmd} -p`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-325- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-334- it('should pipe into an eval script', function (done) { ts-node-9.0.0/src/index.spec.ts:335: const cp = exec(`${cmd} --transpile-only -pe "process.stdin.isTTY"`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-336- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-345- it('should run REPL when --interactive passed and stdin is not a TTY', function (done) { ts-node-9.0.0/src/index.spec.ts:346: const cp = exec(`${cmd} --interactive`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-347- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-359- it('REPL has command to get type information', function (done) { ts-node-9.0.0/src/index.spec.ts:360: const cp = exec(`${cmd} --interactive`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-361- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-374- it('should support require flags', function (done) { ts-node-9.0.0/src/index.spec.ts:375: exec(`${cmd} -r ./tests/hello-world -pe "console.log('success')"`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-376- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-383- it('should support require from node modules', function (done) { ts-node-9.0.0/src/index.spec.ts:384: exec(`${cmd} -r typescript -e "console.log('success')"`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-385- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-392- it('should use source maps with react tsx', function (done) { ts-node-9.0.0/src/index.spec.ts:393: exec(`${cmd} tests/throw-react-tsx.tsx`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-394- expect(err).not.to.equal(null) ts-node-9.0.0/src/index.spec.ts-395- expect(err!.message).to.contain([ ts-node-9.0.0/src/index.spec.ts:396: `${join(__dirname, '../tests/throw-react-tsx.tsx')}:100`, ts-node-9.0.0/src/index.spec.ts-397- ' bar () { throw new Error(\'this is a demo\') }', ############################################## ts-node-9.0.0/src/index.spec.ts-406- it('should allow custom typings', function (done) { ts-node-9.0.0/src/index.spec.ts:407: exec(`${cmd} tests/custom-types`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-408- expect(err).to.match(/Error: Cannot find module 'does-not-exist'/) ############################################## ts-node-9.0.0/src/index.spec.ts-414- it('should preserve `ts-node` context with child process', function (done) { ts-node-9.0.0/src/index.spec.ts:415: exec(`${cmd} tests/child-process`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-416- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-423- it('should import js before ts by default', function (done) { ts-node-9.0.0/src/index.spec.ts:424: exec(`${cmd} tests/import-order/compiled`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-425- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-432- it('should import ts before js when --prefer-ts-exts flag is present', function (done) { ts-node-9.0.0/src/index.spec.ts:433: exec(`${cmd} --prefer-ts-exts tests/import-order/compiled`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-434- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-441- it('should import ts before js when TS_NODE_PREFER_TS_EXTS env is present', function (done) { ts-node-9.0.0/src/index.spec.ts:442: exec(`${cmd} tests/import-order/compiled`, { env: { ...process.env, TS_NODE_PREFER_TS_EXTS: 'true' } }, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-443- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-450- it('should ignore .d.ts files', function (done) { ts-node-9.0.0/src/index.spec.ts:451: exec(`${cmd} tests/import-order/importer`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-452- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-464- } else { ts-node-9.0.0/src/index.spec.ts:465: exec(`"${BIN_PATH}" --project tests/issue-884/tsconfig.json tests/issue-884`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-466- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-476- it('should not compile', function (done) { ts-node-9.0.0/src/index.spec.ts:477: exec(`"${BIN_PATH}" --project tests/issue-986/tsconfig.json tests/issue-986`, function (err, stdout, stderr) { ts-node-9.0.0/src/index.spec.ts-478- expect(err).not.to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-486- it('should compile with `--files`', function (done) { ts-node-9.0.0/src/index.spec.ts:487: exec(`"${BIN_PATH}" --files --project tests/issue-986/tsconfig.json tests/issue-986`, function (err, stdout, stderr) { ts-node-9.0.0/src/index.spec.ts-488- expect(err).not.to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-498- it('should support script mode', function (done) { ts-node-9.0.0/src/index.spec.ts:499: exec(`${BIN_SCRIPT_PATH} tests/scope/a/log`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-500- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-507- if (lstatSync(join(TEST_DIR, 'main-realpath/symlink/symlink.tsx')).isSymbolicLink()) { ts-node-9.0.0/src/index.spec.ts:508: exec(`${BIN_SCRIPT_PATH} tests/main-realpath/symlink/symlink.tsx`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-509- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-520- describe('should read ts-node options from tsconfig.json', function () { ts-node-9.0.0/src/index.spec.ts:521: const BIN_EXEC = `"${BIN_PATH}" --project tests/tsconfig-options/tsconfig.json` ts-node-9.0.0/src/index.spec.ts-522- ts-node-9.0.0/src/index.spec.ts-523- it('should override compiler options from env', function (done) { ts-node-9.0.0/src/index.spec.ts:524: exec(`${BIN_EXEC} tests/tsconfig-options/log-options1.js`, { ts-node-9.0.0/src/index.spec.ts-525- env: { ############################################## ts-node-9.0.0/src/index.spec.ts-537- it('should use options from `tsconfig.json`', function (done) { ts-node-9.0.0/src/index.spec.ts:538: exec(`${BIN_EXEC} tests/tsconfig-options/log-options1.js`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-539- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-551- it('should have flags override / merge with `tsconfig.json`', function (done) { ts-node-9.0.0/src/index.spec.ts:552: exec(`${BIN_EXEC} --skip-ignore --compiler-options "{\\"types\\":[\\"flags-types\\"]}" --require ./tests/tsconfig-options/required2.js tests/tsconfig-options/log-options2.js`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-553- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-568- it('should have `tsconfig.json` override environment', function (done) { ts-node-9.0.0/src/index.spec.ts:569: exec(`${BIN_EXEC} tests/tsconfig-options/log-options1.js`, { ts-node-9.0.0/src/index.spec.ts-570- env: { ############################################## ts-node-9.0.0/src/index.spec.ts-590- it('should execute cli', function (done) { ts-node-9.0.0/src/index.spec.ts:591: exec(`${cmd} --compiler-host tests/hello-world`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-592- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-600- it('should transpile files inside a node_modules directory when not ignored', function (done) { ts-node-9.0.0/src/index.spec.ts:601: exec(`${cmdNoProject} --script-mode tests/from-node-modules/from-node-modules`, function (err, stdout, stderr) { ts-node-9.0.0/src/index.spec.ts:602: if (err) return done(`Unexpected error: ${err}\nstdout:\n${stdout}\nstderr:\n${stderr}`) ts-node-9.0.0/src/index.spec.ts-603- expect(JSON.parse(stdout)).to.deep.equal({ ############################################## ts-node-9.0.0/src/index.spec.ts-620- it('for unscoped modules', function (done) { ts-node-9.0.0/src/index.spec.ts:621: exec(`${cmdNoProject} --script-mode tests/maxnodemodulesjsdepth`, function (err, stdout, stderr) { ts-node-9.0.0/src/index.spec.ts-622- expect(err).to.not.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-632- it('for @scoped modules', function (done) { ts-node-9.0.0/src/index.spec.ts:633: exec(`${cmdNoProject} --script-mode tests/maxnodemodulesjsdepth-scoped`, function (err, stdout, stderr) { ts-node-9.0.0/src/index.spec.ts-634- expect(err).to.not.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-755- 'Error: this is a demo', ts-node-9.0.0/src/index.spec.ts:756: ` at Foo.bar (${join(__dirname, '../tests/throw.ts')}:100:18)` ts-node-9.0.0/src/index.spec.ts-757- ].join('\n')) ############################################## ts-node-9.0.0/src/index.spec.ts-828- for (const ext of allowed) { ts-node-9.0.0/src/index.spec.ts:829: expect(ignored(join(__dirname, `index${ext}`))).equal(false, `should accept ${ext} files`) ts-node-9.0.0/src/index.spec.ts-830- } ts-node-9.0.0/src/index.spec.ts-831- for (const ext of disallowed) { ts-node-9.0.0/src/index.spec.ts:832: expect(ignored(join(__dirname, `index${ext}`))).equal(true, `should ignore ${ext} files`) ts-node-9.0.0/src/index.spec.ts-833- } ############################################## ts-node-9.0.0/src/index.spec.ts-860- it('should compile and execute as ESM', (done) => { ts-node-9.0.0/src/index.spec.ts:861: exec(`${cmd} index.ts`, { cwd: join(__dirname, '../tests/esm') }, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-862- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-868- it('should use source maps', function (done) { ts-node-9.0.0/src/index.spec.ts:869: exec(`${cmd} throw.ts`, { cwd: join(__dirname, '../tests/esm') }, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-870- expect(err).not.to.equal(null) ts-node-9.0.0/src/index.spec.ts-871- expect(err!.message).to.contain([ ts-node-9.0.0/src/index.spec.ts:872: `${pathToFileURL(join(__dirname, '../tests/esm/throw.ts'))}:100`, ts-node-9.0.0/src/index.spec.ts-873- ' bar () { throw new Error(\'this is a demo\') }', ############################################## ts-node-9.0.0/src/index.spec.ts-883- it('via --experimental-specifier-resolution', (done) => { ts-node-9.0.0/src/index.spec.ts:884: exec(`${cmd} --experimental-specifier-resolution=node index.ts`, { cwd: join(__dirname, '../tests/esm-node-resolver') }, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-885- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-891- it('via NODE_OPTIONS', (done) => { ts-node-9.0.0/src/index.spec.ts:892: exec(`${cmd} index.ts`, { ts-node-9.0.0/src/index.spec.ts-893- cwd: join(__dirname, '../tests/esm-node-resolver'), ############################################## ts-node-9.0.0/src/index.spec.ts-907- it('throws ERR_REQUIRE_ESM when attempting to require() an ESM script while ESM loader is enabled', function (done) { ts-node-9.0.0/src/index.spec.ts:908: exec(`${cmd} ./index.js`, { cwd: join(__dirname, '../tests/esm-err-require-esm') }, function (err, stdout, stderr) { ts-node-9.0.0/src/index.spec.ts-909- expect(err).to.not.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-916- it('defers to fallback loaders when URL should not be handled by ts-node', function (done) { ts-node-9.0.0/src/index.spec.ts:917: exec(`${cmd} index.mjs`, { ts-node-9.0.0/src/index.spec.ts-918- cwd: join(__dirname, '../tests/esm-import-http-url') ############################################## ts-node-9.0.0/src/index.spec.ts-927- it('should support transpile only mode via dedicated loader entrypoint', (done) => { ts-node-9.0.0/src/index.spec.ts:928: exec(`${cmd}/transpile-only index.ts`, { cwd: join(__dirname, '../tests/esm-transpile-only') }, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-929- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.spec.ts-935- it('should throw type errors without transpile-only enabled', (done) => { ts-node-9.0.0/src/index.spec.ts:936: exec(`${cmd} index.ts`, { cwd: join(__dirname, '../tests/esm-transpile-only') }, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-937- if (err === null) { ############################################## ts-node-9.0.0/src/index.spec.ts-951- it('executes ESM as CJS, ignoring package.json "types" field (for backwards compatibility; should be changed in next major release to throw ERR_REQUIRE_ESM)', function (done) { ts-node-9.0.0/src/index.spec.ts:952: exec(`${BIN_PATH} ./tests/esm-err-require-esm/index.js`, function (err, stdout) { ts-node-9.0.0/src/index.spec.ts-953- expect(err).to.equal(null) ############################################## ts-node-9.0.0/src/index.ts-64-export const debug = shouldDebug ? ts-node-9.0.0/src/index.ts:65: (...args: any) => console.log(`[ts-node ${new Date().toISOString()}]`, ...args) ts-node-9.0.0/src/index.ts-66- : () => undefined ############################################## ts-node-9.0.0/src/index.ts-342- constructor (public diagnosticText: string, public diagnosticCodes: number[]) { ts-node-9.0.0/src/index.ts:343: super(`тип Unable to compile TypeScript:\n${diagnosticText}`) ts-node-9.0.0/src/index.ts-344- } ############################################## ts-node-9.0.0/src/index.ts-720- if (programBefore !== previousProgram) { ts-node-9.0.0/src/index.ts:721: debug(`compiler rebuilt Program instance when getting output for ${fileName}`) ts-node-9.0.0/src/index.ts-722- } ############################################## ts-node-9.0.0/src/index.ts-742- if (output.emitSkipped) { ts-node-9.0.0/src/index.ts:743: throw new TypeError(`${relative(cwd, fileName)}: Emit skipped`) ts-node-9.0.0/src/index.ts-744- } ############################################## ts-node-9.0.0/src/index.ts-748- throw new TypeError( ts-node-9.0.0/src/index.ts:749: `Unable to require file: ${relative(cwd, fileName)}\n` + ts-node-9.0.0/src/index.ts-750- 'This is usually the result of a faulty configuration or import. ' + ############################################## ts-node-9.0.0/src/index.ts-861- const sourceFile = builderProgram.getSourceFile(fileName) ts-node-9.0.0/src/index.ts:862: if (!sourceFile) throw new TypeError(`Unable to read file: ${fileName}`) ts-node-9.0.0/src/index.ts-863- ############################################## ts-node-9.0.0/src/index.ts-879- if (result.emitSkipped) { ts-node-9.0.0/src/index.ts:880: throw new TypeError(`${relative(cwd, fileName)}: Emit skipped`) ts-node-9.0.0/src/index.ts-881- } ############################################## ts-node-9.0.0/src/index.ts-885- if (program.isSourceFileFromExternalLibrary(sourceFile)) { ts-node-9.0.0/src/index.ts:886: throw new TypeError(`Unable to compile file from external library: ${relative(cwd, fileName)}`) ts-node-9.0.0/src/index.ts-887- } ############################################## ts-node-9.0.0/src/index.ts-889- throw new TypeError( ts-node-9.0.0/src/index.ts:890: `Unable to require file: ${relative(cwd, fileName)}\n` + ts-node-9.0.0/src/index.ts-891- 'This is usually the result of a faulty configuration or import. ' + ############################################## ts-node-9.0.0/src/index.ts-903- const sourceFile = builderProgram.getSourceFile(fileName) ts-node-9.0.0/src/index.ts:904: if (!sourceFile) throw new TypeError(`Unable to read file: ${fileName}`) ts-node-9.0.0/src/index.ts-905- ############################################## ts-node-9.0.0/src/index.ts-1170- const base64Map = Buffer.from(updateSourceMap(sourceMap, fileName), 'utf8').toString('base64') ts-node-9.0.0/src/index.ts:1171: const sourceMapContent = `data:application/json;charset=utf-8;base64,${base64Map}` ts-node-9.0.0/src/index.ts:1172: const sourceMapLength = `${basename(fileName)}.map`.length + (getExtension(fileName).length - extname(fileName).length) ts-node-9.0.0/src/index.ts-1173- ############################################## ts-node-9.0.0/tests/esm-node-resolver/index.ts-7- ts-node-9.0.0/tests/esm-node-resolver/index.ts:8:console.log(`${foo} ${bar} ${baz} ${biff}`) ############################################## ts-node-9.0.0/tests/esm/index.ts-7- ts-node-9.0.0/tests/esm/index.ts:8:console.log(`${foo} ${bar} ${baz} ${biff}`) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-40-describe('ts-node', function () { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:41: const cmd = `"${BIN_PATH}" --project "${PROJECT}"` ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:42: const cmdNoProject = `"${BIN_PATH}"` ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-43- ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-83- it('should execute cli', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:84: exec(`${cmd} tests/hello-world`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-85- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-92- it('shows usage via --help', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:93: exec(`${cmdNoProject} --help`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-94- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-99- it('shows version via -v', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:100: exec(`${cmdNoProject} -v`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-101- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-106- it('shows version of compiler via -vv', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:107: exec(`${cmdNoProject} -vv`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-108- expect(err).to.equal(null) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-109- expect(stdout.trim()).to.equal( ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:110: `ts-node v${ testsDirRequire('ts-node/package').version }\n` + ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:111: `node ${ process.version }\n` + ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:112: `compiler v${ testsDirRequire('typescript/package').version }` ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-113- ) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-129- it('should execute cli with absolute path', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:130: exec(`${cmd} "${join(TEST_DIR, 'hello-world')}"`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-131- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-138- it('should print scripts', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:139: exec(`${cmd} -pe "import { example } from './tests/complex/index';example()"`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-140- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-147- it('should provide registered information globally', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:148: exec(`${cmd} tests/env`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-149- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-202- exec( ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:203: `${cmd} -e "import * as m from './tests/module';console.log(m.example('test'))"`, ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-204- function (err, stdout) { ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-213- it('should import empty files', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:214: exec(`${cmd} -e "import './tests/empty'"`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-215- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-222- it('should throw errors', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:223: exec(`${cmd} -e "import * as m from './tests/module';console.log(m.example(123))"`, function (err) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-224- if (err === null) { ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-238- exec( ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:239: `${cmd} --ignore-diagnostics 2345 -e "import * as m from './tests/module';console.log(m.example(123))"`, ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-240- function (err) { ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-254- it('should work with source maps', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:255: exec(`${cmd} tests/throw`, function (err) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-256- if (err === null) { ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-260- expect(err.message).to.contain([ ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:261: `${join(__dirname, '../tests/throw.ts')}:100`, ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-262- ' bar () { throw new Error(\'this is a demo\') }', ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-271- it('eval should work with source maps', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:272: exec(`${cmd} -pe "import './tests/throw'"`, function (err) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-273- if (err === null) { ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-277- expect(err.message).to.contain([ ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:278: `${join(__dirname, '../tests/throw.ts')}:100`, ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-279- ' bar () { throw new Error(\'this is a demo\') }', ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-287- it('should support transpile only mode', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:288: exec(`${cmd} --transpile-only -pe "x"`, function (err) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-289- if (err === null) { ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-299- it('should throw error even in transpileOnly mode', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:300: exec(`${cmd} --transpile-only -pe "console."`, function (err) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-301- if (err === null) { ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-322- it('should pipe into `ts-node`', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:323: const cp = exec(`${cmd} -p`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-324- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-333- it('should pipe into an eval script', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:334: const cp = exec(`${cmd} --transpile-only -pe "process.stdin.isTTY"`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-335- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-344- it('should run REPL when --interactive passed and stdin is not a TTY', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:345: const cp = exec(`${cmd} --interactive`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-346- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-358- it('REPL has command to get type information', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:359: const cp = exec(`${cmd} --interactive`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-360- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-373- it('should support require flags', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:374: exec(`${cmd} -r ./tests/hello-world -pe "console.log('success')"`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-375- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-382- it('should support require from node modules', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:383: exec(`${cmd} -r typescript -e "console.log('success')"`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-384- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-391- it('should use source maps with react tsx', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:392: exec(`${cmd} tests/throw-react-tsx.tsx`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-393- expect(err).not.to.equal(null) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-394- expect(err!.message).to.contain([ ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:395: `${join(__dirname, '../tests/throw-react-tsx.tsx')}:100`, ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-396- ' bar () { throw new Error(\'this is a demo\') }', ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-405- it('should allow custom typings', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:406: exec(`${cmd} tests/custom-types`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-407- expect(err).to.match(/Error: Cannot find module 'does-not-exist'/) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-413- it('should preserve `ts-node` context with child process', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:414: exec(`${cmd} tests/child-process`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-415- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-422- it('should import js before ts by default', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:423: exec(`${cmd} tests/import-order/compiled`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-424- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-431- it('should import ts before js when --prefer-ts-exts flag is present', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:432: exec(`${cmd} --prefer-ts-exts tests/import-order/compiled`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-433- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-440- it('should import ts before js when TS_NODE_PREFER_TS_EXTS env is present', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:441: exec(`${cmd} tests/import-order/compiled`, { env: { ...process.env, TS_NODE_PREFER_TS_EXTS: 'true' } }, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-442- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-449- it('should ignore .d.ts files', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:450: exec(`${cmd} tests/import-order/importer`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-451- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-463- } else { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:464: exec(`"${BIN_PATH}" --project tests/issue-884/tsconfig.json tests/issue-884`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-465- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-475- it('should not compile', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:476: exec(`"${BIN_PATH}" --project tests/issue-986/tsconfig.json tests/issue-986`, function (err, stdout, stderr) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-477- expect(err).not.to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-485- it('should compile with `--files`', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:486: exec(`"${BIN_PATH}" --files --project tests/issue-986/tsconfig.json tests/issue-986`, function (err, stdout, stderr) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-487- expect(err).not.to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-497- it('should support script mode', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:498: exec(`${BIN_SCRIPT_PATH} tests/scope/a/log`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-499- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-506- if (lstatSync(join(TEST_DIR, 'main-realpath/symlink/symlink.tsx')).isSymbolicLink()) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:507: exec(`${BIN_SCRIPT_PATH} tests/main-realpath/symlink/symlink.tsx`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-508- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-519- describe('should read ts-node options from tsconfig.json', function () { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:520: const BIN_EXEC = `"${BIN_PATH}" --project tests/tsconfig-options/tsconfig.json` ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-521- ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-522- it('should override compiler options from env', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:523: exec(`${BIN_EXEC} tests/tsconfig-options/log-options1.js`, { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-524- env: { ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-536- it('should use options from `tsconfig.json`', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:537: exec(`${BIN_EXEC} tests/tsconfig-options/log-options1.js`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-538- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-550- it('should have flags override / merge with `tsconfig.json`', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:551: exec(`${BIN_EXEC} --skip-ignore --compiler-options "{\\"types\\":[\\"flags-types\\"]}" --require ./tests/tsconfig-options/required2.js tests/tsconfig-options/log-options2.js`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-552- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-567- it('should have `tsconfig.json` override environment', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:568: exec(`${BIN_EXEC} tests/tsconfig-options/log-options1.js`, { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-569- env: { ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-589- it('should execute cli', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:590: exec(`${cmd} --compiler-host tests/hello-world`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-591- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-599- it('should transpile files inside a node_modules directory when not ignored', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:600: exec(`${cmdNoProject} --script-mode tests/from-node-modules/from-node-modules`, function (err, stdout, stderr) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:601: if (err) return done(`Unexpected error: ${err}\nstdout:\n${stdout}\nstderr:\n${stderr}`) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-602- expect(JSON.parse(stdout)).to.deep.equal({ ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-619- it('for unscoped modules', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:620: exec(`${cmdNoProject} --script-mode tests/maxnodemodulesjsdepth`, function (err, stdout, stderr) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-621- expect(err).to.not.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-631- it('for @scoped modules', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:632: exec(`${cmdNoProject} --script-mode tests/maxnodemodulesjsdepth-scoped`, function (err, stdout, stderr) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-633- expect(err).to.not.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-754- 'Error: this is a demo', ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:755: ` at Foo.bar (${join(__dirname, '../tests/throw.ts')}:100:18)` ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-756- ].join('\n')) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-827- for (const ext of allowed) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:828: expect(ignored(join(__dirname, `index${ext}`))).equal(false, `should accept ${ext} files`) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-829- } ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-830- for (const ext of disallowed) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:831: expect(ignored(join(__dirname, `index${ext}`))).equal(true, `should ignore ${ext} files`) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-832- } ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-859- it('should compile and execute as ESM', (done) => { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:860: exec(`${cmd} index.ts`, { cwd: join(__dirname, '../tests/esm') }, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-861- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-867- it('should use source maps', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:868: exec(`${cmd} throw.ts`, { cwd: join(__dirname, '../tests/esm') }, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-869- expect(err).not.to.equal(null) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-870- expect(err!.message).to.contain([ ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:871: `${pathToFileURL(join(__dirname, '../tests/esm/throw.ts'))}:100`, ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-872- ' bar () { throw new Error(\'this is a demo\') }', ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-882- it('via --experimental-specifier-resolution', (done) => { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:883: exec(`${cmd} --experimental-specifier-resolution=node index.ts`, { cwd: join(__dirname, '../tests/esm-node-resolver') }, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-884- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-890- it('via NODE_OPTIONS', (done) => { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:891: exec(`${cmd} index.ts`, { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-892- cwd: join(__dirname, '../tests/esm-node-resolver'), ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-906- it('throws ERR_REQUIRE_ESM when attempting to require() an ESM script while ESM loader is enabled', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:907: exec(`${cmd} ./index.js`, { cwd: join(__dirname, '../tests/esm-err-require-esm') }, function (err, stdout, stderr) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-908- expect(err).to.not.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-915- it('defers to fallback loaders when URL should not be handled by ts-node', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:916: exec(`${cmd} index.mjs`, { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-917- cwd: join(__dirname, '../tests/esm-import-http-url') ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-926- it('should support transpile only mode via dedicated loader entrypoint', (done) => { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:927: exec(`${cmd}/transpile-only index.ts`, { cwd: join(__dirname, '../tests/esm-transpile-only') }, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-928- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-934- it('should throw type errors without transpile-only enabled', (done) => { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:935: exec(`${cmd} index.ts`, { cwd: join(__dirname, '../tests/esm-transpile-only') }, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-936- if (err === null) { ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-950- it('executes ESM as CJS, ignoring package.json "types" field (for backwards compatibility; should be changed in next major release to throw ERR_REQUIRE_ESM)', function (done) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts:951: exec(`${BIN_PATH} ./tests/esm-err-require-esm/index.js`, function (err, stdout) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.spec.ts-952- expect(err).to.equal(null) ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-63-export const debug = shouldDebug ? ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:64: (...args: any) => console.log(`[ts-node ${new Date().toISOString()}]`, ...args) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-65- : () => undefined ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-341- constructor (public diagnosticText: string, public diagnosticCodes: number[]) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:342: super(`тип Unable to compile TypeScript:\n${diagnosticText}`) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-343- } ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-719- if (programBefore !== previousProgram) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:720: debug(`compiler rebuilt Program instance when getting output for ${fileName}`) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-721- } ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-741- if (output.emitSkipped) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:742: throw new TypeError(`${relative(cwd, fileName)}: Emit skipped`) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-743- } ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-747- throw new TypeError( ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:748: `Unable to require file: ${relative(cwd, fileName)}\n` + ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-749- 'This is usually the result of a faulty configuration or import. ' + ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-860- const sourceFile = builderProgram.getSourceFile(fileName) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:861: if (!sourceFile) throw new TypeError(`Unable to read file: ${fileName}`) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-862- ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-878- if (result.emitSkipped) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:879: throw new TypeError(`${relative(cwd, fileName)}: Emit skipped`) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-880- } ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-884- if (program.isSourceFileFromExternalLibrary(sourceFile)) { ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:885: throw new TypeError(`Unable to compile file from external library: ${relative(cwd, fileName)}`) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-886- } ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-888- throw new TypeError( ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:889: `Unable to require file: ${relative(cwd, fileName)}\n` + ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-890- 'This is usually the result of a faulty configuration or import. ' + ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-902- const sourceFile = builderProgram.getSourceFile(fileName) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:903: if (!sourceFile) throw new TypeError(`Unable to read file: ${fileName}`) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-904- ############################################## ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-1169- const base64Map = Buffer.from(updateSourceMap(sourceMap, fileName), 'utf8').toString('base64') ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:1170: const sourceMapContent = `data:application/json;charset=utf-8;base64,${base64Map}` ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts:1171: const sourceMapLength = `${basename(fileName)}.map`.length + (getExtension(fileName).length - extname(fileName).length) ts-node-9.0.0/.pc/fix_compilation.patch/src/index.ts-1172-