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/public/esm/index.mjs
CHANGED
|
@@ -303,6 +303,7 @@ var init_Logger = __esm({
|
|
|
303
303
|
debugEnabled = true;
|
|
304
304
|
infoEnabled = true;
|
|
305
305
|
warnEnabled = true;
|
|
306
|
+
errorEnabled = true;
|
|
306
307
|
debug(message) {
|
|
307
308
|
if (this.debugEnabled) {
|
|
308
309
|
console.log("\x1B[35m%s\x1B[0m", `[DEBUG][${performance.now().toLocaleString()}] ${message}`);
|
|
@@ -324,6 +325,11 @@ var init_Logger = __esm({
|
|
|
324
325
|
console.warn("\x1B[31m%s\x1B[0m", `[WARN][${performance.now().toLocaleString()}] ${message}`);
|
|
325
326
|
}
|
|
326
327
|
}
|
|
328
|
+
error(message) {
|
|
329
|
+
if (this.errorEnabled) {
|
|
330
|
+
console.error("\x1B[31m%s\x1B[0m", `[ERROR][${performance.now().toLocaleString()}] ${message}`);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
327
333
|
};
|
|
328
334
|
logger = new Logger();
|
|
329
335
|
Export(logger);
|