File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ if (ENVIRONMENT_IS_NODE) {
59
59
if ( typeof module !== "undefined" ) {
60
60
module [ "exports" ] = Module ;
61
61
}
62
- process [ "on" ] ( "uncaughtException" , ( function ( ex ) {
62
+ /* process["on"]("uncaughtException", (function(ex) {
63
63
if (!(ex instanceof ExitStatus)) {
64
64
throw ex;
65
65
}
66
66
}));
67
67
process["on"]("unhandledRejection", (function(reason, p) {
68
68
process["exit"](1);
69
- } ) ) ;
69
+ }));*/
70
70
Module [ "quit" ] = ( function ( status ) {
71
71
process [ "exit" ] ( status ) ;
72
72
} ) ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class GroupCipher {
29
29
await this . senderKeyStore . storeSenderKey ( this . senderKeyName , record ) ;
30
30
return senderKeyMessage . serialize ( ) ;
31
31
} catch ( e ) {
32
- console . log ( e . stack ) ;
32
+ // console.log(e.stack);
33
33
throw new Error ( 'NoSessionException' ) ;
34
34
}
35
35
}
@@ -56,7 +56,7 @@ class GroupCipher {
56
56
57
57
return plaintext ;
58
58
} catch ( e ) {
59
- console . log ( e . stack ) ;
59
+ // console.log(e.stack);
60
60
throw new Error ( 'InvalidMessageException' ) ;
61
61
}
62
62
}
@@ -90,7 +90,7 @@ class GroupCipher {
90
90
const plaintext = crypto . decrypt ( key , ciphertext , iv ) ;
91
91
return plaintext ;
92
92
} catch ( e ) {
93
- console . log ( e . stack ) ;
93
+ // console.log(e.stack);
94
94
throw new Error ( 'InvalidMessageException' ) ;
95
95
}
96
96
}
@@ -102,7 +102,7 @@ class GroupCipher {
102
102
const crypted = crypto . encrypt ( key , Buffer . from ( plaintext ) , iv ) ;
103
103
return crypted ;
104
104
} catch ( e ) {
105
- console . log ( e . stack ) ;
105
+ // console.log(e.stack);
106
106
throw new Error ( 'InvalidMessageException' ) ;
107
107
}
108
108
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class GroupSessionBuilder {
8
8
}
9
9
10
10
async process ( senderKeyName , senderKeyDistributionMessage ) {
11
- console . log ( 'GroupSessionBuilder process' , senderKeyName , senderKeyDistributionMessage ) ;
11
+ // console.log('GroupSessionBuilder process', senderKeyName, senderKeyDistributionMessage);
12
12
const senderKeyRecord = await this . senderKeyStore . loadSenderKey ( senderKeyName ) ;
13
13
senderKeyRecord . addSenderKeyState (
14
14
senderKeyDistributionMessage . getId ( ) ,
@@ -23,7 +23,7 @@ class GroupSessionBuilder {
23
23
async create ( senderKeyName ) {
24
24
try {
25
25
const senderKeyRecord = await this . senderKeyStore . loadSenderKey ( senderKeyName ) ;
26
- console . log ( 'GroupSessionBuilder create session' , senderKeyName , senderKeyRecord ) ;
26
+ // console.log('GroupSessionBuilder create session', senderKeyName, senderKeyRecord);
27
27
28
28
if ( senderKeyRecord . isEmpty ( ) ) {
29
29
const keyId = keyhelper . generateSenderKeyId ( ) ;
@@ -43,7 +43,7 @@ class GroupSessionBuilder {
43
43
state . getSigningKeyPublic ( )
44
44
) ;
45
45
} catch ( e ) {
46
- console . log ( e . stack ) ;
46
+ // console.log(e.stack);
47
47
throw new Error ( e ) ;
48
48
}
49
49
}
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ class SessionCipher {
124
124
type = 1 ; // normal
125
125
body = result ;
126
126
}
127
+
127
128
return {
128
129
type,
129
130
body,
You can’t perform that action at this time.
0 commit comments