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

feat: use class-is for type checks #1310

Merged
merged 1 commit into from
Apr 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
"expose-loader": "^0.7.5",
"form-data": "^2.3.2",
"hat": "0.0.3",
"ipfsd-ctl": "~0.31.0",
"interface-ipfs-core": "~0.58.0",
"interface-ipfs-core": "^0.61.0",
"ipfsd-ctl": "^0.32.1",
"lodash": "^4.17.5",
"mocha": "^5.0.5",
"ncp": "^2.0.0",
Expand Down Expand Up @@ -106,47 +106,47 @@
"hapi-set-header": "^1.0.2",
"hoek": "^5.0.3",
"human-to-milliseconds": "^1.0.0",
"ipfs-api": "^19.0.0",
"ipfs-bitswap": "~0.19.0",
"ipfs-block": "~0.6.1",
"ipfs-block-service": "~0.13.0",
"ipfs-api": "^20.0.1",
"ipfs-bitswap": "~0.20.0",
"ipfs-block": "^0.7.1",
"ipfs-block-service": "~0.14.0",
"ipfs-multipart": "~0.1.0",
"ipfs-repo": "~0.18.7",
"ipfs-repo": "^0.19.0",
"ipfs-unixfs": "~0.1.14",
"ipfs-unixfs-engine": "~0.27.0",
"ipld": "^0.15.0",
"ipfs-unixfs-engine": "~0.28.1",
"ipld": "^0.17.0",
"is-ipfs": "^0.3.2",
"is-stream": "^1.1.0",
"joi": "^13.1.2",
"joi-browser": "^13.0.1",
"joi-multiaddr": "^2.0.0",
"libp2p": "~0.19.2",
"libp2p-circuit": "~0.1.5",
"libp2p-floodsub": "~0.14.1",
"libp2p-kad-dht": "~0.9.0",
"libp2p": "^0.20.2",
"libp2p-circuit": "^0.2.0",
"libp2p-floodsub": "~0.15.0",
"libp2p-kad-dht": "~0.10.0",
"libp2p-keychain": "~0.3.1",
"libp2p-mdns": "~0.9.2",
"libp2p-mplex": "^0.6.0",
"libp2p-railing": "~0.7.1",
"libp2p-secio": "~0.9.4",
"libp2p-tcp": "~0.11.6",
"libp2p-webrtc-star": "~0.13.4",
"libp2p-websocket-star": "~0.7.7",
"libp2p-websockets": "~0.10.5",
"libp2p-mdns": "~0.11.0",
"libp2p-mplex": "^0.7.0",
"libp2p-railing": "~0.8.0",
"libp2p-secio": "~0.10.0",
"libp2p-tcp": "^0.12.0",
"libp2p-webrtc-star": "0.14.0",
"libp2p-websocket-star": "^0.8.0",
"libp2p-websockets": "^0.11.0",
"lodash.flatmap": "^4.5.0",
"lodash.get": "^4.4.2",
"lodash.sortby": "^4.7.0",
"lodash.values": "^4.3.0",
"mafmt": "^4.0.0",
"mafmt": "^6.0.0",
"mime-types": "^2.1.18",
"mkdirp": "~0.5.1",
"multiaddr": "^3.1.0",
"multiaddr": "^4.0.0",
"multihashes": "~0.4.13",
"once": "^1.4.0",
"path-exists": "^3.0.0",
"peer-book": "~0.5.4",
"peer-id": "~0.10.6",
"peer-info": "~0.11.6",
"peer-book": "~0.7.0",
"peer-id": "~0.10.7",
"peer-info": "~0.14.1",
"progress": "^2.0.0",
"promisify-es6": "^1.0.3",
"pull-abortable": "^4.1.1",
Expand Down
3 changes: 1 addition & 2 deletions src/core/components/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ module.exports = function object (self) {

rmLink (multihash, linkRef, options, callback) {
editAndSave((node, cb) => {
if (linkRef.constructor &&
linkRef.constructor.name === 'DAGLink') {
if (DAGLink.isDAGLink(linkRef)) {
linkRef = linkRef._name
}
DAGNode.rmLink(node, linkRef, cb)
Expand Down