@zelgadis87/utils-core 4.11.1 → 4.11.2
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/dist/tsconfig.tsbuildinfo +1 -1
- package/esbuild/index.cjs +1 -3
- package/esbuild/index.cjs.map +2 -2
- package/esbuild/index.mjs +1 -3
- package/esbuild/index.mjs.map +2 -2
- package/package.json +1 -1
- package/src/Logger.ts +2 -4
package/esbuild/index.mjs
CHANGED
|
@@ -2057,11 +2057,9 @@ var Logger = class {
|
|
|
2057
2057
|
return this.logWrap("error");
|
|
2058
2058
|
}
|
|
2059
2059
|
logWrap(methodName) {
|
|
2060
|
-
if (!this.console[methodName])
|
|
2061
|
-
throw new Error("Invalid method name: " + methodName);
|
|
2062
2060
|
if (!this.enabled || !this.console || LEVELS.indexOf(methodName) < this.minLevel)
|
|
2063
2061
|
return noop;
|
|
2064
|
-
return this.console[methodName].bind(this.console, timestamp(), methodName.toUpperCase(), this.name);
|
|
2062
|
+
return this.console[methodName].bind(this.console, timestamp(), padRight(methodName.toUpperCase(), 5, " "), this.name);
|
|
2065
2063
|
}
|
|
2066
2064
|
};
|
|
2067
2065
|
|