Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Merge d2bb3c7 into a68795b
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Sep 17, 2018
2 parents a68795b + d2bb3c7 commit ab2d5a1
Show file tree
Hide file tree
Showing 98 changed files with 1,625 additions and 1,734 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
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
@@ -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)$`
};
11 changes: 11 additions & 0 deletions packages/light.js-react/src/ambient.d.ts
@@ -0,0 +1,11 @@
// 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';
13 changes: 8 additions & 5 deletions packages/light.js/docs/SUMMARY.md
Expand Up @@ -30,11 +30,14 @@
- [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)
- [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
@@ -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)
* [MakeContract](interfaces/_rpc_other_makecontract_.makecontract.md)
* ["rpc/other/post"](modules/_rpc_other_post_.md)
* ["rpc/parity/parity"](modules/_rpc_parity_parity_.md)
* [PostOptions](interfaces/_rpc_other_post_.postoptions.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)
* [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/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)
@@ -0,0 +1,40 @@


# Hierarchy

**MakeContract**

# Indexable

\[index: `string`\]:  `any` | `string` | `function`

# Properties

<a id="abi"></a>

## abi

**● abi**: *`any`*

*Defined in [rpc/other/makeContract.ts:18](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/rpc/other/makeContract.ts#L18)*

___
<a id="address"></a>

## address

**● address**: *`string`*

*Defined in [rpc/other/makeContract.ts:19](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/rpc/other/makeContract.ts#L19)*

___
<a id="contractobject"></a>

## contractObject

**● contractObject**: *`any`*

*Defined in [rpc/other/makeContract.ts:20](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/rpc/other/makeContract.ts#L20)*

___

@@ -0,0 +1,31 @@


# Hierarchy

[RpcObservableOptions](_types_.rpcobservableoptions.md)

**↳ PostOptions**

# Properties

<a id="estimate"></a>

## `<Optional>` estimate

**● estimate**: *`boolean`*

*Defined in [rpc/other/post.ts:13](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/rpc/other/post.ts#L13)*

___
<a id="provider"></a>

## `<Optional>` provider

**● provider**: *`any`*

*Inherited from [RpcObservableOptions](_types_.rpcobservableoptions.md).[provider](_types_.rpcobservableoptions.md#provider)*

*Defined in [types.ts:72](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/types.ts#L72)*

___

18 changes: 18 additions & 0 deletions packages/light.js/docs/api/interfaces/_types_.__global.window.md
@@ -0,0 +1,18 @@


# Hierarchy

**Window**

# Properties

<a id="parity"></a>

## parity

**● parity**: *`any`*

*Defined in [types.ts:14](https://github.com/paritytech/js-libs/blob/3a885fe/packages/light.js/src/types.ts#L14)*

___

0 comments on commit ab2d5a1

Please sign in to comment.