@anjianshi/utils 1.2.5 → 1.2.7
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/init-dayjs.js +1 -1
- package/logging/index.js +1 -1
- package/package.json +1 -1
- package/src/init-dayjs.ts +1 -1
- package/src/logging/index.ts +1 -1
package/init-dayjs.js
CHANGED
package/logging/index.js
CHANGED
|
@@ -34,7 +34,7 @@ export class Logger {
|
|
|
34
34
|
}
|
|
35
35
|
static getRealLevel(raw) {
|
|
36
36
|
if (typeof raw === 'string') {
|
|
37
|
-
raw = raw.
|
|
37
|
+
raw = raw.toLowerCase();
|
|
38
38
|
if (logLevelMap[raw] === undefined)
|
|
39
39
|
throw new Error('Not supported log level: ' + raw);
|
|
40
40
|
return logLevelMap[raw];
|
package/package.json
CHANGED
package/src/init-dayjs.ts
CHANGED
package/src/logging/index.ts
CHANGED
|
@@ -44,7 +44,7 @@ export class Logger {
|
|
|
44
44
|
|
|
45
45
|
static getRealLevel(raw: LogLevel | string) {
|
|
46
46
|
if (typeof raw === 'string') {
|
|
47
|
-
raw = raw.
|
|
47
|
+
raw = raw.toLowerCase()
|
|
48
48
|
if (logLevelMap[raw] === undefined) throw new Error('Not supported log level: ' + raw)
|
|
49
49
|
return logLevelMap[raw]!
|
|
50
50
|
}
|