@nekm/svelte-core 1.7.6 → 1.7.8
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.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/protect/protect.d.ts +1 -1
- package/dist/protect/protect.js +4 -4
- package/dist/protect/routes/login.d.ts +1 -1
- package/dist/protect/routes/login.js +2 -2
- package/dist/protect/routes/logout.d.ts +1 -1
- package/dist/protect/routes/logout.js +2 -2
- package/dist/protect/routes/redirect-login.d.ts +1 -1
- package/dist/protect/routes/redirect-login.js +1 -1
- package/dist/protect/routes/redirect-logout.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ export * from "./ld-json.svelte";
|
|
|
14
14
|
export { default as ExternalLink } from "./external-link.svelte";
|
|
15
15
|
export * from "./external-link.svelte";
|
|
16
16
|
export * from "./hooks.js";
|
|
17
|
-
export * from "./protect/protect.
|
|
18
|
-
export type { ProtectConfig } from "./protect/contracts.
|
|
17
|
+
export * from "./protect/protect.js";
|
|
18
|
+
export type { ProtectConfig } from "./protect/contracts.js";
|
package/dist/index.js
CHANGED
package/dist/protect/protect.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { error, redirect } from "@sveltejs/kit";
|
|
2
|
-
import { ROUTE_PATH_LOGIN, routeLoginFactory } from "./routes/login.
|
|
3
|
-
import { routeLogoutFactory } from "./routes/logout.
|
|
4
|
-
import { routeRedirectLoginFactory } from "./routes/redirect-login.
|
|
5
|
-
import { routeRedirectLogoutFactory } from "./routes/redirect-logout.
|
|
2
|
+
import { ROUTE_PATH_LOGIN, routeLoginFactory } from "./routes/login.js";
|
|
3
|
+
import { routeLogoutFactory } from "./routes/logout.js";
|
|
4
|
+
import { routeRedirectLoginFactory } from "./routes/redirect-login.js";
|
|
5
|
+
import { routeRedirectLogoutFactory } from "./routes/redirect-logout.js";
|
|
6
6
|
const routeFactories = Object.freeze([
|
|
7
7
|
routeLoginFactory,
|
|
8
8
|
routeLogoutFactory,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { redirect } from "@sveltejs/kit";
|
|
2
2
|
import { queryParamsCreate } from "@nekm/core";
|
|
3
|
-
import { getRedirectUri } from "../helper.
|
|
4
|
-
import { ROUTE_PATH_REDIRECT_LOGIN } from "./redirect-login.
|
|
3
|
+
import { getRedirectUri } from "../helper.js";
|
|
4
|
+
import { ROUTE_PATH_REDIRECT_LOGIN } from "./redirect-login.js";
|
|
5
5
|
export const ROUTE_PATH_LOGIN = "/_auth/login";
|
|
6
6
|
export const routeLoginFactory = (config) => {
|
|
7
7
|
const authorizeUrl = `${config.oauth.baseUrl}/${config.oauth.authorizePath ?? "/oauth2/authorize"}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { redirect } from "@sveltejs/kit";
|
|
2
2
|
import { queryParamsCreate } from "@nekm/core";
|
|
3
|
-
import { getRedirectUri } from "../helper.
|
|
4
|
-
import { ROUTE_PATH_REDIRECT_LOGOUT } from "./redirect-logout.
|
|
3
|
+
import { getRedirectUri } from "../helper.js";
|
|
4
|
+
import { ROUTE_PATH_REDIRECT_LOGOUT } from "./redirect-logout.js";
|
|
5
5
|
export const ROUTE_PATH_LOGOUT = "/_auth/logout";
|
|
6
6
|
export const routeLogoutFactory = (config) => {
|
|
7
7
|
// Check if the oauth provider supports a logout path.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { redirect } from "@sveltejs/kit";
|
|
2
2
|
import { noop, throwIfUndefined } from "@nekm/core";
|
|
3
|
-
import { getRedirectUri } from "../helper.
|
|
3
|
+
import { getRedirectUri } from "../helper.js";
|
|
4
4
|
export const ROUTE_PATH_REDIRECT_LOGIN = "/_auth/redirect/login";
|
|
5
5
|
export const routeRedirectLoginFactory = (config) => {
|
|
6
6
|
const onLogin = config.hooks?.onLogin ?? noop;
|
package/package.json
CHANGED