qcobjects 2.4.59 → 2.4.60
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/package.json +1 -1
- package/src/QCObjects.js +4 -4
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.60
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.60",
|
|
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": "src/index.cjs",
|
|
6
6
|
"module": "src/index.mjs",
|
package/src/QCObjects.js
CHANGED
|
@@ -1320,13 +1320,13 @@
|
|
|
1320
1320
|
component = null;
|
|
1321
1321
|
|
|
1322
1322
|
static processors= {
|
|
1323
|
-
"config"(arg) {
|
|
1323
|
+
"config"(component,arg) {
|
|
1324
1324
|
return _top.CONFIG.get(arg, "");
|
|
1325
1325
|
},
|
|
1326
|
-
"ENV"(arg) {
|
|
1326
|
+
"ENV"(component, arg) {
|
|
1327
1327
|
return (typeof process !== "undefined") ? (process.env[arg]) : ("");
|
|
1328
1328
|
},
|
|
1329
|
-
"global"(arg) {
|
|
1329
|
+
"global"(component, arg) {
|
|
1330
1330
|
return (typeof global !== "undefined") ? (global[arg]) : ("");
|
|
1331
1331
|
}
|
|
1332
1332
|
};
|
|
@@ -1351,7 +1351,7 @@
|
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
1353
|
static process(template, component = null) {
|
|
1354
|
-
var processorHandler =
|
|
1354
|
+
var processorHandler = (component !== null)?(component.processorHandler):( New(ClassFactory("Processor"), {component:null}) );
|
|
1355
1355
|
if (typeof template === "string") {
|
|
1356
1356
|
Object.keys(processorHandler.processors).map(function (funcName) {
|
|
1357
1357
|
[...template.matchAll(new RegExp("\\$" + funcName + "\\((.*)\\).*", "g"))].map(
|