UNPKG

gqty

Version:

The No-GraphQL Client for TypeScript

9 lines (6 loc) 217 B
import memoize from 'just-memoize'; import { sha256, objectHash } from 'ohash'; const hash = memoize( (...args) => sha256(objectHash(args, { unorderedObjects: false })).replace(/^(\d)/, "a$1") ); export { hash };