@remix-run/session-middleware 0.1.1 → 0.1.2
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/lib/session.d.ts +1 -1
- package/dist/lib/session.js +1 -1
- package/package.json +7 -8
- package/src/lib/session.ts +1 -1
package/dist/lib/session.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { SessionStorage } from '@remix-run/session';
|
|
|
6
6
|
*
|
|
7
7
|
* @param sessionCookie The session cookie to use
|
|
8
8
|
* @param sessionStorage The storage backend for session data
|
|
9
|
-
* @
|
|
9
|
+
* @returns The session middleware
|
|
10
10
|
*/
|
|
11
11
|
export declare function session(sessionCookie: Cookie, sessionStorage: SessionStorage): Middleware;
|
|
12
12
|
//# sourceMappingURL=session.d.ts.map
|
package/dist/lib/session.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @param sessionCookie The session cookie to use
|
|
5
5
|
* @param sessionStorage The storage backend for session data
|
|
6
|
-
* @
|
|
6
|
+
* @returns The session middleware
|
|
7
7
|
*/
|
|
8
8
|
export function session(sessionCookie, sessionStorage) {
|
|
9
9
|
if (!sessionCookie.signed) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix-run/session-middleware",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Middleware for managing sessions with cookie-based storage",
|
|
5
5
|
"author": "Michael Jackson <mjijackson@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,15 +28,14 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^24.6.0",
|
|
30
30
|
"@typescript/native-preview": "7.0.0-dev.20251125.1",
|
|
31
|
-
"
|
|
32
|
-
"@remix-run/
|
|
33
|
-
"@remix-run/fetch-router": "0.
|
|
34
|
-
"@remix-run/headers": "0.18.0",
|
|
31
|
+
"@remix-run/cookie": "0.5.1",
|
|
32
|
+
"@remix-run/headers": "0.19.0",
|
|
33
|
+
"@remix-run/fetch-router": "0.15.1",
|
|
35
34
|
"@remix-run/session": "0.4.1"
|
|
36
35
|
},
|
|
37
|
-
"
|
|
38
|
-
"@remix-run/cookie": "^0.5.
|
|
39
|
-
"@remix-run/fetch-router": "^0.
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@remix-run/cookie": "^0.5.1",
|
|
38
|
+
"@remix-run/fetch-router": "^0.15.1",
|
|
40
39
|
"@remix-run/session": "^0.4.1"
|
|
41
40
|
},
|
|
42
41
|
"keywords": [
|
package/src/lib/session.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { SessionStorage } from '@remix-run/session'
|
|
|
7
7
|
*
|
|
8
8
|
* @param sessionCookie The session cookie to use
|
|
9
9
|
* @param sessionStorage The storage backend for session data
|
|
10
|
-
* @
|
|
10
|
+
* @returns The session middleware
|
|
11
11
|
*/
|
|
12
12
|
export function session(sessionCookie: Cookie, sessionStorage: SessionStorage): Middleware {
|
|
13
13
|
if (!sessionCookie.signed) {
|