qcobjects
Advanced tools
Comparing version 2.5.110-beta to 2.5.111-beta
{ | ||
"name": "qcobjects", | ||
"version": "2.5.110-beta", | ||
"version": "2.5.111-beta", | ||
"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,0 +5,0 @@ "main": "public/cjs/QCObjects.cjs", |
@@ -0,1 +1,2 @@ | ||
import { _import_ } from "./_import_"; | ||
import { CONFIG } from "./CONFIG"; | ||
@@ -5,8 +6,11 @@ import { Export } from "./Export"; | ||
import { isBrowser } from "./platform"; | ||
import fs from "node:fs"; | ||
export const findPackageNodePath = function (packagename:string):string|null { | ||
let sdkPath = null; | ||
if (!isBrowser) { | ||
try { | ||
let fs:any; | ||
(async () => { | ||
fs = await _import_("node:fs"); | ||
})().then(() => { | ||
let sdkPaths = [ | ||
@@ -36,7 +40,7 @@ `${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`, | ||
} | ||
} catch (e) { | ||
// do nothing | ||
console.log(e); | ||
} | ||
}) | ||
.catch((e:any) => { | ||
throw new Error(e); | ||
}); | ||
} | ||
@@ -43,0 +47,0 @@ return sdkPath; |
Sorry, the diff of this file is not supported yet
4023899
34891