UNPKG

@chris.troutner/ipfs-message-port-server

Version:
25 lines (20 loc) 547 B
'use strict' /* eslint-env browser */ const { DAGService } = require('./dag') const { CoreService } = require('./core') const { FilesService } = require('./files') const { BlockService } = require('./block') /** * @typedef {import('@chris.troutner/ipfs-core-types').IPFS} IPFS */ exports.IPFSService = class IPFSService { /** * @param {IPFS} ipfs */ constructor (ipfs) { this.dag = new DAGService(ipfs) this.core = new CoreService(ipfs) this.files = new FilesService(ipfs) this.block = new BlockService(ipfs) } }