Introduce detectOther (#1345)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// Copyright 2017-2021 @polkadot/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { packageInfo as netInfo } from '@polkadot/networks/packageInfo';
|
||||
import { packageInfo as utilInfo } from '@polkadot/util/packageInfo';
|
||||
import { packageInfo as randomInfo } from '@polkadot/x-randomvalues';
|
||||
|
||||
export default [netInfo, utilInfo, randomInfo];
|
||||
@@ -1,11 +1,10 @@
|
||||
// Copyright 2017-2021 @polkadot/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { packageInfo as netInfo } from '@polkadot/networks/packageInfo';
|
||||
import { detectPackage, packageInfo as utilInfo } from '@polkadot/util';
|
||||
import { packageInfo as randomInfo } from '@polkadot/x-randomvalues';
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import __dirname from './cjs/dirname';
|
||||
import others from './detectOther';
|
||||
import { packageInfo } from './packageInfo';
|
||||
|
||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [netInfo, utilInfo, randomInfo]);
|
||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, others);
|
||||
|
||||
Reference in New Issue
Block a user