@compass-labs/api-sdk 2.2.53-rc.0 → 2.2.53-rc.1
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/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/cli.cjs +1 -1
- package/examples/node_modules/tsx/dist/cli.mjs +1 -1
- package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/esm/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/esm/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/{index-C8LOAU3M.cjs → index-D9F1FXzN.cjs} +9 -9
- package/examples/node_modules/tsx/dist/{index-CDeh32pY.mjs → index-XurvG3JN.mjs} +9 -9
- package/examples/node_modules/tsx/dist/loader.cjs +1 -1
- package/examples/node_modules/tsx/dist/loader.mjs +1 -1
- package/examples/node_modules/tsx/dist/node-features-B9BBLzwu.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-CQLdkVE6.cjs +1 -0
- package/examples/node_modules/tsx/dist/package-B1Rq-_ee.mjs +1 -0
- package/examples/node_modules/tsx/dist/package-Dc6DLSoP.cjs +1 -0
- package/examples/node_modules/tsx/dist/register-BOkp8V6j.cjs +10 -0
- package/examples/node_modules/tsx/dist/register-BnTWPeIB.mjs +10 -0
- package/examples/node_modules/tsx/dist/register-DS7J8l_a.cjs +2 -0
- package/examples/node_modules/tsx/dist/register-Ddio2Vih.mjs +2 -0
- package/examples/node_modules/tsx/dist/repl.cjs +1 -1
- package/examples/node_modules/tsx/dist/repl.mjs +1 -1
- package/examples/node_modules/tsx/dist/{require-YOXkC58J.cjs → require-CjvaJWEr.cjs} +1 -1
- package/examples/node_modules/tsx/dist/{require-CwvQf5A7.mjs → require-DzmC1hVr.mjs} +1 -1
- package/examples/node_modules/tsx/package.json +1 -1
- package/examples/package-lock.json +3 -3
- package/openapi_prepped_for_speakeasy.json +25290 -0
- package/package.json +1 -1
- package/examples/node_modules/tsx/dist/node-features-Bdn6JLJo.cjs +0 -1
- package/examples/node_modules/tsx/dist/node-features-Eq_kCbjt.mjs +0 -1
- package/examples/node_modules/tsx/dist/package-B4T_4BdY.mjs +0 -1
- package/examples/node_modules/tsx/dist/package-tLlRLU1T.cjs +0 -1
- package/examples/node_modules/tsx/dist/register-B4MtRGQg.cjs +0 -10
- package/examples/node_modules/tsx/dist/register-BmBLtb39.mjs +0 -2
- package/examples/node_modules/tsx/dist/register-HCiphi1e.mjs +0 -10
- package/examples/node_modules/tsx/dist/register-oEokg99B.cjs +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var le=Object.defineProperty;var m=(e,r)=>le(e,"name",{value:r,configurable:!0});var T=require("node:module"),me=require("node:worker_threads"),y=require("./node-features-CQLdkVE6.cjs"),n=require("./register-BOkp8V6j.cjs"),g=require("node:url"),de=require("node:fs"),ue=require("node:fs/promises"),h=require("./index-D9F1FXzN.cjs"),X=require("./client-D3mGB526.cjs"),U=require("node:path"),V=typeof document<"u"?document.currentScript:null;const w={active:!0,parsedTsconfig:void 0},D=m(e=>{const r={active:!0,namespace:e?.namespace,onImport:e?.onImport,parsedTsconfig:void 0,port:e?.port,tsconfig:e?.tsconfig};return e?.tsconfig!==!1&&(r.parsedTsconfig=n.loadTsconfig(e?.tsconfig??process.env.TSX_TSCONFIG_PATH)),r},"createData"),fe=m(async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(w,D(e)),e.port&&e.port.on("message",r=>{r==="deactivate"&&(w.active=!1,e.port.postMessage({type:"deactivated"}))})},"initialize"),pe=m(()=>(w.parsedTsconfig=n.loadTsconfig(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),ge=m(e=>{const{pathname:r}=new URL(e),t=U.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||n.tsExtensions.includes(t))return n.getPackageType(e)},"getFormatFromFileUrl"),he=m(e=>{const{pathname:r}=new URL(e),t=U.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||n.tsExtensions.includes(t))return n.getPackageTypeSync(e)},"getFormatFromFileUrlSync"),E="tsx-namespace=",I="tsx-commonjs-export-preparse",K=`${I}=1`,F="tsx-commonjs-virtual-query",j=new Map,A=m((e,r)=>e.slice(1).split("&").filter(t=>t&&r.every(s=>!t.startsWith(s))).join("&"),"getQueryWithoutParameters"),$=m((e,r)=>{const t=A(e,r);return t?`?${t}`:""},"getSearchWithoutParameters"),ye=m(e=>e.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),Pe=m(e=>{const r=ye(e);if(/^\s*export\s*\*/.test(r))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(r))return"namespace";const t=r.match(/\{([^}]*)\}/)?.[1];if(t)return t.split(",").some(s=>{const a=s.trim().split(/\s+as\s+/)[0];return!!(a&&a!=="default")})?"named":void 0},"getCommonJsImportBinding"),Re=m((e,r,t)=>{const s=j.get(e);if(!s)return!1;try{const[a]=h.parseEsm(s);return a.some(i=>{if(i.d!==-1||i.n!==r)return!1;const d=Pe(s.slice(i.ss,i.s));return d==="named"||t&&d==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),S=m(e=>{const r=e.indexOf(E);if(r===-1)return;const t=e[r-1];if(t!=="?"&&t!=="&")return;const s=r+E.length,a=e.indexOf("&",s);return a===-1?e.slice(s):e.slice(s,a)},"getNamespace"),x=y.isFeatureSupported(y.importAttributes)?"importAttributes":"importAssertions",Y=m(e=>e==="commonjs"||e==="commonjs-typescript","isCommonJsFormat"),Z=m(e=>e==="module-typescript"||e==="typescript","isModuleTypeScriptFormat"),Ee=y.isFeatureSupported(y.esmLoadReadFile),Ue=[`${F}=`],J=[`${I}=`,`${F}=`],v=m((e,r)=>r.parsedTsconfig&&n.je(r.parsedTsconfig,e)?r.parsedTsconfig.config:void 0,"getTsconfigRaw"),Se=m(e=>{if(!e.searchParams.has(F))return;const{pathname:r}=e,t=r.toLowerCase().lastIndexOf("%3f");if(t===-1)return;const s=new URL(e);return s.pathname=r.slice(0,t),s.search="",g.fileURLToPath(s)},"getFilePathFromVirtualQuery"),B=m(e=>{const r=e.startsWith(n.fileUrlPrefix)?new URL(e):void 0,t=r?g.fileURLToPath(r):e,s=r&&Se(r),a=s||t,i=r&&s?g.pathToFileURL(a).toString()+$(r.search,Ue):e;return{fileUrl:r,filePath:a,loadUrl:i}},"getFileLoadContext"),k=m((e,r)=>{if(!r?.search)return e;const t=$(r.search,J);return t?g.pathToFileURL(e).toString()+t:e},"getTransformPath"),ee=m((e,r,t)=>{const s=[...r?A(r.search,[E,...J]).split("&").filter(Boolean):[],...t?[`namespace=${encodeURIComponent(t)}`]:[]].join("&");return s?`${e}?${s}`:e},"getFilePathWithQuery"),ve=m((e,r)=>{const t=new URL(r),s=r.startsWith(n.fileUrlPrefix)?B(r).filePath:void 0;t.searchParams.delete("tsx-namespace"),t.searchParams.delete(I),t.searchParams.delete(F),s&&(t.pathname=new URL(g.pathToFileURL(s)).pathname);const a=t.toString();return e.port&&e.port.postMessage({type:"load",url:a}),e.onImport?.(a),a},"notifyLoad"),te=m((e,r)=>{if(!e.active)return!1;const t=S(r);if(e.namespace&&e.namespace!==t)return!1;const s=ve(e,r);return X.parent.send&&X.parent.send({type:"dependency",path:s}),!0},"prepareLoad"),re=m((e,r)=>{if(!n.isJsonPattern.test(e))return r;const t=r[x];return t?.type?r:{...r,[x]:{...t,type:"json"}}},"prepareJsonAttributes"),Q=m(({conditions:e})=>e?.includes("require")===!0&&!e.includes("import"),"isCommonJsRequireContext$1"),Te=m(e=>{const r=m(async(t,s,a)=>{if(!te(e,t))return a(t,s);const i=S(t),{fileUrl:d,filePath:c,loadUrl:o}=B(t),u=re(o,s),l=await a(o,u);n.logEsm(3,"loaded by next loader",{url:t,loadUrl:o,loaded:l});const P=d?.searchParams.has(I)===!0,R=l.format,L=d?new URL(g.pathToFileURL(c)):void 0;if(L&&d&&(L.search=$(d.search,J)),Y(R)&&d&&l.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const f=await ue.readFile(g.pathToFileURL(c),"utf8"),C=h.isESM(f);if(R==="commonjs-typescript"||!c.endsWith(".js")||C){if(!Ee){if(P&&C&&n.implicitTsExtensionsPattern.test(c)){const b=await h.transform(f,c,{define:{"import.meta.url":JSON.stringify(L.toString())},tsconfigRaw:v(c,e)});return j.set(t,b.code),{format:"module",source:n.inlineSourceMap(b)}}return l}if(!i&&!P&&!c.endsWith(".cts"))return l;const G=!!(i||P||$(d.search,J)),z=h.transformSync(f,k(c,d),{cjsBanner:G?`require = require("node:module").createRequire(${JSON.stringify(g.pathToFileURL(c).toString())});`:void 0,tsconfigRaw:v(c,e)});if(l.format="commonjs",l.source=n.inlineSourceMap(z),G){const b=ee(c,d,i);l.responseURL=`data:text/javascript,${encodeURIComponent(z.code)}?filePath=${encodeURIComponent(b)}`}return n.logEsm(3,"returning CJS export annotation",l),l}}if(!l.source)return l;const p=l.source.toString(),_=R==="json"&&!Q(s);if(R==="commonjs-typescript"){const f=h.transformSync(p,c,{tsconfigRaw:v(c,e)});return{...l,format:"commonjs",source:n.inlineSourceMap(f)}}if(_||Z(R)||n.tsExtensionsPattern.test(t)){const f=await h.transform(p,c,{tsconfigRaw:v(c,e)});return j.set(t,f.code),{format:"module",source:n.inlineSourceMap(f)}}if(l.format==="module"){const f=h.transformDynamicImport(c,p);f?(l.source=n.inlineSourceMap(f),j.set(t,f.code)):j.set(t,p)}return l},"load2");return n.debugEnabled?async(t,s,a)=>{n.logEsm(2,"load",{url:t,context:s});const i=await r(t,s,a);return n.logEsm(1,"loaded",{url:t,result:i}),i}:r},"createLoad"),Le=m(e=>{const r=m((t,s,a)=>{if(Q(s)&&n.isGlobalCjsLoaderActive()||!te(e,t))return a(t,s);const i=S(t),{fileUrl:d,filePath:c,loadUrl:o}=B(t),u=re(o,s),l=a(o,u);n.logEsm(3,"loaded by next loader",{url:t,loadUrl:o,loaded:l});const P=l.format;if(Y(P)&&y.isFeatureSupported(y.esmLoadReadFile)&&l.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const p=de.readFileSync(g.pathToFileURL(c),"utf8");if(P==="commonjs-typescript"||!c.endsWith(".js")||h.isESM(p)){const _=h.transformSync(p,k(c,d),{tsconfigRaw:v(c,e)}),f=!i&&n.isGlobalCjsLoaderActive(),C=ee(c,d,i);return l.format="commonjs",l.shouldBeReloadedByCJSLoader=f,l.source=n.inlineSourceMap(_),f||(l.responseURL=`data:text/javascript,${encodeURIComponent(_.code)}?filePath=${encodeURIComponent(C)}`),n.logEsm(3,"returning CJS export annotation",l),l}}if(!l.source)return l;const R=l.source.toString(),L=P==="json"&&!Q(s);if(P==="commonjs-typescript"){const p=h.transformSync(R,c,{tsconfigRaw:v(c,e)});return{...l,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:n.inlineSourceMap(p)}}if(L||Z(P)||n.tsExtensionsPattern.test(t)){const p=h.transformEsmSync(R,c,{tsconfigRaw:v(c,e)});return{format:"module",source:n.inlineSourceMap(p)}}if(l.format==="module"){const p=h.transformDynamicImport(c,R);p&&(l.source=n.inlineSourceMap(p))}return l},"load2");return n.debugEnabled?(t,s,a)=>{n.logEsm(2,"loadSync",{url:t,context:s});const i=r(t,s,a);return n.logEsm(1,"loadedSync",{url:t,result:i}),i}:r},"createLoadSync"),we=Te(w),Fe=y.isFeatureSupported(y.esmLoadReadFile),je=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,se=m(e=>!n.isFilePath(e)&&!je.test(e),"isTsconfigPathAliasSpecifier"),W=m(e=>{if(e.url)return e.url;const r=e.message.match(/^Cannot find module '([^']+)'/);if(r){const[,s]=r;return s}const t=e.message.match(/^Cannot find package '([^']+)'/);if(t){const[,s]=t;if(!U.isAbsolute(s))return;const a=g.pathToFileURL(s);if(a.pathname.endsWith("/")&&(a.pathname+="package.json"),a.pathname.endsWith("/package.json")){const i=h.readJsonFile(a);if(i?.main)return new URL(i.main,a).toString()}else return a.toString()}},"getMissingPathFromNotFound"),M=m(e=>e==="ERR_MODULE_NOT_FOUND"||e==="MODULE_NOT_FOUND","isModuleNotFound"),q=m(async(e,r,t,s)=>{const a=n.mapTsExtensions(e);if(n.logEsm(3,"resolveExtensions",{url:e,context:r,throwError:s,tryPaths:a}),!a)return;let i;for(const d of a)try{return await t(d,r)}catch(c){const{code:o}=c;if(!M(o)&&o!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;i=c}if(s)throw i},"resolveExtensions"),N=m((e,r,t,s)=>{const a=n.mapTsExtensions(e);if(n.logEsm(3,"resolveExtensionsSync",{url:e,context:r,throwError:s,tryPaths:a}),!a)return;let i;for(const d of a)try{return t(d,r)}catch(c){const{code:o}=c;if(!M(o)&&o!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;i=c}if(s)throw i},"resolveExtensionsSync"),_e=m(async(e,r,t,s)=>{const a=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(n.logEsm(3,"resolveBase",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(n.fileUrlPrefix),isRelativePath:n.isRelativePath(e),tsExtensionsPattern:n.tsExtensionsPattern.test(r.parentURL),allowJs:a}),(e.startsWith(n.fileUrlPrefix)||n.isRelativePath(e))&&(n.tsExtensionsPattern.test(r.parentURL)||a)){const i=await q(e,r,t);if(n.logEsm(3,"resolveBase resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return await t(e,r)}catch(i){if(n.logEsm(3,"resolveBase error",{specifier:e,context:r,error:i}),i instanceof Error){const d=i;if(M(d.code)){const c=W(d);if(c){const o=await q(c,r,t);if(o)return o}}}throw i}},"resolveBase"),Ce=m((e,r,t,s)=>{const a=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(n.logEsm(3,"resolveBaseSync",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(n.fileUrlPrefix),isRelativePath:n.isRelativePath(e),tsExtensionsPattern:n.tsExtensionsPattern.test(r.parentURL),allowJs:a}),(e.startsWith(n.fileUrlPrefix)||n.isRelativePath(e))&&(n.tsExtensionsPattern.test(r.parentURL)||a)){const i=N(e,r,t);if(n.logEsm(3,"resolveBaseSync resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return t(e,r)}catch(i){if(n.logEsm(3,"resolveBaseSync error",{specifier:e,context:r,error:i}),i instanceof Error){const d=i;if(M(d.code)){const c=W(d);if(c){const o=N(c,r,t);if(o)return o}}}throw i}},"resolveBaseSync"),oe=m(async(e,r,t,s)=>{if(n.logEsm(3,"resolveDirectory",{specifier:e,context:r,isDirectory:n.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),n.isDirectoryPattern.test(e)){const a=new URL(e,r.parentURL);return a.pathname=U.join(a.pathname,"index"),await q(a.toString(),r,t,!0)}try{return await _e(e,r,t,s)}catch(a){if(a instanceof Error){n.logEsm(3,"resolveDirectory error",{specifier:e,context:r,error:a});const i=a;if(i.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const d=W(i);if(d)try{return await q(`${d}/index`,r,t,!0)}catch(c){const o=c,{message:u}=o;throw o.message=o.message.replace(`${"/index".replace("/",U.sep)}'`,"'"),o.stack=o.stack.replace(u,o.message),o}}}throw a}},"resolveDirectory"),ne=m((e,r,t,s)=>{if(n.logEsm(3,"resolveDirectorySync",{specifier:e,context:r,isDirectory:n.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),n.isDirectoryPattern.test(e)){const a=new URL(e,r.parentURL);return a.pathname=U.join(a.pathname,"index"),N(a.toString(),r,t,!0)}try{return Ce(e,r,t,s)}catch(a){if(a instanceof Error){n.logEsm(3,"resolveDirectorySync error",{specifier:e,context:r,error:a});const i=a;if(i.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const d=W(i);if(d)try{return N(`${d}/index`,r,t,!0)}catch(c){const o=c,{message:u}=o;throw o.message=o.message.replace(`${"/index".replace("/",U.sep)}'`,"'"),o.stack=o.stack.replace(u,o.message),o}}}throw a}},"resolveDirectorySync"),be=m(async(e,r,t,s)=>{const a=se(e);if(n.logEsm(3,"resolveTsPaths",{specifier:e,context:r,tsconfigPathAliasSpecifier:a,tsconfig:s.parsedTsconfig,fromNodeModules:r.parentURL?.includes("/node_modules/")}),a&&s.parsedTsconfig&&!r.parentURL?.includes("/node_modules/")){const i=n.wt(s.parsedTsconfig,e);n.logEsm(3,"resolveTsPaths",{possiblePaths:i});for(const d of i)try{return await oe(g.pathToFileURL(d).toString(),r,t,s)}catch{}}return oe(e,r,t,s)},"resolveTsPaths"),Ie=m((e,r,t,s)=>{const a=se(e);if(n.logEsm(3,"resolveTsPathsSync",{specifier:e,context:r,tsconfigPathAliasSpecifier:a,tsconfig:s.parsedTsconfig,fromNodeModules:r.parentURL?.includes("/node_modules/")}),a&&s.parsedTsconfig&&!r.parentURL?.includes("/node_modules/")){const i=n.wt(s.parsedTsconfig,e);n.logEsm(3,"resolveTsPathsSync",{possiblePaths:i});for(const d of i)try{return ne(g.pathToFileURL(d).toString(),r,t,s)}catch{}}return ne(e,r,t,s)},"resolveTsPathsSync"),O="tsx://",$e=m(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext"),H=m((e,r)=>`${e}${e.includes("?")?"&":"?"}${r}`,"addQuery"),ae=m((e,r,t)=>{if(r!=="commonjs"||!e.startsWith(n.fileUrlPrefix)||!n.implicitTsExtensionsPattern.test(e))return e;const s=new URL(e),a=[A(s.search,[E]),...t?[`namespace=${encodeURIComponent(t)}`]:[]].filter(Boolean).join("&");return a?(s.pathname+=`%3F${a}`,s.searchParams.set(F,"1"),s.toString()):e},"preserveCommonJsQueryIdentity"),Je=m(e=>{const r=m(async(t,s,a)=>{if(!e.active||t.startsWith("node:"))return a(t,s);let i=S(t)??(s.parentURL&&S(s.parentURL));if(e.namespace){let l;if(t.startsWith(O)){try{l=JSON.parse(t.slice(O.length))}catch{}l?.namespace&&(i=l.namespace)}if(e.namespace!==i)return a(t,s);l&&(t=l.specifier,s.parentURL=l.parentURL)}const[d,c]=t.split("?"),o=await be(d,s,a,e);if(n.logEsm(2,"nextResolve",{resolved:o}),o.format==="builtin")return o;(!o.format||o.format==="commonjs-typescript"||o.format==="module-typescript")&&o.url.startsWith(n.fileUrlPrefix)&&(o.format=await ge(o.url),n.logEsm(2,"getFormatFromFileUrl",{resolved:o,format:o.format})),c&&(o.url+=`?${c}`);const u=s.parentURL&&o.format==="commonjs"&&n.implicitTsExtensionsPattern.test(o.url)&&(s.parentURL.includes(K)||Re(s.parentURL,t,Fe));return i&&!o.url.includes(E)&&(o.url=H(o.url,`${E}${i}`)),u&&(o.url=H(o.url,K)),(i||u)&&(o.url=ae(o.url,o.format,i)),o},"resolve2");return n.debugEnabled?async(t,s,a)=>{n.logEsm(2,"resolve",{specifier:t,context:s});const i=await r(t,s,a);return n.logEsm(1,"resolved",{specifier:t,context:s,result:i}),i}:r},"createResolve"),We=m(e=>{const r=m((t,s,a)=>{if(!e.active||t.startsWith("node:")||$e(s)&&n.isGlobalCjsLoaderActive())return a(t,s);let i=S(t)??(s.parentURL&&S(s.parentURL));if(e.namespace){let u;if(t.startsWith(O)){try{u=JSON.parse(t.slice(O.length))}catch{}u?.namespace&&(i=u.namespace)}if(e.namespace!==i)return a(t,s);u&&(t=u.specifier,s.parentURL=u.parentURL)}const[d,c]=t.split("?"),o=Ie(d,s,a,e);return n.logEsm(2,"nextResolve",{resolved:o}),o.format==="builtin"||((!o.format||o.format==="commonjs-typescript"||o.format==="module-typescript")&&o.url.startsWith(n.fileUrlPrefix)&&(o.format=he(o.url),n.logEsm(2,"getFormatFromFileUrlSync",{resolved:o,format:o.format})),c&&(o.url+=`?${c}`),i&&!o.url.includes(E)&&(o.url=H(o.url,`${E}${i}`)),o.url=ae(o.url,o.format,i)),o},"resolve2");return n.debugEnabled?(t,s,a)=>{n.logEsm(2,"resolveSync",{specifier:t,context:s});const i=r(t,s,a);return n.logEsm(1,"resolvedSync",{specifier:t,context:s,result:i}),i}:r},"createResolveSync"),Me=Je(w),ie=m(e=>(r,t)=>{if(!t)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const s=t.startsWith(n.fileUrlPrefix)?t:g.pathToFileURL(t).toString();return import(`tsx://${JSON.stringify({specifier:r,parentURL:s,namespace:e})}`)},"createScopedImport");let ce=!1;const qe=m(e=>{const r=typeof T.registerHooks=="function"&&y.isFeatureSupported(y.moduleRegisterHooksCjsReload);if(!T.register&&!r)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!ce){const{_resolveFilename:o}=T;T._resolveFilename=(u,...l)=>o(n.interopCjsExports(u),...l),ce=!0}const{sourceMapsEnabled:t}=process;if(process.setSourceMapsEnabled(!0),r){const o=D({namespace:e?.namespace,onImport:e?.onImport,tsconfig:e?.tsconfig}),u=T.registerHooks({load:Le(o),resolve:We(o)}),l=m(async()=>{o.active=!1,u.deregister(),t===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return e?.namespace&&(l.import=ie(e.namespace),l.unregister=l),l}const{port1:s,port2:a}=new me.MessageChannel;T.register(`./esm/index.mjs?${Date.now()}`,{parentURL:typeof document>"u"?require("url").pathToFileURL(__filename).href:V&&V.src||new URL("register-DS7J8l_a.cjs",document.baseURI).href,data:{port:a,namespace:e?.namespace,tsconfig:e?.tsconfig},transferList:[a]});const i=e?.onImport,d=i&&(o=>{o.type==="load"&&i(o.url)});d&&(s.on("message",d),s.unref());const c=m(()=>(t===!1&&process.setSourceMapsEnabled(!1),d&&s.off("message",d),s.postMessage("deactivate"),new Promise(o=>{const u=m(l=>{l.type==="deactivated"&&(o(),s.off("message",u))},"onDeactivated");s.on("message",u)})),"unregister");return e?.namespace&&(c.import=ie(e.namespace),c.unregister=c),c},"register");exports.globalPreload=pe,exports.initialize=fe,exports.load=we,exports.register=qe,exports.resolve=Me;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var Le=Object.defineProperty;var m=(e,s)=>Le(e,"name",{value:s,configurable:!0});import T from"node:module";import{MessageChannel as Ee}from"node:worker_threads";import{i as j,b as je,e as z,m as Fe}from"./node-features-B9BBLzwu.mjs";import{l as te,t as se,g as Ce,a as Ie,d as W,b as d,e as V,f as R,h as L,j as K,k as _e,m as h,n as $e,w as re,o as Je,p as b,q as oe,s as N,u as We}from"./register-BnTWPeIB.mjs";import{pathToFileURL as g,fileURLToPath as ne}from"node:url";import{readFileSync as be}from"node:fs";import{readFile as Ne}from"node:fs/promises";import{p as Oe,i as ae,t as ce,a as O,b as ie,c as Me,r as Be}from"./index-XurvG3JN.mjs";import{p as me}from"./client-D_mPDF5S.mjs";import v from"node:path";const F={active:!0,parsedTsconfig:void 0},le=m(e=>{const s={active:!0,namespace:e?.namespace,onImport:e?.onImport,parsedTsconfig:void 0,port:e?.port,tsconfig:e?.tsconfig};return e?.tsconfig!==!1&&(s.parsedTsconfig=te(e?.tsconfig??process.env.TSX_TSCONFIG_PATH)),s},"createData"),Ae=m(async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(F,le(e)),e.port&&e.port.on("message",s=>{s==="deactivate"&&(F.active=!1,e.port.postMessage({type:"deactivated"}))})},"initialize"),qe=m(()=>(F.parsedTsconfig=te(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),Qe=m(e=>{const{pathname:s}=new URL(e),t=v.extname(s);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||se.includes(t))return Ce(e)},"getFormatFromFileUrl"),He=m(e=>{const{pathname:s}=new URL(e),t=v.extname(s);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||se.includes(t))return Ie(e)},"getFormatFromFileUrlSync"),S="tsx-namespace=",M="tsx-commonjs-export-preparse",de=`${M}=1`,C="tsx-commonjs-virtual-query",I=new Map,Y=m((e,s)=>e.slice(1).split("&").filter(t=>t&&s.every(r=>!t.startsWith(r))).join("&"),"getQueryWithoutParameters"),B=m((e,s)=>{const t=Y(e,s);return t?`?${t}`:""},"getSearchWithoutParameters"),Ge=m(e=>e.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),Xe=m(e=>{const s=Ge(e);if(/^\s*export\s*\*/.test(s))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(s))return"namespace";const t=s.match(/\{([^}]*)\}/)?.[1];if(t)return t.split(",").some(r=>{const n=r.trim().split(/\s+as\s+/)[0];return!!(n&&n!=="default")})?"named":void 0},"getCommonJsImportBinding"),ze=m((e,s,t)=>{const r=I.get(e);if(!r)return!1;try{const[n]=Oe(r);return n.some(a=>{if(a.d!==-1||a.n!==s)return!1;const l=Xe(r.slice(a.ss,a.s));return l==="named"||t&&l==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),U=m(e=>{const s=e.indexOf(S);if(s===-1)return;const t=e[s-1];if(t!=="?"&&t!=="&")return;const r=s+S.length,n=e.indexOf("&",r);return n===-1?e.slice(r):e.slice(r,n)},"getNamespace"),ue=j(je)?"importAttributes":"importAssertions",fe=m(e=>e==="commonjs"||e==="commonjs-typescript","isCommonJsFormat"),pe=m(e=>e==="module-typescript"||e==="typescript","isModuleTypeScriptFormat"),Ve=j(z),Ke=[`${C}=`],A=[`${M}=`,`${C}=`],w=m((e,s)=>s.parsedTsconfig&&_e(s.parsedTsconfig,e)?s.parsedTsconfig.config:void 0,"getTsconfigRaw"),Ye=m(e=>{if(!e.searchParams.has(C))return;const{pathname:s}=e,t=s.toLowerCase().lastIndexOf("%3f");if(t===-1)return;const r=new URL(e);return r.pathname=s.slice(0,t),r.search="",ne(r)},"getFilePathFromVirtualQuery"),Z=m(e=>{const s=e.startsWith(h)?new URL(e):void 0,t=s?ne(s):e,r=s&&Ye(s),n=r||t,a=s&&r?g(n).toString()+B(s.search,Ke):e;return{fileUrl:s,filePath:n,loadUrl:a}},"getFileLoadContext"),ge=m((e,s)=>{if(!s?.search)return e;const t=B(s.search,A);return t?g(e).toString()+t:e},"getTransformPath"),he=m((e,s,t)=>{const r=[...s?Y(s.search,[S,...A]).split("&").filter(Boolean):[],...t?[`namespace=${encodeURIComponent(t)}`]:[]].join("&");return r?`${e}?${r}`:e},"getFilePathWithQuery"),Ze=m((e,s)=>{const t=new URL(s),r=s.startsWith(h)?Z(s).filePath:void 0;t.searchParams.delete("tsx-namespace"),t.searchParams.delete(M),t.searchParams.delete(C),r&&(t.pathname=new URL(g(r)).pathname);const n=t.toString();return e.port&&e.port.postMessage({type:"load",url:n}),e.onImport?.(n),n},"notifyLoad"),ye=m((e,s)=>{if(!e.active)return!1;const t=U(s);if(e.namespace&&e.namespace!==t)return!1;const r=Ze(e,s);return me.send&&me.send({type:"dependency",path:r}),!0},"prepareLoad"),Pe=m((e,s)=>{if(!$e.test(e))return s;const t=s[ue];return t?.type?s:{...s,[ue]:{...t,type:"json"}}},"prepareJsonAttributes"),D=m(({conditions:e})=>e?.includes("require")===!0&&!e.includes("import"),"isCommonJsRequireContext$1"),De=m(e=>{const s=m(async(t,r,n)=>{if(!ye(e,t))return n(t,r);const a=U(t),{fileUrl:l,filePath:c,loadUrl:o}=Z(t),u=Pe(o,r),i=await n(o,u);d(3,"loaded by next loader",{url:t,loadUrl:o,loaded:i});const y=l?.searchParams.has(M)===!0,P=i.format,E=l?new URL(g(c)):void 0;if(E&&l&&(E.search=B(l.search,A)),fe(P)&&l&&i.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const f=await Ne(g(c),"utf8"),$=ae(f);if(P==="commonjs-typescript"||!c.endsWith(".js")||$){if(!Ve){if(y&&$&&V.test(c)){const J=await ce(f,c,{define:{"import.meta.url":JSON.stringify(E.toString())},tsconfigRaw:w(c,e)});return I.set(t,J.code),{format:"module",source:R(J)}}return i}if(!a&&!y&&!c.endsWith(".cts"))return i;const x=!!(a||y||B(l.search,A)),ee=O(f,ge(c,l),{cjsBanner:x?`require = require("node:module").createRequire(${JSON.stringify(g(c).toString())});`:void 0,tsconfigRaw:w(c,e)});if(i.format="commonjs",i.source=R(ee),x){const J=he(c,l,a);i.responseURL=`data:text/javascript,${encodeURIComponent(ee.code)}?filePath=${encodeURIComponent(J)}`}return d(3,"returning CJS export annotation",i),i}}if(!i.source)return i;const p=i.source.toString(),_=P==="json"&&!D(r);if(P==="commonjs-typescript"){const f=O(p,c,{tsconfigRaw:w(c,e)});return{...i,format:"commonjs",source:R(f)}}if(_||pe(P)||L.test(t)){const f=await ce(p,c,{tsconfigRaw:w(c,e)});return I.set(t,f.code),{format:"module",source:R(f)}}if(i.format==="module"){const f=ie(c,p);f?(i.source=R(f),I.set(t,f.code)):I.set(t,p)}return i},"load2");return W?async(t,r,n)=>{d(2,"load",{url:t,context:r});const a=await s(t,r,n);return d(1,"loaded",{url:t,result:a}),a}:s},"createLoad"),ke=m(e=>{const s=m((t,r,n)=>{if(D(r)&&K()||!ye(e,t))return n(t,r);const a=U(t),{fileUrl:l,filePath:c,loadUrl:o}=Z(t),u=Pe(o,r),i=n(o,u);d(3,"loaded by next loader",{url:t,loadUrl:o,loaded:i});const y=i.format;if(fe(y)&&j(z)&&i.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const p=be(g(c),"utf8");if(y==="commonjs-typescript"||!c.endsWith(".js")||ae(p)){const _=O(p,ge(c,l),{tsconfigRaw:w(c,e)}),f=!a&&K(),$=he(c,l,a);return i.format="commonjs",i.shouldBeReloadedByCJSLoader=f,i.source=R(_),f||(i.responseURL=`data:text/javascript,${encodeURIComponent(_.code)}?filePath=${encodeURIComponent($)}`),d(3,"returning CJS export annotation",i),i}}if(!i.source)return i;const P=i.source.toString(),E=y==="json"&&!D(r);if(y==="commonjs-typescript"){const p=O(P,c,{tsconfigRaw:w(c,e)});return{...i,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:R(p)}}if(E||pe(y)||L.test(t)){const p=Me(P,c,{tsconfigRaw:w(c,e)});return{format:"module",source:R(p)}}if(i.format==="module"){const p=ie(c,P);p&&(i.source=R(p))}return i},"load2");return W?(t,r,n)=>{d(2,"loadSync",{url:t,context:r});const a=s(t,r,n);return d(1,"loadedSync",{url:t,result:a}),a}:s},"createLoadSync"),xe=De(F),et=j(z),tt=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,Re=m(e=>!Je(e)&&!tt.test(e),"isTsconfigPathAliasSpecifier"),q=m(e=>{if(e.url)return e.url;const s=e.message.match(/^Cannot find module '([^']+)'/);if(s){const[,r]=s;return r}const t=e.message.match(/^Cannot find package '([^']+)'/);if(t){const[,r]=t;if(!v.isAbsolute(r))return;const n=g(r);if(n.pathname.endsWith("/")&&(n.pathname+="package.json"),n.pathname.endsWith("/package.json")){const a=Be(n);if(a?.main)return new URL(a.main,n).toString()}else return n.toString()}},"getMissingPathFromNotFound"),Q=m(e=>e==="ERR_MODULE_NOT_FOUND"||e==="MODULE_NOT_FOUND","isModuleNotFound"),H=m(async(e,s,t,r)=>{const n=oe(e);if(d(3,"resolveExtensions",{url:e,context:s,throwError:r,tryPaths:n}),!n)return;let a;for(const l of n)try{return await t(l,s)}catch(c){const{code:o}=c;if(!Q(o)&&o!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(r)throw a},"resolveExtensions"),G=m((e,s,t,r)=>{const n=oe(e);if(d(3,"resolveExtensionsSync",{url:e,context:s,throwError:r,tryPaths:n}),!n)return;let a;for(const l of n)try{return t(l,s)}catch(c){const{code:o}=c;if(!Q(o)&&o!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(r)throw a},"resolveExtensionsSync"),st=m(async(e,s,t,r)=>{const n=r.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(d(3,"resolveBase",{specifier:e,context:s,specifierStartsWithFileUrl:e.startsWith(h),isRelativePath:N(e),tsExtensionsPattern:L.test(s.parentURL),allowJs:n}),(e.startsWith(h)||N(e))&&(L.test(s.parentURL)||n)){const a=await H(e,s,t);if(d(3,"resolveBase resolved",{specifier:e,context:s,resolved:a}),a)return a}try{return await t(e,s)}catch(a){if(d(3,"resolveBase error",{specifier:e,context:s,error:a}),a instanceof Error){const l=a;if(Q(l.code)){const c=q(l);if(c){const o=await H(c,s,t);if(o)return o}}}throw a}},"resolveBase"),rt=m((e,s,t,r)=>{const n=r.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(d(3,"resolveBaseSync",{specifier:e,context:s,specifierStartsWithFileUrl:e.startsWith(h),isRelativePath:N(e),tsExtensionsPattern:L.test(s.parentURL),allowJs:n}),(e.startsWith(h)||N(e))&&(L.test(s.parentURL)||n)){const a=G(e,s,t);if(d(3,"resolveBaseSync resolved",{specifier:e,context:s,resolved:a}),a)return a}try{return t(e,s)}catch(a){if(d(3,"resolveBaseSync error",{specifier:e,context:s,error:a}),a instanceof Error){const l=a;if(Q(l.code)){const c=q(l);if(c){const o=G(c,s,t);if(o)return o}}}throw a}},"resolveBaseSync"),Se=m(async(e,s,t,r)=>{if(d(3,"resolveDirectory",{specifier:e,context:s,isDirectory:b.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),b.test(e)){const n=new URL(e,s.parentURL);return n.pathname=v.join(n.pathname,"index"),await H(n.toString(),s,t,!0)}try{return await st(e,s,t,r)}catch(n){if(n instanceof Error){d(3,"resolveDirectory error",{specifier:e,context:s,error:n});const a=n;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const l=q(a);if(l)try{return await H(`${l}/index`,s,t,!0)}catch(c){const o=c,{message:u}=o;throw o.message=o.message.replace(`${"/index".replace("/",v.sep)}'`,"'"),o.stack=o.stack.replace(u,o.message),o}}}throw n}},"resolveDirectory"),ve=m((e,s,t,r)=>{if(d(3,"resolveDirectorySync",{specifier:e,context:s,isDirectory:b.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),b.test(e)){const n=new URL(e,s.parentURL);return n.pathname=v.join(n.pathname,"index"),G(n.toString(),s,t,!0)}try{return rt(e,s,t,r)}catch(n){if(n instanceof Error){d(3,"resolveDirectorySync error",{specifier:e,context:s,error:n});const a=n;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const l=q(a);if(l)try{return G(`${l}/index`,s,t,!0)}catch(c){const o=c,{message:u}=o;throw o.message=o.message.replace(`${"/index".replace("/",v.sep)}'`,"'"),o.stack=o.stack.replace(u,o.message),o}}}throw n}},"resolveDirectorySync"),ot=m(async(e,s,t,r)=>{const n=Re(e);if(d(3,"resolveTsPaths",{specifier:e,context:s,tsconfigPathAliasSpecifier:n,tsconfig:r.parsedTsconfig,fromNodeModules:s.parentURL?.includes("/node_modules/")}),n&&r.parsedTsconfig&&!s.parentURL?.includes("/node_modules/")){const a=re(r.parsedTsconfig,e);d(3,"resolveTsPaths",{possiblePaths:a});for(const l of a)try{return await Se(g(l).toString(),s,t,r)}catch{}}return Se(e,s,t,r)},"resolveTsPaths"),nt=m((e,s,t,r)=>{const n=Re(e);if(d(3,"resolveTsPathsSync",{specifier:e,context:s,tsconfigPathAliasSpecifier:n,tsconfig:r.parsedTsconfig,fromNodeModules:s.parentURL?.includes("/node_modules/")}),n&&r.parsedTsconfig&&!s.parentURL?.includes("/node_modules/")){const a=re(r.parsedTsconfig,e);d(3,"resolveTsPathsSync",{possiblePaths:a});for(const l of a)try{return ve(g(l).toString(),s,t,r)}catch{}}return ve(e,s,t,r)},"resolveTsPathsSync"),X="tsx://",at=m(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext"),k=m((e,s)=>`${e}${e.includes("?")?"&":"?"}${s}`,"addQuery"),Ue=m((e,s,t)=>{if(s!=="commonjs"||!e.startsWith(h)||!V.test(e))return e;const r=new URL(e),n=[Y(r.search,[S]),...t?[`namespace=${encodeURIComponent(t)}`]:[]].filter(Boolean).join("&");return n?(r.pathname+=`%3F${n}`,r.searchParams.set(C,"1"),r.toString()):e},"preserveCommonJsQueryIdentity"),ct=m(e=>{const s=m(async(t,r,n)=>{if(!e.active||t.startsWith("node:"))return n(t,r);let a=U(t)??(r.parentURL&&U(r.parentURL));if(e.namespace){let i;if(t.startsWith(X)){try{i=JSON.parse(t.slice(X.length))}catch{}i?.namespace&&(a=i.namespace)}if(e.namespace!==a)return n(t,r);i&&(t=i.specifier,r.parentURL=i.parentURL)}const[l,c]=t.split("?"),o=await ot(l,r,n,e);if(d(2,"nextResolve",{resolved:o}),o.format==="builtin")return o;(!o.format||o.format==="commonjs-typescript"||o.format==="module-typescript")&&o.url.startsWith(h)&&(o.format=await Qe(o.url),d(2,"getFormatFromFileUrl",{resolved:o,format:o.format})),c&&(o.url+=`?${c}`);const u=r.parentURL&&o.format==="commonjs"&&V.test(o.url)&&(r.parentURL.includes(de)||ze(r.parentURL,t,et));return a&&!o.url.includes(S)&&(o.url=k(o.url,`${S}${a}`)),u&&(o.url=k(o.url,de)),(a||u)&&(o.url=Ue(o.url,o.format,a)),o},"resolve2");return W?async(t,r,n)=>{d(2,"resolve",{specifier:t,context:r});const a=await s(t,r,n);return d(1,"resolved",{specifier:t,context:r,result:a}),a}:s},"createResolve"),it=m(e=>{const s=m((t,r,n)=>{if(!e.active||t.startsWith("node:")||at(r)&&K())return n(t,r);let a=U(t)??(r.parentURL&&U(r.parentURL));if(e.namespace){let u;if(t.startsWith(X)){try{u=JSON.parse(t.slice(X.length))}catch{}u?.namespace&&(a=u.namespace)}if(e.namespace!==a)return n(t,r);u&&(t=u.specifier,r.parentURL=u.parentURL)}const[l,c]=t.split("?"),o=nt(l,r,n,e);return d(2,"nextResolve",{resolved:o}),o.format==="builtin"||((!o.format||o.format==="commonjs-typescript"||o.format==="module-typescript")&&o.url.startsWith(h)&&(o.format=He(o.url),d(2,"getFormatFromFileUrlSync",{resolved:o,format:o.format})),c&&(o.url+=`?${c}`),a&&!o.url.includes(S)&&(o.url=k(o.url,`${S}${a}`)),o.url=Ue(o.url,o.format,a)),o},"resolve2");return W?(t,r,n)=>{d(2,"resolveSync",{specifier:t,context:r});const a=s(t,r,n);return d(1,"resolvedSync",{specifier:t,context:r,result:a}),a}:s},"createResolveSync"),mt=ct(F),we=m(e=>(s,t)=>{if(!t)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const r=t.startsWith(h)?t:g(t).toString();return import(`tsx://${JSON.stringify({specifier:s,parentURL:r,namespace:e})}`)},"createScopedImport");let Te=!1;const lt=m(e=>{const s=typeof T.registerHooks=="function"&&j(Fe);if(!T.register&&!s)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!Te){const{_resolveFilename:o}=T;T._resolveFilename=(u,...i)=>o(We(u),...i),Te=!0}const{sourceMapsEnabled:t}=process;if(process.setSourceMapsEnabled(!0),s){const o=le({namespace:e?.namespace,onImport:e?.onImport,tsconfig:e?.tsconfig}),u=T.registerHooks({load:ke(o),resolve:it(o)}),i=m(async()=>{o.active=!1,u.deregister(),t===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return e?.namespace&&(i.import=we(e.namespace),i.unregister=i),i}const{port1:r,port2:n}=new Ee;T.register(`./esm/index.mjs?${Date.now()}`,{parentURL:import.meta.url,data:{port:n,namespace:e?.namespace,tsconfig:e?.tsconfig},transferList:[n]});const a=e?.onImport,l=a&&(o=>{o.type==="load"&&a(o.url)});l&&(r.on("message",l),r.unref());const c=m(()=>(t===!1&&process.setSourceMapsEnabled(!1),l&&r.off("message",l),r.postMessage("deactivate"),new Promise(o=>{const u=m(i=>{i.type==="deactivated"&&(o(),r.off("message",u))},"onDeactivated");r.on("message",u)})),"unregister");return e?.namespace&&(c.import=we(e.namespace),c.unregister=c),c},"register");export{lt as a,qe as g,Ae as i,xe as l,mt as r};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty;var s=(e,r)=>u(e,"name",{value:r,configurable:!0});var c=require("node:repl"),l=require("./package-
|
|
1
|
+
"use strict";var u=Object.defineProperty;var s=(e,r)=>u(e,"name",{value:r,configurable:!0});var c=require("node:repl"),l=require("./package-Dc6DLSoP.cjs"),q=require("./index-D9F1FXzN.cjs");require("node:path"),require("node:url"),require("esbuild"),require("node:crypto"),require("./node-features-CQLdkVE6.cjs"),require("node:fs"),require("node:os"),require("./temporary-directory-B83uKxJF.cjs"),console.log(`Welcome to tsx v${l.version} (Node.js ${process.version}).
|
|
2
2
|
Type ".help" for more information.`);const i=c.start(),{eval:p}=i,v=s(async function(e,r,o,t){const a=await q.transform(e,o,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
|
3
3
|
`}));return p.call(this,a.code,r,o,t)},"preEval");i.eval=v;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var p=Object.defineProperty;var t=(o,r)=>p(o,"name",{value:r,configurable:!0});import a from"node:repl";import{v as l}from"./package-
|
|
1
|
+
var p=Object.defineProperty;var t=(o,r)=>p(o,"name",{value:r,configurable:!0});import a from"node:repl";import{v as l}from"./package-B1Rq-_ee.mjs";import{t as c}from"./index-XurvG3JN.mjs";import"node:path";import"node:url";import"esbuild";import"node:crypto";import"./node-features-B9BBLzwu.mjs";import"node:fs";import"node:os";import"./temporary-directory-BDDVQOvU.mjs";console.log(`Welcome to tsx v${l} (Node.js ${process.version}).
|
|
2
2
|
Type ".help" for more information.`);const s=a.start(),{eval:f}=s,v=t(async function(o,r,e,i){const m=await c(o,e,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
|
3
3
|
`}));return f.call(this,m.code,r,e,i)},"preEval");s.eval=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var a=(r,t)=>c(r,"name",{value:t,configurable:!0});var s=require("./get-pipe-path-D4YM6rQt.cjs"),n=require("./register-
|
|
1
|
+
"use strict";var c=Object.defineProperty;var a=(r,t)=>c(r,"name",{value:t,configurable:!0});var s=require("./get-pipe-path-D4YM6rQt.cjs"),n=require("./register-BOkp8V6j.cjs");let e;const i=a((r,t)=>(e||(e=n.register({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),o=a((r,t,u)=>(e||(e=n.register({namespace:Date.now().toString()})),e.resolve(r,t,u)),"resolve");o.paths=s.require.resolve.paths,i.resolve=o,i.main=s.require.main,i.extensions=s.require.extensions,i.cache=s.require.cache,exports.tsxRequire=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var a=(r,t)=>m(r,"name",{value:t,configurable:!0});import{r as o}from"./get-pipe-path-_tAJyU_v.mjs";import{r as n}from"./register-
|
|
1
|
+
var m=Object.defineProperty;var a=(r,t)=>m(r,"name",{value:t,configurable:!0});import{r as o}from"./get-pipe-path-_tAJyU_v.mjs";import{r as n}from"./register-BnTWPeIB.mjs";let e;const s=a((r,t)=>(e||(e=n({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),i=a((r,t,c)=>(e||(e=n({namespace:Date.now().toString()})),e.resolve(r,t,c)),"resolve");i.paths=o.resolve.paths,s.resolve=i,s.main=o.main,s.extensions=o.extensions,s.cache=o.cache;export{s as t};
|
|
@@ -558,9 +558,9 @@
|
|
|
558
558
|
}
|
|
559
559
|
},
|
|
560
560
|
"node_modules/tsx": {
|
|
561
|
-
"version": "4.22.
|
|
562
|
-
"resolved": "https://registry.npmjs.org/tsx/-/tsx-4.22.
|
|
563
|
-
"integrity": "sha512-
|
|
561
|
+
"version": "4.22.2",
|
|
562
|
+
"resolved": "https://registry.npmjs.org/tsx/-/tsx-4.22.2.tgz",
|
|
563
|
+
"integrity": "sha512-6w9FwtT8WQqRAyTNR+Z+86kghRqpmOLjXUrBlBT6T+CQGDuIMm0VmAqaFUFBIeKDTGobE6/YSigZYLeomzBaRg==",
|
|
564
564
|
"dev": true,
|
|
565
565
|
"license": "MIT",
|
|
566
566
|
"dependencies": {
|