qcobjects 2.5.139-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 +1 -1
- package/build/findPackageNodePath.js +5 -3
- package/build/index.cjs +1 -1
- package/package.json +1 -1
- package/public/browser/QCObjects.js +3 -3
- package/public/browser/QCObjects.js.map +3 -3
- package/public/cjs/index.cjs +3 -3
- package/public/cjs/index.cjs.map +3 -3
- package/public/esm/index.mjs +1 -1
- package/public/esm/index.mjs.map +2 -2
- package/public/types/index.d.ts.map +1 -1
- package/src/findPackageNodePath.ts +0 -1
- package/src/index.cts +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.5.
|
|
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 (
|
|
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
|
|
17
|
+
__exportStar(require("./QCObjects"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.5.
|
|
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
|
|
4059
|
+
return import_node_fs.default.existsSync(p + "/" + packagename);
|
|
4060
4060
|
});
|
|
4061
4061
|
if (sdkPaths.length > 0) {
|
|
4062
4062
|
sdkPath = sdkPaths[0];
|