qcobjects 2.5.141-beta → 2.5.142
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/.github/workflows/npmpublish.yml +47 -0
- package/VERSION +1 -1
- package/build/CONFIG.js +6 -1
- package/build/Processor.js +24 -0
- package/framework-audit-v2.5.141-beta.md +184 -0
- package/package.json +12 -10
- package/public/browser/QCObjects.js +28 -1
- package/public/browser/QCObjects.js.map +2 -2
- package/public/cjs/index.cjs +28 -1
- package/public/cjs/index.cjs.map +2 -2
- package/public/esm/index.mjs +28 -1
- package/public/esm/index.mjs.map +2 -2
- package/public/types/index.d.ts +5 -0
- package/public/types/index.d.ts.map +1 -1
- package/spec/testsConfigSpec.ts +87 -14
- package/src/CONFIG.ts +6 -1
- package/src/Processor.ts +35 -1
- package/src/types/global/index.d.ts +1 -1
- package/.github/workflows/npmpublish-beta.yml +0 -38
- package/.github/workflows/npmpublish-lts.yml +0 -38
- package/.github/workflows/npmpublish-main.yml +0 -38
- package/.github/workflows/npmpublish-ts.yml +0 -38
package/public/esm/index.mjs
CHANGED
|
@@ -1520,7 +1520,11 @@ var init_CONFIG = __esm({
|
|
|
1520
1520
|
logger.debug("No config value for: " + name);
|
|
1521
1521
|
_value = _default;
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
const processedValue = GlobalProcessor.processObject(_value);
|
|
1524
|
+
if (_value === null && processedValue === null) {
|
|
1525
|
+
return null;
|
|
1526
|
+
}
|
|
1527
|
+
return processedValue || _default;
|
|
1524
1528
|
}
|
|
1525
1529
|
static _instance;
|
|
1526
1530
|
static get instance() {
|
|
@@ -1578,16 +1582,30 @@ var init_Processor = __esm({
|
|
|
1578
1582
|
}
|
|
1579
1583
|
return _Processor._instance;
|
|
1580
1584
|
}
|
|
1585
|
+
static setProcessor(_proc_) {
|
|
1586
|
+
if (typeof _proc_ === "function" && _proc_.name !== "") {
|
|
1587
|
+
_Processor.instance.processors[_proc_.name] = _proc_;
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1581
1590
|
setProcessor(_proc_) {
|
|
1582
1591
|
if (typeof _proc_ === "function" && _proc_.name !== "") {
|
|
1583
1592
|
this.processors[_proc_.name] = _proc_;
|
|
1584
1593
|
}
|
|
1585
1594
|
}
|
|
1595
|
+
static getProcessor(_procName_) {
|
|
1596
|
+
return _Processor.instance.processors[_procName_];
|
|
1597
|
+
}
|
|
1598
|
+
static getProcessorNames() {
|
|
1599
|
+
return Object.keys(_Processor.instance.processors);
|
|
1600
|
+
}
|
|
1586
1601
|
component;
|
|
1587
1602
|
execute(component, processorName, args) {
|
|
1588
1603
|
const processorHandler = typeof component !== "undefined" && component !== null ? component.processorHandler : this;
|
|
1589
1604
|
return processorHandler?.processors[processorName].bind(processorHandler).apply(processorHandler, [component, args?.split(",")]);
|
|
1590
1605
|
}
|
|
1606
|
+
static process(template, component = null) {
|
|
1607
|
+
return _Processor.instance.process(template, component);
|
|
1608
|
+
}
|
|
1591
1609
|
process(template, component = null) {
|
|
1592
1610
|
const processorHandler = component !== null ? component.processorHandler : New(_Processor, { component: null });
|
|
1593
1611
|
if (typeof template === "string") {
|
|
@@ -1603,7 +1621,16 @@ var init_Processor = __esm({
|
|
|
1603
1621
|
}
|
|
1604
1622
|
return template;
|
|
1605
1623
|
}
|
|
1624
|
+
static processObject(obj, component) {
|
|
1625
|
+
if (obj === null || obj === void 0) {
|
|
1626
|
+
return obj;
|
|
1627
|
+
}
|
|
1628
|
+
return _Processor.instance.processObject(obj, component);
|
|
1629
|
+
}
|
|
1606
1630
|
processObject(obj, component = null) {
|
|
1631
|
+
if (obj === null || obj === void 0) {
|
|
1632
|
+
return obj;
|
|
1633
|
+
}
|
|
1607
1634
|
let __instance__ = component === null ? this : component.processorHandler;
|
|
1608
1635
|
if (typeof __instance__ === "undefined") {
|
|
1609
1636
|
__instance__ = new _Processor({ component });
|