qcobjects 2.5.140-beta → 2.5.141-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.140-beta
1
+ 2.5.141-beta
@@ -1,15 +1,17 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.findPackageNodePath = void 0;
4
7
  const CONFIG_1 = require("./CONFIG");
5
8
  const Export_1 = require("./Export");
6
9
  const Logger_1 = require("./Logger");
7
10
  const platform_1 = require("./platform");
11
+ const node_fs_1 = __importDefault(require("node:fs"));
8
12
  const findPackageNodePath = function (packagename) {
9
13
  let sdkPath = null;
10
14
  if (!platform_1.isBrowser) {
11
- // eslint-disable-next-line @typescript-eslint/no-require-imports
12
- const fs = require("fs");
13
15
  try {
14
16
  let sdkPaths = [
15
17
  `${CONFIG_1.CONFIG.get("projectPath")}${CONFIG_1.CONFIG.get("relativeImportPath")}`,
@@ -26,7 +28,7 @@ const findPackageNodePath = function (packagename) {
26
28
  ""
27
29
  ].concat(module.paths);
28
30
  sdkPaths = sdkPaths.filter(p => {
29
- return (fs).existsSync(p + "/" + packagename);
31
+ return (node_fs_1.default).existsSync(p + "/" + packagename);
30
32
  });
31
33
  if (sdkPaths.length > 0) {
32
34
  sdkPath = sdkPaths[0];
package/build/index.cjs CHANGED
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./QCObjects.js"), exports);
17
+ __exportStar(require("./QCObjects"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects",
3
- "version": "2.5.140-beta",
3
+ "version": "2.5.141-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/index.cjs",
6
6
  "module": "public/esm/index.mjs",
@@ -4028,7 +4028,7 @@ var global = (() => {
4028
4028
  });
4029
4029
 
4030
4030
  // src/findPackageNodePath.ts
4031
- var findPackageNodePath;
4031
+ var import_node_fs, findPackageNodePath;
4032
4032
  var init_findPackageNodePath = __esm({
4033
4033
  "src/findPackageNodePath.ts"() {
4034
4034
  "use strict";
@@ -4036,10 +4036,10 @@ var global = (() => {
4036
4036
  init_Export();
4037
4037
  init_Logger();
4038
4038
  init_platform();
4039
+ import_node_fs = __toESM(__require("node:fs"));
4039
4040
  findPackageNodePath = /* @__PURE__ */ __name(function(packagename) {
4040
4041
  let sdkPath = null;
4041
4042
  if (!isBrowser) {
4042
- const fs = __require("fs");
4043
4043
  try {
4044
4044
  let sdkPaths = [
4045
4045
  `${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,
@@ -4056,7 +4056,7 @@ var global = (() => {
4056
4056
  ""
4057
4057
  ].concat(module.paths);
4058
4058
  sdkPaths = sdkPaths.filter((p) => {
4059
- return fs.existsSync(p + "/" + packagename);
4059
+ return import_node_fs.default.existsSync(p + "/" + packagename);
4060
4060
  });
4061
4061
  if (sdkPaths.length > 0) {
4062
4062
  sdkPath = sdkPaths[0];