qcobjects 2.5.110-beta → 2.5.111-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.110-beta
1
+ 2.5.111-beta
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects",
3
- "version": "2.5.110-beta",
3
+ "version": "2.5.111-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",
@@ -1,13 +1,17 @@
1
+ import { _import_ } from "./_import_";
1
2
  import { CONFIG } from "./CONFIG";
2
3
  import { Export } from "./Export";
3
4
  import { logger } from "./Logger";
4
5
  import { isBrowser } from "./platform";
5
- import fs from "node:fs";
6
6
 
7
7
  export const findPackageNodePath = function (packagename:string):string|null {
8
+
8
9
  let sdkPath = null;
9
10
  if (!isBrowser) {
10
- try {
11
+ let fs:any;
12
+ (async () => {
13
+ fs = await _import_("node:fs");
14
+ })().then(() => {
11
15
  let sdkPaths = [
12
16
  `${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,
13
17
  `${CONFIG.get("basePath")}${CONFIG.get("relativeImportPath")}`,
@@ -32,11 +36,11 @@ export const findPackageNodePath = function (packagename:string):string|null {
32
36
  sdkPath = "";
33
37
  logger.info(`${packagename} is not in a standard path.`);
34
38
  }
35
- } catch (e) {
36
- // do nothing
37
- console.log(e);
38
- }
39
39
 
40
+ })
41
+ .catch((e:any) => {
42
+ throw new Error(e);
43
+ });
40
44
  }
41
45
  return sdkPath;
42
46
  };