UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

8 lines 282 B
import crypto from 'crypto'; export const constantTimeCompare = (a, b) => { if (!a || !b || a.length !== b.length) { return false; } return crypto.timingSafeEqual(Buffer.from(a, 'utf8'), Buffer.from(b, 'utf8')); }; //# sourceMappingURL=constantTimeCompare.js.map