qcobjects 2.4.26-beta → 2.4.29-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.
@@ -14,10 +14,10 @@ jobs:
14
14
  build:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
- - uses: actions/checkout@v2
18
- - uses: actions/setup-node@v1
17
+ - uses: actions/checkout@v3.3.0
18
+ - uses: actions/setup-node@v3.6.0
19
19
  with:
20
- node-version: 14
20
+ node-version: 16
21
21
  - run: npm ci
22
22
  - run: npm test
23
23
 
@@ -25,10 +25,10 @@ jobs:
25
25
  needs: build
26
26
  runs-on: ubuntu-latest
27
27
  steps:
28
- - uses: actions/checkout@v2
29
- - uses: actions/setup-node@v1
28
+ - uses: actions/checkout@v3.3.0
29
+ - uses: actions/setup-node@v3.6.0
30
30
  with:
31
- node-version: 14
31
+ node-version: 16
32
32
  registry-url: https://registry.npmjs.org/
33
33
  - name: Set up NPM authentication
34
34
  run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
@@ -14,10 +14,10 @@ jobs:
14
14
  build:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
- - uses: actions/checkout@v2
18
- - uses: actions/setup-node@v1
17
+ - uses: actions/checkout@v3.3.0
18
+ - uses: actions/setup-node@v3.6.0
19
19
  with:
20
- node-version: 14
20
+ node-version: 16
21
21
  - run: npm ci
22
22
  - run: npm test
23
23
 
@@ -25,10 +25,10 @@ jobs:
25
25
  needs: build
26
26
  runs-on: ubuntu-latest
27
27
  steps:
28
- - uses: actions/checkout@v2
29
- - uses: actions/setup-node@v1
28
+ - uses: actions/checkout@v3.3.0
29
+ - uses: actions/setup-node@v3.6.0
30
30
  with:
31
- node-version: 14
31
+ node-version: 16
32
32
  registry-url: https://registry.npmjs.org/
33
33
  - name: Set up NPM authentication
34
34
  run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
@@ -14,10 +14,10 @@ jobs:
14
14
  build:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
- - uses: actions/checkout@v2
18
- - uses: actions/setup-node@v1
17
+ - uses: actions/checkout@v3.3.0
18
+ - uses: actions/setup-node@v3.6.0
19
19
  with:
20
- node-version: 14
20
+ node-version: 16
21
21
  - run: npm ci
22
22
  - run: npm test
23
23
 
@@ -25,10 +25,10 @@ jobs:
25
25
  needs: build
26
26
  runs-on: ubuntu-latest
27
27
  steps:
28
- - uses: actions/checkout@v2
29
- - uses: actions/setup-node@v1
28
+ - uses: actions/checkout@v3.3.0
29
+ - uses: actions/setup-node@v3.6.0
30
30
  with:
31
- node-version: 14
31
+ node-version: 16
32
32
  registry-url: https://registry.npmjs.org/
33
33
  - name: Set up NPM authentication
34
34
  run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
package/QCObjects.js CHANGED
@@ -706,9 +706,9 @@
706
706
  var ret = "";
707
707
  if (typeof o === "function" && Object.hasOwnProperty.call(o, "name") && o.name !== "") {
708
708
  ret = o.name;
709
- } else if (typeof o.constructor === "function" && o.constructor.name !== "") {
709
+ } else if (typeof o !== "undefined" && typeof o.constructor === "function" && o.constructor.name !== "") {
710
710
  ret = o.constructor.name;
711
- } else if (typeof o.constructor === "object") {
711
+ } else if (typeof o !== "undefined" && typeof o.constructor === "object") {
712
712
  ret = o.constructor.toString().replace(/\[(.*?)\]/g, "$1").split(" ").slice(1).join("");
713
713
  }
714
714
  return ret;
@@ -784,10 +784,10 @@
784
784
  && o_c.constructor.name !== "":
785
785
  _ret_ = o_c.constructor.name;
786
786
  break;
787
- case (!!o_c.__classType) && o_c.__classType !== "":
787
+ case (!!o_c && !!o_c.__classType) && o_c.__classType !== "":
788
788
  _ret_ = o_c.__classType;
789
789
  break;
790
- case (!!o_c.__definition) && (!!o_c.__definition.__classType) && o_c.__definition.__classType !== "":
790
+ case (!!o_c && !!o_c.__definition) && (!!o_c.__definition.__classType) && o_c.__definition.__classType !== "":
791
791
  _ret_ = o_c.__definition.__classType;
792
792
  break;
793
793
  default:
@@ -810,6 +810,12 @@
810
810
  || typeof obj === typeName))?(true):(false);
811
811
  };
812
812
 
813
+ var __register_class__ = function (name, _class_) {
814
+ _QC_CLASSES[name] = _class_;
815
+ _top[name] = _QC_CLASSES[name];
816
+ return _top[name];
817
+ }
818
+
813
819
  /**
814
820
  * Creates new object class of another object
815
821
  *
@@ -1139,7 +1145,7 @@
1139
1145
  return "New(QCObjectsClassName, args) { [QCObjects native code] }";
1140
1146
  };
1141
1147
 
1142
- var Export = function(f) {
1148
+ var __make_global__ = function (f) {
1143
1149
  if (typeof f !== "undefined") {
1144
1150
  if (isBrowser) {
1145
1151
  try {
@@ -1152,6 +1158,11 @@
1152
1158
  }
1153
1159
  }
1154
1160
  }
1161
+
1162
+ };
1163
+
1164
+ var Export = function (f) {
1165
+ return __make_global__(f);
1155
1166
  };
1156
1167
  Export.prototype.toString = function() {
1157
1168
  return "Export(function or symbol) { [QCObjects native code] }";
@@ -1477,6 +1488,7 @@
1477
1488
  }
1478
1489
  ).map(function (_class_){
1479
1490
  _class_.__definition.__namespace = namespace;
1491
+ __register_class__(_class_);
1480
1492
  });
1481
1493
  _QC_PACKAGES[namespace] = _QC_PACKAGES[namespace].concat(classes);
1482
1494
  } else if (typeof classes !== "undefined"){
@@ -1487,9 +1499,11 @@
1487
1499
  }
1488
1500
  ).map(function (_class_){
1489
1501
  _class_.__definition.__namespace = namespace;
1502
+ __register_class__(_class_);
1490
1503
  });
1491
1504
  } else if (isQCObjects_Class(classes)) {
1492
1505
  classes.__definition.__namespace = namespace;
1506
+ __register_class__(classes);
1493
1507
  }
1494
1508
  _QC_PACKAGES[namespace] = classes;
1495
1509
  }
@@ -1764,7 +1778,7 @@
1764
1778
  } else {
1765
1779
  global.onload = _Ready;
1766
1780
  }
1767
- Class("InheritClass", Object, {});
1781
+ Class("InheritClass", class {}, {});
1768
1782
 
1769
1783
  /**
1770
1784
  * Dynamic Data Objects Class
@@ -1961,7 +1975,7 @@
1961
1975
  }
1962
1976
  }
1963
1977
  };
1964
- Class ("Component", class {}, {
1978
+ Class ("Component", ClassFactory("InheritClass"), {
1965
1979
  domain: domain,
1966
1980
  basePath: basePath,
1967
1981
  templateURI: "",
@@ -2597,6 +2611,7 @@
2597
2611
 
2598
2612
  }
2599
2613
  });
2614
+
2600
2615
  _top._bindroute_.__assigned=false;
2601
2616
 
2602
2617
  (_methods_)(ClassFactory("Component")).map(function (__c__){(_protected_code_)(__c__);});
@@ -3586,7 +3601,7 @@
3586
3601
  ):("")
3587
3602
  );
3588
3603
  var __classDefinition = ClassFactory(__componentClassName);
3589
- var __tplsource_prop_set = (__componentClassName !== "Component" && (typeof __classDefinition.tplsource === "string" && __classDefinition.tplsource !== "") ) ? (true) : (false);
3604
+ var __tplsource_prop_set = (__componentClassName !== "Component" && ((typeof __classDefinition !== "undefined" && typeof __classDefinition.tplsource === "string") && __classDefinition.tplsource !== "") ) ? (true) : (false);
3590
3605
  var tplsource = (__tplsource_attr_not_set && __tplsource_prop_set) ? (__classDefinition.tplsource) : ((__tplsource_attr_not_set)?("default"):(components[_c].getAttribute("template-source")));
3591
3606
  logger.debug (`template source for ${_componentName} is ${tplsource} `);
3592
3607
  logger.debug (`type for ${_componentName} is ${__getType__(__classDefinition)} `);
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.26-beta
1
+ 2.4.29-beta
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects",
3
- "version": "2.4.26-beta",
3
+ "version": "2.4.29-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": "QCObjects.js",
6
6
  "license": "LGPL-3.0",
@@ -79,5 +79,9 @@
79
79
  "devDependencies": {
80
80
  "eslint": "^8.2.0",
81
81
  "jasmine": "^3.7.0"
82
+ },
83
+ "engines": {
84
+ "npm": "~8.10.0",
85
+ "node": ">=14.17.6"
82
86
  }
83
87
  }