@nekm/svelte-core 1.7.11 → 1.7.12

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.
@@ -1,4 +1,4 @@
1
- import type { ProtectConfig } from "./contracts.ts";
1
+ import type { ProtectConfig } from "./contracts.js";
2
2
  export declare function getRedirectUri(origin: string, path: string): string;
3
3
  export declare function jwtVerifyIdToken(config: ProtectConfig, jwks: unknown, idToken: string): Promise<import("jose").JWTPayload>;
4
4
  export declare function jwtVerifyAccessToken(config: ProtectConfig, jwks: unknown, accessToken: string): Promise<import("jose").JWTPayload>;
@@ -1,7 +1,7 @@
1
1
  import { error, redirect } from "@sveltejs/kit";
2
2
  import { ROUTE_PATH_LOGIN } from "./routes/login.js";
3
3
  import { ROUTE_PATH_LOGOUT } from "./routes/logout.js";
4
- import { routeCreate } from "./routes/routes.ts";
4
+ import { routeCreate } from "./routes/routes.js";
5
5
  export const PROTECT_LOGIN = "/" + ROUTE_PATH_LOGIN;
6
6
  export const PROTECT_LOGOUT = "/" + ROUTE_PATH_LOGOUT;
7
7
  export function protect(config) {
@@ -1,3 +1,3 @@
1
- import type { RouteFactory } from "./routes.ts";
1
+ import type { RouteFactory } from "./routes.js";
2
2
  export declare const ROUTE_PATH_LOGIN = "_auth/login";
3
3
  export declare const routeLoginFactory: RouteFactory;
@@ -1,3 +1,3 @@
1
- import type { RouteFactory } from "./routes.ts";
1
+ import type { RouteFactory } from "./routes.js";
2
2
  export declare const ROUTE_PATH_LOGOUT = "_auth/logout";
3
3
  export declare const routeLogoutFactory: RouteFactory;
@@ -1,3 +1,3 @@
1
- import type { RouteFactory } from "./routes.ts";
1
+ import type { RouteFactory } from "./routes.js";
2
2
  export declare const ROUTE_PATH_REDIRECT_LOGIN = "_auth/redirect/login";
3
3
  export declare const routeRedirectLoginFactory: RouteFactory;
@@ -1,3 +1,3 @@
1
- import type { RouteFactory } from "./routes.ts";
1
+ import type { RouteFactory } from "./routes.js";
2
2
  export declare const ROUTE_PATH_REDIRECT_LOGOUT = "_auth/redirect/logout";
3
3
  export declare const routeRedirectLogoutFactory: RouteFactory;
@@ -1,5 +1,5 @@
1
1
  import type { Handle } from "@sveltejs/kit";
2
- import type { ProtectConfig } from "../contracts.ts";
2
+ import type { ProtectConfig } from "../contracts.js";
3
3
  export interface Route {
4
4
  readonly path: string;
5
5
  readonly handle: Handle;
@@ -1,7 +1,7 @@
1
- import { routeLoginFactory } from "./login.ts";
2
- import { routeLogoutFactory } from "./logout.ts";
3
- import { routeRedirectLogoutFactory } from "./redirect-logout.ts";
4
- import { routeRedirectLoginFactory } from "./redirect-login.ts";
1
+ import { routeLoginFactory } from "./login.js";
2
+ import { routeLogoutFactory } from "./logout.js";
3
+ import { routeRedirectLogoutFactory } from "./redirect-logout.js";
4
+ import { routeRedirectLoginFactory } from "./redirect-login.js";
5
5
  const routeFactories = Object.freeze([
6
6
  routeLoginFactory,
7
7
  routeLogoutFactory,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nekm/svelte-core",
3
3
  "description": "Code I find myself re-writing over-and-over, Svelte edition.",
4
4
  "license": "MIT",
5
- "version": "1.7.11",
5
+ "version": "1.7.12",
6
6
  "scripts": {
7
7
  "dev": "vite dev",
8
8
  "build": "vite build && npm run prepack",