hibp 16.0.0 → 16.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/browser/hibp.module.js +2 -2
- package/dist/esm/api/base-fetch.d.ts +8 -6
- package/dist/esm/api/base-fetch.js +5 -11
- package/dist/esm/api/base-fetch.js.map +1 -1
- package/dist/esm/api/haveibeenpwned/fetch-from-api.js +28 -57
- package/dist/esm/api/haveibeenpwned/fetch-from-api.js.map +1 -1
- package/dist/esm/api/haveibeenpwned/package-info.d.ts +1 -1
- package/dist/esm/api/haveibeenpwned/package-info.js +1 -1
- package/dist/esm/api/haveibeenpwned/post-to-api.js +1 -9
- package/dist/esm/api/haveibeenpwned/post-to-api.js.map +1 -1
- package/dist/esm/api/haveibeenpwned/responses.d.ts +0 -10
- package/dist/esm/api/haveibeenpwned/responses.js +3 -35
- package/dist/esm/api/haveibeenpwned/responses.js.map +1 -1
- package/dist/esm/api/haveibeenpwned/types.js +0 -3
- package/dist/esm/api/haveibeenpwned/types.js.map +1 -1
- package/dist/esm/api/pwnedpasswords/fetch-from-api.js +1 -24
- package/dist/esm/api/pwnedpasswords/fetch-from-api.js.map +1 -1
- package/dist/esm/api/pwnedpasswords/responses.d.ts +0 -6
- package/dist/esm/api/pwnedpasswords/responses.js +0 -6
- package/dist/esm/api/pwnedpasswords/responses.js.map +1 -1
- package/dist/esm/breach.d.ts +4 -4
- package/dist/esm/breach.js.map +1 -1
- package/dist/esm/breached-account-range.d.ts +5 -5
- package/dist/esm/breached-account-range.js.map +1 -1
- package/dist/esm/breached-account.d.ts +9 -9
- package/dist/esm/breached-account.js.map +1 -1
- package/dist/esm/breached-domain.d.ts +5 -5
- package/dist/esm/breached-domain.js.map +1 -1
- package/dist/esm/breaches.d.ts +6 -6
- package/dist/esm/breaches.js +2 -2
- package/dist/esm/breaches.js.map +1 -1
- package/dist/esm/data-class-descriptions.d.ts +4 -4
- package/dist/esm/data-class-descriptions.js.map +1 -1
- package/dist/esm/data-classes.d.ts +4 -4
- package/dist/esm/data-classes.js.map +1 -1
- package/dist/esm/generate-dns-token.d.ts +5 -5
- package/dist/esm/generate-dns-token.js +2 -1
- package/dist/esm/generate-dns-token.js.map +1 -1
- package/dist/esm/hibp.js +0 -11
- package/dist/esm/hibp.js.map +1 -1
- package/dist/esm/latest-breach.d.ts +4 -4
- package/dist/esm/latest-breach.js.map +1 -1
- package/dist/esm/paste-account.d.ts +5 -5
- package/dist/esm/paste-account.js.map +1 -1
- package/dist/esm/pwned-password-range.d.ts +6 -6
- package/dist/esm/pwned-password-range.js +0 -2
- package/dist/esm/pwned-password-range.js.map +1 -1
- package/dist/esm/pwned-password.d.ts +5 -5
- package/dist/esm/pwned-password.js +8 -3
- package/dist/esm/pwned-password.js.map +1 -1
- package/dist/esm/search.d.ts +8 -8
- package/dist/esm/search.js +2 -2
- package/dist/esm/search.js.map +1 -1
- package/dist/esm/send-email.d.ts +5 -5
- package/dist/esm/stealer-logs-by-email-domain.d.ts +5 -5
- package/dist/esm/stealer-logs-by-email-domain.js.map +1 -1
- package/dist/esm/stealer-logs-by-email.d.ts +5 -5
- package/dist/esm/stealer-logs-by-email.js.map +1 -1
- package/dist/esm/stealer-logs-by-website-domain.d.ts +5 -5
- package/dist/esm/stealer-logs-by-website-domain.js.map +1 -1
- package/dist/esm/subscribed-domains.d.ts +5 -5
- package/dist/esm/subscribed-domains.js +2 -2
- package/dist/esm/subscribed-domains.js.map +1 -1
- package/dist/esm/subscription-status.d.ts +5 -5
- package/dist/esm/subscription-status.js +2 -2
- package/dist/esm/subscription-status.js.map +1 -1
- package/dist/esm/verify-dns-token.d.ts +5 -5
- package/package.json +13 -13
|
@@ -55,23 +55,23 @@ export declare function subscribedDomains(options?: {
|
|
|
55
55
|
/**
|
|
56
56
|
* an API key from https://haveibeenpwned.com/API/Key (default: undefined)
|
|
57
57
|
*/
|
|
58
|
-
apiKey?: string;
|
|
58
|
+
apiKey?: string | undefined;
|
|
59
59
|
/**
|
|
60
60
|
* a custom base URL for the haveibeenpwned.com API endpoints (default:
|
|
61
61
|
* `https://haveibeenpwned.com/api/v3`)
|
|
62
62
|
*/
|
|
63
|
-
baseUrl?: string;
|
|
63
|
+
baseUrl?: string | undefined;
|
|
64
64
|
/**
|
|
65
65
|
* timeout for the request in milliseconds (default: none)
|
|
66
66
|
*/
|
|
67
|
-
timeoutMs?: number;
|
|
67
|
+
timeoutMs?: number | undefined;
|
|
68
68
|
/**
|
|
69
69
|
* an AbortSignal to cancel the request (default: none)
|
|
70
70
|
*/
|
|
71
|
-
signal?: AbortSignal;
|
|
71
|
+
signal?: AbortSignal | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* a custom string to send as the User-Agent field in the request headers
|
|
74
74
|
* (default: `hibp <version>`)
|
|
75
75
|
*/
|
|
76
|
-
userAgent?: string;
|
|
76
|
+
userAgent?: string | undefined;
|
|
77
77
|
}): Promise<SubscribedDomain[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fetchRequiredFromApi } from "./api/haveibeenpwned/fetch-from-api.js";
|
|
2
2
|
/**
|
|
3
3
|
* An object representing a subscribed domain.
|
|
4
4
|
*
|
|
@@ -54,7 +54,7 @@ import { fetchFromApi } from "./api/haveibeenpwned/fetch-from-api.js";
|
|
|
54
54
|
export function subscribedDomains(options = {}) {
|
|
55
55
|
const { apiKey, baseUrl, timeoutMs, signal, userAgent } = options;
|
|
56
56
|
const endpoint = "/subscribeddomains";
|
|
57
|
-
return
|
|
57
|
+
return fetchRequiredFromApi(endpoint, {
|
|
58
58
|
apiKey,
|
|
59
59
|
baseUrl,
|
|
60
60
|
timeoutMs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribed-domains.js","sourceRoot":"","sources":["../../src/subscribed-domains.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"subscribed-domains.js","sourceRoot":"","sources":["../../src/subscribed-domains.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E;;;;;;;;;GASG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,UAAU,iBAAiB,CAC/B,OAAO,GAuBH,EAAE;IAEN,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAClE,MAAM,QAAQ,GAAG,oBAAoB,CAAC;IAEtC,OAAO,oBAAoB,CAAqB,QAAQ,EAAE;QACxD,MAAM;QACN,OAAO;QACP,SAAS;QACT,MAAM;QACN,SAAS;KACV,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -58,23 +58,23 @@ export declare function subscriptionStatus(options?: {
|
|
|
58
58
|
/**
|
|
59
59
|
* an API key from https://haveibeenpwned.com/API/Key (default: undefined)
|
|
60
60
|
*/
|
|
61
|
-
apiKey?: string;
|
|
61
|
+
apiKey?: string | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* a custom base URL for the haveibeenpwned.com API endpoints (default:
|
|
64
64
|
* `https://haveibeenpwned.com/api/v3`)
|
|
65
65
|
*/
|
|
66
|
-
baseUrl?: string;
|
|
66
|
+
baseUrl?: string | undefined;
|
|
67
67
|
/**
|
|
68
68
|
* timeout for the request in milliseconds (default: none)
|
|
69
69
|
*/
|
|
70
|
-
timeoutMs?: number;
|
|
70
|
+
timeoutMs?: number | undefined;
|
|
71
71
|
/**
|
|
72
72
|
* an AbortSignal to cancel the request (default: none)
|
|
73
73
|
*/
|
|
74
|
-
signal?: AbortSignal;
|
|
74
|
+
signal?: AbortSignal | undefined;
|
|
75
75
|
/**
|
|
76
76
|
* a custom string to send as the User-Agent field in the request headers
|
|
77
77
|
* (default: `hibp <version>`)
|
|
78
78
|
*/
|
|
79
|
-
userAgent?: string;
|
|
79
|
+
userAgent?: string | undefined;
|
|
80
80
|
}): Promise<SubscriptionStatus>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fetchRequiredFromApi } from "./api/haveibeenpwned/fetch-from-api.js";
|
|
2
2
|
/**
|
|
3
3
|
* An object representing the status of your HIBP subscription.
|
|
4
4
|
*
|
|
@@ -56,6 +56,6 @@ import { fetchFromApi } from "./api/haveibeenpwned/fetch-from-api.js";
|
|
|
56
56
|
*/
|
|
57
57
|
export async function subscriptionStatus(options = {}) {
|
|
58
58
|
const endpoint = "/subscription/status";
|
|
59
|
-
return
|
|
59
|
+
return fetchRequiredFromApi(endpoint, options);
|
|
60
60
|
}
|
|
61
61
|
//# sourceMappingURL=subscription-status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-status.js","sourceRoot":"","sources":["../../src/subscription-status.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"subscription-status.js","sourceRoot":"","sources":["../../src/subscription-status.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,OAAO,GAuBH,EAAE;IAEN,MAAM,QAAQ,GAAG,sBAAsB,CAAC;IAExC,OAAO,oBAAoB,CAAqB,QAAQ,EAAE,OAAO,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -38,23 +38,23 @@ export declare function verifyDnsToken(domain: string, options?: {
|
|
|
38
38
|
/**
|
|
39
39
|
* an API key from https://haveibeenpwned.com/API/Key (default: undefined)
|
|
40
40
|
*/
|
|
41
|
-
apiKey?: string;
|
|
41
|
+
apiKey?: string | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* a custom base URL for the haveibeenpwned.com API endpoints (default:
|
|
44
44
|
* `https://haveibeenpwned.com/api/v3`)
|
|
45
45
|
*/
|
|
46
|
-
baseUrl?: string;
|
|
46
|
+
baseUrl?: string | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* timeout for the request in milliseconds (default: none)
|
|
49
49
|
*/
|
|
50
|
-
timeoutMs?: number;
|
|
50
|
+
timeoutMs?: number | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* an AbortSignal to cancel the request (default: none)
|
|
53
53
|
*/
|
|
54
|
-
signal?: AbortSignal;
|
|
54
|
+
signal?: AbortSignal | undefined;
|
|
55
55
|
/**
|
|
56
56
|
* a custom string to send as the User-Agent field in the request headers
|
|
57
57
|
* (default: `hibp <version>`)
|
|
58
58
|
*/
|
|
59
|
-
userAgent?: string;
|
|
59
|
+
userAgent?: string | undefined;
|
|
60
60
|
}): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hibp",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "An unofficial TypeScript SDK for the 'Have I been pwned?' service.",
|
|
6
6
|
"keywords": [
|
|
@@ -50,32 +50,32 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@arethetypeswrong/cli": "0.18.5",
|
|
53
|
-
"@babel/core": "8.
|
|
53
|
+
"@babel/core": "8.1.2",
|
|
54
54
|
"@babel/preset-env": "8.0.7",
|
|
55
55
|
"@babel/preset-typescript": "8.0.7",
|
|
56
56
|
"@changesets/changelog-github": "1.0.1",
|
|
57
57
|
"@changesets/cli": "3.0.3",
|
|
58
|
-
"@playwright/test": "1.
|
|
58
|
+
"@playwright/test": "1.65.1",
|
|
59
59
|
"@types/common-tags": "1.8.4",
|
|
60
60
|
"@types/node": "22.20.5",
|
|
61
|
-
"@vitest/coverage-v8": "5.
|
|
62
|
-
"@wkovacs64/oxlint-config": "0.
|
|
63
|
-
"bundlewatch": "1.
|
|
61
|
+
"@vitest/coverage-v8": "5.1.1",
|
|
62
|
+
"@wkovacs64/oxlint-config": "0.5.0",
|
|
63
|
+
"bundlewatch": "1.2.0",
|
|
64
64
|
"common-tags": "1.8.2",
|
|
65
65
|
"cross-env": "10.1.0",
|
|
66
66
|
"esbuild": "0.28.2",
|
|
67
67
|
"jsdoc-babel": "0.5.0",
|
|
68
68
|
"jsdoc-to-markdown": "9.1.3",
|
|
69
|
-
"msw": "3.0.
|
|
69
|
+
"msw": "3.0.7",
|
|
70
70
|
"npm-run-all2": "9.0.4",
|
|
71
|
-
"oxfmt": "0.
|
|
72
|
-
"oxlint": "1.
|
|
73
|
-
"oxlint-tsgolint": "7.0.
|
|
71
|
+
"oxfmt": "0.79.0",
|
|
72
|
+
"oxlint": "1.94.0",
|
|
73
|
+
"oxlint-tsgolint": "7.0.2007",
|
|
74
74
|
"pathe": "2.0.3",
|
|
75
|
-
"rimraf": "6.1.
|
|
76
|
-
"serve": "14.2.
|
|
75
|
+
"rimraf": "6.1.4",
|
|
76
|
+
"serve": "14.2.8",
|
|
77
77
|
"typescript": "7.0.2",
|
|
78
|
-
"vitest": "5.
|
|
78
|
+
"vitest": "5.1.1"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">= 22.12.0"
|