dn-react-router-toolkit 0.4.1 → 0.4.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.
|
@@ -7,7 +7,7 @@ declare class ReactRouterCookieManager implements CookieManager {
|
|
|
7
7
|
private store;
|
|
8
8
|
constructor(name: string);
|
|
9
9
|
parse(request: Request, parseOptions?: ParseOptions | undefined): Promise<string | null>;
|
|
10
|
-
serialize(value: string, serializeOptions?: SerializeOptions | undefined): Promise<string>;
|
|
10
|
+
serialize(value: string | null, serializeOptions?: SerializeOptions | undefined): Promise<string>;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export { ReactRouterCookieManager };
|
|
@@ -7,7 +7,7 @@ declare class ReactRouterCookieManager implements CookieManager {
|
|
|
7
7
|
private store;
|
|
8
8
|
constructor(name: string);
|
|
9
9
|
parse(request: Request, parseOptions?: ParseOptions | undefined): Promise<string | null>;
|
|
10
|
-
serialize(value: string, serializeOptions?: SerializeOptions | undefined): Promise<string>;
|
|
10
|
+
serialize(value: string | null, serializeOptions?: SerializeOptions | undefined): Promise<string>;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export { ReactRouterCookieManager };
|
|
@@ -43,7 +43,11 @@ var ReactRouterCookieManager = class {
|
|
|
43
43
|
return this.store.parse(cookieStore, parseOptions);
|
|
44
44
|
}
|
|
45
45
|
async serialize(value, serializeOptions) {
|
|
46
|
-
return this.store.serialize(value, {
|
|
46
|
+
return this.store.serialize(value, {
|
|
47
|
+
...this.options,
|
|
48
|
+
maxAge: !value ? 0 : void 0,
|
|
49
|
+
...serializeOptions
|
|
50
|
+
});
|
|
47
51
|
}
|
|
48
52
|
};
|
|
49
53
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -19,7 +19,11 @@ var ReactRouterCookieManager = class {
|
|
|
19
19
|
return this.store.parse(cookieStore, parseOptions);
|
|
20
20
|
}
|
|
21
21
|
async serialize(value, serializeOptions) {
|
|
22
|
-
return this.store.serialize(value, {
|
|
22
|
+
return this.store.serialize(value, {
|
|
23
|
+
...this.options,
|
|
24
|
+
maxAge: !value ? 0 : void 0,
|
|
25
|
+
...serializeOptions
|
|
26
|
+
});
|
|
23
27
|
}
|
|
24
28
|
};
|
|
25
29
|
export {
|
package/dist/auth/index.js
CHANGED
|
@@ -110,7 +110,11 @@ var ReactRouterCookieManager = class {
|
|
|
110
110
|
return this.store.parse(cookieStore, parseOptions);
|
|
111
111
|
}
|
|
112
112
|
async serialize(value, serializeOptions) {
|
|
113
|
-
return this.store.serialize(value, {
|
|
113
|
+
return this.store.serialize(value, {
|
|
114
|
+
...this.options,
|
|
115
|
+
maxAge: !value ? 0 : void 0,
|
|
116
|
+
...serializeOptions
|
|
117
|
+
});
|
|
114
118
|
}
|
|
115
119
|
};
|
|
116
120
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/auth/index.mjs
CHANGED
|
@@ -83,7 +83,11 @@ var ReactRouterCookieManager = class {
|
|
|
83
83
|
return this.store.parse(cookieStore, parseOptions);
|
|
84
84
|
}
|
|
85
85
|
async serialize(value, serializeOptions) {
|
|
86
|
-
return this.store.serialize(value, {
|
|
86
|
+
return this.store.serialize(value, {
|
|
87
|
+
...this.options,
|
|
88
|
+
maxAge: !value ? 0 : void 0,
|
|
89
|
+
...serializeOptions
|
|
90
|
+
});
|
|
87
91
|
}
|
|
88
92
|
};
|
|
89
93
|
export {
|
package/package.json
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
"./auth": {
|
|
14
|
-
"types": "./dist/auth/index.d.ts",
|
|
15
|
-
"import": "./dist/auth/index.mjs",
|
|
16
|
-
"require": "./dist/auth/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./api": {
|
|
19
|
-
"types": "./dist/api/index.d.ts",
|
|
20
|
-
"import": "./dist/api/index.mjs",
|
|
21
|
-
"require": "./dist/api/index.js"
|
|
22
|
-
},
|
|
23
|
-
"./client": {
|
|
24
|
-
"types": "./dist/client/index.d.ts",
|
|
25
|
-
"import": "./dist/client/index.mjs",
|
|
26
|
-
"require": "./dist/client/index.js"
|
|
27
|
-
},
|
|
28
|
-
"./seo": {
|
|
29
|
-
"types": "./dist/seo/index.d.ts",
|
|
30
|
-
"import": "./dist/seo/index.mjs",
|
|
31
|
-
"require": "./dist/seo/index.js"
|
|
32
|
-
}
|
|
2
|
+
"name": "dn-react-router-toolkit",
|
|
3
|
+
"version": "0.4.2",
|
|
4
|
+
"types": "./dist/index.d.ts",
|
|
5
|
+
"main": "./dist/index.mjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.js"
|
|
33
12
|
},
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
13
|
+
"./auth": {
|
|
14
|
+
"types": "./dist/auth/index.d.ts",
|
|
15
|
+
"import": "./dist/auth/index.mjs",
|
|
16
|
+
"require": "./dist/auth/index.js"
|
|
37
17
|
},
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
18
|
+
"./api": {
|
|
19
|
+
"types": "./dist/api/index.d.ts",
|
|
20
|
+
"import": "./dist/api/index.mjs",
|
|
21
|
+
"require": "./dist/api/index.js"
|
|
41
22
|
},
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
23
|
+
"./client": {
|
|
24
|
+
"types": "./dist/client/index.d.ts",
|
|
25
|
+
"import": "./dist/client/index.mjs",
|
|
26
|
+
"require": "./dist/client/index.js"
|
|
46
27
|
},
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"@types/react": "^19",
|
|
52
|
-
"@types/react-dom": "^19",
|
|
53
|
-
"schema-dts": "^1.1.5",
|
|
54
|
-
"tsup": "^8.5.1",
|
|
55
|
-
"typescript": "^5.7.3"
|
|
56
|
-
},
|
|
57
|
-
"dependencies": {
|
|
58
|
-
"dn-react-toolkit": "0.2.7"
|
|
59
|
-
},
|
|
60
|
-
"peerDependencies": {
|
|
61
|
-
"react": "^19",
|
|
62
|
-
"react-dom": "^19",
|
|
63
|
-
"react-router": "^7"
|
|
28
|
+
"./seo": {
|
|
29
|
+
"types": "./dist/seo/index.d.ts",
|
|
30
|
+
"import": "./dist/seo/index.mjs",
|
|
31
|
+
"require": "./dist/seo/index.js"
|
|
64
32
|
}
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsup",
|
|
36
|
+
"dev": "tsup --watch"
|
|
37
|
+
},
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "git+https://github.com/dndnsoft/dn-react-router-toolkit.git"
|
|
41
|
+
},
|
|
42
|
+
"author": "",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/dndnsoft/dn-react-router-toolkit/issues"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/dndnsoft/dn-react-router-toolkit#readme",
|
|
48
|
+
"description": "",
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "^24.10.1",
|
|
51
|
+
"@types/react": "^19",
|
|
52
|
+
"@types/react-dom": "^19",
|
|
53
|
+
"schema-dts": "^1.1.5",
|
|
54
|
+
"tsup": "^8.5.1",
|
|
55
|
+
"typescript": "^5.7.3"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"dn-react-toolkit": "0.2.7"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"react": "^19",
|
|
62
|
+
"react-dom": "^19",
|
|
63
|
+
"react-router": "^7"
|
|
64
|
+
}
|
|
65
65
|
}
|