Compare commits
2 Commits
ccd2b4fd78
...
88a827276e
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 88a827276e | |
Derrick Hammer | 05223c84b8 |
|
@ -1,17 +1,14 @@
|
|||
import { start as startRpc } from "./modules/rpc.js";
|
||||
import { start as startRelay } from "./modules/relay.js";
|
||||
import { start as startApp } from "./modules/app";
|
||||
import log from "loglevel";
|
||||
import config from "./config.js";
|
||||
import { loadPlugins } from "./modules/plugin.js";
|
||||
import { start as startSwarm } from "./modules/swarm.js";
|
||||
import * as bip39 from "@scure/bip39";
|
||||
import { wordlist } from "@scure/bip39/wordlists/english";
|
||||
|
||||
log.setDefaultLevel(config.str("log-level"));
|
||||
|
||||
if (!config.str("seed")) {
|
||||
config.saveConfigJson("account.json", {
|
||||
config.save("account.json", {
|
||||
seed: bip39.generateMnemonic(wordlist),
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import log from "loglevel";
|
||||
import { log } from "../log.js";
|
||||
|
||||
export function errorExit(msg: string): void {
|
||||
log.error(msg);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { AddressInfo } from "net";
|
||||
import log from "loglevel";
|
||||
import { log } from "./log.js";
|
||||
import fastify from "fastify";
|
||||
import type { FastifyInstance } from "fastify";
|
||||
import { getKeyPair } from "../lib/seed.js";
|
||||
|
|
|
@ -12,7 +12,7 @@ import pluginRpc from "./plugins/rpc";
|
|||
import pluginCore from "./plugins/core";
|
||||
import type Config from "@lumeweb/cfg";
|
||||
import EventEmitter2 from "eventemitter2";
|
||||
import log from "loglevel";
|
||||
import { log } from "./log.js";
|
||||
import { get as getSwarm } from "./swarm.js";
|
||||
|
||||
let pluginAPIManager: PluginAPIManager;
|
||||
|
|
|
@ -8,7 +8,7 @@ import config from "../config.js";
|
|||
import { get as getSwarm } from "./swarm.js";
|
||||
import { get as getSslManager } from "./ssl.js";
|
||||
// @ts-ignore
|
||||
import log from "loglevel";
|
||||
import { log } from "./log.js";
|
||||
import { AddressInfo } from "net";
|
||||
// @ts-ignore
|
||||
import promiseRetry from "promise-retry";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import * as tls from "tls";
|
||||
import b4a from "b4a";
|
||||
import log from "loglevel";
|
||||
import { log } from "./log.js";
|
||||
import config from "../config.js";
|
||||
|
||||
export type SSLManagerRenewHandler = (domain: string) => Promise<boolean>;
|
||||
|
|
|
@ -9,7 +9,7 @@ import DHT from "@hyperswarm/dht";
|
|||
// @ts-ignore
|
||||
import sodium from "sodium-universal";
|
||||
import b4a from "b4a";
|
||||
import log from "loglevel";
|
||||
import { log } from "../log.js";
|
||||
import { getKeyPair } from "../lib/seed.js";
|
||||
|
||||
const LUMEWEB = b4a.from("lumeweb");
|
||||
|
|
Loading…
Reference in New Issue