UNPKG

@launchdarkly/js-server-sdk-common-edge

Version:
13 lines 527 B
import type { Crypto, Hasher, Hmac } from '@launchdarkly/js-server-sdk-common'; import { SupportedHashAlgorithm } from './types'; /** * Uses crypto-js as substitute to node:crypto because the latter * is not yet supported in some runtimes. * https://cryptojs.gitbook.io/docs/ */ export default class EdgeCrypto implements Crypto { createHash(algorithm: SupportedHashAlgorithm): Hasher; createHmac(algorithm: SupportedHashAlgorithm, key: string): Hmac; randomUUID(): string; } //# sourceMappingURL=index.d.ts.map