Remove public middleware (temporary) (#5665)

This commit is contained in:
Jaco Greeff 2017-05-19 18:05:44 +02:00 committed by GitHub
parent ae0841598f
commit c944b2e632
2 changed files with 7 additions and 5 deletions

View File

@ -23,7 +23,7 @@ import { Db, Eth, Parity, Net, Personal, Shh, Signer, Trace, Web3 } from './rpc'
import Subscriptions from './subscriptions'; import Subscriptions from './subscriptions';
import util from './util'; import util from './util';
import { isFunction } from './util/types'; import { isFunction } from './util/types';
import { LocalAccountsMiddleware } from './local'; // import { LocalAccountsMiddleware } from './local';
export default class Api extends EventEmitter { export default class Api extends EventEmitter {
constructor (transport, allowSubscriptions = true) { constructor (transport, allowSubscriptions = true) {
@ -54,9 +54,9 @@ export default class Api extends EventEmitter {
const middleware = this.parity const middleware = this.parity
.nodeKind() .nodeKind()
.then((nodeKind) => { .then((nodeKind) => {
if (nodeKind.availability === 'public') { // if (nodeKind.availability === 'public') {
return LocalAccountsMiddleware; // return LocalAccountsMiddleware;
} // }
return null; return null;
}) })

View File

@ -73,7 +73,9 @@ module.exports = {
resolve: { resolve: {
alias: { alias: {
'~': path.resolve(__dirname, '../src') '~': path.resolve(__dirname, '../src'),
'secp256k1': path.resolve(__dirname, '../node_modules/secp256k1/js'),
'keythereum': path.resolve(__dirname, '../node_modules/keythereum/dist/keythereum')
}, },
modules: [ modules: [
path.resolve('./src'), path.resolve('./src'),