Skip to content

Commit e7a61c9

Browse files
committed
Fix bugs across packages
1 parent 90e3890 commit e7a61c9

File tree

13 files changed

+1168
-118
lines changed

13 files changed

+1168
-118
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"scripts": {
2121
"build": "lerna exec yarn build --stream",
2222
"lint": "tslint 'packages/**/*.ts'",
23-
"test": "jest",
23+
"postinstall": "yarn build",
24+
"test": "jest && lerna exec --package api yarn test",
2425
"update-docs": "scripts/update-docs.sh"
2526
},
2627
"devDependencies": {

packages/light.js-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"test": "jest"
2727
},
2828
"dependencies": {
29-
"recompose": "^0.28.2",
29+
"recompose": "^0.30.0",
3030
"symbol-observable": "^1.2.0"
3131
},
3232
"devDependencies": {
@@ -42,6 +42,6 @@
4242
},
4343
"peerDependencies": {
4444
"@parity/light.js": "^3.0.0",
45-
"rxjs": "^6.2.1"
45+
"rxjs": "~6.2.2"
4646
}
4747
}

packages/light.js/example/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
"eject": "react-scripts eject"
1010
},
1111
"dependencies": {
12-
"@parity/api": "^2.1.24",
12+
"@parity/api": "../../",
13+
"@parity/light.js": "../../",
14+
"@parity/light.js-react": "../../",
1315
"react": "^16.3.2",
1416
"react-dom": "^16.3.2",
1517
"react-router-dom": "^4.3.1",
1618
"react-scripts": "1.1.4",
17-
"rxjs": "^6.2.2",
19+
"rxjs": "~6.2.2",
1820
"symbol-observable": "^1.2.0"
1921
},
2022
"devDependencies": {

packages/light.js/example/src/BalanceOf/Balance.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
// SPDX-License-Identifier: MIT
55

66
import React, { Component } from 'react';
7+
import { defaultAccount$ } from '@parity/light.js';
8+
import light from '@parity/light.js-react';
79

810
import BalanceOfAddress from './BalanceOfAddress';
9-
import { defaultAccount$ } from '../light.js';
10-
import light from '../hoc';
1111

1212
@light({
1313
defaultAccount: defaultAccount$

packages/light.js/example/src/BalanceOf/BalanceOfAddress/BalanceOfAddress.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55

66
import React, { Component } from 'react';
77
import { map } from 'rxjs/operators';
8-
9-
import { balanceOf$, withoutLoading } from '../../light.js';
10-
import light from '../../hoc';
8+
import { balanceOf$, withoutLoading } from '@parity/light.js';
9+
import light from '@parity/light.js-react';
1110

1211
@light({
1312
balance: ownProps =>

packages/light.js/example/src/BlockNumber/BlockNumber.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
// SPDX-License-Identifier: MIT
55

66
import React, { Component } from 'react';
7-
8-
import { blockNumber$ } from '../light.js';
9-
import light from '../hoc';
7+
import { blockNumber$ } from '@parity/light.js';
8+
import light from '@parity/light.js-react';
109

1110
@light({
1211
blockNumber: blockNumber$

packages/light.js/example/src/PeerCount/PeerCount.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
// SPDX-License-Identifier: MIT
55

66
import React, { Component } from 'react';
7-
8-
import { peerCount$, withoutLoading } from '../light.js/index.js';
9-
import light from '../hoc';
7+
import { peerCount$, withoutLoading } from '@parity/light.js';
8+
import light from '@parity/light.js-react';
109

1110
@light({
1211
peerCount: () => peerCount$().pipe(withoutLoading())

packages/light.js/example/src/hoc

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/light.js/example/src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
//
44
// SPDX-License-Identifier: MIT
55

6+
import 'symbol-observable'; // TODO Remove this once https://github.com/acdlite/recompose/pull/660 is merged
7+
68
import React from 'react';
79
import ReactDOM from 'react-dom';
8-
import 'symbol-observable'; // TODO Remove this once https://github.com/acdlite/recompose/pull/660 is merged
10+
import light from '@parity/light.js';
911

1012
import App from './App';
11-
import light from './light.js';
1213
import provider from './provider';
1314

1415
light.setProvider(provider);

packages/light.js/example/src/light.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)