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

tsx

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsx - npm Package Compare versions

Comparing version 3.12.7 to 3.12.8

dist/package-7b577f91.cjs

2

dist/loader.js

@@ -1,1 +0,1 @@

import{r as l}from"./pkgroll_create-require-040ba28b.js";import o from"repl";import{transform as c}from"@esbuild-kit/core-utils";export*from"@esbuild-kit/esm-loader";import"module";function p(r){const{eval:a}=r,s=async function(t,n,e,i){try{t=(await c(t,e,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}})).code}catch{}return a.call(this,t,n,e,i)};r.eval=s}const{start:f}=o;o.start=function(){const r=Reflect.apply(f,this,arguments);return p(r),r},l("@esbuild-kit/cjs-loader");
import{r as l}from"./pkgroll_create-require-3c0d19c6.js";import o from"repl";import{transform as c}from"@esbuild-kit/core-utils";export*from"@esbuild-kit/esm-loader";import"module";function p(r){const{eval:a}=r,s=async function(t,n,e,i){try{t=(await c(t,e,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}})).code}catch{}return a.call(this,t,n,e,i)};r.eval=s}const{start:f}=o;o.start=function(){const r=Reflect.apply(f,this,arguments);return p(r),r},l("@esbuild-kit/cjs-loader");

@@ -1,1 +0,1 @@

import{r as c}from"./pkgroll_create-require-040ba28b.js";import{constants as l}from"os";import"./suppress-warnings..js";import"module";if(c("@esbuild-kit/cjs-loader"),process.send){let r=function(s){process.send({type:"kill",signal:s}),process.listenerCount(s)===0&&process.exit(128+l.signals[s])};const t=["SIGINT","SIGTERM"];for(const s of t)process.on(s,r);const{listenerCount:n}=process;process.listenerCount=function(s){let e=Reflect.apply(n,this,arguments);return t.includes(s)&&(e-=1),e};const{listeners:o}=process;process.listeners=function(s){const e=Reflect.apply(o,this,arguments);return t.includes(s)?e.filter(i=>i!==r):e}}
import{r as c}from"./pkgroll_create-require-3c0d19c6.js";import{constants as l}from"os";import"./suppress-warnings..js";import"module";if(c("@esbuild-kit/cjs-loader"),process.send){let r=function(s){process.send({type:"kill",signal:s}),process.listenerCount(s)===0&&process.exit(128+l.signals[s])};const t=["SIGINT","SIGTERM"];for(const s of t)process.on(s,r);const{listenerCount:n}=process;process.listenerCount=function(s){let e=Reflect.apply(n,this,arguments);return t.includes(s)&&(e-=1),e};const{listeners:o}=process;process.listeners=function(s){const e=Reflect.apply(o,this,arguments);return t.includes(s)?e.filter(i=>i!==r):e}}

@@ -1,3 +0,3 @@

import l from"repl";import{transform as c}from"@esbuild-kit/core-utils";import{v as i}from"./package-2c948d8d.js";console.log(`Welcome to tsx v${i} (Node.js ${process.version}).
import l from"repl";import{transform as c}from"@esbuild-kit/core-utils";import{v as i}from"./package-854bff9b.js";console.log(`Welcome to tsx v${i} (Node.js ${process.version}).
Type ".help" for more information.`);const e=l.start(),{eval:m}=e,p=async function(r,t,o,s){const n=await c(r,o,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(a=>(console.log(a.message),{code:`
`}));return m.call(this,n.code,t,o,s)};e.eval=p;
{
"name": "tsx",
"version": "3.12.7",
"version": "3.12.8",
"description": "TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files",

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

"@esbuild-kit/cjs-loader": "^2.4.2",
"@esbuild-kit/core-utils": "^3.0.0",
"@esbuild-kit/core-utils": "^3.2.2",
"@esbuild-kit/esm-loader": "^2.5.5"

@@ -38,0 +38,0 @@ },

@@ -15,4 +15,18 @@ # tsx <a href="https://npm.im/tsx"><img src="https://badgen.net/npm/v/tsx"></a> <a href="https://npm.im/tsx"><img src="https://badgen.net/npm/dm/tsx"></a> <a href="https://packagephobia.now.sh/result?p=tsx"><img src="https://packagephobia.now.sh/badge?p=tsx"></a>

<sub>Support this project by ⭐️ starring and sharing it. [Follow me](https://github.com/privatenumber) to see what other cool projects I'm working on! ❤️</sub>
> **💡 Protip: Looking to bundle your TypeScript project?**
>
> If you're looking for a dead simple way to bundle your TypeScript projects, take a look at [`pkgroll`](https://github.com/privatenumber/pkgroll). It's an esbuild-enhanced Rollup that's auto configured based on your `package.json`!
<br>
<p align="center">
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum">
<picture>
<source width="830" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum&image=dark">
<source width="830" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum&image">
<img width="830" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=platinum&image" alt="Premium sponsor banner">
</picture>
</a>
</p>
## About

@@ -187,3 +201,18 @@ `tsx` is a CLI command (alternative to `node`) for seamlessly running TypeScript & ESM, in both `commonjs` & `module` package types.

<br>
<p align="center">
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold">
<picture>
<source width="830" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold&image=dark">
<source width="830" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold&image">
<img width="830" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=gold&image" alt="Premium sponsor banner">
</picture>
</a>
</p>
## Support
If there's a problem you're encountering or something you need help with, don't hesitate to take advantage of my [_Priority Support_ service](https://github.com/sponsors/privatenumber) where you can ask me questions in an exclusive forum. I'm well equppied to assist you with this project and would be happy to help you out! 🙂
## FAQ

@@ -247,1 +276,41 @@

For details, refer to esbuild's [JavaScript caveats](https://esbuild.github.io/content-types/#javascript-caveats) and [TypeScript caveats](https://esbuild.github.io/content-types/#typescript-caveats) documentation.
### Does Yarn PnP work?
In CommonJS mode, yes. But in Module/ESM mode, [Node.js version v19.6.0 and up](https://github.com/nodejs/node/blob/v19.6.0/doc/changelogs/CHANGELOG_V19.md#esm-leverage-loaders-when-resolving-subsequent-loaders) is required.
### There's an outdated dependency in tsx—can you update?
Dependencies are typically declared with SemVer ranges to allow updates. You can use the [`npm update <package name>`](https://docs.npmjs.com/cli/v8/commands/npm-update) command to automatically update them to the latest version within the defined range.
If the dependencies are out of the specified range, it indicates a potential breaking change that requires manual review. You're welcome to submit a pull request to initiate the upgrade.
## Sponsors
[**Holocron**](https://holocron.so#github-privatenumber)
[![Holocron](https://holocron.so/banners/github.png)](https://holocron.so#github-privatenumber)
<p align="center">
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1">
<picture>
<source width="410" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1&image=dark">
<source width="410" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1&image">
<img width="410" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver1&image" alt="Premium sponsor banner">
</picture>
</a>
<a href="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2">
<picture>
<source width="410" media="(prefers-color-scheme: dark)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2&image=dark">
<source width="410" media="(prefers-color-scheme: light)" srcset="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2&image">
<img width="410" src="https://privatenumber-sponsors.vercel.app/api/sponsor?tier=silver2&image" alt="Premium sponsor banner">
</picture>
</a>
</p>
<p align="center">
<a href="https://github.com/sponsors/privatenumber">
<img src="https://cdn.jsdelivr.net/gh/privatenumber/sponsors/sponsorkit/sponsors.svg">
</a>
</p>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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