Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8a59985
FrequencyObservable as a function returning a observable
amaury1093 Sep 7, 2018
f113991
Fix tests
amaury1093 Sep 7, 2018
5e613d4
Test a new api
amaury1093 Sep 12, 2018
9ecae21
Make frequency observables work
amaury1093 Sep 13, 2018
660c5ef
Fix tests
amaury1093 Sep 13, 2018
6e99b67
Remove overview
amaury1093 Sep 13, 2018
e4298fa
Don't cover index.ts
amaury1093 Sep 13, 2018
bb5509c
Fix a lot of stuff
amaury1093 Sep 13, 2018
1008d5a
Remove useless import
amaury1093 Sep 13, 2018
3aa360b
Change testRegex for jest
amaury1093 Sep 13, 2018
ea75324
Add ambient for packages with no typigns
amaury1093 Sep 13, 2018
7c03c5c
Generate docs
amaury1093 Sep 13, 2018
80b283f
Remove NullProvider
amaury1093 Sep 13, 2018
a46b19a
Remove NullProvider
amaury1093 Sep 13, 2018
3447e95
Regenerate docs
amaury1093 Sep 13, 2018
1f0c25a
Silent jest on CI
amaury1093 Sep 13, 2018
b4404e2
Fix makeContract and post
amaury1093 Sep 13, 2018
165df16
Regen docs
amaury1093 Sep 13, 2018
9b8edd8
Update summary
amaury1093 Sep 13, 2018
fb89a94
Update ambient
amaury1093 Sep 13, 2018
439d3bd
Export post$ too
amaury1093 Sep 13, 2018
18e640f
Fix makeContract
amaury1093 Sep 13, 2018
431fe51
Fix memoization for frequency observables
amaury1093 Sep 17, 2018
44dde4a
Don't lint lib
amaury1093 Sep 17, 2018
15caa62
Fix bugs with rpc$
amaury1093 Sep 17, 2018
0cbe22a
Remove useless packages
amaury1093 Sep 17, 2018
85f8fb9
Generate docs
amaury1093 Sep 17, 2018
c5e0c56
Update withoutLoading syntax
amaury1093 Sep 17, 2018
82fca45
Use json.stringify for normalizer
amaury1093 Sep 17, 2018
4893e97
Fix bug normalizer
amaury1093 Sep 17, 2018
e449a57
Remove withApi in docs
amaury1093 Sep 17, 2018
3a885fe
Fix bug memoization
amaury1093 Sep 17, 2018
c6ee32e
Remove onEvery2Blocks
amaury1093 Sep 17, 2018
041441b
Options then args
amaury1093 Sep 17, 2018
8a066db
CreateRpc in makeContract fix
amaury1093 Sep 17, 2018
d2bb3c7
Fix getContract memoization
amaury1093 Sep 17, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ node_js:
script:
- yarn lint
- yarn build
- yarn test --coverage --coverageReporters=text-lcov | coveralls ; test ${PIPESTATUS[0]} -eq 0
- yarn test --silent --coverage --coverageReporters=text-lcov | coveralls ; test ${PIPESTATUS[0]} -eq 0
before_deploy:
- npm install --global gitbook-cli
deploy:
Expand Down
10 changes: 7 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
module.exports = {
collectCoverageFrom: ['**/*.{ts,tsx}', '!**/node_modules/**', '!**/*.d.ts'],
collectCoverageFrom: [
'**/*.{ts,tsx}',
'!**/node_modules/**',
'!**/*.d.ts',
'!**/index.ts'
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
rootDir: '.',
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
// testRegex: 'spec\\.(ts|tsx)$' // TODO Skip api/ tests for now, as it's still WIP
testRegex:
'packages/(abi|electron|light.js|light.js-react)/.*spec\\.(ts|tsx)$'
testRegex: `packages/(abi|electron|light\.js|light\.js-react)/.*spec\\.(ts|tsx)$`
};
12 changes: 12 additions & 0 deletions packages/light.js-react/src/ambient.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
// SPDX-License-Identifier: MIT

declare module '@parity/abi';
declare module '@parity/abi/lib/spec/function';
declare module '@parity/api';
declare module '@parity/api/lib/util';
declare module '@parity/api/lib/util/encode';
declare module '@parity/api/lib/util/types';
declare module 'json-prune';
14 changes: 9 additions & 5 deletions packages/light.js/docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@
- [rpc/other/makeContract](api/modules/_rpc_other_makecontract_.md)
- [rpc/other/post](api/modules/_rpc_other_post_.md)
- [rpc/parity/parity](api/modules/_rpc_parity_parity_.md)
- Types
- [FrequencyObservable](api/interfaces/_types_.frequencyobservable.md)
- [Metadata](api/interfaces/_types_.metadata.md)
- [RpcObservable](api/interfaces/_types_.rpcobservable.md)
- [TxStatus](api/interfaces/_types_.txstatus.md)
* [Types](modules/_types_.md)
- [FrequencyObservable](interfaces/_types_.frequencyobservable.md)
- [FrequencyObservableMetadata](interfaces/_types_.frequencyobservablemetadata.md)
- [FrequencyObservableOptions](interfaces/_types_.frequencyobservableoptions.md)
- [MakeContract](interfaces/_types_.makecontract.md)
- [Metadata](interfaces/_types_.metadata.md)
- [RpcObservable](interfaces/_types_.rpcobservable.md)
- [RpcObservableOptions](interfaces/_types_.rpcobservableoptions.md)
- [TxStatus](interfaces/_types_.txstatus.md)
- utils
- [utils/isLoading](api/modules/_utils_isloading_.md)
- [utils/operators/withoutLoading](api/modules/_utils_operators_withoutloading_.md)
18 changes: 12 additions & 6 deletions packages/light.js/docs/api/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
* ["api"](modules/_api_.md)
* ["frequency/accounts"](modules/_frequency_accounts_.md)
* ["frequency/blocks"](modules/_frequency_blocks_.md)
* ["frequency/frequency"](modules/_frequency_frequency_.md)
* ["frequency/health"](modules/_frequency_health_.md)
* ["frequency/other"](modules/_frequency_other_.md)
* ["frequency/time"](modules/_frequency_time_.md)
* ["frequency/utils/createOnFromPubsub"](modules/_frequency_utils_createonfrompubsub_.md)
* ["rpc/eth/eth"](modules/_rpc_eth_eth_.md)
* ["rpc/net/net"](modules/_rpc_net_net_.md)
* ["frequency/utils/createPubsubObservable"](modules/_frequency_utils_createpubsubobservable_.md)
* ["rpc/eth"](modules/_rpc_eth_.md)
* ["rpc/net"](modules/_rpc_net_.md)
* ["rpc/other/makeContract"](modules/_rpc_other_makecontract_.md)
* ["rpc/other/post"](modules/_rpc_other_post_.md)
* ["rpc/parity/parity"](modules/_rpc_parity_parity_.md)
* ["rpc/parity"](modules/_rpc_parity_.md)
* ["rpc/rpc"](modules/_rpc_rpc_.md)
* ["rpc/utils/createRpc"](modules/_rpc_utils_createrpc_.md)
* ["types"](modules/_types_.md)
* [FrequencyObservable](interfaces/_types_.frequencyobservable.md)
* [FrequencyObservableMetadata](interfaces/_types_.frequencyobservablemetadata.md)
* [FrequencyObservableOptions](interfaces/_types_.frequencyobservableoptions.md)
* [MakeContract](interfaces/_types_.makecontract.md)
* [Metadata](interfaces/_types_.metadata.md)
* [RpcObservable](interfaces/_types_.rpcobservable.md)
* [RpcObservableOptions](interfaces/_types_.rpcobservableoptions.md)
* [TxStatus](interfaces/_types_.txstatus.md)
* ["utils/isLoading"](modules/_utils_isloading_.md)
* ["utils/isObservable"](modules/_utils_isobservable_.md)
* ["utils/memoizeAll"](modules/_utils_memoizeall_.md)
* ["utils/operators/distinctReplayRefCount"](modules/_utils_operators_distinctreplayrefcount_.md)
* ["utils/operators/distinctValues"](modules/_utils_operators_distinctvalues_.md)
* ["utils/operators/switchMapPromise"](modules/_utils_operators_switchmappromise_.md)
* ["utils/operators/withoutLoading"](modules/_utils_operators_withoutloading_.md)
* ["utils/testHelpers/mockApi"](modules/_utils_testhelpers_mockapi_.md)
* ["utils/testHelpers/mockRpc"](modules/_utils_testhelpers_mockrpc_.md)
* ["utils/testHelpers/testFrequency"](modules/_utils_testhelpers_testfrequency_.md)
* ["utils/testHelpers/testRpc"](modules/_utils_testhelpers_testrpc_.md)
Loading