qcobjects 2.6.2 → 2.6.3
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/CHANGELOG.md +4 -0
- package/VERSION +1 -1
- package/build/Logger.js +6 -0
- package/package.json +1 -1
- package/public/browser/QCObjects.js +6 -0
- package/public/browser/QCObjects.js.map +2 -2
- package/public/cjs/index.cjs +6 -0
- package/public/cjs/index.cjs.map +2 -2
- package/public/esm/index.mjs +6 -0
- package/public/esm/index.mjs.map +2 -2
- package/public/types/index.d.ts +2 -0
- package/public/types/index.d.ts.map +1 -1
- package/src/Logger.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -621,6 +621,10 @@ v2.4.9-beta allow _new_ only to be called once for every object instance
|
|
|
621
621
|
# Changelog
|
|
622
622
|
|
|
623
623
|
This is an automatic Changelog history of versions generated using the command: **qcobjects v-changelog > CHANGELOG.md**
|
|
624
|
+
## v2.6.3
|
|
625
|
+
|
|
626
|
+
- fix: add logger.error + errorEnabled flag (CLI build:esbuild crash handler)
|
|
627
|
+
|
|
624
628
|
## v2.6.2
|
|
625
629
|
|
|
626
630
|
- fix: repository.url + bugs.url QuickCorp -> QCObjects (Sigstore provenance E422 hard-blocks OIDC publishes against stale org)
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.6.
|
|
1
|
+
2.6.3
|
package/build/Logger.js
CHANGED
|
@@ -7,6 +7,7 @@ class Logger {
|
|
|
7
7
|
debugEnabled = true;
|
|
8
8
|
infoEnabled = true;
|
|
9
9
|
warnEnabled = true;
|
|
10
|
+
errorEnabled = true;
|
|
10
11
|
debug(message) {
|
|
11
12
|
if (this.debugEnabled) {
|
|
12
13
|
console.log("\x1b[35m%s\x1b[0m", `[DEBUG][${performance.now().toLocaleString()}] ${message}`);
|
|
@@ -29,6 +30,11 @@ class Logger {
|
|
|
29
30
|
console.warn("\x1b[31m%s\x1b[0m", `[WARN][${performance.now().toLocaleString()}] ${message}`);
|
|
30
31
|
}
|
|
31
32
|
}
|
|
33
|
+
error(message) {
|
|
34
|
+
if (this.errorEnabled) {
|
|
35
|
+
console.error("\x1b[31m%s\x1b[0m", `[ERROR][${performance.now().toLocaleString()}] ${message}`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
32
38
|
}
|
|
33
39
|
exports.Logger = Logger;
|
|
34
40
|
exports.logger = new Logger();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
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": "public/cjs/index.cjs",
|
|
6
6
|
"module": "public/esm/index.mjs",
|
|
@@ -306,6 +306,7 @@ var global = (() => {
|
|
|
306
306
|
debugEnabled = true;
|
|
307
307
|
infoEnabled = true;
|
|
308
308
|
warnEnabled = true;
|
|
309
|
+
errorEnabled = true;
|
|
309
310
|
debug(message) {
|
|
310
311
|
if (this.debugEnabled) {
|
|
311
312
|
console.log("\x1B[35m%s\x1B[0m", `[DEBUG][${performance.now().toLocaleString()}] ${message}`);
|
|
@@ -327,6 +328,11 @@ var global = (() => {
|
|
|
327
328
|
console.warn("\x1B[31m%s\x1B[0m", `[WARN][${performance.now().toLocaleString()}] ${message}`);
|
|
328
329
|
}
|
|
329
330
|
}
|
|
331
|
+
error(message) {
|
|
332
|
+
if (this.errorEnabled) {
|
|
333
|
+
console.error("\x1B[31m%s\x1B[0m", `[ERROR][${performance.now().toLocaleString()}] ${message}`);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
330
336
|
};
|
|
331
337
|
logger = new Logger();
|
|
332
338
|
Export(logger);
|