Browse Source

add deprecated bitcore.bignum and bitcore.base58

(the non-deprecated versions are bitcore.Bignum and bitcore.Base58)
patch-2
Ryan X. Charles 11 years ago
parent
commit
fff988da94
  1. 4
      bitcore.js

4
bitcore.js

@ -11,19 +11,15 @@ var requireWhenAccessed = function(name, file) {
}; };
requireWhenAccessed('Bignum', './lib/Bignum'); requireWhenAccessed('Bignum', './lib/Bignum');
/*
Object.defineProperty(module.exports, 'bignum', {get: function() { Object.defineProperty(module.exports, 'bignum', {get: function() {
console.log('bignum (with a lower-case "b") is deprecated. Use bitcore.Bignum (capital "B") instead.'); console.log('bignum (with a lower-case "b") is deprecated. Use bitcore.Bignum (capital "B") instead.');
return require('./lib/Bignum'); return require('./lib/Bignum');
}}); }});
*/
requireWhenAccessed('Base58', './lib/Base58'); requireWhenAccessed('Base58', './lib/Base58');
/*
Object.defineProperty(module.exports, 'base58', {get: function() { Object.defineProperty(module.exports, 'base58', {get: function() {
console.log('base58 (with a lower-case "b") is deprecated. Use bitcore.Base58 (capital "B") instead.'); console.log('base58 (with a lower-case "b") is deprecated. Use bitcore.Base58 (capital "B") instead.');
return require('./lib/Base58'); return require('./lib/Base58');
}}); }});
*/
requireWhenAccessed('bufferput', 'bufferput'); requireWhenAccessed('bufferput', 'bufferput');
requireWhenAccessed('buffertools', 'buffertools'); requireWhenAccessed('buffertools', 'buffertools');
requireWhenAccessed('Buffers.monkey', './patches/Buffers.monkey'); requireWhenAccessed('Buffers.monkey', './patches/Buffers.monkey');

Loading…
Cancel
Save