UNPKG

hibp

Version:

An unofficial TypeScript SDK for the 'Have I been pwned?' service.

25 lines (24 loc) 1.15 kB
import { RateLimitError } from './api/haveibeenpwned/fetch-from-api.js'; import { breach } from './breach.js'; import { breachedAccount } from './breached-account.js'; import { breaches } from './breaches.js'; import { dataClasses } from './data-classes.js'; import { pasteAccount } from './paste-account.js'; import { pwnedPassword } from './pwned-password.js'; import { pwnedPasswordRange } from './pwned-password-range.js'; import { search } from './search.js'; import { subscriptionStatus } from './subscription-status.js'; export type * from './api/haveibeenpwned/types.js'; export { breach, breachedAccount, breaches, dataClasses, pasteAccount, pwnedPassword, pwnedPasswordRange, search, subscriptionStatus, RateLimitError, }; export interface HIBP { breach: typeof breach; breachedAccount: typeof breachedAccount; breaches: typeof breaches; dataClasses: typeof dataClasses; pasteAccount: typeof pasteAccount; pwnedPassword: typeof pwnedPassword; pwnedPasswordRange: typeof pwnedPasswordRange; search: typeof search; subscriptionStatus: typeof subscriptionStatus; RateLimitError: typeof RateLimitError; }