UNPKG

@volverjs/data

Version:

Repository pattern implementation with a tiny HttpClient based on Fetch API.

20 lines (19 loc) 803 B
var m = Object.defineProperty; var M = (e, t, a) => t in e ? m(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a; var u = (e, t, a) => M(e, typeof t != "symbol" ? t + "" : t, a); class c { } u(c, "cyrb53", (t, a = 0) => { let l = 3735928559 ^ a, h = 1103547991 ^ a; for (let i = 0, r; i < t.length; i++) r = t.charCodeAt(i), l = Math.imul(l ^ r, 2654435761), h = Math.imul(h ^ r, 1597334677); return l = Math.imul(l ^ l >>> 16, 2246822507) ^ Math.imul(h ^ h >>> 13, 3266489909), h = Math.imul(h ^ h >>> 16, 2246822507) ^ Math.imul(l ^ l >>> 13, 3266489909), 4294967296 * (2097151 & h) + (l >>> 0); }), u(c, "djb2", (t, a = 5381) => { let l = a; for (let h = 0; h < t.length; h++) l = l * 33 ^ t.charCodeAt(h); return l >>> 0; }); export { c as Hash };