From 43eff1b7cf7af69c78368d9a3a4a632a8b99e42d Mon Sep 17 00:00:00 2001 From: Paul Tran-Van Date: Thu, 7 Nov 2024 12:35:30 +0100 Subject: [PATCH] refactor: Rename utils into data --- src/dataproxy/worker/SharedWorkerProvider.tsx | 2 +- src/dataproxy/worker/{utils.ts => data.ts} | 0 src/dataproxy/worker/shared-worker.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/dataproxy/worker/{utils.ts => data.ts} (100%) diff --git a/src/dataproxy/worker/SharedWorkerProvider.tsx b/src/dataproxy/worker/SharedWorkerProvider.tsx index 6b305fe..dc79ddf 100644 --- a/src/dataproxy/worker/SharedWorkerProvider.tsx +++ b/src/dataproxy/worker/SharedWorkerProvider.tsx @@ -10,7 +10,7 @@ import { DataProxyWorkerPartialState } from '@/dataproxy/common/DataProxyInterface' import { TabCountSync } from '@/dataproxy/common/TabCountSync' -import { removeStaleLocalData } from '@/dataproxy/worker/utils' +import { removeStaleLocalData } from '@/dataproxy/worker/data' const log = Minilog('👷‍♂️ [SharedWorkerProvider]') diff --git a/src/dataproxy/worker/utils.ts b/src/dataproxy/worker/data.ts similarity index 100% rename from src/dataproxy/worker/utils.ts rename to src/dataproxy/worker/data.ts diff --git a/src/dataproxy/worker/shared-worker.ts b/src/dataproxy/worker/shared-worker.ts index bbcc8ac..78244c2 100644 --- a/src/dataproxy/worker/shared-worker.ts +++ b/src/dataproxy/worker/shared-worker.ts @@ -17,8 +17,8 @@ import { DataProxyWorker, DataProxyWorkerPartialState } from '@/dataproxy/common/DataProxyInterface' +import { queryIsTrustedDevice } from '@/dataproxy/worker/data' import { platformWorker } from '@/dataproxy/worker/platformWorker' -import { queryIsTrustedDevice } from '@/dataproxy/worker/utils' import schema from '@/doctypes' import { getPouchLink } from '@/helpers/client'