Skip to content

Commit 911b86d

Browse files
authored
Introduce detectOther (#4403)
1 parent 29555e0 commit 911b86d

File tree

14 files changed

+88
-3
lines changed

14 files changed

+88
-3
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Copyright 2017-2021 @polkadot/api-augment authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
5+
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
6+
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
7+
8+
export default [baseInfo, typesInfo, codecInfo];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2017-2021 @polkadot/api-contract authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
5+
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
6+
7+
export default [rpcInfo, typesInfo];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2017-2021 @polkadot/api-contract authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { packageInfo as apiInfo } from '@polkadot/api/packageInfo';
5+
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
6+
7+
export default [apiInfo, typesInfo];

packages/api/src/detectOther.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright 2017-2021 @polkadot/api authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { packageInfo as deriveInfo } from '@polkadot/api-derive/packageInfo';
5+
import { packageInfo as coreInfo } from '@polkadot/rpc-core/packageInfo';
6+
import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo';
7+
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
8+
import { packageInfo as knownInfo } from '@polkadot/types-known/packageInfo';
9+
10+
export default [deriveInfo, coreInfo, providerInfo, typesInfo, knownInfo];
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright 2017-2021 @polkadot/rpc-augment authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
5+
6+
export default [typesInfo];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2017-2021 @polkadot/rpc-core authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo';
5+
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
6+
7+
export default [providerInfo, typesInfo];
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright 2017-2021 @polkadot/rpc-provider authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
5+
6+
export default [typesInfo];
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Copyright 2017-2021 @polkadot/typegen authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { packageInfo as apiInfo } from '@polkadot/api/packageInfo';
5+
import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo';
6+
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
7+
8+
export default [apiInfo, providerInfo, typesInfo];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2017-2021 @polkadot/types-augment authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
5+
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
6+
7+
export default [typesInfo, codecInfo];
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright 2017-2021 @polkadot/types-create authors & contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
5+
6+
export default [codecInfo];

0 commit comments

Comments
 (0)