qcobjects 2.4.59 → 2.4.63

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.59
1
+ 2.4.63
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects",
3
- "version": "2.4.59",
3
+ "version": "2.4.63",
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",
@@ -12,6 +12,7 @@
12
12
  "./package.json": "./package.json"
13
13
  },
14
14
  "type": "commonjs",
15
+ "types": "./src/index.d.ts",
15
16
  "license": "LGPL-3.0",
16
17
  "scripts": {
17
18
  "build:ts": "npm test && npx tsc",
@@ -87,6 +88,7 @@
87
88
  "qcobjects-sdk": "^2.3.30"
88
89
  },
89
90
  "devDependencies": {
91
+ "@types/qcobjects": "github:QCObjects/-types-qcobjects",
90
92
  "eslint": "^8.2.0",
91
93
  "jasmine": "^3.7.0",
92
94
  "typescript": "^5.0.4"
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 = this;
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(
package/src/index.cjs CHANGED
@@ -1 +1,2 @@
1
- require("./QCObjects.js");
1
+ const QCObjects = require("./QCObjects.js");
2
+ module.exports = QCObjects;
package/src/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ // Type definitions for QCObjects 2.4
2
+ // Project: https://qcobjects.dev
3
+ // Definitions by: Jean Machuca <https://github.com/jeanmachuca>
4
+ // Definitions: https://qcobjects.dev
5
+
6
+ /**
7
+ */
8
+
9
+ import QCObjects from "qcobjects";
10
+
11
+ export = QCObjects;
package/src/index.mjs CHANGED
@@ -1 +1,2 @@
1
- import "./QCObjects.js";
1
+ import QCObjects from "./QCObjects.js";
2
+ export default QCObjects;
package/src/index.ts CHANGED
@@ -1 +1,2 @@
1
- import "./QCObjects.js";
1
+ import QCObjects from "./QCObjects";
2
+ export default QCObjects;