qcobjects 2.5.118-beta → 2.5.120-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/Component.js +4 -1
- package/build/componentLoader.js +3 -2
- package/package.json +1 -1
- package/public/browser/QCObjects.js +6 -3
- package/public/browser/QCObjects.js.map +2 -2
- package/public/cjs/QCObjects.cjs +6 -3
- package/public/cjs/QCObjects.cjs.map +2 -2
- package/public/esm/QCObjects.mjs +6 -3
- package/public/esm/QCObjects.mjs.map +2 -2
- package/src/Component.ts +5 -1
- package/src/componentLoader.ts +4 -3
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.5.
|
|
1
|
+
2.5.120-beta
|
package/build/Component.js
CHANGED
|
@@ -100,7 +100,10 @@ class Component extends InheritClass_1.InheritClass {
|
|
|
100
100
|
view
|
|
101
101
|
});
|
|
102
102
|
const self = this;
|
|
103
|
-
if (typeof
|
|
103
|
+
if (typeof name !== "undefined") {
|
|
104
|
+
self.name = name;
|
|
105
|
+
}
|
|
106
|
+
if (typeof self.name === "undefined" && typeof name === "undefined") {
|
|
104
107
|
Logger_1.logger.warn("A name is not defined for " + (0, getType_1.__getType__)(self));
|
|
105
108
|
}
|
|
106
109
|
self.routingWay = CONFIG_1.CONFIG.get("routingWay");
|
package/build/componentLoader.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.120-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
|
|
2300
|
+
const { readFile } = __require("node:fs");
|
|
2301
2301
|
logger.debug("SENDING THE NORMAL REQUEST ");
|
|
2302
|
-
|
|
2302
|
+
readFile(component2.url, _componentLoaded);
|
|
2303
2303
|
}, "_directLoad");
|
|
2304
2304
|
if (component2.cached) {
|
|
2305
2305
|
logger.debug("USING CACHE FOR COMPONENT: " + component2.name);
|
|
@@ -2489,7 +2489,10 @@ var global = (() => {
|
|
|
2489
2489
|
view
|
|
2490
2490
|
});
|
|
2491
2491
|
const self2 = this;
|
|
2492
|
-
if (typeof
|
|
2492
|
+
if (typeof name !== "undefined") {
|
|
2493
|
+
self2.name = name;
|
|
2494
|
+
}
|
|
2495
|
+
if (typeof self2.name === "undefined" && typeof name === "undefined") {
|
|
2493
2496
|
logger.warn("A name is not defined for " + __getType__(self2));
|
|
2494
2497
|
}
|
|
2495
2498
|
self2.routingWay = CONFIG.get("routingWay");
|