Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 5b2cf8c

Browse files
fsdiogodaviddias
authored andcommitted
feat: use class-is for type checks
1 parent a2954cb commit 5b2cf8c

File tree

2 files changed

+27
-28
lines changed

2 files changed

+27
-28
lines changed

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
"expose-loader": "^0.7.5",
7474
"form-data": "^2.3.2",
7575
"hat": "0.0.3",
76-
"ipfsd-ctl": "~0.31.0",
77-
"interface-ipfs-core": "~0.58.0",
76+
"interface-ipfs-core": "^0.61.0",
77+
"ipfsd-ctl": "^0.32.1",
7878
"lodash": "^4.17.5",
7979
"mocha": "^5.0.5",
8080
"ncp": "^2.0.0",
@@ -106,47 +106,47 @@
106106
"hapi-set-header": "^1.0.2",
107107
"hoek": "^5.0.3",
108108
"human-to-milliseconds": "^1.0.0",
109-
"ipfs-api": "^19.0.0",
110-
"ipfs-bitswap": "~0.19.0",
111-
"ipfs-block": "~0.6.1",
112-
"ipfs-block-service": "~0.13.0",
109+
"ipfs-api": "^20.0.1",
110+
"ipfs-bitswap": "~0.20.0",
111+
"ipfs-block": "^0.7.1",
112+
"ipfs-block-service": "~0.14.0",
113113
"ipfs-multipart": "~0.1.0",
114-
"ipfs-repo": "~0.18.7",
114+
"ipfs-repo": "^0.19.0",
115115
"ipfs-unixfs": "~0.1.14",
116-
"ipfs-unixfs-engine": "~0.27.0",
117-
"ipld": "^0.15.0",
116+
"ipfs-unixfs-engine": "~0.28.1",
117+
"ipld": "^0.17.0",
118118
"is-ipfs": "^0.3.2",
119119
"is-stream": "^1.1.0",
120120
"joi": "^13.1.2",
121121
"joi-browser": "^13.0.1",
122122
"joi-multiaddr": "^2.0.0",
123-
"libp2p": "~0.19.2",
124-
"libp2p-circuit": "~0.1.5",
125-
"libp2p-floodsub": "~0.14.1",
126-
"libp2p-kad-dht": "~0.9.0",
123+
"libp2p": "^0.20.2",
124+
"libp2p-circuit": "^0.2.0",
125+
"libp2p-floodsub": "~0.15.0",
126+
"libp2p-kad-dht": "~0.10.0",
127127
"libp2p-keychain": "~0.3.1",
128-
"libp2p-mdns": "~0.9.2",
129-
"libp2p-mplex": "^0.6.0",
130-
"libp2p-railing": "~0.7.1",
131-
"libp2p-secio": "~0.9.4",
132-
"libp2p-tcp": "~0.11.6",
133-
"libp2p-webrtc-star": "~0.13.4",
134-
"libp2p-websocket-star": "~0.7.7",
135-
"libp2p-websockets": "~0.10.5",
128+
"libp2p-mdns": "~0.11.0",
129+
"libp2p-mplex": "^0.7.0",
130+
"libp2p-railing": "~0.8.0",
131+
"libp2p-secio": "~0.10.0",
132+
"libp2p-tcp": "^0.12.0",
133+
"libp2p-webrtc-star": "0.14.0",
134+
"libp2p-websocket-star": "^0.8.0",
135+
"libp2p-websockets": "^0.11.0",
136136
"lodash.flatmap": "^4.5.0",
137137
"lodash.get": "^4.4.2",
138138
"lodash.sortby": "^4.7.0",
139139
"lodash.values": "^4.3.0",
140-
"mafmt": "^4.0.0",
140+
"mafmt": "^6.0.0",
141141
"mime-types": "^2.1.18",
142142
"mkdirp": "~0.5.1",
143-
"multiaddr": "^3.1.0",
143+
"multiaddr": "^4.0.0",
144144
"multihashes": "~0.4.13",
145145
"once": "^1.4.0",
146146
"path-exists": "^3.0.0",
147-
"peer-book": "~0.5.4",
148-
"peer-id": "~0.10.6",
149-
"peer-info": "~0.11.6",
147+
"peer-book": "~0.7.0",
148+
"peer-id": "~0.10.7",
149+
"peer-info": "~0.14.1",
150150
"progress": "^2.0.0",
151151
"promisify-es6": "^1.0.3",
152152
"pull-abortable": "^4.1.1",

src/core/components/object.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,7 @@ module.exports = function object (self) {
280280

281281
rmLink (multihash, linkRef, options, callback) {
282282
editAndSave((node, cb) => {
283-
if (linkRef.constructor &&
284-
linkRef.constructor.name === 'DAGLink') {
283+
if (DAGLink.isDAGLink(linkRef)) {
285284
linkRef = linkRef._name
286285
}
287286
DAGNode.rmLink(node, linkRef, cb)

0 commit comments

Comments
 (0)