Skip to content

Commit

Permalink
Merge pull request #255 from ZIMkaRU/refactoring/use-lib-js-util-base…
Browse files Browse the repository at this point in the history
…-instead-of-lodash

Use lib-js-util-base instead of lodash
  • Loading branch information
ezewer authored Sep 26, 2023
2 parents 8acc363 + e076803 commit 5577d43
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"github-markdown-css": "5.1.0",
"grenache-grape": "git+https://github.com/bitfinexcom/grenache-grape.git",
"js-yaml": "4.1.0",
"lodash": "4.17.21",
"lib-js-util-base": "git+https://github.com/bitfinexcom/lib-js-util-base.git",
"new-github-issue-url": "0.2.1",
"showdown": "2.0.3",
"truncate-utf8-bytes": "1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { pick } = require('lodash')
const { pick } = require('lib-js-util-base')
const { fork } = require('child_process')
const path = require('path')
const EventEmitter = require('events')
Expand Down
2 changes: 1 addition & 1 deletion src/configs-keeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const { promisify } = require('util')
const path = require('path')
const fs = require('fs')
const { cloneDeep } = require('lodash')
const { cloneDeep } = require('lib-js-util-base')

const {
writeFileSync,
Expand Down
6 changes: 4 additions & 2 deletions src/helpers/__test__/ports.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

const { isObject } = require('lodash')
const assert = require('assert').strict
const { Server } = require('net')
const DHT = require('bittorrent-dht')
Expand All @@ -15,7 +14,10 @@ const {
const { getServerPromise } = require('../utils')

const checkAssertions = (res) => {
assert.ok(isObject(res))
assert.ok(
res &&
typeof res === 'object'
)
assert.ok(
[
'grape1DhtPort',
Expand Down

0 comments on commit 5577d43

Please sign in to comment.