@@ -353,7 +353,9 @@ private module CryptoJS {
353
353
input = result .getParameter ( 0 )
354
354
}
355
355
356
- private API:: CallNode getDirectApplication ( API:: Node input , API:: Node algorithmNode , CryptographicAlgorithm algorithm ) {
356
+ private API:: CallNode getDirectApplication (
357
+ API:: Node input , API:: Node algorithmNode , CryptographicAlgorithm algorithm
358
+ ) {
357
359
/*
358
360
* ```
359
361
* var CryptoJS = require("crypto-js");
@@ -367,6 +369,7 @@ private module CryptoJS {
367
369
* An `Hmac`-prefix of <algorithmName> is ignored.
368
370
* Also matches where `CryptoJS.<algorithmName>` has been replaced by `require("crypto-js/<algorithmName>")`
369
371
*/
372
+
370
373
algorithmNode = getAlgorithmNode ( algorithm ) and
371
374
result = algorithmNode .getACall ( ) and
372
375
input = result .getParameter ( 0 )
@@ -407,7 +410,7 @@ private module CryptoJS {
407
410
this = getEncryptionApplication ( input , algorithmNode , algorithm )
408
411
or
409
412
this = getDirectApplication ( input , algorithmNode , algorithm )
410
- |
413
+ |
411
414
instantiation = algorithmNode .asSource ( )
412
415
)
413
416
or
@@ -572,6 +575,7 @@ private module HashJs {
572
575
* ```
573
576
* Also matches where `hash.<algorithmName>()` has been replaced by a more specific require a la `require("hash.js/lib/hash/sha/512")`
574
577
*/
578
+
575
579
init = getAlgorithmNode ( algorithm ) and
576
580
this = init .getAMemberCall ( "update" ) and
577
581
input = super .getArgument ( 0 )
@@ -762,10 +766,7 @@ private module Bcrypt {
762
766
// `require("bcrypt").hash(password);` with minor naming variations
763
767
algorithm .matchesName ( "BCRYPT" ) and
764
768
init = API:: moduleImport ( [ "bcrypt" , "bcryptjs" , "bcrypt-nodejs" ] ) and
765
- this =
766
- init
767
- .getMember ( [ "hash" , "hashSync" ] )
768
- .getACall ( ) and
769
+ this = init .getMember ( [ "hash" , "hashSync" ] ) .getACall ( ) and
769
770
super .getArgument ( 0 ) = input
770
771
}
771
772
0 commit comments