@lunora/auth 1.0.0-alpha.13 → 1.0.0-alpha.15
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/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { lunoraAuthAdapter, lunoraD1Adapter } from './adapter.mjs';
|
|
2
2
|
export { LunoraAuthAdminError, createAuthAdmin } from './packem_shared/LunoraAuthAdminError-BxrfEeA_.mjs';
|
|
3
|
-
export { createAuth, resolveAuthOptions } from './packem_shared/createAuth-
|
|
3
|
+
export { createAuth, resolveAuthOptions } from './packem_shared/createAuth-DAVqY5Gx.mjs';
|
|
4
4
|
export { DEFAULT_AUTH_BASE_PATH, handleAuthRequest } from './packem_shared/DEFAULT_AUTH_BASE_PATH-DjcUWEQl.mjs';
|
|
5
5
|
export { LunoraAuthHeadersError, withAuthPlugins } from './middleware.mjs';
|
|
6
|
-
export { compileMigrationsSql, ensureMigrated } from './packem_shared/compileMigrationsSql-
|
|
6
|
+
export { compileMigrationsSql, ensureMigrated } from './packem_shared/compileMigrationsSql-BJ9a-BY8.mjs';
|
|
7
7
|
export { default as authTables } from './schema.mjs';
|
|
8
8
|
export { sessionPresets, validateSessionPolicy } from './packem_shared/sessionPresets-Dwwd74_J.mjs';
|
|
9
9
|
export { createSqlAuthStore, d1Executor } from './sql-store.mjs';
|
package/dist/packem_shared/{compileMigrationsSql-cyE5U18R.mjs → compileMigrationsSql-BJ9a-BY8.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getMigrations } from 'better-auth/db/migration';
|
|
2
|
-
import { resolveAuthOptions } from './createAuth-
|
|
2
|
+
import { resolveAuthOptions } from './createAuth-DAVqY5Gx.mjs';
|
|
3
3
|
|
|
4
4
|
const migrating = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
const ensureMigrated = async (auth) => {
|
|
@@ -23,7 +23,7 @@ const isHttpsBaseUrl = (baseURL) => {
|
|
|
23
23
|
};
|
|
24
24
|
const isExplicitHttpBaseUrl = (baseURL) => {
|
|
25
25
|
if (typeof baseURL === "string") {
|
|
26
|
-
return baseURL.startsWith("http://");
|
|
26
|
+
return baseURL.toLowerCase().startsWith("http://");
|
|
27
27
|
}
|
|
28
28
|
if (baseURL && typeof baseURL === "object") {
|
|
29
29
|
if (baseURL.protocol === "http") {
|
|
@@ -32,7 +32,7 @@ const isExplicitHttpBaseUrl = (baseURL) => {
|
|
|
32
32
|
if (baseURL.protocol === "https") {
|
|
33
33
|
return false;
|
|
34
34
|
}
|
|
35
|
-
return typeof baseURL.fallback === "string" && baseURL.fallback.startsWith("http://");
|
|
35
|
+
return typeof baseURL.fallback === "string" && baseURL.fallback.toLowerCase().startsWith("http://");
|
|
36
36
|
}
|
|
37
37
|
return false;
|
|
38
38
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/auth",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.15",
|
|
4
4
|
"description": "Auth for Lunora — a thin better-auth wrapper: email/password, OAuth, plugins, D1-backed",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@better-auth/passkey": "^1.6.22",
|
|
86
|
-
"@lunora/server": "1.0.0-alpha.
|
|
86
|
+
"@lunora/server": "1.0.0-alpha.13",
|
|
87
87
|
"@lunora/values": "1.0.0-alpha.3",
|
|
88
88
|
"better-auth": "^1.6.22"
|
|
89
89
|
},
|