forked from cerc-io/laconic-console
lint
This commit is contained in:
parent
eabd69c953
commit
5a1bf272da
@ -26,7 +26,7 @@ export const ipfsResolvers = {
|
|||||||
const peers = await ipfs.swarm.peers();
|
const peers = await ipfs.swarm.peers();
|
||||||
const stats = await ipfs.stats.repo();
|
const stats = await ipfs.stats.repo();
|
||||||
// Do not expose the repo path.
|
// Do not expose the repo path.
|
||||||
delete stats['repoPath'];
|
delete stats.repoPath;
|
||||||
|
|
||||||
const refs = [];
|
const refs = [];
|
||||||
for await (const ref of ipfs.refs.local()) {
|
for await (const ref of ipfs.refs.local()) {
|
||||||
|
@ -63,12 +63,12 @@ const getSystemInfo = async () => {
|
|||||||
os: {
|
os: {
|
||||||
arch: os.arch(),
|
arch: os.arch(),
|
||||||
platform: os.platform(),
|
platform: os.platform(),
|
||||||
version: os.version ? os.version() : undefined, // Node > 13
|
version: os.version ? os.version() : undefined // Node > 13
|
||||||
},
|
},
|
||||||
|
|
||||||
time: {
|
time: {
|
||||||
now: moment(),
|
now: moment(),
|
||||||
up: moment().subtract(os.uptime(), 'seconds'),
|
up: moment().subtract(os.uptime(), 'seconds')
|
||||||
},
|
},
|
||||||
|
|
||||||
nodejs: {
|
nodejs: {
|
||||||
|
Loading…
Reference in New Issue
Block a user