New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ts-import

Package Overview
Dependencies
Maintainers
1
Versions
89
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

to
5.0.0-beta.1

7

dist/main.js
import * as commentParser from './modules/comment-parser/index.js';
import * as crossPlatform from './modules/cross-platform/index.js';
import * as path from 'node:path';
import * as url from 'node:url';
import * as utils from './utils/index.js';

@@ -33,3 +34,4 @@ import { LoadMode } from './load.interfaces.js';

if (jsFileExists && !utils.isFileNewer(tsFileExists, jsFileExists)) {
const loaded = await import(jsPath);
const fileUrl = url.pathToFileURL(jsPath).href;
const loaded = await import(fileUrl);
return loaded;

@@ -43,3 +45,4 @@ }

});
const loaded = await import(jsPath);
const fileUrl = url.pathToFileURL(jsPath).href;
const loaded = await import(fileUrl);
return loaded;

@@ -46,0 +49,0 @@ };

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

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet