tezx 1.0.34 → 1.0.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/cjs/index.js CHANGED
@@ -7,4 +7,4 @@ var server_1 = require("./core/server");
7
7
  Object.defineProperty(exports, "TezX", { enumerable: true, get: function () { return server_1.TezX; } });
8
8
  var params_1 = require("./utils/params");
9
9
  Object.defineProperty(exports, "useParams", { enumerable: true, get: function () { return params_1.useParams; } });
10
- exports.version = "1.0.34";
10
+ exports.version = "1.0.35";
@@ -48,14 +48,14 @@ const lazyLoadModules = (options) => {
48
48
  lifecycleHooks.onCacheSet?.(moduleName, module, ctx);
49
49
  }
50
50
  ctx[moduleContextKey] = module;
51
- lifecycleHooks.onComplete?.(moduleName, module, ctx);
52
- config_1.GlobalConfig.debugging.success(`Successfully loaded module: ${moduleName}`);
53
51
  if (module.init && typeof module.init === "function") {
54
52
  const initResult = await module.init(dependencies, ctx);
55
53
  if (initResult instanceof Response) {
56
54
  return initResult;
57
55
  }
58
56
  }
57
+ lifecycleHooks.onComplete?.(moduleName, module, ctx);
58
+ config_1.GlobalConfig.debugging.success(`Successfully loaded module: ${moduleName}`);
59
59
  }
60
60
  catch (error) {
61
61
  config_1.GlobalConfig.debugging.error(`Error loading module: ${moduleName}`, error);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export { Router } from "./core/router";
2
2
  export { TezX } from "./core/server";
3
3
  export { useParams } from "./utils/params";
4
- export let version = "1.0.34";
4
+ export let version = "1.0.35";
@@ -45,14 +45,14 @@ export const lazyLoadModules = (options) => {
45
45
  lifecycleHooks.onCacheSet?.(moduleName, module, ctx);
46
46
  }
47
47
  ctx[moduleContextKey] = module;
48
- lifecycleHooks.onComplete?.(moduleName, module, ctx);
49
- GlobalConfig.debugging.success(`Successfully loaded module: ${moduleName}`);
50
48
  if (module.init && typeof module.init === "function") {
51
49
  const initResult = await module.init(dependencies, ctx);
52
50
  if (initResult instanceof Response) {
53
51
  return initResult;
54
52
  }
55
53
  }
54
+ lifecycleHooks.onComplete?.(moduleName, module, ctx);
55
+ GlobalConfig.debugging.success(`Successfully loaded module: ${moduleName}`);
56
56
  }
57
57
  catch (error) {
58
58
  GlobalConfig.debugging.error(`Error loading module: ${moduleName}`, error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tezx",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "TezX is a high-performance, lightweight JavaScript framework designed for speed, scalability, and flexibility. It enables efficient routing, middleware management, and static file serving with minimal configuration. Fully compatible with Node.js, Deno, and Bun.",
5
5
  "main": "cjs/index.js",
6
6
  "module": "index.js",