From c5ef0e71bde5578c9af2a4ea50be699871f68e75 Mon Sep 17 00:00:00 2001 From: Yair Dovrat Date: Fri, 21 Jun 2024 13:56:44 +0200 Subject: [PATCH 1/2] Revert "Merge pull request #9 from managed-components/ZRZ-1271" This reverts commit 87c8dbc486d1d94da260aea529a39b6e9c1cbe95, reversing changes made to a23991bbcc763d938ae086004ff38649969abe0c. e --- src/index.test.ts | 4 ++-- vitest.config.ts | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 vitest.config.ts diff --git a/src/index.test.ts b/src/index.test.ts index 603c590..da7ee03 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -88,7 +88,7 @@ describe('Hubspot MC event handler works correctly', () => { it('creates the Hubspot track request correctly', async () => { const request = fetchedRequests.find((x: any) => - x.url.startsWith('https://track-eu1.hubspot.com/__ptbe.gif?') + x.url.startsWith('https://track-eu1.hubspot.com/__ptq.gif?') ) expect(request).toBeTruthy() expect(request?.opts?.mode).toEqual('no-cors') @@ -97,7 +97,7 @@ describe('Hubspot MC event handler works correctly', () => { const url = new URL(request.url) - expect(url.pathname).toEqual('/__ptbe.gif') + expect(url.pathname).toEqual('/__ptq.gif') expect(url.searchParams.get('k')).toEqual('3') expect(url.searchParams.get('v')).toEqual('1.1') expect(url.searchParams.get('a')).toEqual(settings.accountId) diff --git a/vitest.config.ts b/vitest.config.ts deleted file mode 100644 index 8c97a4f..0000000 --- a/vitest.config.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { defineConfig } from 'vitest/config'; -export default defineConfig({}) From a49bc0848d105e67c4cf414b9bd28cd70521ab9a Mon Sep 17 00:00:00 2001 From: Yair Dovrat Date: Fri, 21 Jun 2024 14:01:11 +0200 Subject: [PATCH 2/2] Revert "Merge pull request #8 from managed-components/ZRZ-1271" This reverts commit a23991bbcc763d938ae086004ff38649969abe0c, reversing changes made to e634dc86f9505f35d8938cc508c575741a32cd55. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 97bc0d1..4e7c2e1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -107,7 +107,7 @@ export const sendEvent = client.fetch( `https://track${getRegionPrefix( regionPrefix - )}.hubspot.com/__ptbe.gif?${params}`, + )}.hubspot.com/__ptq.gif?${params}`, { credentials: 'include', keepalive: true,