titanfiber 1.0.156 → 1.0.157

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/build.js CHANGED
@@ -1 +1 @@
1
- require("./build.pkg.js"),args=t.env.parseArgs(),pause=t.node.pause,dir=globalThis.dir??".";try{packageJSON=t.node.loadPackageJSON(dir)}catch(a){console.warn("No package.json found in "+dir)}packageJSON&&(main=mainFile=packageJSON.main),require("./script.min.js");
1
+ require("./build.pkg.js"),args=t.env.parseArgs(),pause=t.node.pause,dir=globalThis.dir??".";try{packageJSON=t.node.loadPackageJSON(dir)}catch(a){console.warn("No package.json found in "+dir)}packageJSON&&(main=mainFile=packageJSON.main),require("./script.js");
package/cli.js CHANGED
@@ -1 +1 @@
1
- require("./cli.pkg.js"),t.node.onError(r=>{console.log(r)}),args=t.cli.parseArgs(),params=async function(...r){return t.cli.paramsFrom(args,r)};var r=t.node.pause;pause=function(){args.np||r()},args.cwd&&process.chdir(args.cwd),env=process.env,args.np||t.node.beforeExit(pause),require("./script.min.js");
1
+ require("./cli.pkg.js"),t.node.onError(r=>{console.log(r)}),args=t.cli.parseArgs(),params=async function(...r){return t.cli.paramsFrom(args,r)};var r=t.node.pause;pause=function(){args.np||r()},args.cwd&&process.chdir(args.cwd),env=process.env,args.np||t.node.beforeExit(pause),require("./script.js");
package/custom.js CHANGED
@@ -1 +1 @@
1
- require("./custom.pkg.js"),module.exports=function(i){i&&(globalThis.__titanfiberOptions=i),require("./script.min.js")};
1
+ require("./custom.pkg.js"),module.exports=function(i){i&&(globalThis.__titanfiberOptions=i),require("./script.js")};
package/eval.js CHANGED
@@ -1 +1 @@
1
- throw require("./eval.pkg.js"),new Error("nyi");
1
+ require("./eval.pkg.js");var a=t.node.getScriptPath(),e=a?t.fs.loadText(a):process._eval;if(!a&&null==e)throw new Error("titanfiber/script requires either scriptPath or scriptText.");var i={},n={};dynPackagePath=a?t.titan.getTempDir()+"TitanFiber/"+t.path.baseName(a)+"_"+t.fs.getID(a)+"/main.pkg.json":t.titan.getPackagePath(null,!1,!0,n),n.packagePath=dynPackagePath,n.enableGlobals=!0,t.fs.exists(dynPackagePath)&&!t.titan.hasNewCompile(dynPackagePath)&&t.titan._loadDynamicDeps(dynPackagePath,i,n),t.titan.autoPackAndLoadJSON(a,e,i,n),globalThis.t=i;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "titanfiber",
3
- "version": "1.0.156",
3
+ "version": "1.0.157",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": "./router.js",