qcobjects 2.5.140-beta → 2.5.142-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.
@@ -1520,7 +1520,11 @@ var init_CONFIG = __esm({
1520
1520
  logger.debug("No config value for: " + name);
1521
1521
  _value = _default;
1522
1522
  }
1523
- return GlobalProcessor.processObject(_value) || _default;
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 });
@@ -4025,6 +4052,7 @@ var init_defaultProcessors = __esm({
4025
4052
  });
4026
4053
 
4027
4054
  // src/findPackageNodePath.ts
4055
+ import fs from "node:fs";
4028
4056
  var findPackageNodePath;
4029
4057
  var init_findPackageNodePath = __esm({
4030
4058
  "src/findPackageNodePath.ts"() {
@@ -4036,7 +4064,6 @@ var init_findPackageNodePath = __esm({
4036
4064
  findPackageNodePath = /* @__PURE__ */ __name(function(packagename) {
4037
4065
  let sdkPath = null;
4038
4066
  if (!isBrowser) {
4039
- const fs = __require("fs");
4040
4067
  try {
4041
4068
  let sdkPaths = [
4042
4069
  `${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,