File tree Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1
- declare module ' chitragupta' {
2
- interface FormatterOptions {
3
- level : string ;
4
- message : string ;
5
- meta : any ;
6
- }
7
-
8
- export class Chitragupta {
9
- static jsonLogFormatter ( options : FormatterOptions ) : string ;
10
- }
11
- }
1
+ declare module " chitragupta" {
2
+ interface FormatterOptions {
3
+ level : string ;
4
+ message : string ;
5
+ meta : any ;
6
+ }
7
+
8
+ export class Chitragupta {
9
+ static jsonLogFormatter ( options : FormatterOptions ) : string ;
10
+ }
11
+ }
Original file line number Diff line number Diff line change 1
- import * as winston from ' winston' ;
2
- import { TransformableInfo } from ' logform' ;
3
- import { Chitragupta } from ' chitragupta' ;
1
+ import * as winston from " winston" ;
2
+ import { TransformableInfo } from " logform" ;
3
+ import { Chitragupta } from " chitragupta" ;
4
4
5
5
interface ChitraguptaOptions {
6
6
level : string ;
@@ -14,12 +14,12 @@ const jsonLogFormatter = winston.format.printf(
14
14
15
15
const options : ChitraguptaOptions = {
16
16
level,
17
- message : message as string ,
17
+ message : message as string ,
18
18
meta,
19
19
} ;
20
20
21
21
return Chitragupta . jsonLogFormatter ( options ) ;
22
- }
22
+ } ,
23
23
) ;
24
24
25
25
const logger : winston . Logger = winston . createLogger ( {
@@ -30,4 +30,4 @@ const logger: winston.Logger = winston.createLogger({
30
30
] ,
31
31
} ) ;
32
32
33
- export default logger ;
33
+ export default logger ;
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export async function getDevicesAndBrowsers(
58
58
}
59
59
60
60
cache = {
61
- [ type ] : liveRes ,
61
+ [ type ] : liveRes . data ,
62
62
} ;
63
63
fs . writeFileSync ( CACHE_FILE , JSON . stringify ( cache ) , "utf8" ) ;
64
64
You can’t perform that action at this time.
0 commit comments