@better-auth/core 1.3.29 → 1.3.31
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @better-auth/core@1.3.
|
|
2
|
+
> @better-auth/core@1.3.31 build /home/runner/work/better-auth/better-auth/packages/core
|
|
3
3
|
> unbuild --clean
|
|
4
4
|
|
|
5
5
|
[info] Building core
|
|
@@ -31,7 +31,7 @@ Either change the import in "src/types/context.ts" to point directly to the expo
|
|
|
31
31
|
[success] Build succeeded for core
|
|
32
32
|
[log] dist/index.cjs (total size: 15 B, chunk size: 15 B)
|
|
33
33
|
|
|
34
|
-
[log] dist/async_hooks/index.cjs (total size:
|
|
34
|
+
[log] dist/async_hooks/index.cjs (total size: 893 B, chunk size: 893 B, exports: getAsyncLocalStorage)
|
|
35
35
|
|
|
36
36
|
[log] dist/middleware/index.cjs (total size: 610 B, chunk size: 610 B, exports: createAuthEndpoint, createAuthMiddleware, optionsMiddleware)
|
|
37
37
|
|
|
@@ -51,7 +51,7 @@ Either change the import in "src/types/context.ts" to point directly to the expo
|
|
|
51
51
|
[log] dist/db/adapter/index.cjs (total size: 15 B, chunk size: 15 B)
|
|
52
52
|
[log] dist/index.mjs (total size: 1 B, chunk size: 1 B)
|
|
53
53
|
|
|
54
|
-
[log] dist/async_hooks/index.mjs (total size:
|
|
54
|
+
[log] dist/async_hooks/index.mjs (total size: 858 B, chunk size: 858 B, exports: getAsyncLocalStorage)
|
|
55
55
|
|
|
56
56
|
[log] dist/middleware/index.mjs (total size: 495 B, chunk size: 495 B, exports: createAuthEndpoint, createAuthMiddleware, optionsMiddleware)
|
|
57
57
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
let moduleName = "node:async_hooks";
|
|
4
3
|
const AsyncLocalStoragePromise = import(
|
|
5
4
|
/* @vite-ignore */
|
|
6
5
|
/* webpackIgnore: true */
|
|
7
|
-
|
|
6
|
+
'node:async_hooks'
|
|
8
7
|
).then((mod) => mod.AsyncLocalStorage).catch((err) => {
|
|
9
8
|
if ("AsyncLocalStorage" in globalThis) {
|
|
10
9
|
return globalThis.AsyncLocalStorage;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
let moduleName = "node:async_hooks";
|
|
2
1
|
const AsyncLocalStoragePromise = import(
|
|
3
2
|
/* @vite-ignore */
|
|
4
3
|
/* webpackIgnore: true */
|
|
5
|
-
|
|
4
|
+
'node:async_hooks'
|
|
6
5
|
).then((mod) => mod.AsyncLocalStorage).catch((err) => {
|
|
7
6
|
if ("AsyncLocalStorage" in globalThis) {
|
|
8
7
|
return globalThis.AsyncLocalStorage;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/core",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "The most comprehensive authentication
|
|
3
|
+
"version": "1.3.31",
|
|
4
|
+
"description": "The most comprehensive authentication framework for TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -109,35 +109,38 @@
|
|
|
109
109
|
},
|
|
110
110
|
"typesVersions": {
|
|
111
111
|
"*": {
|
|
112
|
-
"
|
|
112
|
+
".": [
|
|
113
113
|
"dist/index.d.ts"
|
|
114
114
|
],
|
|
115
115
|
"async_hooks": [
|
|
116
|
-
"dist/async_hooks.d.ts"
|
|
116
|
+
"dist/async_hooks/index.d.ts"
|
|
117
117
|
],
|
|
118
|
-
"
|
|
119
|
-
"dist/
|
|
120
|
-
],
|
|
121
|
-
"db/adapter": [
|
|
122
|
-
"dist/db/adapter/index.d.ts"
|
|
118
|
+
"context": [
|
|
119
|
+
"dist/context/index.d.ts"
|
|
123
120
|
],
|
|
124
121
|
"env": [
|
|
125
|
-
"dist/env.d.ts"
|
|
122
|
+
"dist/env/index.d.ts"
|
|
126
123
|
],
|
|
127
124
|
"error": [
|
|
128
|
-
"dist/error.d.ts"
|
|
125
|
+
"dist/error/index.d.ts"
|
|
129
126
|
],
|
|
130
127
|
"middleware": [
|
|
131
|
-
"dist/middleware.d.ts"
|
|
128
|
+
"dist/middleware/index.d.ts"
|
|
132
129
|
],
|
|
133
|
-
"
|
|
134
|
-
"dist/
|
|
130
|
+
"utils": [
|
|
131
|
+
"dist/utils/index.d.ts"
|
|
135
132
|
],
|
|
136
133
|
"social-providers": [
|
|
137
|
-
"dist/social-providers.d.ts"
|
|
134
|
+
"dist/social-providers/index.d.ts"
|
|
138
135
|
],
|
|
139
|
-
"
|
|
140
|
-
"dist/
|
|
136
|
+
"db": [
|
|
137
|
+
"dist/db/index.d.ts"
|
|
138
|
+
],
|
|
139
|
+
"db/adapter": [
|
|
140
|
+
"dist/db/adapter/index.d.ts"
|
|
141
|
+
],
|
|
142
|
+
"oauth2": [
|
|
143
|
+
"dist/oauth2/index.d.ts"
|
|
141
144
|
]
|
|
142
145
|
}
|
|
143
146
|
},
|
package/src/async_hooks/index.ts
CHANGED
|
@@ -6,18 +6,10 @@ import type { AsyncLocalStorage } from "node:async_hooks";
|
|
|
6
6
|
// We only export the type here to avoid issues in environments where AsyncLocalStorage is not available.
|
|
7
7
|
export type { AsyncLocalStorage };
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* Dynamically import AsyncLocalStorage to avoid issues in environments where it's not available.
|
|
11
|
-
*
|
|
12
|
-
* Right now, this is primarily for Cloudflare Workers.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
let moduleName: string = "node:async_hooks";
|
|
16
|
-
|
|
17
9
|
const AsyncLocalStoragePromise: Promise<typeof AsyncLocalStorage> = import(
|
|
18
10
|
/* @vite-ignore */
|
|
19
11
|
/* webpackIgnore: true */
|
|
20
|
-
|
|
12
|
+
"node:async_hooks"
|
|
21
13
|
)
|
|
22
14
|
.then((mod) => mod.AsyncLocalStorage)
|
|
23
15
|
.catch((err) => {
|