Remove levelup/leveldown functionality from CLI

This commit is contained in:
Simon Warta
2020-02-07 09:29:20 +01:00
parent d7cf91eb4c
commit d46b59db4f
4 changed files with 0 additions and 29 deletions
-2
View File
@@ -1,5 +1,3 @@
build/
dist/
docs/
selftest_userprofile_db/
-1
View File
@@ -43,7 +43,6 @@
"babylon": "^6.18.0",
"colors": "^1.3.3",
"diff": "^4",
"leveldown": "^5.0.0",
"recast": "^0.18.0",
"ts-node": "^8",
"typescript": "~3.7"
-7
View File
@@ -122,8 +122,6 @@ export function main(originalArgs: readonly string[]): void {
console.info(colors.yellow("Available imports:"));
console.info(colors.yellow(" * http"));
console.info(colors.yellow(" * https"));
console.info(colors.yellow(" * leveldown"));
console.info(colors.yellow(" * levelup"));
console.info(colors.yellow(" * from long"));
console.info(colors.yellow(" - Long"));
for (const moduleName of imports.keys()) {
@@ -139,8 +137,6 @@ export function main(originalArgs: readonly string[]): void {
console.info(colors.yellow(" - toHex"));
let init = `
import leveldown = require('leveldown');
import levelup from "levelup";
import * as http from 'http';
import * as https from 'https';
import Long from "long";
@@ -170,9 +166,6 @@ export function main(originalArgs: readonly string[]): void {
const profile = new UserProfile();
const wallet = profile.addWallet(Ed25519HdWallet.fromMnemonic("degree tackle suggest window test behind mesh extra cover prepare oak script"));
const db = levelup(leveldown('./selftest_userprofile_db'));
await profile.storeIn(db, "secret passwd");
const profileFromDb = await UserProfile.loadFrom(db, "secret passwd");
console.info("Done testing, will exit now.");
process.exit(0);