@stacksjs/repl 0.74.34 → 0.74.35
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/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{startTinker as
|
|
3
|
-
`}catch(
|
|
2
|
+
var r=import.meta.require;import{startTinker as f,tinkerEval as u,tinkerPrint as m,getHistoryPath as k,readHistory as y,appendHistory as w,clearHistory as R}from"@stacksjs/tinker";async function l(t={}){let{startTinker:i}=await import("@stacksjs/tinker"),e="";if(t.loadFile){let{readFileSync:o}=await import("fs");try{e+=`${o(t.loadFile,"utf-8")}
|
|
3
|
+
`}catch(n){console.error(`Failed to load file: ${t.loadFile}`,n)}}if(t.bootstrap)e+=`${t.bootstrap}
|
|
4
4
|
`;if(t.showRoutes)e+=`try {
|
|
5
5
|
const { listRegisteredRoutes } = await import('@stacksjs/router')
|
|
6
6
|
const rows = listRegisteredRoutes()
|
|
@@ -11,4 +11,4 @@ import{startTinker as c,tinkerEval as d,tinkerPrint as f,getHistoryPath as u,rea
|
|
|
11
11
|
for (const r of rows) console.log(' ' + r.method.padEnd(6) + ' ' + r.path + (r.name ? ' (' + r.name + ')' : ''))
|
|
12
12
|
}
|
|
13
13
|
} catch (e) { console.warn(' (route introspection unavailable: ' + e.message + ')') }
|
|
14
|
-
`;if(t.eval)e+=t.eval;let
|
|
14
|
+
`;if(t.eval)e+=t.eval;let s={...t,eval:e||void 0};try{return await i(s)}finally{try{let{stdin:o}=await import("process");if(o.isTTY&&typeof o.setRawMode==="function")o.setRawMode(!1)}catch{}}}async function p(t={}){let{startTinker:i}=await import("@stacksjs/tinker");return i(t)}export{w as appendHistory,R as clearHistory,k as getHistoryPath,y as readHistory,p as startBunRepl,l as startRepl,f as startTinker,u as tinkerEval,m as tinkerPrint};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/repl",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.74.
|
|
5
|
+
"version": "0.74.35",
|
|
6
6
|
"description": "A Stacks optimized TypeScript REPL.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"prepublishOnly": "bun run build"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@stacksjs/tinker": "0.74.
|
|
61
|
+
"@stacksjs/tinker": "0.74.35"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"better-dx": "^0.2.24"
|