Many Changes

This commit is contained in:
2024-05-14 12:49:50 +02:00
parent a01b6bdbc2
commit f6eef1ded3
53 changed files with 636 additions and 579 deletions
+3
View File
@@ -0,0 +1,3 @@
export type DeepPartial<T> = T extends object ? {
[P in keyof T]?: DeepPartial<T[P]>;
} : T;
+2 -1
View File
@@ -1,6 +1,7 @@
export function parseSetCookie(h: string[]) {
const penisregex = /(.*?)=(.*?)($|;|,(?! ))/gm;
let aaa = h.map(
s => [...s.matchAll(/(.*?)=(.*?)($|;|,(?! ))/gm)]
s => [...s.matchAll(penisregex)]
);
const dict = Object.assign({}, ...aaa[0].map((e) => {
return { [e[1]]: decodeURIComponent(e[2]) };