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/cjs/index.cjs
CHANGED
|
@@ -299,6 +299,7 @@ var init_Logger = __esm({
|
|
|
299
299
|
debugEnabled = true;
|
|
300
300
|
infoEnabled = true;
|
|
301
301
|
warnEnabled = true;
|
|
302
|
+
errorEnabled = true;
|
|
302
303
|
debug(message) {
|
|
303
304
|
if (this.debugEnabled) {
|
|
304
305
|
console.log("\x1B[35m%s\x1B[0m", `[DEBUG][${performance.now().toLocaleString()}] ${message}`);
|
|
@@ -320,6 +321,11 @@ var init_Logger = __esm({
|
|
|
320
321
|
console.warn("\x1B[31m%s\x1B[0m", `[WARN][${performance.now().toLocaleString()}] ${message}`);
|
|
321
322
|
}
|
|
322
323
|
}
|
|
324
|
+
error(message) {
|
|
325
|
+
if (this.errorEnabled) {
|
|
326
|
+
console.error("\x1B[31m%s\x1B[0m", `[ERROR][${performance.now().toLocaleString()}] ${message}`);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
323
329
|
};
|
|
324
330
|
logger = new Logger();
|
|
325
331
|
Export(logger);
|