File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Release Notes
4
4
5
+ #### v1.0.4
6
+
7
+ - Fix logging from worker threads.
8
+
5
9
#### v1.0.3
6
10
7
11
- Added Release notes.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @devrev/ts-adaas" ,
3
- "version" : " 1.0.3 " ,
3
+ "version" : " 1.0.4 " ,
4
4
"description" : " Typescript library containing the ADaaS(AirDrop as a Service) control protocol." ,
5
5
"type" : " commonjs" ,
6
6
"main" : " ./dist/index.js" ,
Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ export class Adapter<ConnectorState> {
77
77
adapterState : State < ConnectorState > ,
78
78
isLocalDevelopment : boolean = false
79
79
) {
80
- // if (!isLocalDevelopment) {
81
- // Logger.init(event);
82
- // }
80
+ if ( ! isLocalDevelopment ) {
81
+ // Logger.init(event);
82
+ }
83
83
84
84
this . adapterState = adapterState ;
85
85
this . _artifacts = [ ] ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class Logger extends Console {
40
40
parentPort ?. postMessage ( {
41
41
subject : WorkerMessageSubject . WorkerMessageLog ,
42
42
payload : {
43
- args,
43
+ args : JSON . parse ( JSON . stringify ( args ) ) ,
44
44
level,
45
45
} ,
46
46
} ) ;
@@ -65,7 +65,9 @@ export class Logger extends Console {
65
65
}
66
66
67
67
// Helper function to process each value in the state
68
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
68
69
export function getPrintableState ( state : Record < string , any > ) : PrintableState {
70
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
69
71
function processValue ( value : any ) : any {
70
72
if ( Array . isArray ( value ) ) {
71
73
// If the value is an array, summarize it
You can’t perform that action at this time.
0 commit comments