@@ -17,7 +17,6 @@ exports.Message = require('./message').Message;
17
17
exports . binformat = require ( './binformat' ) ;
18
18
exports . utils = require ( './utils' ) ;
19
19
exports . Server = require ( './server' ) . Server ;
20
- exports . Wallet = require ( './wallet' ) ;
21
20
exports . Ledger = require ( './ledger' ) . Ledger ;
22
21
exports . TransactionQueue = require ( './transactionqueue' ) . TransactionQueue ;
23
22
exports . RangeSet = require ( './rangeset' ) . RangeSet ;
@@ -31,27 +30,28 @@ exports.convertBase = require('./baseconverter');
31
30
// the official client, it makes sense to expose the SJCL instance so we don't
32
31
// have to include it twice.
33
32
exports . sjcl = require ( './utils' ) . sjcl ;
33
+ exports . Wallet = require ( 'ripple-wallet-generator' ) ( { sjcl : exports . sjcl } ) ;
34
34
exports . types = require ( './serializedtypes' ) ;
35
35
36
36
exports . config = require ( './config' ) ;
37
37
38
38
// camelCase to under_scored API conversion
39
39
function attachUnderscored ( name ) {
40
- var o = exports [ name ] ;
40
+ var o = exports [ name ] ;
41
41
42
- Object . keys ( o . prototype ) . forEach ( function ( key ) {
43
- var UPPERCASE = / ( [ A - Z ] { 1 } ) [ a - z ] + / g;
42
+ Object . keys ( o . prototype ) . forEach ( function ( key ) {
43
+ var UPPERCASE = / ( [ A - Z ] { 1 } ) [ a - z ] + / g;
44
44
45
- if ( ! UPPERCASE . test ( key ) ) {
46
- return ;
47
- }
45
+ if ( ! UPPERCASE . test ( key ) ) {
46
+ return ;
47
+ }
48
48
49
- var underscored = key . replace ( UPPERCASE , function ( c ) {
50
- return '_' + c . toLowerCase ( ) ;
51
- } ) ;
49
+ var underscored = key . replace ( UPPERCASE , function ( c ) {
50
+ return '_' + c . toLowerCase ( ) ;
51
+ } ) ;
52
52
53
- o . prototype [ underscored ] = o . prototype [ key ] ;
54
- } ) ;
53
+ o . prototype [ underscored ] = o . prototype [ key ] ;
54
+ } ) ;
55
55
}
56
56
57
57
[ 'Remote' ,
0 commit comments