Introduce detectOther (#262)

This commit is contained in:
Jaco
2021-12-31 16:23:05 +01:00
committed by GitHub
parent 3810eff007
commit 3454f0685c
2 changed files with 9 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
// Copyright 2017-2021 @polkadot/wasm-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { packageInfo as asmInfo } from '@polkadot/wasm-crypto-asmjs/packageInfo';
import { packageInfo as wasmInfo } from '@polkadot/wasm-crypto-wasm/packageInfo';
export default [asmInfo, wasmInfo];

View File

@@ -2,10 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
import { detectPackage } from '@polkadot/util';
import { packageInfo as asmInfo } from '@polkadot/wasm-crypto-asmjs/packageInfo';
import { packageInfo as wasmInfo } from '@polkadot/wasm-crypto-wasm/packageInfo';
import __dirname from './cjs/dirname';
import others from './detectOther';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [asmInfo, wasmInfo]);
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, others);