Api & RxApi now created via new (#153)

* Api & RxApi now created via new

* Bump version
This commit is contained in:
Jaco Greeff
2018-09-14 17:32:58 +02:00
committed by GitHub
parent d9ab009917
commit 35b4f9a095
23 changed files with 106 additions and 102 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-provider",
"version": "0.28.35",
"version": "0.29.0",
"description": "Transport providers for the API",
"main": "index.js",
"keywords": [
@@ -34,7 +34,7 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0",
"@polkadot/storage": "^0.28.35",
"@polkadot/storage": "^0.29.0",
"@polkadot/util": "^0.30.3",
"@polkadot/util-crypto": "^0.30.3",
"@polkadot/util-keyring": "^0.30.3",
+2 -2
View File
@@ -4,7 +4,7 @@
import storage from '@polkadot/storage';
import createApi from '../../api/src';
import Api from '../../api/src';
import Ws from '../src/ws';
describe.skip('e2e', () => {
@@ -12,7 +12,7 @@ describe.skip('e2e', () => {
beforeEach(() => {
jest.setTimeout(30000);
api = createApi(new Ws('ws://127.0.0.1:9944'));
api = new Api(new Ws('ws://127.0.0.1:9944'));
});
it('subscribes to chain_newHead', (done) => {