@better-auth/infra 0.3.0 → 0.3.2
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 +18 -1
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +2 -2
- package/dist/{constants-vBiGTmGf.mjs → constants-9UwOSy9A.mjs} +1 -1
- package/dist/{crypto-DjtrPUlP.mjs → crypto-B1NYwfFV.mjs} +1 -1
- package/dist/{dash-client-CZzJyRrV.d.mts → dash-client-DXuu2ctl.d.mts} +7 -4
- package/dist/email.mjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/native.d.mts +1 -1
- package/dist/native.mjs +2 -2
- package/dist/{pow-retry-24lSgXId.mjs → pow-retry-BfzBUq0O.mjs} +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ All notable changes to `@better-auth/infra` are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.2] - 2026-06-22
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **`dashClient` typing** — Restores correct `createAuthClient` inference when composing `dashClient()` with other client plugins.
|
|
13
|
+
|
|
14
|
+
## [0.3.1] - 2026-06-22
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- **`dashClient` typing** — The client plugin now declares an explicit `BetterAuthClientPlugin` uses the updated signature, so `createAuthClient` inference works without casts when composing with other plugins.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **Package metadata** — Repository and issue tracker URLs now point to `better-auth/infrastructure`.
|
|
23
|
+
|
|
8
24
|
## [0.3.0] - 2026-06-19
|
|
9
25
|
|
|
10
26
|
### Added
|
|
@@ -75,6 +91,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
75
91
|
|
|
76
92
|
- Fixed impossible travel security challenges.
|
|
77
93
|
|
|
78
|
-
[0.3.
|
|
94
|
+
[0.3.1]: https://github.com/better-auth/infrastructure/compare/infra@v0.3.0...infra@v0.3.1
|
|
95
|
+
[0.3.0]: https://github.com/better-auth/infrastructure/compare/infra@v0.2.14...infra@v0.3.0
|
|
79
96
|
[0.2.14]: https://github.com/better-auth/better-auth-infra/compare/@better-auth/infra@0.2.13...@better-auth/infra@0.2.14
|
|
80
97
|
[0.2.13]: https://github.com/better-auth/better-auth-infra/compare/@better-auth/infra@0.2.12...@better-auth/infra@0.2.13
|
package/dist/client.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DashGetAuditLogsInput, i as DashGetAllAuditLogsInput, n as DashAuditLogsResponse, o as dashClient, r as DashClientOptions, t as DashAuditLog } from "./dash-client-
|
|
1
|
+
import { a as DashGetAuditLogsInput, i as DashGetAllAuditLogsInput, n as DashAuditLogsResponse, o as dashClient, r as DashClientOptions, t as DashAuditLog } from "./dash-client-DXuu2ctl.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/sentinel/client.d.ts
|
|
4
4
|
interface SentinelClientOptions {
|
package/dist/client.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as hash, o as createKV } from "./crypto-
|
|
2
|
-
import { a as resolveSentinelClientIdentifyUrl, c as dashClient, i as solvePoWChallenge, n as decodePoWChallenge, o as generateRequestId, r as encodePoWSolution, s as identify, t as createPowRetryTimeout } from "./pow-retry-
|
|
1
|
+
import { n as hash, o as createKV } from "./crypto-B1NYwfFV.mjs";
|
|
2
|
+
import { a as resolveSentinelClientIdentifyUrl, c as dashClient, i as solvePoWChallenge, n as decodePoWChallenge, o as generateRequestId, r as encodePoWSolution, s as identify, t as createPowRetryTimeout } from "./pow-retry-BfzBUq0O.mjs";
|
|
3
3
|
import { env } from "@better-auth/core/env";
|
|
4
4
|
//#region src/sentinel/fingerprint.ts
|
|
5
5
|
function murmurhash3(str, seed = 0) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { BetterAuthClientOptions, ClientStore } from "better-auth";
|
|
2
|
+
import { BetterFetch } from "@better-fetch/fetch";
|
|
3
|
+
|
|
1
4
|
//#region src/dash-client.d.ts
|
|
2
5
|
interface DashAuditLog {
|
|
3
6
|
eventType: string;
|
|
@@ -55,8 +58,8 @@ interface DashClientOptions {
|
|
|
55
58
|
}) => string | undefined;
|
|
56
59
|
}
|
|
57
60
|
declare const dashClient: (options?: DashClientOptions) => {
|
|
58
|
-
id:
|
|
59
|
-
getActions: ($fetch:
|
|
61
|
+
id: string;
|
|
62
|
+
getActions: ($fetch: BetterFetch, _store: ClientStore, _options: BetterAuthClientOptions | undefined) => {
|
|
60
63
|
dash: {
|
|
61
64
|
getAuditLogs: (input?: DashGetAuditLogsInput) => Promise<{
|
|
62
65
|
data: null;
|
|
@@ -83,8 +86,8 @@ declare const dashClient: (options?: DashClientOptions) => {
|
|
|
83
86
|
};
|
|
84
87
|
};
|
|
85
88
|
pathMethods: {
|
|
86
|
-
"/events/audit-logs": "GET";
|
|
87
|
-
"/events/all-audit-logs": "GET";
|
|
89
|
+
readonly "/events/audit-logs": "GET";
|
|
90
|
+
readonly "/events/all-audit-logs": "GET";
|
|
88
91
|
};
|
|
89
92
|
};
|
|
90
93
|
//#endregion
|
package/dist/email.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as INFRA_USER_AGENT, n as INFRA_API_URL } from "./constants-
|
|
1
|
+
import { i as INFRA_USER_AGENT, n as INFRA_API_URL } from "./constants-9UwOSy9A.mjs";
|
|
2
2
|
import { logger } from "better-auth";
|
|
3
3
|
import { env } from "@better-auth/core/env";
|
|
4
4
|
import { createFetch } from "@better-fetch/fetch";
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as INFRA_USER_AGENT, n as INFRA_API_URL, o as PLUGIN_VERSION, r as INFRA_KV_URL } from "./constants-
|
|
2
|
-
import { a as createAPI, o as createKV, r as hmacSha256Hex } from "./crypto-
|
|
1
|
+
import { i as INFRA_USER_AGENT, n as INFRA_API_URL, o as PLUGIN_VERSION, r as INFRA_KV_URL } from "./constants-9UwOSy9A.mjs";
|
|
2
|
+
import { a as createAPI, o as createKV, r as hmacSha256Hex } from "./crypto-B1NYwfFV.mjs";
|
|
3
3
|
import { EMAIL_TEMPLATES, createEmailSender, sendBulkEmails, sendEmail } from "./email.mjs";
|
|
4
4
|
import { getCurrentAuthContext } from "@better-auth/core/context";
|
|
5
5
|
import { APIError, generateId, getAuthTables, logger } from "better-auth";
|
package/dist/native.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DashGetAuditLogsInput, i as DashGetAllAuditLogsInput, n as DashAuditLogsResponse, o as dashClient, r as DashClientOptions, t as DashAuditLog } from "./dash-client-
|
|
1
|
+
import { a as DashGetAuditLogsInput, i as DashGetAllAuditLogsInput, n as DashAuditLogsResponse, o as dashClient, r as DashClientOptions, t as DashAuditLog } from "./dash-client-DXuu2ctl.mjs";
|
|
2
2
|
import { BetterAuthClientPlugin } from "better-auth";
|
|
3
3
|
|
|
4
4
|
//#region src/sentinel/native/client.d.ts
|
package/dist/native.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as createKV, t as bytesToHex } from "./crypto-
|
|
2
|
-
import { a as resolveSentinelClientIdentifyUrl, c as dashClient, i as solvePoWChallenge, n as decodePoWChallenge, r as encodePoWSolution, s as identify, t as createPowRetryTimeout } from "./pow-retry-
|
|
1
|
+
import { o as createKV, t as bytesToHex } from "./crypto-B1NYwfFV.mjs";
|
|
2
|
+
import { a as resolveSentinelClientIdentifyUrl, c as dashClient, i as solvePoWChallenge, n as decodePoWChallenge, r as encodePoWSolution, s as identify, t as createPowRetryTimeout } from "./pow-retry-BfzBUq0O.mjs";
|
|
3
3
|
import { env } from "@better-auth/core/env";
|
|
4
4
|
import { Dimensions, InteractionManager, PixelRatio, Platform } from "react-native";
|
|
5
5
|
//#region src/sentinel/native/components.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as randomBytes, n as hash, t as bytesToHex } from "./crypto-
|
|
1
|
+
import { i as randomBytes, n as hash, t as bytesToHex } from "./crypto-B1NYwfFV.mjs";
|
|
2
2
|
//#region src/dash-client.ts
|
|
3
3
|
function resolveDashUserId(input, options) {
|
|
4
4
|
return input.userId || options?.resolveUserId?.({
|
|
@@ -10,7 +10,7 @@ function resolveDashUserId(input, options) {
|
|
|
10
10
|
const dashClient = (options) => {
|
|
11
11
|
return {
|
|
12
12
|
id: "dash",
|
|
13
|
-
getActions: ($fetch) => ({ dash: {
|
|
13
|
+
getActions: ($fetch, _store, _options) => ({ dash: {
|
|
14
14
|
getAuditLogs: async (input = {}) => {
|
|
15
15
|
const userId = resolveDashUserId(input, options);
|
|
16
16
|
return $fetch("/events/audit-logs", {
|