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

ts-import

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-import - npm Package Compare versions

Comparing version 2.0.3-0 to 2.0.3

6

dist/index.js

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

return new Promise(function (resolve, reject) {
var cwd = process.cwd();
var directory = path.dirname(absoluteTsPath);
process.chdir(directory);
var compileCommand = "pnpx tsc " + absoluteTsPath + " --rootDir / --outDir " + cacheDir + " " + flags.join(' ');

@@ -135,3 +132,2 @@ logger.info("Compiling " + absoluteTsPath);

console.error(err);
process.chdir(cwd);
reject(err);

@@ -145,7 +141,5 @@ return;

console.error(stderr);
process.chdir(cwd);
reject(stderr);
return;
}
process.chdir(cwd);
resolve();

@@ -152,0 +146,0 @@ });

4

package.json
{
"name": "ts-import",
"version": "2.0.3-0",
"version": "2.0.3",
"description": "Import (compile and cache on the fly) TypeScript files dynamically with ease.",

@@ -23,3 +23,3 @@ "keywords": [

"@radrat-scripts/readme": "0.0.78",
"@radrat/cli": "0.0.79-2",
"@radrat/cli": "0.0.79-3",
"@types/node": "^14.6.0",

@@ -26,0 +26,0 @@ "typescript": "^4.0.2"

@@ -89,5 +89,2 @@ import * as childProcess from 'child_process';

return new Promise((resolve, reject) => {
const cwd = process.cwd();
const directory = path.dirname(absoluteTsPath);
process.chdir(directory);
const compileCommand = `pnpx tsc ${absoluteTsPath} --rootDir / --outDir ${cacheDir} ${flags.join(' ')}`;

@@ -100,3 +97,2 @@ logger.info(`Compiling ${absoluteTsPath}`);

console.error(err);
process.chdir(cwd);
reject(err);

@@ -112,3 +108,2 @@ return;

console.error(stderr);
process.chdir(cwd);
reject(stderr);

@@ -118,3 +113,2 @@ return;

process.chdir(cwd);
resolve();

@@ -121,0 +115,0 @@ });

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