From 2be8c35b41875c3dc720d5c952dabed7c342b43b Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Wed, 15 Nov 2023 09:11:49 +0000 Subject: [PATCH] chore: uniquify differently --- src/storage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage.ts b/src/storage.ts index 0e310a3ee..375555dbe 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -4,6 +4,7 @@ import { DISTINCT_ID, SESSION_ID, SESSION_RECORDING_IS_SAMPLED } from './constan import { _isNull, _isUndefined } from './utils/type-utils' import { logger } from './utils/logger' +import { uuidv7 } from './uuidv7' const Y1970 = 'Thu, 01 Jan 1970 00:00:00 GMT' @@ -25,7 +26,7 @@ export function seekFirstNonPublicSubDomain(hostname: string, cookieJar = docume const list = hostname.split('.') let len = list.length - const key = 'dmn_chk_' + +new Date() + const key = 'dmn_chk_' + uuidv7() const R = new RegExp('(^|;)\\s*' + key + '=1') while (len--) {