fix(common): move ua parser to common and import isServer flag

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-10-05 23:44:18 +02:00
parent 153faab878
commit 301d86aa71
8 changed files with 29 additions and 131 deletions

View File

@@ -1,11 +1,11 @@
import { getReferrerWithQuery, parseReferrer } from '@/utils/parse-referrer';
import { parseUserAgent } from '@/utils/parse-user-agent';
import type { Job } from 'bullmq';
import { omit } from 'ramda';
import { v4 as uuid } from 'uuid';
import { logger } from '@/utils/logger';
import { getTime, isSameDomain, parsePath } from '@openpanel/common';
import { parseUserAgent } from '@openpanel/common/server';
import type { IServiceCreateEventPayload } from '@openpanel/db';
import { checkNotificationRulesForEvent, createEvent } from '@openpanel/db';
import { getLastScreenViewFromProfileId } from '@openpanel/db/src/services/event.service';