|
|
@@ -2,7 +2,6 @@ import crypto = require('libp2p-crypto');
|
|
|
import util = require('util');
|
|
|
import RsaPrivateKey = crypto.keys;
|
|
|
import { Storage } from './storage';
|
|
|
-import { StorageNode } from './storage-node';
|
|
|
import { IWebClient } from './webclient';
|
|
|
const TextEncoder = util.TextEncoder;
|
|
|
import WebSocket from 'ws';
|
|
|
@@ -10,19 +9,6 @@ import { ContentItem } from './content-item';
|
|
|
import { ContentParams } from './content-params';
|
|
|
import { UploadItemParameters } from './upload-item-parameters';
|
|
|
import { encodeHex, mergeDeep, uuid } from './util';
|
|
|
-import WebClientNode from './webclient-node';
|
|
|
-
|
|
|
-export * from './storage';
|
|
|
-export * from './storage-node';
|
|
|
-export * from './webclient';
|
|
|
-export * from './webclient-fetch';
|
|
|
-export * from './webclient-options';
|
|
|
-export * from './content-item';
|
|
|
-export * from './content-link';
|
|
|
-export * from './content-params';
|
|
|
-export * from './upload-item-link';
|
|
|
-export * from './upload-item-parameters';
|
|
|
-export * from './util';
|
|
|
|
|
|
export class BankClient {
|
|
|
|
|
|
@@ -50,7 +36,7 @@ export class BankClient {
|
|
|
private bootstrapPromise: any;
|
|
|
private bootstrapResult: any;
|
|
|
|
|
|
- constructor(private urlBase: string, private ipfsUrlBase: string, private storage: Storage = new StorageNode('bankClient'), private webClient: IWebClient = new WebClientNode()) {
|
|
|
+ constructor(private urlBase: string, private ipfsUrlBase: string, private storage: Storage, private webClient: IWebClient) {
|
|
|
this.wsUrlBase = urlBase.replace(/^http/i, 'ws');
|
|
|
}
|
|
|
|