Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #175 from skqksh/blue
Browse files Browse the repository at this point in the history
change underscore to lodash
  • Loading branch information
jimni1222 authored Dec 9, 2019
2 parents 374294d + b520f6e commit 9a4189f
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion caver-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

const fs = require('fs')
const jsonFormat = require('json-format')
const _ = require('underscore')
const _ = require('lodash')
const chalk = require('chalk')
const figlet = require('figlet')
const inquirer = require('inquirer')
Expand Down
2 changes: 1 addition & 1 deletion caver-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"figlet": "^1.2.0",
"inquirer": "^6.0.0",
"json-format": "^1.0.1",
"underscore": "^1.9.1"
"lodash": "^4.17.15"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@
"ethjs-unit": "0.1.6",
"eventemitter3": "4.0.0",
"it-each": "^0.4.0",
"lodash": "^4.17.15",
"node-fetch": "^2.2.0",
"number-to-bn": "1.7.0",
"oboe": "2.1.3",
"request": "2.87.0",
"requestretry": "^2.0.2",
"scryptsy": "2.1.0",
"underscore": "^1.9.1",
"utf8": "2.1.1",
"uuid": "2.0.1",
"websocket": "^1.0.28",
Expand Down
2 changes: 1 addition & 1 deletion packages/caver-core-helpers/src/formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const utils = require('../../caver-utils')
const validateParams = require('../../caver-core-helpers/src/validateFunction').validateParams

Expand Down
2 changes: 1 addition & 1 deletion packages/caver-core-method/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const errors = require('../../caver-core-helpers').errors
const formatters = require('../../caver-core-helpers').formatters
const txErrorTable = require('../../caver-core-helpers').txErrorTable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const oboe = require('oboe')
const errors = require('../../../caver-core-helpers').errors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const errors = require('../../../caver-core-helpers').errors

let Ws = null
Expand Down
2 changes: 1 addition & 1 deletion packages/caver-core-requestmanager/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const errors = require('../../caver-core-helpers').errors
const middleware = require('../../caver-middleware')

Expand Down
2 changes: 1 addition & 1 deletion packages/caver-core-subscriptions/src/subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const EventEmitter = require('eventemitter3')
const errors = require('../../caver-core-helpers').errors

Expand Down
2 changes: 1 addition & 1 deletion packages/caver-klay/caver-klay-abi/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const EthersAbi = require('ethers/utils/abi-coder').AbiCoder
const utils = require('../../../caver-utils')

Expand Down
2 changes: 1 addition & 1 deletion packages/caver-klay/caver-klay-accounts/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const Promise = require('any-promise')
// account, hash, rlp, nat, bytes library will be used from 'eth-lib' temporarily.
const AccountLib = require('eth-lib/lib/account')
Expand Down
2 changes: 1 addition & 1 deletion packages/caver-klay/caver-klay-contract/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const core = require('../../../caver-core')
const Method = require('../../../caver-core-method')
const utils = require('../../../caver-utils')
Expand Down
2 changes: 1 addition & 1 deletion packages/caver-klay/src/getNetworkType.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')

const getNetworkType = function(callback) {
const _this = this
Expand Down
2 changes: 1 addition & 1 deletion packages/caver-klay/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')

const core = require('../../caver-core')
const { formatters } = require('../../caver-core-helpers')
Expand Down
2 changes: 1 addition & 1 deletion packages/caver-middleware/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
along with the caver-js. If not, see <http://www.gnu.org/licenses/>.
*/

const { last } = require('underscore')
const { last } = require('lodash')
const builtinsMiddleware = require('./builtins')

function Middleware() {
Expand Down
2 changes: 1 addition & 1 deletion packages/caver-rtm/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
along with the caver-js. If not, see <http://www.gnu.org/licenses/>.
*/

const _ = require('underscore')
const _ = require('lodash')
const Method = require('../../caver-core-method')
const formatters = require('../../caver-core-helpers').formatters
const payloadTransformer = require('../../caver-core-helpers').payloadTransformer
Expand Down
2 changes: 1 addition & 1 deletion packages/caver-utils/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const ethjsUnit = require('ethjs-unit')
const utils = require('./utils.js')
const soliditySha3 = require('./soliditySha3.js')
Expand Down
2 changes: 1 addition & 1 deletion packages/caver-utils/src/soliditySha3.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const BN = require('bn.js')
const utils = require('./utils.js')

Expand Down
2 changes: 1 addition & 1 deletion packages/caver-utils/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @date 2017
*/

const _ = require('underscore')
const _ = require('lodash')
const BN = require('bn.js')
const numberToBN = require('number-to-bn')
const utf8 = require('utf8')
Expand Down

0 comments on commit 9a4189f

Please sign in to comment.