qcobjects 2.5.117-beta → 2.5.119-beta

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.117-beta
1
+ 2.5.119-beta
@@ -193,9 +193,10 @@ const componentLoader = function (component, _async) {
193
193
  else {
194
194
  Logger_1.logger.debug("Loading the component as a local file in server...");
195
195
  const _directLoad = function () {
196
- const fs = (0, platform_1._require_)("fs");
196
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
197
+ const { readFile } = require("node:fs");
197
198
  Logger_1.logger.debug("SENDING THE NORMAL REQUEST ");
198
- (fs).readFile(component.url, _componentLoaded);
199
+ readFile(component.url, _componentLoaded);
199
200
  };
200
201
  if (component.cached) {
201
202
  Logger_1.logger.debug("USING CACHE FOR COMPONENT: " + component.name);
package/build-esbuild.js CHANGED
@@ -8,7 +8,7 @@ const baseSettings = {
8
8
  bundle: true,
9
9
  outdir: "public/cjs", // Output dir
10
10
  format: "cjs", // or "esm" depending on your module system
11
- target: ["esnext"], // Adjust based on your target environment
11
+ target: ["esnext", "node22"], // Adjust based on your target environment
12
12
  tsconfig: "tsconfig.json", // Path to your tsconfig.json,
13
13
  globalName: "global",
14
14
  minify:false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects",
3
- "version": "2.5.117-beta",
3
+ "version": "2.5.119-beta",
4
4
  "description": "QCObjects is an Open-source framework that empowers full-stack developers to make micro-services and micro-frontends into an N-Tier architecture.",
5
5
  "main": "public/cjs/QCObjects.cjs",
6
6
  "module": "public/esm/QCObjects.mjs",
@@ -2297,9 +2297,9 @@ var global = (() => {
2297
2297
  } else {
2298
2298
  logger.debug("Loading the component as a local file in server...");
2299
2299
  const _directLoad = /* @__PURE__ */ __name(function() {
2300
- const fs = _require_("fs");
2300
+ const { readFile } = __require("node:fs");
2301
2301
  logger.debug("SENDING THE NORMAL REQUEST ");
2302
- fs.readFile(component2.url, _componentLoaded);
2302
+ readFile(component2.url, _componentLoaded);
2303
2303
  }, "_directLoad");
2304
2304
  if (component2.cached) {
2305
2305
  logger.debug("USING CACHE FOR COMPONENT: " + component2.name);