File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " node-rsa" ,
3- "version" : " 0.2.20 " ,
3+ "version" : " 0.2.21 " ,
44 "description" : " Node.js RSA library" ,
55 "main" : " src/NodeRSA.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ var crypt = require('crypto');
22
33module . exports = {
44 getEngine : function ( keyPair , options ) {
5- var engine ;
6- if ( options . environment === 'browser' ) {
7- engine = require ( './js.js' ) ;
8- } else {
5+ var engine = require ( './js.js' ) ;
6+ if ( options . environment === 'node' ) {
97 if ( typeof crypt . publicEncrypt === 'function' && typeof crypt . privateDecrypt === 'function' ) {
108 if ( typeof crypt . privateEncrypt === 'function' && typeof crypt . publicDecrypt === 'function' ) {
119 engine = require ( './io.js' ) ;
You can’t perform that action at this time.
0 commit comments