tronprotocol/tronweb

Many require cycles in V6

Closed this issue · 1 comments

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\utils\crypto.js -> node_modules\tronweb\lib\commonjs\utils\address.js -> node_modules\tronweb\lib\commonjs\utils\crypto.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\utils\address.js -> node_modules\tronweb\lib\commonjs\utils\validations.js -> node_modules\tronweb\lib\commonjs\utils\address.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\utils\index.js -> node_modules\tronweb\lib\commonjs\utils\accounts.js -> node_modules\tronweb\lib\commonjs\utils\crypto.js -> node_modules\tronweb\lib\commonjs\utils\typedData.js -> node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\utils\index.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\TransactionBuilder\TransactionBuilder.js -> node_modules\tronweb\lib\commonjs\tronweb.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\TransactionBuilder\TransactionBuilder.js -> node_modules\tronweb\lib\commonjs\utils\abi.js -> node_modules\tronweb\lib\commonjs\tronweb.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\TransactionBuilder\TransactionBuilder.js -> node_modules\tronweb\lib\commonjs\lib\TransactionBuilder\helper.js -> node_modules\tronweb\lib\commonjs\tronweb.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\TransactionBuilder\TransactionBuilder.js -> node_modules\tronweb\lib\commonjs\lib\TransactionBuilder\helper.js -> node_modules\tronweb\lib\commonjs\utils\transaction.js -> node_modules\tronweb\lib\commonjs\tronweb.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\trx.js -> node_modules\tronweb\lib\commonjs\tronweb.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\utils\index.js -> node_modules\tronweb\lib\commonjs\utils\accounts.js -> node_modules\tronweb\lib\commonjs\utils\crypto.js -> node_modules\tronweb\lib\commonjs\utils\typedData.js -> node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\trx.js -> node_modules\tronweb\lib\commonjs\utils\index.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\utils\crypto.js -> node_modules\tronweb\lib\commonjs\utils\typedData.js -> node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\trx.js -> node_modules\tronweb\lib\commonjs\utils\crypto.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\contract\index.js -> node_modules\tronweb\lib\commonjs\tronweb.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\utils\index.js -> node_modules\tronweb\lib\commonjs\utils\accounts.js -> node_modules\tronweb\lib\commonjs\utils\crypto.js -> node_modules\tronweb\lib\commonjs\utils\typedData.js -> node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\contract\index.js -> node_modules\tronweb\lib\commonjs\utils\index.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\utils\index.js -> node_modules\tronweb\lib\commonjs\utils\accounts.js -> node_modules\tronweb\lib\commonjs\utils\crypto.js -> node_modules\tronweb\lib\commonjs\utils\typedData.js -> node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\contract\index.js -> node_modules\tronweb\lib\commonjs\lib\contract\method.js -> node_modules\tronweb\lib\commonjs\utils\index.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\utils\crypto.js -> node_modules\tronweb\lib\commonjs\utils\typedData.js -> node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\contract\index.js -> node_modules\tronweb\lib\commonjs\lib\contract\method.js -> node_modules\tronweb\lib\commonjs\utils\crypto.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\plugin.js -> node_modules\tronweb\lib\commonjs\tronweb.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\utils\index.js -> node_modules\tronweb\lib\commonjs\utils\accounts.js -> node_modules\tronweb\lib\commonjs\utils\crypto.js -> node_modules\tronweb\lib\commonjs\utils\typedData.js -> node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\plugin.js -> node_modules\tronweb\lib\commonjs\utils\index.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\event.js -> node_modules\tronweb\lib\commonjs\tronweb.js

λ WARN Require cycle: node_modules\tronweb\lib\commonjs\utils\index.js -> node_modules\tronweb\lib\commonjs\utils\accounts.js -> node_modules\trodules\tronweb\lib\commonjs\utils\crypto.js -> node_modules\tronweb\lib\commonjs\utils\typedData.js -> node_modules\tronweb\lib\commonjs\tronweb.js -> node_modules\tronweb\lib\commonjs\lib\event.js -> node_modules\tronweb\lib\commonjs\utils\index.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.

We didn't remove the cycles because refactoring can introduce many api changes. It will be confusing for those who have been familiar with TronWeb.