diff --git a/packages/extension/src/worker/createCookieObject.ts b/packages/extension/src/serviceWorker/createCookieObject.ts similarity index 100% rename from packages/extension/src/worker/createCookieObject.ts rename to packages/extension/src/serviceWorker/createCookieObject.ts diff --git a/packages/extension/src/worker/findAnalyticsMatch.ts b/packages/extension/src/serviceWorker/findAnalyticsMatch.ts similarity index 100% rename from packages/extension/src/worker/findAnalyticsMatch.ts rename to packages/extension/src/serviceWorker/findAnalyticsMatch.ts diff --git a/packages/extension/src/worker/findPreviousCookieDataObject.ts b/packages/extension/src/serviceWorker/findPreviousCookieDataObject.ts similarity index 100% rename from packages/extension/src/worker/findPreviousCookieDataObject.ts rename to packages/extension/src/serviceWorker/findPreviousCookieDataObject.ts diff --git a/packages/extension/src/worker/service-worker.ts b/packages/extension/src/serviceWorker/index.ts similarity index 100% rename from packages/extension/src/worker/service-worker.ts rename to packages/extension/src/serviceWorker/index.ts diff --git a/packages/extension/src/worker/parseRequestCookieHeader.ts b/packages/extension/src/serviceWorker/parseRequestCookieHeader.ts similarity index 100% rename from packages/extension/src/worker/parseRequestCookieHeader.ts rename to packages/extension/src/serviceWorker/parseRequestCookieHeader.ts diff --git a/packages/extension/src/worker/parseResponseCookieHeader.ts b/packages/extension/src/serviceWorker/parseResponseCookieHeader.ts similarity index 100% rename from packages/extension/src/worker/parseResponseCookieHeader.ts rename to packages/extension/src/serviceWorker/parseResponseCookieHeader.ts diff --git a/packages/extension/src/worker/tests/fetchPreviousCookieDataObject.ts b/packages/extension/src/serviceWorker/tests/fetchPreviousCookieDataObject.ts similarity index 100% rename from packages/extension/src/worker/tests/fetchPreviousCookieDataObject.ts rename to packages/extension/src/serviceWorker/tests/fetchPreviousCookieDataObject.ts diff --git a/packages/extension/src/worker/tests/parseRequestCookieHeader.ts b/packages/extension/src/serviceWorker/tests/parseRequestCookieHeader.ts similarity index 100% rename from packages/extension/src/worker/tests/parseRequestCookieHeader.ts rename to packages/extension/src/serviceWorker/tests/parseRequestCookieHeader.ts diff --git a/packages/extension/src/worker/tests/parseResponseCookieHeader.ts b/packages/extension/src/serviceWorker/tests/parseResponseCookieHeader.ts similarity index 100% rename from packages/extension/src/worker/tests/parseResponseCookieHeader.ts rename to packages/extension/src/serviceWorker/tests/parseResponseCookieHeader.ts diff --git a/packages/extension/src/worker/types.ts b/packages/extension/src/serviceWorker/types.ts similarity index 100% rename from packages/extension/src/worker/types.ts rename to packages/extension/src/serviceWorker/types.ts diff --git a/packages/extension/src/utils/setDocumentCookies.ts b/packages/extension/src/utils/setDocumentCookies.ts index b7c568be1..b735fceda 100644 --- a/packages/extension/src/utils/setDocumentCookies.ts +++ b/packages/extension/src/utils/setDocumentCookies.ts @@ -21,9 +21,9 @@ import { isFirstParty } from '@cookie-analysis-tool/common'; /** * Internal dependencies. */ -import { createCookieObject } from '../worker/createCookieObject'; +import { createCookieObject } from '../serviceWorker/createCookieObject'; import { fetchDictionary, type CookieDatabase } from './fetchCookieDictionary'; -import findAnalyticsMatch from '../worker/findAnalyticsMatch'; +import findAnalyticsMatch from '../serviceWorker/findAnalyticsMatch'; import { CookieStore, type CookieData } from '../localStore'; interface ProcessAndStoreDucmentCookiesProps { diff --git a/packages/extension/src/utils/test-data/cookieMockData.ts b/packages/extension/src/utils/test-data/cookieMockData.ts index 9ce0dba15..1761bdd22 100644 --- a/packages/extension/src/utils/test-data/cookieMockData.ts +++ b/packages/extension/src/utils/test-data/cookieMockData.ts @@ -22,7 +22,7 @@ import { type Cookie as ParsedCookie } from 'simple-cookie'; * Internal dependencies. */ import type { CookieStoreContext } from '../../view/devtools/stateProviders/syncCookieStore'; -import { emptyAnalytics } from '../../worker/findAnalyticsMatch'; +import { emptyAnalytics } from '../../serviceWorker/findAnalyticsMatch'; const emptyCookie = { name: '', diff --git a/packages/extension/webpack.config.cjs b/packages/extension/webpack.config.cjs index 47b005d63..8bf7dd976 100644 --- a/packages/extension/webpack.config.cjs +++ b/packages/extension/webpack.config.cjs @@ -21,7 +21,7 @@ const commonConfig = require('../../webpack.shared.cjs'); const root = { entry: { - 'service-worker': './src/worker/service-worker.ts', + 'service-worker': './src/serviceWorker/index.ts', }, output: { path: path.resolve(__dirname, '../../dist/extension'),