@logto/sveltekit 0.3.12 → 0.3.14
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,3 +1,3 @@
|
|
|
1
1
|
import { type redirect as originalRedirect } from '@sveltejs/kit';
|
|
2
2
|
import { type Mock } from 'vitest';
|
|
3
|
-
export declare const redirect: Mock<
|
|
3
|
+
export declare const redirect: Mock<typeof originalRedirect>;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import LogtoClient, { type
|
|
1
|
+
import LogtoClient, { type LogtoConfig, type PersistKey, type Storage } from '@logto/node';
|
|
2
2
|
import { type Handle, type RequestEvent } from '@sveltejs/kit';
|
|
3
3
|
export type { AccessTokenClaims, ClientAdapter, CookieConfig, IdTokenClaims, InteractionMode, JwtVerifier, LogtoClientErrorCode, LogtoConfig, LogtoErrorCode, Storage, StorageKey, UserInfoResponse, } from '@logto/node';
|
|
4
4
|
export { CookieStorage, default as LogtoClient, LogtoClientError, LogtoError, LogtoRequestError, OidcError, PersistKey, Prompt, ReservedResource, ReservedScope, StandardLogtoClient, UserScope, buildOrganizationUrn, getOrganizationIdFromUrn, organizationUrnPrefix, } from '@logto/node';
|
|
@@ -79,4 +79,7 @@ export type HookConfig = {
|
|
|
79
79
|
* @param hookConfig The configuration object for the hook itself.
|
|
80
80
|
* @returns The SvelteKit hook.
|
|
81
81
|
*/
|
|
82
|
-
export declare const handleLogto: (config: LogtoConfig, cookieConfig?:
|
|
82
|
+
export declare const handleLogto: (config: LogtoConfig, cookieConfig?: {
|
|
83
|
+
encryptionKey: string;
|
|
84
|
+
cookieKey?: string;
|
|
85
|
+
}, hookConfig?: HookConfig) => Handle;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/sveltekit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"@swc/core": "^1.6.5",
|
|
29
29
|
"@types/cookie": "^0.6.0",
|
|
30
30
|
"@types/node": "^22.0.0",
|
|
31
|
-
"@vitest/coverage-v8": "^1.
|
|
31
|
+
"@vitest/coverage-v8": "^2.1.9",
|
|
32
32
|
"eslint": "^8.57.0",
|
|
33
33
|
"lint-staged": "^15.0.0",
|
|
34
34
|
"prettier": "^3.0.0",
|
|
35
35
|
"typescript": "^5.3.3",
|
|
36
|
-
"vitest": "^1.
|
|
36
|
+
"vitest": "^2.1.9"
|
|
37
37
|
},
|
|
38
38
|
"eslintConfig": {
|
|
39
39
|
"extends": "@silverhand"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@sveltejs/kit": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@logto/node": "^3.
|
|
49
|
+
"@logto/node": "^3.1.1"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
|