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 2.1.0 to 2.1.1

1

dist/_bin.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var path_1 = require("path");

@@ -3,0 +4,0 @@ var repl_1 = require("repl");

#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var child_process_1 = require("child_process");

@@ -4,0 +5,0 @@ var path_1 = require("path");

2

dist/index.d.ts

@@ -42,3 +42,3 @@ import { BaseError } from 'make-error';

export declare function parse(value: string | undefined): any;
export declare function slash(value: string): string;
export declare function normalizeSlashes(value: string): string;
export interface Register {

@@ -45,0 +45,0 @@ cwd: string;

"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var path_1 = require("path");

@@ -41,6 +47,6 @@ var fs_1 = require("fs");

exports.parse = parse;
function slash(value) {
function normalizeSlashes(value) {
return value.replace(/\\/g, '/');
}
exports.slash = slash;
exports.normalizeSlashes = normalizeSlashes;
function getTmpDir() {

@@ -208,3 +214,3 @@ var hash = crypto.createHash('sha1')

function shouldIgnore(filename, ignore, service) {
var relname = slash(filename);
var relname = normalizeSlashes(filename);
return ignore.some(function (x) { return x.test(relname); });

@@ -241,3 +247,4 @@ }

delete result.config.compilerOptions.declarationDir;
var basePath = result.path ? path_1.dirname(result.path) : cwd;
var configPath = result.path && normalizeSlashes(result.path);
var basePath = configPath ? path_1.dirname(configPath) : normalizeSlashes(cwd);
if (typeof ts.parseConfigFile === 'function') {

@@ -247,3 +254,3 @@ return ts.parseConfigFile(result.config, ts.sys, basePath);

if (typeof ts.parseJsonConfigFileContent === 'function') {
return ts.parseJsonConfigFileContent(result.config, ts.sys, basePath, null, result.path);
return ts.parseJsonConfigFileContent(result.config, ts.sys, basePath, null, configPath);
}

@@ -250,0 +257,0 @@ throw new TypeError('Could not find a compatible `parseConfigFile` function');

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");

@@ -3,0 +4,0 @@ var child_process_1 = require("child_process");

{
"name": "ts-node",
"version": "2.1.0",
"version": "2.1.1",
"preferGlobal": true,

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

"tslint": "^4.0.2",
"tslint-config-standard": "^3.0.0",
"tslint-config-standard": "^4.0.0",
"typescript": "^2.1.4",

@@ -71,3 +71,3 @@ "typings": "^2.0.0"

"source-map-support": "^0.4.0",
"tsconfig": "^5.0.2",
"tsconfig": "^6.0.0",
"v8flags": "^2.0.11",

@@ -74,0 +74,0 @@ "xtend": "^4.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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