@launchdarkly/js-server-sdk-common-edge
Version:
LaunchDarkly Server SDK for JavaScript - common Edge SDK code
13 lines • 527 B
TypeScript
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