@practicaloptimism/uniplexer
Version:
A multiplexer for 3rd party service providers and application protocols
16 lines (10 loc) • 475 B
text/typescript
import { multiplexProviderFunction } from '../provider/multiplex-provider-function'
import { Sha1Hash } from '../../data-structures/hash-function'
import { PROVIDER_TYPE_HASH_FUNCTION } from '../../constants/provider'
const sha1Hash: Sha1Hash = sha1HashFunction
async function sha1HashFunction (_object: any, extract?: any): Promise<string[]> {
return multiplexProviderFunction(PROVIDER_TYPE_HASH_FUNCTION, 'sha1Hash', [...arguments], extract)
}
export {
sha1Hash
}