tsx 3.12.7 → 3.12.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -1
- package/dist/cl.cjs +26 -26
- package/dist/cli.js +26 -26
- package/dist/loade.cjs +1 -1
- package/dist/loader.js +1 -1
- package/dist/package-3f9f57a5.js +1 -0
- package/dist/package-6d4db614.cjs +1 -0
- package/dist/preflight..js +1 -1
- package/dist/preflight.cjs +1 -1
- package/dist/rep.cjs +3 -3
- package/dist/repl.js +1 -1
- package/dist/suppress-warnings..js +1 -1
- package/dist/suppress-warnings.cjs +1 -1
- package/package.json +3 -3
- package/dist/package-2c948d8d.js +0 -1
- package/dist/package-3e2622a7.cjs +0 -1
- /package/dist/{pkgroll_create-require-040ba28b.js → pkgroll_create-require-10c48495.js} +0 -0
- /package/dist/{pkgroll_create-require-0f7b35cd.cjs → pkgroll_create-require-95f45232.cjs} +0 -0
package/dist/loade.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("./pkgroll_create-require-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("./pkgroll_create-require-95f45232.cjs"),c=require("repl"),f=require("@esbuild-kit/core-utils"),a=require("@esbuild-kit/esm-loader");require("module");function d(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var u=d(c);function p(e){const{eval:l}=e,i=async function(r,o,t,n){try{r=(await f.transform(r,t,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}})).code}catch{}return l.call(this,r,o,t,n)};e.eval=i}const{start:v}=u.default;u.default.start=function(){const e=Reflect.apply(v,this,arguments);return p(e),e},s.require("@esbuild-kit/cjs-loader"),Object.keys(a).forEach(function(e){e!=="default"&&!exports.hasOwnProperty(e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return a[e]}})});
|
package/dist/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l}from"./pkgroll_create-require-
|
|
1
|
+
import{r as l}from"./pkgroll_create-require-10c48495.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");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r="3.12.9";export{r as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r="3.12.9";exports.version=r;
|
package/dist/preflight..js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c}from"./pkgroll_create-require-
|
|
1
|
+
import{r as c}from"./pkgroll_create-require-10c48495.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}}
|
package/dist/preflight.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var c=require("./pkgroll_create-require-95f45232.cjs"),l=require("os");if(require("./suppress-warnings.cjs"),require("module"),c.require("@esbuild-kit/cjs-loader"),process.send){let t=function(e){process.send({type:"kill",signal:e}),process.listenerCount(e)===0&&process.exit(128+l.constants.signals[e])};const r=["SIGINT","SIGTERM"];for(const e of r)process.on(e,t);const{listenerCount:n}=process;process.listenerCount=function(e){let s=Reflect.apply(n,this,arguments);return r.includes(e)&&(s-=1),s};const{listeners:i}=process;process.listeners=function(e){const s=Reflect.apply(i,this,arguments);return r.includes(e)?s.filter(o=>o!==t):s}}
|
package/dist/rep.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var c=require("repl"),n=require("@esbuild-kit/core-utils"),i=require("./package-
|
|
2
|
-
Type ".help" for more information.`);const o=p.default.start(),{eval:
|
|
3
|
-
`}));return
|
|
1
|
+
"use strict";var c=require("repl"),n=require("@esbuild-kit/core-utils"),i=require("./package-6d4db614.cjs");function u(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var p=u(c);console.log(`Welcome to tsx v${i.version} (Node.js ${process.version}).
|
|
2
|
+
Type ".help" for more information.`);const o=p.default.start(),{eval:d}=o,f=async function(e,t,r,a){const s=await n.transform(e,r,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(l=>(console.log(l.message),{code:`
|
|
3
|
+
`}));return d.call(this,s.code,t,r,a)};o.eval=f;
|
package/dist/repl.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import l from"repl";import{transform as c}from"@esbuild-kit/core-utils";import{v as i}from"./package-
|
|
1
|
+
import l from"repl";import{transform as c}from"@esbuild-kit/core-utils";import{v as i}from"./package-3f9f57a5.js";console.log(`Welcome to tsx v${i} (Node.js ${process.version}).
|
|
2
2
|
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:`
|
|
3
3
|
`}));return m.call(this,n.code,t,o,s)};e.eval=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=new Set(["--experimental-loader is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature and might change at any time"]),{emit:n}=process;process.emit=function(e,a){if(!(e==="warning"&&t.has(a.message)))return Reflect.apply(n,this,arguments)};
|
|
1
|
+
const t=new Set(["--experimental-loader is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature and might change at any time","Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.","`globalPreload` is planned for removal in favor of `initialize`. `globalPreload` is an experimental feature and might change at any time"]),{emit:n}=process;process.emit=function(e,a){if(!(e==="warning"&&t.has(a.message)))return Reflect.apply(n,this,arguments)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=new Set(["--experimental-loader is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature and might change at any time"]),{emit:n}=process;process.emit=function(e,a){if(!(e==="warning"&&t.has(a.message)))return Reflect.apply(n,this,arguments)};
|
|
1
|
+
"use strict";const t=new Set(["--experimental-loader is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature and might change at any time","Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.","`globalPreload` is planned for removal in favor of `initialize`. `globalPreload` is an experimental feature and might change at any time"]),{emit:n}=process;process.emit=function(e,a){if(!(e==="warning"&&t.has(a.message)))return Reflect.apply(n,this,arguments)};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsx",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.9",
|
|
4
4
|
"description": "TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"esbuild",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"bin": "./dist/cli.js",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@esbuild-kit/cjs-loader": "^2.4.2",
|
|
35
|
-
"@esbuild-kit/core-utils": "^3.
|
|
36
|
-
"@esbuild-kit/esm-loader": "^2.
|
|
35
|
+
"@esbuild-kit/core-utils": "^3.3.0",
|
|
36
|
+
"@esbuild-kit/esm-loader": "^2.6.1"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
39
|
"fsevents": "~2.3.2"
|
package/dist/package-2c948d8d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="3.12.7";export{r as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r="3.12.7";exports.version=r;
|
|
File without changes
|
|
File without changes
|