File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " node-rsa" ,
3
- "version" : " 0.2.22 " ,
3
+ "version" : " 0.2.23 " ,
4
4
"description" : " Node.js RSA library" ,
5
5
"main" : " src/NodeRSA.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 1
- var schemes = {
1
+ module . exports = {
2
2
pkcs1 : require ( './pkcs1' ) ,
3
3
pkcs1_oaep : require ( './oaep' ) ,
4
4
pss : require ( './pss' ) ,
@@ -9,7 +9,7 @@ var schemes = {
9
9
* @returns {Boolean }
10
10
*/
11
11
isEncryption : function ( scheme ) {
12
- return schemes [ scheme ] && schemes [ scheme ] . isEncryption ;
12
+ return module . exports [ scheme ] && module . exports [ scheme ] . isEncryption ;
13
13
} ,
14
14
15
15
/**
@@ -18,8 +18,6 @@ var schemes = {
18
18
* @returns {Boolean }
19
19
*/
20
20
isSignature : function ( scheme ) {
21
- return schemes [ scheme ] && schemes [ scheme ] . isSignature ;
21
+ return module . exports [ scheme ] && module . exports [ scheme ] . isSignature ;
22
22
}
23
- } ;
24
-
25
- module . exports = schemes ;
23
+ } ;
You can’t perform that action at this time.
0 commit comments