qcobjects 2.4.89 → 2.4.93

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 CHANGED
@@ -1 +1 @@
1
- 2.4.89
1
+ 2.4.93
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects",
3
- "version": "2.4.89",
3
+ "version": "2.4.93",
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",
@@ -88,7 +88,7 @@
88
88
  "devDependencies": {
89
89
  "@typescript-eslint/eslint-plugin": "^5.58.0",
90
90
  "@typescript-eslint/parser": "^5.58.0",
91
- "eslint": "^8.38.0",
91
+ "eslint": "^8.40.0",
92
92
  "eslint-config-prettier": "^8.8.0",
93
93
  "eslint-config-qcobjects": "^0.0.23",
94
94
  "eslint-config-semistandard": "^17.0.0",
package/src/QCObjects.js CHANGED
@@ -2550,7 +2550,9 @@
2550
2550
  _component_.subcomponents = _component_.__buildSubComponents__();
2551
2551
 
2552
2552
  _component_._bindroute_();
2553
- _component_.body.setAttribute("loaded", true);
2553
+ if (isBrowser){
2554
+ _component_.body.setAttribute("loaded", true);
2555
+ }
2554
2556
  };
2555
2557
 
2556
2558
  return new Promise (function (resolve, reject){
@@ -2565,11 +2567,15 @@
2565
2567
 
2566
2568
  hostElements(tagFilter){
2567
2569
  var _component_ = this;
2568
- var elementList = (_component_.shadowed && (typeof _component_.shadowRoot !== "undefined"))?(
2569
- _component_.shadowRoot.subelements(tagFilter)
2570
- ):(
2571
- _component_.body.subelements(tagFilter)
2572
- );
2570
+ var elementList = [];
2571
+ if (isBrowser){
2572
+ elementList = (_component_.shadowed && (typeof _component_.shadowRoot !== "undefined"))?(
2573
+ _component_.shadowRoot.subelements(tagFilter)
2574
+ ):(
2575
+ _component_.body.subelements(tagFilter)
2576
+ );
2577
+
2578
+ }
2573
2579
  return elementList;
2574
2580
  }
2575
2581
 
@@ -3374,15 +3380,8 @@
3374
3380
  * @author: Jean Machuca <correojean@gmail.com>
3375
3381
  * @param params an object with the params to build the uri path
3376
3382
  */
3377
- var ComponentURI = function (params) {
3378
- var templateURI = "";
3379
- if (params["TPL_SOURCE"] === "default") {
3380
- templateURI = "{{COMPONENTS_BASE_PATH}}{{COMPONENT_NAME}}.{{TPLEXTENSION}}";
3381
- for (var k in params) {
3382
- var param = params[k];
3383
- templateURI = templateURI.replace("{{" + k + "}}", params[k]);
3384
- }
3385
- }
3383
+ var ComponentURI = ({TPL_SOURCE ,COMPONENTS_BASE_PATH, COMPONENT_NAME, TPLEXTENSION}) => {
3384
+ const templateURI = (TPL_SOURCE === "default")?(`${COMPONENTS_BASE_PATH}${COMPONENT_NAME}.${TPLEXTENSION}`):("");
3386
3385
  return templateURI;
3387
3386
  };
3388
3387
 
@@ -3607,7 +3606,7 @@
3607
3606
  }
3608
3607
  return Promise.reject(_ret_);
3609
3608
  }).catch(function (e) {
3610
- logger.debug("Something wrong loading the component");
3609
+ logger.debug(`Something wrong loading the component: ${e}`);
3611
3610
  });
3612
3611
  return __promise__;
3613
3612
  };