Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-node

Package Overview
Dependencies
Maintainers
1
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-node - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

5

dist/index.js

@@ -38,4 +38,7 @@ "use strict";

declaration: false,
noEmit: false
noEmit: false,
outDir: "tmp" + Math.random().toString(36).substr(2)
});
delete result.config.compilerOptions.out;
delete result.config.compilerOptions.outFile;
var basePath = fileName ? path_1.dirname(path_1.resolve(fileName)) : cwd;

@@ -42,0 +45,0 @@ if (typeof ts.parseConfigFile === 'function') {

@@ -5,2 +5,4 @@ "use strict";

var path_1 = require('path');
var semver = require('semver');
var ts = require('typescript');
var proxyquire = require('proxyquire');

@@ -38,2 +40,15 @@ var index_1 = require('./index');

});
if (semver.gte(ts.version, '1.8.0')) {
it('should allow js', function (done) {
child_process_1.exec([
BIN_EXEC,
'-o "{\\\"allowJs\\\":true}"',
'-p "import { main } from \'./tests/allow-js/run\';main()"'
].join(' '), function (err, stdout) {
chai_1.expect(err).to.not.exist;
chai_1.expect(stdout).to.equal('hello world\n');
return done();
});
});
}
it('should eval code', function (done) {

@@ -40,0 +55,0 @@ child_process_1.exec(BIN_EXEC + " -e \"import * as m from './tests/module';console.log(m.example('test'))\"", function (err, stdout) {

3

package.json
{
"name": "ts-node",
"version": "0.9.0",
"version": "0.9.1",
"preferGlobal": true,

@@ -53,2 +53,3 @@ "description": "TypeScript execution environment and REPL for node",

"proxyquire": "^1.7.2",
"semver": "^5.1.0",
"tslint": "^3.10.2",

@@ -55,0 +56,0 @@ "tslint-config-standard": "^1.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc