From 956cbf2b9421ca4b478cda30d6717a36b1e537b8 Mon Sep 17 00:00:00 2001 From: Solomon Astley Date: Sun, 7 Dec 2025 09:42:13 -0800 Subject: [PATCH 1/3] fix inconsistencies with types --- src/client/storage/utils.ts | 2 +- src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/storage/utils.ts b/src/client/storage/utils.ts index 9cca1b1..b1c064f 100644 --- a/src/client/storage/utils.ts +++ b/src/client/storage/utils.ts @@ -8,7 +8,7 @@ const TEST_STORAGE_VALUE = 'test'; * @param value the value to parse * @returns the safely parsed value */ -export function safeParse(value: string): T | string { +export function safeParse(value: string): T | string { try { return JSON.parse(value); } catch { diff --git a/src/types.ts b/src/types.ts index 72f0839..d577068 100644 --- a/src/types.ts +++ b/src/types.ts @@ -194,7 +194,7 @@ export type TrackEventData = Omit< components['schemas']['TrackEvent'], keyof Omit >; -export type TrackEventProperties = Pick; +export type TrackEventProperties = TrackEventData['properties']; export type UCompany = components['schemas']['CreateOrUpdateUCompanyAttributes']; From eee91ef67993894bad2f36ccbd6c1beae5efa716 Mon Sep 17 00:00:00 2001 From: Solomon Astley Date: Sun, 7 Dec 2025 09:50:00 -0800 Subject: [PATCH 2/3] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ec6eb4b..1c99e38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@unifygtm/intent-client", - "version": "1.9.2", + "version": "1.9.3", "description": "JavaScript client for interacting with the Unify Intent API in the browser.", "keywords": [ "unify", From bf54d9d0009b2ccdcbc66aab41077f138464404f Mon Sep 17 00:00:00 2001 From: Solomon Astley Date: Sun, 7 Dec 2025 09:55:02 -0800 Subject: [PATCH 3/3] remove type that is probably causing issues --- src/client/unify-intent-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/unify-intent-client.ts b/src/client/unify-intent-client.ts index c9f64fb..f364042 100644 --- a/src/client/unify-intent-client.ts +++ b/src/client/unify-intent-client.ts @@ -479,7 +479,7 @@ export default class UnifyIntentClient { * @param unify - the `UnifyIntentClient` to apply method calls to */ function flushUnifyQueue(unify: UnifyIntentClient, apiClient: UnifyApiClient) { - const queue: [string, unknown[]][] = Array.isArray(window.unify) + const queue = Array.isArray(window.unify) ? [...window.unify] : Array.isArray(window.unifyBrowser) ? [...window.unifyBrowser]