titanfiber 1.0.30 → 1.0.32

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.
@@ -0,0 +1 @@
1
+ function a(a){require("./titanfiber.pkg.js"),a||(a={}),null==a.dynamic&&(a.dynamic=!0);var e=a.scriptPath??t.node.getScriptPath(),i={},n=a.packagePath??t.titan.getPackagePath(e,!1,!0,a);t.fs.exists(n)&&!t.titan.hasNewCompile(n)&&t.titan._loadDynamicDeps(n,i,a),t.titan.autoPackAndLoadJSON(e,null,i,a),globalThis.t=i}exports=module.exports=a,exports.auto=a;
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "titanfiber",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "",
5
- "main": "titanfiber.js",
5
+ "main": "Dist/titanfiber.min.js",
6
+ "files": [
7
+ "Dist"
8
+ ],
6
9
  "scripts": {},
7
10
  "author": "",
8
11
  "license": "ISC"
package/titanfiber.js DELETED
@@ -1,35 +0,0 @@
1
-
2
-
3
-
4
-
5
- //Auto-pack the current file if needed, and load the new items.
6
- function auto(options) {
7
- require("./titanfiber.pkg.js");
8
- if(!options) { options = {}; }
9
- //Can disable dynamic to use static package,
10
- // if growth over time is not desired.
11
- if(options.dynamic == null) { options.dynamic = true; }
12
- var scriptPath = t.node.getScriptPath();
13
- var localT = {};
14
- var dynPackagePath = t.titan.getPackagePath(scriptPath, false, true, options);
15
- if(t.fs.exists(dynPackagePath) && !t.titan.hasNewCompile(dynPackagePath)) {
16
- t.titan._loadDynamicDeps(dynPackagePath, localT, options);
17
- }
18
- t.titan.autoPackAndLoadJSON(scriptPath, null, localT, options);
19
- globalThis.t = localT;
20
- }
21
- //enables require("titanfiber")();
22
- exports = module.exports = auto;
23
- exports.auto = auto;
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
File without changes